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 +4 -4
- data/README.md +3 -0
- data/lib/netbox_client_ruby/connection.rb +1 -1
- data/lib/netbox_client_ruby.rb +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51796bd57860f9ae7ece4e00038eabad84f459e56edbac865bf0ba172e69cdac
|
4
|
+
data.tar.gz: 5193306d916083f05422dfd3f58d6bebab1af0ff2c017dd37ec7d617e15467a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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$/
|
data/lib/netbox_client_ruby.rb
CHANGED
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.
|
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:
|
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: []
|