dnsimple-ruby 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/dnsimple/commands/update_record.rb +1 -1
- data/lib/dnsimple/domain.rb +3 -3
- data/lib/dnsimple/extended_attribute.rb +1 -1
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.6
|
data/lib/dnsimple/domain.rb
CHANGED
@@ -146,7 +146,7 @@ module DNSimple #:nodoc:
|
|
146
146
|
when 401
|
147
147
|
raise RuntimeError, "Authentication failed"
|
148
148
|
else
|
149
|
-
raise DNSimple::
|
149
|
+
raise DNSimple::DomainError.new(name, response["errors"])
|
150
150
|
end
|
151
151
|
end
|
152
152
|
|
@@ -175,7 +175,7 @@ module DNSimple #:nodoc:
|
|
175
175
|
when 401
|
176
176
|
raise RuntimeError, "Authentication failed"
|
177
177
|
else
|
178
|
-
raise DNSimple::
|
178
|
+
raise DNSimple::DomainError.new(name, response["errors"])
|
179
179
|
end
|
180
180
|
end
|
181
181
|
|
@@ -195,7 +195,7 @@ module DNSimple #:nodoc:
|
|
195
195
|
when 404
|
196
196
|
raise RuntimeError, "Could not find domain #{id_or_name}"
|
197
197
|
else
|
198
|
-
raise DNSimple::
|
198
|
+
raise DNSimple::DomainError.new(id_or_name, response["errors"])
|
199
199
|
end
|
200
200
|
end
|
201
201
|
|
@@ -56,7 +56,7 @@ module DNSimple #:nodoc:
|
|
56
56
|
def self.find(tld, options={})
|
57
57
|
options.merge!({:basic_auth => Client.credentials})
|
58
58
|
|
59
|
-
response = self.get("#{Client.base_uri}/extended_attributes/#{tld}
|
59
|
+
response = self.get("#{Client.base_uri}/extended_attributes/#{tld}", options)
|
60
60
|
|
61
61
|
pp response if Client.debug?
|
62
62
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnsimple-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 6
|
10
|
+
version: 1.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Anthony Eden
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-02-
|
18
|
+
date: 2012-02-29 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|