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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cac25cefe85bddd0dfd116546d1e0d37d798927
4
- data.tar.gz: 45d5a9721911096f91dd355b52c753034c278bd4
3
+ metadata.gz: 25ea54e2ba82e66a6233c3dbd4c3e5d7292240be
4
+ data.tar.gz: 153b3f1a32c25deaee8d764ae62e40c74fb3ec43
5
5
  SHA512:
6
- metadata.gz: b79529209b2dd338fa3dd9e884fa09cd77372a63fe915129cf999efe613a423d3071581bb0f9956c762e7fc267ce272e6490db596526e35b81c0c90ec5deb246
7
- data.tar.gz: c53fbb76d7140679557d742108e8cbb24044d2e42f81bfcde49d57b671aa3f7ac00e13acf997d21246ecc9d799bee6ae033d565252f83237837d2ba64e6ce126
6
+ metadata.gz: 5c9eb233b1a5b77f31dc9f09f9cf275dc57616b865ec753ee80b8b43bdf9d7af0b2070c45942e01566997a901054411babfad93cead02b34a7caf3dc4e167811
7
+ data.tar.gz: b76057e0c51be98a9cb5522feefffbb94c89f97d69d62aa5ed5a59e3c9eeef6cc75bede4f342787450df5f30a0ed11374ad364ef9b0064c9c0e441ee3f7b9ff6
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3.1
data/.travis.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.3.1
3
4
  - 2.2.4
4
5
  - 2.1.6
5
6
  - 1.9.3
data/README.md CHANGED
@@ -20,10 +20,18 @@ Or install it yourself as:
20
20
  # Usage
21
21
 
22
22
  ## Connecting
23
- An instance of the `Infoblox::Connection` class is necessary:
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
@@ -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 => {:verify => false}) do |faraday|
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)
@@ -4,6 +4,7 @@ module Infoblox
4
4
  :extensible_attributes,
5
5
  :name,
6
6
  :text,
7
+ :ttl,
7
8
  :view
8
9
 
9
10
  wapi_object "record:txt"
@@ -1,3 +1,3 @@
1
1
  module Infoblox
2
- VERSION = "0.5.3"
2
+ VERSION = "1.0.0"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -24,7 +24,8 @@ module Helper
24
24
  Infoblox::Connection.new(
25
25
  :username => $username,
26
26
  :password => $password,
27
- :host => $host
27
+ :host => $host,
28
+ :ssl_opts => {:verify => false}
28
29
  # :logger => Logger.new(STDOUT)
29
30
  )
30
31
  end
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.5.3
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-05-04 00:00:00.000000000 Z
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.4.8
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: