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 CHANGED
@@ -1 +1 @@
1
- 1.2.5
1
+ 1.2.6
@@ -11,7 +11,7 @@ module DNSimple
11
11
  end
12
12
 
13
13
  domain = Domain.find(domain_name)
14
- record = Record.find(domain.name, id)
14
+ record = Record.find(domain, id)
15
15
  attributes.each do |name, value|
16
16
  record.send("#{name}=", value)
17
17
  end
@@ -146,7 +146,7 @@ module DNSimple #:nodoc:
146
146
  when 401
147
147
  raise RuntimeError, "Authentication failed"
148
148
  else
149
- raise DNSimple::Error.new(name, response["errors"])
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::Error.new(name, response["errors"])
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::Error.new(id_or_name, response["errors"])
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}.json", options)
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 5
10
- version: 1.2.5
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-12 00:00:00 Z
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