netbox-client-ruby 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/VERSION +1 -1
- data/lib/netbox_client_ruby/communication.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30ebbb6c61eea3d9d7d041a93900453bef596b63
|
|
4
|
+
data.tar.gz: 9fb76ba45290bcc67f16b45274d69683ae21efbc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f9f038e78e888472318b02e16a0df20846110d1efe351145a892f14fba2712879bb077d73128481a9caf7618eed1695bb4e6c1e0cf15a3e37ad14efdab53b5d
|
|
7
|
+
data.tar.gz: f6cbf5a92b271ac8ef5c04d5f86cb8fe6b354a092117dda9eddeb70443ededd655a83505def5619a42069eb72bd6956dad37d906da3ea8cbb33c5f545cee4111
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
netbox-client-ruby (0.2.
|
|
4
|
+
netbox-client-ruby (0.2.3)
|
|
5
5
|
dry-configurable (~> 0.1)
|
|
6
6
|
faraday (>= 0.11.0)
|
|
7
7
|
faraday-detailed_logger (~> 2.1)
|
|
@@ -76,4 +76,4 @@ DEPENDENCIES
|
|
|
76
76
|
rubocop-rspec (~> 1.15)
|
|
77
77
|
|
|
78
78
|
BUNDLED WITH
|
|
79
|
-
1.
|
|
79
|
+
1.16.0
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.3
|
|
@@ -45,8 +45,8 @@ module NetboxClientRuby
|
|
|
45
45
|
body = response.body
|
|
46
46
|
|
|
47
47
|
case status
|
|
48
|
-
when 200..
|
|
49
|
-
when
|
|
48
|
+
when 200..299 then
|
|
49
|
+
when 300..499 then
|
|
50
50
|
raise_on_http_client_error response
|
|
51
51
|
when 500..599 then
|
|
52
52
|
raise NetboxClientRuby::RemoteError, "#{status} Remote Error#{formatted_body(body)}"
|
|
@@ -83,7 +83,7 @@ module NetboxClientRuby
|
|
|
83
83
|
|
|
84
84
|
def formatted_body(body)
|
|
85
85
|
return '' if body.nil? || body.empty?
|
|
86
|
-
shortened = body.to_s
|
|
86
|
+
shortened = body.to_s
|
|
87
87
|
one_line = shortened.gsub(/\n/, '\n')
|
|
88
88
|
" (#{one_line})"
|
|
89
89
|
end
|
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.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christian Mäder
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-11-
|
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-configurable
|