enom-api 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/enom-api.gemspec +2 -2
- data/lib/enom-api/client.rb +10 -7
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/enom-api.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{enom-api}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Geoff Garside"]
|
12
|
-
s.date = %q{2011-03-
|
12
|
+
s.date = %q{2011-03-31}
|
13
13
|
s.description = %q{Client for communicating with the eNom API}
|
14
14
|
s.email = %q{geoff@geoffgarside.co.uk}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/enom-api/client.rb
CHANGED
@@ -535,11 +535,11 @@ module EnomAPI
|
|
535
535
|
xml = xml.GetContacts
|
536
536
|
|
537
537
|
out = {}
|
538
|
-
out[:registrant]
|
539
|
-
out[:aux_billing]
|
540
|
-
out[:administrative]
|
541
|
-
out[:technical]
|
542
|
-
out[:billing]
|
538
|
+
out[:registrant] = Registrant.from_xml(xml.Registrant)
|
539
|
+
out[:aux_billing] = Registrant.from_xml(xml.AuxBilling)
|
540
|
+
out[:administrative] = Registrant.from_xml(xml.Admin)
|
541
|
+
out[:technical] = Registrant.from_xml(xml.Tech)
|
542
|
+
out[:billing] = Registrant.from_xml(xml.Billing)
|
543
543
|
out
|
544
544
|
end
|
545
545
|
|
@@ -588,9 +588,12 @@ module EnomAPI
|
|
588
588
|
# @param [String] domain Expired Domain name to register
|
589
589
|
# @param [Number] years Number of years to register the domain for
|
590
590
|
# @return [String] response status
|
591
|
-
def update_expired_domains(domain, years) # Like :extend, but for expired domains
|
591
|
+
def update_expired_domains(domain, years = 1) # Like :extend, but for expired domains
|
592
592
|
xml = send_recv(:UpdateExpiredDomains, :DomainName => domain, :NumYears => years.to_i)
|
593
|
-
xml.
|
593
|
+
xml = xml.ReactivateDomainName
|
594
|
+
|
595
|
+
return false unless xml.Status?
|
596
|
+
xml.OrderID
|
594
597
|
end
|
595
598
|
|
596
599
|
# Change the IP address of a registered name server.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enom-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Geoff Garside
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-31 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|