netbox-client-ruby 0.10.3 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a632845ab62cb10130f5008b63077722e648f6914bb17c0120ca24717fef106
4
- data.tar.gz: cd1846a99f1b50edbb0789c8fb09f7178228df187e18384d3a9936180c8bb9ff
3
+ metadata.gz: 51796bd57860f9ae7ece4e00038eabad84f459e56edbac865bf0ba172e69cdac
4
+ data.tar.gz: 5193306d916083f05422dfd3f58d6bebab1af0ff2c017dd37ec7d617e15467a3
5
5
  SHA512:
6
- metadata.gz: 4bf36821671e75f9978ff981ac9919fd4a01e12194b082623379b3dcc1ad80a7f17a172feb73ab90ce2f94e9fbace89f349fea1fe2b4e35232b498ef15da7613
7
- data.tar.gz: '091ee5ebe63466e0093bd978ad3c7560df12a4978e542fa8467a0d16163fbee22119b72f9493578e87ecd5fbb624755dcc5c5674093577a9807c391df351a418'
6
+ metadata.gz: 5f69cd56f421393a687f5f932a95423c8f86a113721af5e0496242f1feb3681a4a92cb0c3c2b52c92477c5c9d7e9e68d4d55f0bfefce6b102cbe062cc1ec654f
7
+ data.tar.gz: 7e605bb816aed40ce7303392ade1cb224f5676796690d6fb70d09166bfed18f56a5d71ec4643cde45cffeeabc37406d1272ae2f41903a828cbdf910c60eb0d7d
data/README.md CHANGED
@@ -47,7 +47,10 @@ NetboxClientRuby.configure do |config|
47
47
  config.netbox.auth.rsa_private_key.password = ''
48
48
  config.netbox.pagination.default_limit = 50
49
49
  config.faraday.adapter = Faraday.default_adapter
50
+ # https://lostisland.github.io/faraday/#/customization/request-options
50
51
  config.faraday.request_options = { open_timeout: 1, timeout: 5 }
52
+ # see: https://lostisland.github.io/faraday/#/customization/ssl-options
53
+ config.faraday.ssl_options = { verify: true }
51
54
  config.faraday.logger = :logger # built-in options: :logger, :detailed_logger; default: nil
52
55
  end
53
56
  ```
@@ -28,7 +28,7 @@ module NetboxClientRuby
28
28
 
29
29
  private_class_method def self.build_faraday(request_encoding: :json)
30
30
  config = NetboxClientRuby.config
31
- Faraday.new(url: config.netbox.api_base_url, headers: headers) do |faraday|
31
+ Faraday.new(url: config.netbox.api_base_url, headers: headers, ssl: config.faraday.ssl_options) do |faraday|
32
32
  faraday.request request_encoding
33
33
  faraday.response config.faraday.logger if config.faraday.logger
34
34
  faraday.response :json, content_type: /\bjson$/
@@ -65,6 +65,7 @@ module NetboxClientRuby
65
65
  setting :adapter, default: :net_http
66
66
  setting :logger
67
67
  setting :request_options, default: { open_timeout: 1, timeout: 5 }
68
+ setting :ssl_options, default: { verify: true }
68
69
  end
69
70
 
70
71
  def self.circuits
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netbox-client-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nine Internet Solutions AG
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-02 00:00:00.000000000 Z
11
+ date: 2025-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -106,7 +106,7 @@ dependencies:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
108
  version: 2.6.0
109
- description:
109
+ description:
110
110
  email:
111
111
  - support@nine.ch
112
112
  executables: []
@@ -254,7 +254,7 @@ licenses:
254
254
  - MIT
255
255
  metadata:
256
256
  allowed_push_host: https://rubygems.org
257
- post_install_message:
257
+ post_install_message:
258
258
  rdoc_options: []
259
259
  require_paths:
260
260
  - lib
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  version: '0'
271
271
  requirements: []
272
272
  rubygems_version: 3.4.19
273
- signing_key:
273
+ signing_key:
274
274
  specification_version: 4
275
275
  summary: A read/write client for Netbox v2.
276
276
  test_files: []