netbox-client-ruby 0.3.0 → 0.3.1

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: 168709e9be66cbac5368b2bf2c9d88998e5d1287
4
- data.tar.gz: ab817551670cc44a4e7e9aeb6e08f1fa72ff5a56
3
+ metadata.gz: 980c41479f9ebc620b9d44319b03a301bb88558b
4
+ data.tar.gz: 5bd503c8ca0adb4c868b779f92d42f62301858f6
5
5
  SHA512:
6
- metadata.gz: 7d4332e0689c12f7f86903ef0afd7a6ac91f0c205cb34579c4d76b6ef2d57cb7bb6a1537c2997111a3698ca5a6df561359a4cae7748ba57f85b3c85a9c741bc8
7
- data.tar.gz: ad322b6a0b4cb1e6e54156f386b6cfd4e0634231ebef45adcb96300c72d16701e855b68a6856954d187fa1a362e3be02eca6a4a715faa177e98c1febe2ee9944
6
+ metadata.gz: 4c17ce3c8d947d50c35e6d408dd74aaabce5d915d16de620ad834232337303241a2fe79da356f7ffec71180b4fa2b9d4773b08d1ddde38e3f07e2768e3d918fd
7
+ data.tar.gz: 650212f2c20e238ff5ffcdfa827f3062fc64d3af52a048e0e26a172ea49d584f03a6496c9187b710c012cbf9c84922beae25d38ecd417740f618f30cac8d239e
@@ -4,6 +4,7 @@ before_install: gem install bundler
4
4
  rvm:
5
5
  - 2.3
6
6
  - 2.4
7
+ - 2.5
7
8
  notifications:
8
9
  email:
9
10
  on_success: never
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- netbox-client-ruby (0.3.0)
4
+ netbox-client-ruby (0.3.1)
5
5
  dry-configurable (~> 0.1)
6
6
  faraday (>= 0.11.0)
7
7
  faraday-detailed_logger (~> 2.1)
@@ -13,7 +13,7 @@ GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
15
  ast (2.3.0)
16
- coderay (1.1.1)
16
+ coderay (1.1.2)
17
17
  concurrent-ruby (1.0.5)
18
18
  diff-lcs (1.3)
19
19
  dry-configurable (0.7.0)
@@ -25,43 +25,42 @@ GEM
25
25
  faraday_middleware (0.11.0.1)
26
26
  faraday (>= 0.7.4, < 1.0)
27
27
  ipaddress (0.8.3)
28
- method_source (0.8.2)
28
+ method_source (0.9.0)
29
29
  multipart-post (2.0.0)
30
- openssl (2.0.6)
31
- parser (2.4.0.0)
32
- ast (~> 2.2)
30
+ openssl (2.1.0)
31
+ parallel (1.12.1)
32
+ parser (2.4.0.2)
33
+ ast (~> 2.3)
33
34
  powerpack (0.1.1)
34
- pry (0.10.4)
35
+ pry (0.11.3)
35
36
  coderay (~> 1.1.0)
36
- method_source (~> 0.8.1)
37
- slop (~> 3.4)
38
- rainbow (2.2.2)
39
- rake
37
+ method_source (~> 0.9.0)
38
+ rainbow (3.0.0)
40
39
  rake (10.5.0)
41
- rspec (3.6.0)
42
- rspec-core (~> 3.6.0)
43
- rspec-expectations (~> 3.6.0)
44
- rspec-mocks (~> 3.6.0)
45
- rspec-core (3.6.0)
46
- rspec-support (~> 3.6.0)
47
- rspec-expectations (3.6.0)
40
+ rspec (3.7.0)
41
+ rspec-core (~> 3.7.0)
42
+ rspec-expectations (~> 3.7.0)
43
+ rspec-mocks (~> 3.7.0)
44
+ rspec-core (3.7.0)
45
+ rspec-support (~> 3.7.0)
46
+ rspec-expectations (3.7.0)
48
47
  diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.6.0)
