route53 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -2
- data/Gemfile +8 -0
- data/README.markdown +1 -1
- data/lib/route53/connection.rb +1 -1
- data/lib/route53/version.rb +1 -1
- data/route53.gemspec +2 -0
- data/spec/lib/route53/connection_spec.rb +14 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be2584070ddb8e7747f77e4b820fa871ac133d6b
|
4
|
+
data.tar.gz: 9a4d4a2f469f7aeb7bf30d5b8e9f7fbd7e85152f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edf2e57956271c17fc2a0c2529c07a64932b3a0f7ceba70f3f01e3da688502f65b9cac4c29cbd79536308a91a2d6b8af801766847f892ab34b9de6fa42629f7a
|
7
|
+
data.tar.gz: e91b7cf4844fae7cd6e3db7a9b0a7ac8a354f6ddaa776b80de38a5b7f89fee68a608cc34f929ce0f534637fb10e651b737028fe6da113549fefd9d659645e1e4
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -3,3 +3,11 @@ source 'https://rubygems.org'
|
|
3
3
|
gemspec
|
4
4
|
|
5
5
|
gem 'nokogiri', '~> 1.5.10' if RUBY_VERSION.start_with? '1.8'
|
6
|
+
gem 'nokogiri', '~> 1.6.0' if RUBY_VERSION.start_with? '2.0'
|
7
|
+
gem 'nokogiri', '~> 1.6.0' if RUBY_VERSION.start_with? '1.9'
|
8
|
+
|
9
|
+
group :development do
|
10
|
+
gem 'rake', '< 12.0' if RUBY_VERSION.start_with? '1.9'
|
11
|
+
gem 'rake', '< 11.0' if RUBY_VERSION.start_with? '1.8'
|
12
|
+
gem 'vcr', '< 3' if RUBY_VERSION.start_with? '1.8'
|
13
|
+
end
|
data/README.markdown
CHANGED
@@ -185,7 +185,7 @@ Written with Ruby 1.9.2 on an Ubuntu Linux machine. Smoke tested on an Ubuntu Li
|
|
185
185
|
Amazon AWS account with Route 53 opted into - See the signup link at [http://aws.amazon.com/route53/](http://aws.amazon.com/route53/)
|
186
186
|
ruby openssl support
|
187
187
|
ruby-hmac
|
188
|
-
|
188
|
+
nokogiri
|
189
189
|
builder
|
190
190
|
|
191
191
|
Support and Bugs
|
data/lib/route53/connection.rb
CHANGED
@@ -65,7 +65,7 @@ module Route53
|
|
65
65
|
(0 ... name_arr.size).each do |i|
|
66
66
|
search_domain = name_arr.last(name_arr.size-i).join('.')+"."
|
67
67
|
zone_select = zones.select { |z| z.name == search_domain }
|
68
|
-
return zone_select
|
68
|
+
return zone_select if zone_select.any?
|
69
69
|
end
|
70
70
|
return nil
|
71
71
|
end
|
data/lib/route53/version.rb
CHANGED
data/route53.gemspec
CHANGED
@@ -20,6 +20,8 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.add_development_dependency "rspec", "~> 3.0"
|
21
21
|
s.add_development_dependency "vcr"
|
22
22
|
s.add_development_dependency "webmock", '~> 1.15.0'
|
23
|
+
# addressable 2.5 requires public_suffix 2.0.4 which doesn't support older versions of ruby
|
24
|
+
s.add_development_dependency "addressable", '~> 2.3.0'
|
23
25
|
s.add_development_dependency "pry"
|
24
26
|
s.add_development_dependency "wirble"
|
25
27
|
s.add_development_dependency "rake"
|
@@ -18,6 +18,20 @@ describe Route53::Connection do
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
+
it "handles a single domain name" do
|
22
|
+
VCR.use_cassette("aws_zones", :record => :none) do
|
23
|
+
conn = Route53::Connection.new(credentials('access_key'), credentials('secret_key'))
|
24
|
+
expect(conn.get_zones('50projects.com.').map(&:name)).to eq(['50projects.com.'])
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
it "handles subdomains" do
|
29
|
+
VCR.use_cassette("aws_zones", :record => :none) do
|
30
|
+
conn = Route53::Connection.new(credentials('access_key'), credentials('secret_key'))
|
31
|
+
expect(conn.get_zones('sub.50projects.com.').map(&:name)).to eq(['50projects.com.'])
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
21
35
|
it "handles truncated responses"
|
22
36
|
it "handles subqueries based on the hostedzone"
|
23
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: route53
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Corliss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-hmac
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 1.15.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: addressable
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.3.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.3.0
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: pry
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -190,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
204
|
version: 1.3.5
|
191
205
|
requirements: []
|
192
206
|
rubyforge_project:
|
193
|
-
rubygems_version: 2.
|
207
|
+
rubygems_version: 2.4.8
|
194
208
|
signing_key:
|
195
209
|
specification_version: 4
|
196
210
|
summary: Library for Amazon's Route 53 service
|