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 +4 -4
- data/Gemfile.lock +2 -2
- data/VERSION +1 -1
- data/lib/netbox_client_ruby/api/ipam/prefix.rb +3 -1
- data/netbox-client-ruby.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7b14622809ed0a8577fa64386e32118a103d19f
|
4
|
+
data.tar.gz: dba47471b81e2bd5d789fa7c4f6d48715b730ad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 814a79f6fdf20d5a351013dc85e8003abd8599e19d8a3d55c568e8f33b7d182b0b8003c49469ba7f8499c1efbe32e9c0d17217e4acbf2e0b1bbe3ab7da54ef92
|
7
|
+
data.tar.gz: 8cf753843a93b1d52b916bf69699d10e01bcf4f94b137d886a52cf037f0cb792c4a5ba9bdb2c9346737ad009040b7bdcfffa8008c71edc95786a33b8f8ca3f3a
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
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
|
data/netbox-client-ruby.gemspec
CHANGED
@@ -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', '
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|