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 +4 -4
- data/.travis.yml +1 -0
- data/Gemfile.lock +29 -30
- data/VERSION +1 -1
- data/docker-compose.yml +1 -1
- data/lib/netbox_client_ruby/api/secrets/session_key.rb +1 -1
- data/lib/netbox_client_ruby/api/virtualization/interface.rb +4 -1
- data/netbox.env +1 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 980c41479f9ebc620b9d44319b03a301bb88558b
|
4
|
+
data.tar.gz: 5bd503c8ca0adb4c868b779f92d42f62301858f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c17ce3c8d947d50c35e6d408dd74aaabce5d915d16de620ad834232337303241a2fe79da356f7ffec71180b4fa2b9d4773b08d1ddde38e3f07e2768e3d918fd
|
7
|
+
data.tar.gz: 650212f2c20e238ff5ffcdfa827f3062fc64d3af52a048e0e26a172ea49d584f03a6496c9187b710c012cbf9c84922beae25d38ecd417740f618f30cac8d239e
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
netbox-client-ruby (0.3.
|
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.
|
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.
|
28
|
+
method_source (0.9.0)
|
29
29
|
multipart-post (2.0.0)
|
30
|
-
openssl (2.0
|
31
|
-
|
32
|
-
|
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.
|
35
|
+
pry (0.11.3)
|
35
36
|
coderay (~> 1.1.0)
|
36
|
-
method_source (~> 0.
|
37
|
-
|
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.
|
42
|
-
rspec-core (~> 3.
|
43
|
-
rspec-expectations (~> 3.
|
44
|
-
rspec-mocks (~> 3.
|
45
|
-
rspec-core (3.
|
46
|
-
rspec-support (~> 3.
|
47
|
-
rspec-expectations (3.
|
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.
|
50
|
-
rspec-mocks (3.
|
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.
|
53
|
-
rspec-support (3.
|
54
|
-
rubocop (0.
|
55
|
-
|
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 (>=
|
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.
|
61
|
-
rubocop (>= 0.
|
62
|
-
ruby-progressbar (1.
|
63
|
-
|
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.
|
1
|
+
0.3.1
|
data/docker-compose.yml
CHANGED
@@ -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|
|
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.
|
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-
|
11
|
+
date: 2017-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|