netbox-client-ruby 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: 3805cba857a77577c28953d47b2e98f3612e41fc
4
- data.tar.gz: c70c77e8116efb791b61f32e1824ca22344dd894
3
+ metadata.gz: 30ebbb6c61eea3d9d7d041a93900453bef596b63
4
+ data.tar.gz: 9fb76ba45290bcc67f16b45274d69683ae21efbc
5
5
  SHA512:
6
- metadata.gz: d43f9eb57574e92809278dc7c631cd1a8749ec2091dba2cf4590c3e573f87912ef7d572ceed64aa6e45fe6da0e01aa149c95bd1bcd4e5dad21619fff78e724c1
7
- data.tar.gz: ab0f8977dece508cb9f1ea60c017101be9f96009b8db132049e562bbc7e5f72f3ddaa7dec01b317b90fecf84211a42b9e612fff6a2fd5ed6020162b825c9b372
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.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.15.4
79
+ 1.16.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.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..399 then
49
- when 400..499 then
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[0, 50]
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.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-16 00:00:00.000000000 Z
11
+ date: 2017-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable