infoblox 0.5.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/.travis.yml +1 -0
- data/README.md +9 -1
- data/RELEASES.md +8 -0
- data/lib/infoblox/connection.rb +2 -2
- data/lib/infoblox/resource/txt.rb +1 -0
- data/lib/infoblox/version.rb +1 -1
- data/spec/spec_helper.rb +2 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25ea54e2ba82e66a6233c3dbd4c3e5d7292240be
|
4
|
+
data.tar.gz: 153b3f1a32c25deaee8d764ae62e40c74fb3ec43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c9eb233b1a5b77f31dc9f09f9cf275dc57616b865ec753ee80b8b43bdf9d7af0b2070c45942e01566997a901054411babfad93cead02b34a7caf3dc4e167811
|
7
|
+
data.tar.gz: b76057e0c51be98a9cb5522feefffbb94c89f97d69d62aa5ed5a59e3c9eeef6cc75bede4f342787450df5f30a0ed11374ad364ef9b0064c9c0e441ee3f7b9ff6
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.1
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -20,10 +20,18 @@ Or install it yourself as:
|
|
20
20
|
# Usage
|
21
21
|
|
22
22
|
## Connecting
|
23
|
-
|
23
|
+
Before operating against Infoblox, an instance of the `Infoblox::Connection` class is necessary:
|
24
24
|
|
25
25
|
connection = Infoblox::Connection.new(username: '', password: '', host: '')
|
26
26
|
|
27
|
+
You can specify SSL options by using the `ssl_opts` option. The options are passed to the HTTP adapter, which is `net/http` by default.
|
28
|
+
|
29
|
+
connection = Infoblox::Connection.new(username: '', password: '', host: '', ssl_opts: {verify: false})
|
30
|
+
|
31
|
+
You can supply a logger to get debugging information:
|
32
|
+
|
33
|
+
connection = Infoblox::Connection.new(username: '', password: '', host: '', logger: Logger.new(STDOUT))
|
34
|
+
|
27
35
|
## Reading
|
28
36
|
Each resource class implements `.all`, `.find`, and `#get`.
|
29
37
|
|
data/RELEASES.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
## 1.0.0 - 8/15/2016
|
2
|
+
As implied, this release is a breaking change that modifies the default
|
3
|
+
behavior for SSL options, specifically by removing the "verify: false" behavior
|
4
|
+
and requireing the user to supply the configuration when creating an
|
5
|
+
Infoblox::Connection.
|
6
|
+
|
7
|
+
* Add `ttl` support to the `Txt` record
|
8
|
+
* Remove `verify: false` from default SSL options
|
data/lib/infoblox/connection.rb
CHANGED
@@ -47,11 +47,11 @@ module Infoblox
|
|
47
47
|
self.password = opts[:password]
|
48
48
|
self.host = opts[:host]
|
49
49
|
self.logger = opts[:logger]
|
50
|
-
self.ssl_opts = opts[:ssl_opts]
|
50
|
+
self.ssl_opts = opts[:ssl_opts] || {}
|
51
51
|
end
|
52
52
|
|
53
53
|
def connection
|
54
|
-
@connection ||= Faraday.new(:url => self.host, :ssl =>
|
54
|
+
@connection ||= Faraday.new(:url => self.host, :ssl => self.ssl_opts) do |faraday|
|
55
55
|
faraday.use Faraday::Response::Logger, logger if logger
|
56
56
|
faraday.request :json
|
57
57
|
faraday.basic_auth(self.username, self.password)
|
data/lib/infoblox/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infoblox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Billy Reisinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -103,10 +103,12 @@ extra_rdoc_files: []
|
|
103
103
|
files:
|
104
104
|
- ".gitignore"
|
105
105
|
- ".rspec"
|
106
|
+
- ".ruby-version"
|
106
107
|
- ".travis.yml"
|
107
108
|
- Gemfile
|
108
109
|
- LICENSE.txt
|
109
110
|
- README.md
|
111
|
+
- RELEASES.md
|
110
112
|
- Rakefile
|
111
113
|
- infoblox.gemspec
|
112
114
|
- lib/infoblox.rb
|
@@ -162,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
164
|
version: '0'
|
163
165
|
requirements: []
|
164
166
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.5.1
|
166
168
|
signing_key:
|
167
169
|
specification_version: 4
|
168
170
|
summary: This gem is a Ruby interface to the Infoblox WAPI. Using the gem, you can
|
@@ -180,3 +182,4 @@ test_files:
|
|
180
182
|
- spec/resource_spec.rb
|
181
183
|
- spec/search_spec.rb
|
182
184
|
- spec/spec_helper.rb
|
185
|
+
has_rdoc:
|