netbox-client-ruby 0.2.1 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 501dcf8599e433ec8c8feba91939736f34642143
4
- data.tar.gz: a61d536319ac6d9bce36d367d606cc1fbd61a5d4
3
+ metadata.gz: 3805cba857a77577c28953d47b2e98f3612e41fc
4
+ data.tar.gz: c70c77e8116efb791b61f32e1824ca22344dd894
5
5
  SHA512:
6
- metadata.gz: 6615f95016782e03a390b264581e70be014172b28f41da80463837cbb7b10df4660b1886f8ef9574764e218e3abeb701c4be553d54a836d51b23d217b522c5cb
7
- data.tar.gz: 53b3034334134a64c066fb4e93a34165e3dab155f9cd74afc58851b5e2bee8ec48b483c98c7ba6b7710df7c27b6fa077105e930f54e2de9182ca7d6e1e9207b2
6
+ metadata.gz: d43f9eb57574e92809278dc7c631cd1a8749ec2091dba2cf4590c3e573f87912ef7d572ceed64aa6e45fe6da0e01aa149c95bd1bcd4e5dad21619fff78e724c1
7
+ data.tar.gz: ab0f8977dece508cb9f1ea60c017101be9f96009b8db132049e562bbc7e5f72f3ddaa7dec01b317b90fecf84211a42b9e612fff6a2fd5ed6020162b825c9b372
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- netbox-client-ruby (0.2.1)
4
+ netbox-client-ruby (0.2.2)
5
5
  dry-configurable (~> 0.1)
6
6
  faraday (>= 0.11.0)
7
7
  faraday-detailed_logger (~> 2.1)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -1,5 +1,6 @@
1
1
  require 'netbox_client_ruby/entity'
2
2
  require 'netbox_client_ruby/api/tenancy/tenant'
3
+ require 'netbox_client_ruby/api/dcim/site'
3
4
  require 'netbox_client_ruby/api/ipam/role'
4
5
  require 'netbox_client_ruby/api/ipam/vlan_group'
5
6
 
@@ -16,7 +17,8 @@ module NetboxClientRuby
16
17
  tenant: proc { |raw_data| Tenancy::Tenant.new raw_data['id'] },
17
18
  role: proc { |raw_data| Role.new raw_data['id'] },
18
19
  status: proc { |raw_data| VlanStatus.new raw_data['value'] },
19
- group: proc { |raw_data| VlanGroup.new raw_data['id'] }
20
+ group: proc { |raw_data| VlanGroup.new raw_data['id'] },
21
+ site: proc { |raw_data| DCIM::Site.new raw_data['id'] },
20
22
  )
21
23
  readonly_fields :display_name
22
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netbox-client-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Mäder