netbox-client-ruby 0.0.2 → 0.0.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: 5947a74f8debe4a343d1efac527756edcd783d3c
4
- data.tar.gz: 2dd20450faa1fc61b8b05e3597a50fd9ec716450
3
+ metadata.gz: c7b14622809ed0a8577fa64386e32118a103d19f
4
+ data.tar.gz: dba47471b81e2bd5d789fa7c4f6d48715b730ad6
5
5
  SHA512:
6
- metadata.gz: 8223db031c79b10e722ea046e4edbb1bd7cc6160f3856a28ffe8d99c131b8a1239d86df91cf7b0dc8ab64a86cb4809804dcfafa003a065613f80913c4b24b697
7
- data.tar.gz: aa9093151ad282dc0a2bc9400db29ba95ca2a0badef44fc641fa96110689d5d9a8a0c085d0d8a3e190b67ede385de0cc7505b495af659586959da7e966c871f1
6
+ metadata.gz: 814a79f6fdf20d5a351013dc85e8003abd8599e19d8a3d55c568e8f33b7d182b0b8003c49469ba7f8499c1efbe32e9c0d17217e4acbf2e0b1bbe3ab7da54ef92
7
+ data.tar.gz: 8cf753843a93b1d52b916bf69699d10e01bcf4f94b137d886a52cf037f0cb792c4a5ba9bdb2c9346737ad009040b7bdcfffa8008c71edc95786a33b8f8ca3f3a
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- netbox-client-ruby (0.0.2)
4
+ netbox-client-ruby (0.0.3)
5
5
  dry-configurable (~> 0.1)
6
- faraday (~> 0.12)
6
+ faraday (>= 0.11)
7
7
  faraday-detailed_logger (~> 2.1)
8
8
  faraday_middleware (~> 0.11.0)
9
9
  ipaddress (>= 0.8.3)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -5,6 +5,7 @@ require 'netbox_client_ruby/api/ipam/vrf'
5
5
  require 'netbox_client_ruby/api/ipam/vlan'
6
6
  require 'netbox_client_ruby/api/ipam/vlan_group'
7
7
  require 'netbox_client_ruby/api/tenancy/tenant'
8
+ require 'ipaddress'
8
9
 
9
10
  module NetboxClientRuby
10
11
  class Prefix
@@ -20,7 +21,8 @@ module NetboxClientRuby
20
21
  tenant: proc { |raw_data| NetboxClientRuby::Tenant.new raw_data['id'] },
21
22
  vlan: proc { |raw_data| NetboxClientRuby::Vlan.new raw_data['id'] },
22
23
  status: proc { |raw_data| NetboxClientRuby::PrefixStatus.new raw_data['value'] },
23
- role: proc { |raw_data| NetboxClientRuby::Role.new raw_data['id'] }
24
+ role: proc { |raw_data| NetboxClientRuby::Role.new raw_data['id'] },
25
+ prefix: proc { |raw_data| IPAddress.parse raw_data }
24
26
  )
25
27
  readonly_fields :display_name
26
28
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.require_paths = ['lib']
31
31
 
32
32
  spec.add_runtime_dependency 'dry-configurable', '~> 0.1'
33
- spec.add_runtime_dependency 'faraday', '~> 0.12'
33
+ spec.add_runtime_dependency 'faraday', '>= 0.11'
34
34
  spec.add_runtime_dependency 'faraday_middleware', '~> 0.11.0'
35
35
  spec.add_runtime_dependency 'faraday-detailed_logger', '~> 2.1'
36
36
  spec.add_runtime_dependency 'ipaddress', '>= 0.8.3'
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.0.2
4
+ version: 0.0.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-05-16 00:00:00.000000000 Z
11
+ date: 2017-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.12'
33
+ version: '0.11'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0.12'
40
+ version: '0.11'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: faraday_middleware
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -263,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  version: '0'
264
264
  requirements: []
265
265
  rubyforge_project:
266
- rubygems_version: 2.6.11
266
+ rubygems_version: 2.5.2
267
267
  signing_key:
268
268
  specification_version: 4
269
269
  summary: A read/write client for Netbox v2.