50
- rspec-mocks (3.6.0)
48
+ rspec-support (~> 3.7.0)
49
+ rspec-mocks (3.7.0)
51
50
  diff-lcs (>= 1.2.0, < 2.0)
52
- rspec-support (~> 3.6.0)
53
- rspec-support (3.6.0)
54
- rubocop (0.48.1)
55
- parser (>= 2.3.3.1, < 3.0)
51
+ rspec-support (~> 3.7.0)
52
+ rspec-support (3.7.0)
53
+ rubocop (0.52.0)
54
+ parallel (~> 1.10)
55
+ parser (>= 2.4.0.2, < 3.0)
56
56
  powerpack (~> 0.1)
57
- rainbow (>= 1.99.1, < 3.0)
57
+ rainbow (>= 2.2.2, < 4.0)
58
58
  ruby-progressbar (~> 1.7)
59
59
  unicode-display_width (~> 1.0, >= 1.0.1)
60
- rubocop-rspec (1.15.1)
61
- rubocop (>= 0.42.0)
62
- ruby-progressbar (1.8.1)
63
- slop (3.6.0)
64
- unicode-display_width (1.2.1)
60
+ rubocop-rspec (1.21.0)
61
+ rubocop (>= 0.52.0)
62
+ ruby-progressbar (1.9.0)
63
+ unicode-display_width (1.3.0)
65
64
 
66
65
  PLATFORMS
67
66
  ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -9,7 +9,7 @@ services:
9
9
  - netbox-nginx-config:/etc/netbox-nginx/
10
10
  - netbox-static-files:/opt/netbox/netbox/static
11
11
  ports:
12
- - 80
12
+ - 8080
13
13
  netbox:
14
14
  image: ninech/netbox:latest
15
15
  depends_on:
@@ -1,4 +1,4 @@
1
- require 'openssl/pkey'
1
+ require 'openssl'
2
2
  require 'netbox_client_ruby/entity'
3
3
  require 'netbox_client_ruby/api/dcim/device'
4
4
  require 'netbox_client_ruby/api/secrets/secret_role'
@@ -10,7 +10,10 @@ module NetboxClientRuby
10
10
  deletable true
11
11
  path 'virtualization/interfaces/:id.json'
12
12
  creation_path 'virtualization/interfaces/'
13
- object_fields virtual_machine: proc { |raw_data| VirtualMachine.new raw_data['id'] }
13
+ object_fields virtual_machine: proc { |raw_data|
14
+ # https://github.com/digitalocean/netbox/issues/1794
15
+ VirtualMachine.new(raw_data.is_a?(Hash) ? raw_data['id'] : raw_data)
16
+ }
14
17
  end
15
18
  end
16
19
  end
data/netbox.env CHANGED
@@ -2,7 +2,7 @@ SUPERUSER_NAME=admin
2
2
  SUPERUSER_EMAIL=admin@example.com
3
3
  SUPERUSER_PASSWORD=admin
4
4
  SUPERUSER_API_TOKEN=0123456789abcdef0123456789abcdef01234567
5
- ALLOWED_HOSTS=localhost netboxclientruby.docker nginx.netboxclientruby.docker nginx
5
+ ALLOWED_HOSTS=localhost netboxclientruby.docker nginx.netboxclientruby.docker nginx 127.0.0.1 [::1]
6
6
  DB_NAME=netbox
7
7
  DB_USER=netbox
8
8
  DB_PASSWORD=netbox
@@ -14,5 +14,3 @@ EMAIL_USERNAME=foo
14
14
  EMAIL_PASSWORD=bar
15
15
  EMAIL_TIMEOUT=10
16
16
  EMAIL_FROM=netbox@bar.com
17
- NETBOX_USERNAME=guest
18
- NETBOX_PASSWORD=guest
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.3.0
4
+ version: 0.3.1
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-12-01 00:00:00.000000000 Z
11
+ date: 2017-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable