name_dot_com_api 0.0.1 → 0.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.
@@ -133,7 +133,7 @@ module NameDotComApi
133
133
  # ])
134
134
  def create_domain(domain, period, nameservers, contacts)
135
135
  connection.post '/domain/create', {
136
- 'domain' => domain,
136
+ 'domain_name' => domain,
137
137
  'period' => period,
138
138
  'nameservers' => nameservers,
139
139
  'contacts' => contacts,
@@ -46,7 +46,7 @@ module NameDotComApi
46
46
  def http
47
47
  http = Net::HTTP.new(url.host, url.port)
48
48
  http.use_ssl = url.is_a?(URI::HTTPS)
49
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl
49
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl?
50
50
  http.read_timeout = timeout || 60 # Net::HTTP default 60 seconds
51
51
  http.set_debug_output $stderr if test_mode
52
52
  http
@@ -1,3 +1,3 @@
1
1
  module NameDotComApi
2
- VERSION = "0.0.1"
2
+ VERSION = "0.2"
3
3
  end
metadata CHANGED
@@ -4,9 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 0
8
- - 1
9
- version: 0.0.1
7
+ - 2
8
+ version: "0.2"
10
9
  platform: ruby
11
10
  authors:
12
11
  - Nicholas Barthelemy
@@ -14,7 +13,7 @@ autorequire:
14
13
  bindir: bin
15
14
  cert_chain: []
16
15
 
17
- date: 2011-01-06 00:00:00 -06:00
16
+ date: 2011-08-25 00:00:00 -05:00
18
17
  default_executable:
19
18
  dependencies:
20
19
  - !ruby/object:Gem::Dependency