enom 0.9.6 → 0.9.7

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.
Files changed (2) hide show
  1. data/lib/enom/domain.rb +1 -6
  2. metadata +2 -2
@@ -31,7 +31,6 @@ module Enom
31
31
  def self.find(name)
32
32
  sld, tld = name.split('.')
33
33
  response = Client.request('Command' => 'GetDomainInfo', 'SLD' => sld, 'TLD' => tld)["interface_response"]["GetDomainInfo"]
34
- p response if Client.test?
35
34
  Domain.new(response)
36
35
  end
37
36
 
@@ -40,8 +39,6 @@ module Enom
40
39
  sld, tld = name.split('.')
41
40
  response = Client.request("Command" => "Check", "SLD" => sld, "TLD" => tld)["interface_response"]["RRPCode"]
42
41
 
43
- p response if Client.test?
44
-
45
42
  if response == "210"
46
43
  "available"
47
44
  else
@@ -53,8 +50,6 @@ module Enom
53
50
  def self.all(options = {})
54
51
  response = Client.request("Command" => "GetAllDomains")["interface_response"]["GetAllDomains"]["DomainDetail"]
55
52
 
56
- p response if Client.test?
57
-
58
53
  domains = []
59
54
  response.each {|d| domains << Domain.new(d) }
60
55
  return domains
@@ -135,7 +130,7 @@ module Enom
135
130
 
136
131
  def expiration_date
137
132
  date_string = @domain_payload['interface_response']['GetDomainInfo']['status']['expiration']
138
- Date.parse(date_string.split(' ').first)
133
+ Date.strptime(date_string.split(' ').first, "%m/%d/%Y")
139
134
  end
140
135
 
141
136
  def registration_status
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 6
9
- version: 0.9.6
8
+ - 7
9
+ version: 0.9.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - James Miller