Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use new dry-configurable api #51

Merged
merged 3 commits into from
Nov 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.6
0.5.7
10 changes: 5 additions & 5 deletions lib/netbox_client_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ module NetboxClientRuby
setting :rsa_private_key do
# the default is intentionally not `~/.ssh/id_rsa`,
# to not accidentally leak someone's main rsa private key
setting :path, '~/.ssh/netbox_rsa'
setting :path, default: '~/.ssh/netbox_rsa'
setting :password
end
end
setting :pagination do
setting :default_limit, 50
setting :max_limit, MAX_SIGNED_64BIT_INT
setting :default_limit, default: 50
setting :max_limit, default: MAX_SIGNED_64BIT_INT
end
end

setting :faraday do
setting :adapter, :net_http
setting :adapter, default: :net_http
setting :logger
setting :request_options, open_timeout: 1, timeout: 5
setting :request_options, default: { open_timeout: 1, timeout: 5 }
end
end
2 changes: 1 addition & 1 deletion netbox-client-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_runtime_dependency 'dry-configurable', '~> 0.1'
spec.add_runtime_dependency 'dry-configurable', '~> 0.13.0'
spec.add_runtime_dependency 'faraday', '~> 0.11', '>= 0.11.0'
spec.add_runtime_dependency 'faraday-detailed_logger', '~> 2.1'
spec.add_runtime_dependency 'faraday_middleware', '~> 0.11'
Expand Down