netbox-client-ruby 0.4.6 → 0.4.7

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
- SHA1:
3
- metadata.gz: 9f5171e7613c34dd44dc6f890ea192b6d0e64746
4
- data.tar.gz: 43c5885c077d3935176f6e9b91b81ab8a68c1080
2
+ SHA256:
3
+ metadata.gz: 7bbee330c0fd1e155d8a541e0c2623b8c51e7f7c8a09baa437a54e9a7d4fa331
4
+ data.tar.gz: 25fc1a6f678ae72b68dcba5b94a54adbb9de42fde8e948ef33e07225b860eec1
5
5
  SHA512:
6
- metadata.gz: e0895490baf060370fc9f95ca0fadeac28751b2066ad53bc552cb1517b9ce137d91af3ac1e057e9997fbd5d071036cb7aac1f22909c3ee35c9c659050d63c354
7
- data.tar.gz: 997d778a64ea6ecff5398d8db6464f96c3c1772528d24899e2ac3e23db5993d00fe3736605b64abd2064864d0572334bc17b69308c6557bfe27daf9c38a33269
6
+ metadata.gz: 9a81359b1300f74642c92fe99b78c718e197d9259af7e782b35f16b20d02614a36a5b97fef70ebd30f9ad8c838a228eb653af977ea1cdfb87eaaa2215c5789a7
7
+ data.tar.gz: 029e14ebce1a380ece75084ea72473a5c0eff47ad50f677859dd4c6e4417ddb20946a989dd586a410a528689b0ca20fefa1050d6c2c8973978935d63b097f1ab
@@ -1,12 +1,31 @@
1
1
  sudo: false
2
2
  language: ruby
3
+ cache: bundler
3
4
  before_install: gem install bundler
4
5
  rvm:
5
- - 2.3
6
- - 2.4
7
- - 2.5
6
+ - 2.3
7
+ - 2.4
8
+ - 2.5
8
9
  notifications:
9
10
  email:
10
11
  on_success: never
11
12
  slack:
12
13
  secure: kcRMRU/epqsBn3n0McTz0RdGSR07xhyz5g6jOfufA1bRlmLsIQtIaeqeO0VLtcQFUd5JJ1Z2iVz9YdvbA0RLeXwI0ZS96g9NWZn1TFBk6zMM8/CN4kZcWcPKO9INbBMziRlF7lb039CRrusE0ei1YJLojPGWnsKITcS88rSX+Uq0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ef9lJKt7RjzwyW7844qjE1qYiZNIluXLbQNYjPmpet3NHrEqCCleY5ISqCURTUvcWM/JVIw+HIMVrui+KkRdqC3yqMCiBstdemj77ZKsumtJ3MW1FIkvVByxeDYTPhULYP075Pki5Y/XCDTL+WUBzL3x1cVnTBrIUz+qpKhLA="
19
+ gem: netbox-client-ruby
20
+ on:
21
+ tags: true
22
+ repo: ninech/netbox-client-ruby
23
+ skip_cleanup: true
24
+ - provider: releases
25
+ api_key:
26
+ # ninech-bot
27
+ secure: "VS1pYQFs9OwCMeRgtdaN1CdqYdsoZv+cDC/sb1jDC2U+Ltp/+8UHD/2OBFDIACKQo8+KDgejRvSD0T/qcRwDwmy+Mfpa0Y/b8VH2+iKj7cFPEauu7FkkPoBU+OcWdk2ve3FIgn+9xhNxj7mLJDDiXX9zDPk1E/ub9P67oq28072KIdTFS9GM6GcpgFHVxk3XnF+4nLqU/FaSn+fC8JdIycTuDico64MZexpb8zWvEe1cS4u++KH2JaR71qY5h8hrraT71MvXEJLfvbPEDEOHAJjOQ2UhDgFL/RmP4knoSJ69VTszT3kV844LnGBG7W26LlllsAhlMph89ClBrT0UQoYjMuK0WDeg0FDFFlBy9s1iWxHfmHwkOI6PYoaP+9TRBqoOQGU60eYs46+aBejpUt0eFeaN+gm9hklogYokG9FwzlhV9DT0PIISUS5iRqPprDhIzdurf5crt+Gg+ZYXnWe5xkrBTXReSyKhK1unPNwyj4Q8Bykbaj7t4UZo2Uk6ybP7phYSBHSnZlUBbS/4k/xVpnMeTV4BJp/oJ+ak5pzD/fmdD8OOCtN7lq590WUL8WrCV4fDKnTtdorfyHi/CYmkBuPg6qLKzi0uwhULG/SGlyRkXX7nLLSvp5Nw5IdSyCx1JCuPGEFoFtPE2dTEPOklMlmnjKqvMvKoNZOAr0U="
28
+ file: 'netbox-client-ruby-*.gem'
29
+ on:
30
+ tags: true
31
+ repo: ninech/netbox-client-ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.6
1
+ 0.4.7
@@ -24,7 +24,6 @@ module NetboxClientRuby
24
24
  vrf: proc { |raw_data| Vrf.new raw_data['id'] },
25
25
  tenant: proc { |raw_data| Tenancy::Tenant.new raw_data['id'] },
26
26
  status: proc { |raw_data| STATUS_VALUES.key(raw_data['value']) || raw_data['value'] },
27
- interface: proc { |raw_data| DCIM::Interface.new raw_data['id'] },
28
27
  address: proc { |raw_ip| IPAddress.parse(raw_ip) }
29
28
  )
30
29
  readonly_fields :display_name
@@ -33,6 +32,18 @@ module NetboxClientRuby
33
32
  status_code_lookup = STATUS_VALUES.fetch(value, value)
34
33
  method_missing(:status=, status_code_lookup)
35
34
  end
35
+
36
+ def interface
37
+ interface_data = data['interface']
38
+
39
+ return nil unless interface_data
40
+
41
+ if interface_data.key? ('virtual_machine')
42
+ Virtualization::Interface.new interface_data['id']
43
+ else
44
+ DCIM::Interface.new interface_data['id']
45
+ end
46
+ end
36
47
  end
37
48
  end
38
49
  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.4.6
4
+ version: 0.4.7
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: 2018-02-19 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -304,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
304
  version: '0'
305
305
  requirements: []
306
306
  rubyforge_project:
307
- rubygems_version: 2.5.2
307
+ rubygems_version: 2.7.6
308
308
  signing_key:
309
309
  specification_version: 4
310
310
  summary: A read/write client for Netbox v2.