robowhois 0.2.2 → 0.3.0

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/.gitignore CHANGED
@@ -1,7 +1,11 @@
1
1
  # Bundler
2
2
  .bundle
3
+ Gemfile.lock
3
4
  pkg/*
4
5
 
6
+ # Rubinius
7
+ *.rbc
8
+
5
9
  # YARD
6
10
  .yardoc
7
11
  yardoc/
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.2
4
+ - 1.9.3
5
+ - jruby-19mode
6
+ - rbx-19mode
7
+ notifications:
8
+ recipients:
9
+ - weppos@weppos.net
data/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## Release 0.3.0
5
+
6
+ * ADDED: Support for the new /availability endpoint.
7
+
8
+ * CHANGED: Switch to versioned endpoint (v1).
9
+
10
+ * CHANGED: /whois/availability is deprecated.
11
+
12
+
4
13
  ## Release 0.2.2
5
14
 
6
15
  * CHANGED: Update clients to the new API Errors.
data/Gemfile CHANGED
@@ -3,6 +3,6 @@ source "http://rubygems.org"
3
3
  gemspec
4
4
 
5
5
  group :test do
6
- gem 'rspec', '~> 2.8.0'
6
+ gem 'rspec', '~> 2.12.0'
7
7
  gem 'fakeweb', '~> 1.3.0'
8
8
  end
@@ -1,6 +1,7 @@
1
- The MIT License
2
-
3
1
  Copyright (c) 2012 RoboDomain Inc.
2
+ Copyright (c) 2012 Aetrion LLC.
3
+
4
+ MIT License
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining
6
7
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # RoboWhois - Ruby Client
2
2
 
3
- This is the official Ruby client for [RoboWhois](http://www.robowhois.com/) [API](http://docs.robowhois.com/api/).
3
+ This is the official Ruby client for [RoboWhois](https://www.robowhois.com/) [API](https://www.robowhois.com/docs/api/).
4
4
 
5
5
  [RoboWhois](http://www.robowhois.com/) is a web service that provides an API suite to **access WHOIS records and domain related information with a unified, consistent interface**.
6
6
 
@@ -11,7 +11,7 @@ Using RoboWhois API you can:
11
11
  - access WHOIS data using a consistent, well-structured, HTTP-based interface
12
12
  - retrieve WHOIS details parsed as convenient JSON structure
13
13
 
14
- Visit RoboWhois [site](http://www.robowhois.com/) and [documentation](http://docs.robowhois.com/) to learn more about the service.
14
+ Visit RoboWhois [site](https://www.robowhois.com/) and [documentation](https://www.robowhois.com/docs/) to learn more about the service.
15
15
 
16
16
 
17
17
  ## Installation
@@ -30,7 +30,7 @@ You also need a [RoboWhois](http://www.robowhois.com/) account and a valid API k
30
30
 
31
31
  require 'robowhois'
32
32
 
33
- Please refer to the RoboWhois [API Documentation](http://docs.robowhois.com/api/) for the list of all available API methods and response attributes.
33
+ Please refer to the RoboWhois [API Documentation](https://www.robowhois.com/docs/api/) for the list of all available API methods and response attributes.
34
34
 
35
35
  ### Account information
36
36
 
@@ -104,7 +104,7 @@ In case of failure, the API call raises a `RoboWhois::APIError` exception.
104
104
  # => 400
105
105
  end
106
106
 
107
- Error codes are explained in the [API Errors](http://docs.robowhois.com/api/errors/) documentation page.
107
+ Error codes are explained in the [API Errors](https://www.robowhois.com/docs/api/errors/) documentation page.
108
108
 
109
109
 
110
110
  ## Changelog
@@ -115,5 +115,6 @@ See the CHANGELOG.md file for details.
115
115
  ## License
116
116
 
117
117
  Copyright (c) 2012 RoboDomain Inc.
118
+ Copyright (c) 2012 Aetrion LLC.
118
119
 
119
120
  This is Free Software distributed under the MIT license.
data/Rakefile CHANGED
@@ -25,16 +25,16 @@ spec = Gem::Specification.new do |s|
25
25
 
26
26
  s.authors = ["Simone Carletti"]
27
27
  s.email = ["weppos@weppos.net"]
28
- s.homepage = "https://github.com/robowhois/robowhois-ruby-client"
28
+ s.homepage = "https://github.com/robowhois/robowhois-ruby"
29
29
 
30
30
  s.files = `git ls-files`.split("\n")
31
31
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
32
32
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
33
33
  s.require_paths = %w( lib )
34
34
 
35
- s.add_dependency "httparty", "~> 0.8.0"
35
+ s.add_dependency "httparty", "~> 0.9.0"
36
36
 
37
- s.add_development_dependency "rake", "~> 0.9"
37
+ s.add_development_dependency "rake", "~> 10.0.0"
38
38
  s.add_development_dependency "yard"
39
39
  end
40
40
 
data/lib/robo_whois.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # Ruby client for the RoboWhois API.
5
5
  #
6
- # Copyright (c) 2012 RoboDomain Inc.
6
+ # Copyright (c) 2012 Aetrion LLC.
7
7
  #++
8
8
 
9
9
 
@@ -28,7 +28,18 @@ class RoboWhois
28
28
  end
29
29
 
30
30
 
31
- base_uri "http://api.robowhois.com"
31
+ # Echoes a deprecation warning message.
32
+ #
33
+ # @param [String] message The message to display.
34
+ # @return [void]
35
+ #
36
+ def self.deprecate(message = nil)
37
+ message ||= "You are using deprecated behavior which will be removed from the next major or minor release."
38
+ warn("DEPRECATION WARNING: #{message}")
39
+ end
40
+
41
+
42
+ base_uri "http://api.robowhois.com/v1"
32
43
 
33
44
  # @return [HTTParty::Response] The response object returned by the last API call.
34
45
  attr_reader :last_response
@@ -54,14 +65,11 @@ class RoboWhois
54
65
  get("/account")["account"]
55
66
  end
56
67
 
68
+
57
69
  def whois(query)
58
70
  get("/whois/#{query}")
59
71
  end
60
72
 
61
- def whois_availability(query)
62
- get("/whois/#{query}/availability")["response"]
63
- end
64
-
65
73
  def whois_parts(query)
66
74
  get("/whois/#{query}/parts")["response"]
67
75
  end
@@ -74,6 +82,15 @@ class RoboWhois
74
82
  get("/whois/#{query}/record")["response"]
75
83
  end
76
84
 
85
+ def whois_availability(query)
86
+ RoboWhois.deprecate("#whois_availability is deprecated, please use #availability")
87
+ availability(query)
88
+ end
89
+
90
+ def availability(query)
91
+ get("/availability/#{query}")["response"]
92
+ end
93
+
77
94
 
78
95
  private
79
96
 
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # Ruby client for the RoboWhois API.
5
5
  #
6
- # Copyright (c) 2012 RoboDomain Inc.
6
+ # Copyright (c) 2012 Aetrion LLC.
7
7
  #++
8
8
 
9
9
 
@@ -12,8 +12,8 @@ class RoboWhois
12
12
  # Holds information about library version.
13
13
  module Version
14
14
  MAJOR = 0
15
- MINOR = 2
16
- PATCH = 2
15
+ MINOR = 3
16
+ PATCH = 0
17
17
  BUILD = nil
18
18
 
19
19
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
data/lib/robowhois.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # Ruby client for the RoboWhois API.
5
5
  #
6
- # Copyright (c) 2012 RoboDomain Inc.
6
+ # Copyright (c) 2012 Aetrion LLC.
7
7
  #++
8
8
 
9
9
 
data/robowhois.gemspec CHANGED
@@ -6,32 +6,32 @@ Gem::Specification.new do |s|
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Simone Carletti"]
9
- s.date = "2012-03-19"
9
+ s.date = "2012-12-10"
10
10
  s.description = "Ruby client for the RoboWhois API."
11
11
  s.email = ["weppos@weppos.net"]
12
- s.files = [".gitignore", ".rspec", "CHANGELOG.md", "Gemfile", "Gemfile.lock", "LICENSE", "README.md", "Rakefile", "lib/robo_whois.rb", "lib/robo_whois/version.rb", "lib/robowhois.rb", "robowhois.gemspec", "spec/fixtures/account.dump", "spec/fixtures/commands.sh", "spec/fixtures/error_bad_credentials.dump", "spec/fixtures/error_unauthorized.dump", "spec/fixtures/error_whois_server_only_web.dump", "spec/fixtures/whois.dump", "spec/fixtures/whois_availability.dump", "spec/fixtures/whois_availability_available.dump", "spec/fixtures/whois_availability_registered.dump", "spec/fixtures/whois_parts.dump", "spec/fixtures/whois_properties.dump", "spec/fixtures/whois_properties_available.dump", "spec/fixtures/whois_properties_registered.dump", "spec/fixtures/whois_record.dump", "spec/spec_helper.rb", "spec/support/fake_request_helpers.rb", "spec/support/helpers.rb", "spec/unit/robo_whois_spec.rb"]
13
- s.homepage = "https://github.com/robowhois/robowhois-ruby-client"
12
+ s.files = [".gitignore", ".rspec", ".travis.yml", "CHANGELOG.md", "Gemfile", "Gemfile.lock", "LICENSE.txt", "README.md", "Rakefile", "lib/robo_whois.rb", "lib/robo_whois/version.rb", "lib/robowhois.rb", "robowhois.gemspec", "spec/fixtures/account.dump", "spec/fixtures/availability.dump", "spec/fixtures/commands.sh", "spec/fixtures/error_bad_credentials.dump", "spec/fixtures/error_unauthorized.dump", "spec/fixtures/error_whois_server_only_web.dump", "spec/fixtures/whois.dump", "spec/fixtures/whois_parts.dump", "spec/fixtures/whois_properties.dump", "spec/fixtures/whois_properties_available.dump", "spec/fixtures/whois_properties_registered.dump", "spec/fixtures/whois_record.dump", "spec/spec_helper.rb", "spec/support/fake_request_helpers.rb", "spec/support/helpers.rb", "spec/unit/robo_whois_spec.rb"]
13
+ s.homepage = "https://github.com/robowhois/robowhois-ruby"
14
14
  s.require_paths = ["lib"]
15
15
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
16
- s.rubygems_version = "1.8.15"
16
+ s.rubygems_version = "1.8.24"
17
17
  s.summary = "Ruby client for the RoboWhois API."
18
- s.test_files = ["spec/fixtures/account.dump", "spec/fixtures/commands.sh", "spec/fixtures/error_bad_credentials.dump", "spec/fixtures/error_unauthorized.dump", "spec/fixtures/error_whois_server_only_web.dump", "spec/fixtures/whois.dump", "spec/fixtures/whois_availability.dump", "spec/fixtures/whois_availability_available.dump", "spec/fixtures/whois_availability_registered.dump", "spec/fixtures/whois_parts.dump", "spec/fixtures/whois_properties.dump", "spec/fixtures/whois_properties_available.dump", "spec/fixtures/whois_properties_registered.dump", "spec/fixtures/whois_record.dump", "spec/spec_helper.rb", "spec/support/fake_request_helpers.rb", "spec/support/helpers.rb", "spec/unit/robo_whois_spec.rb"]
18
+ s.test_files = ["spec/fixtures/account.dump", "spec/fixtures/availability.dump", "spec/fixtures/commands.sh", "spec/fixtures/error_bad_credentials.dump", "spec/fixtures/error_unauthorized.dump", "spec/fixtures/error_whois_server_only_web.dump", "spec/fixtures/whois.dump", "spec/fixtures/whois_parts.dump", "spec/fixtures/whois_properties.dump", "spec/fixtures/whois_properties_available.dump", "spec/fixtures/whois_properties_registered.dump", "spec/fixtures/whois_record.dump", "spec/spec_helper.rb", "spec/support/fake_request_helpers.rb", "spec/support/helpers.rb", "spec/unit/robo_whois_spec.rb"]
19
19
 
20
20
  if s.respond_to? :specification_version then
21
21
  s.specification_version = 3
22
22
 
23
23
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
24
- s.add_runtime_dependency(%q<httparty>, ["~> 0.8.0"])
25
- s.add_development_dependency(%q<rake>, ["~> 0.9"])
24
+ s.add_runtime_dependency(%q<httparty>, ["~> 0.9.0"])
25
+ s.add_development_dependency(%q<rake>, ["~> 10.0.0"])
26
26
  s.add_development_dependency(%q<yard>, [">= 0"])
27
27
  else
28
- s.add_dependency(%q<httparty>, ["~> 0.8.0"])
29
- s.add_dependency(%q<rake>, ["~> 0.9"])
28
+ s.add_dependency(%q<httparty>, ["~> 0.9.0"])
29
+ s.add_dependency(%q<rake>, ["~> 10.0.0"])
30
30
  s.add_dependency(%q<yard>, [">= 0"])
31
31
  end
32
32
  else
33
- s.add_dependency(%q<httparty>, ["~> 0.8.0"])
34
- s.add_dependency(%q<rake>, ["~> 0.9"])
33
+ s.add_dependency(%q<httparty>, ["~> 0.9.0"])
34
+ s.add_dependency(%q<rake>, ["~> 10.0.0"])
35
35
  s.add_dependency(%q<yard>, [">= 0"])
36
36
  end
37
37
  end
@@ -0,0 +1,16 @@
1
+ HTTP/1.1 200 OK
2
+ Content-Type: application/json; charset=utf-8
3
+ Transfer-Encoding: chunked
4
+ Connection: keep-alive
5
+ Status: 200
6
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.11
7
+ X-UA-Compatible: IE=Edge,chrome=1
8
+ ETag: "d3c2e3d6c06f9cf647c640b2f81f5c9f"
9
+ Cache-Control: must-revalidate, private, max-age=0
10
+ X-Request-Id: 077ae0297ef7b5d6eef8ff951d18257f
11
+ X-Runtime: 0.546973
12
+ Date: Mon, 10 Dec 2012 21:56:05 GMT
13
+ X-Rack-Cache: miss
14
+ Server: nginx/1.1.14 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
15
+
16
+ {"response":{"available":false}}
@@ -1 +1 @@
1
- curl -u "$ROBOWHOIS_API_KEY:X" -i api.robowhois.com/account > spec/fixtures/account.dump
1
+ curl -u "$ROBOWHOIS_API_KEY:X" -i http://api.robowhois.com/v1/account > spec/fixtures/account.dump
data/spec/spec_helper.rb CHANGED
@@ -20,6 +20,9 @@ else
20
20
  Encoding.default_internal = Encoding::UTF_8
21
21
  end
22
22
 
23
+ FakeWeb.allow_net_connect = false
24
+
25
+
23
26
  # Requires supporting ruby files with custom matchers and macros, etc,
24
27
  # in spec/support/ and its subdirectories.
25
28
  Dir[File.join(SPEC_ROOT, "support/**/*.rb")].each { |f| require f }
@@ -31,5 +34,3 @@ RSpec.configure do |config|
31
34
  FakeWeb.clean_registry
32
35
  end
33
36
  end
34
-
35
- FakeWeb.allow_net_connect = false
@@ -36,7 +36,7 @@ describe RoboWhois do
36
36
  }
37
37
 
38
38
  before do
39
- stub_get('http://API_KEY:X@api.robowhois.com/account', 'account')
39
+ stub_get('http://API_KEY:X@api.robowhois.com/v1/account', 'account')
40
40
  end
41
41
 
42
42
  it "sets authentication credentials" do
@@ -57,7 +57,7 @@ describe RoboWhois do
57
57
 
58
58
  describe "#account" do
59
59
  before do
60
- stub_get('http://API_KEY:X@api.robowhois.com/account', 'account')
60
+ stub_get('http://API_KEY:X@api.robowhois.com/v1/account', 'account')
61
61
  @response = client.account
62
62
  end
63
63
 
@@ -76,7 +76,7 @@ describe RoboWhois do
76
76
 
77
77
  describe "#whois" do
78
78
  before do
79
- stub_get('http://API_KEY:X@api.robowhois.com/whois/example.com', 'whois')
79
+ stub_get('http://API_KEY:X@api.robowhois.com/v1/whois/example.com', 'whois')
80
80
  @response = client.whois("example.com")
81
81
  end
82
82
 
@@ -90,27 +90,9 @@ describe RoboWhois do
90
90
  end
91
91
  end
92
92
 
93
- describe "#whois_availability" do
94
- before do
95
- stub_get('http://API_KEY:X@api.robowhois.com/whois/example.com/availability', 'whois_availability')
96
- @response = client.whois_availability("example.com")
97
- end
98
-
99
- it "responds with 200" do
100
- client.last_response.code.should == 200
101
- end
102
-
103
- it "returns whois availability" do
104
- @response.should be_a(Hash)
105
- @response['daystamp'].should == '2012-02-11'
106
- @response['available'].should == false
107
- @response['registered'].should == true
108
- end
109
- end
110
-
111
93
  describe "#whois_parts" do
112
94
  before do
113
- stub_get('http://API_KEY:X@api.robowhois.com/whois/example.com/parts', 'whois_parts')
95
+ stub_get('http://API_KEY:X@api.robowhois.com/v1/whois/example.com/parts', 'whois_parts')
114
96
  @response = client.whois_parts("example.com")
115
97
  end
116
98
 
@@ -135,7 +117,7 @@ describe RoboWhois do
135
117
 
136
118
  describe "#whois_properties" do
137
119
  before do
138
- stub_get('http://API_KEY:X@api.robowhois.com/whois/example.com/properties', 'whois_properties')
120
+ stub_get('http://API_KEY:X@api.robowhois.com/v1/whois/example.com/properties', 'whois_properties')
139
121
  @response = client.whois_properties("example.com")
140
122
  end
141
123
 
@@ -160,7 +142,7 @@ describe RoboWhois do
160
142
 
161
143
  describe "#whois_record" do
162
144
  before do
163
- stub_get('http://API_KEY:X@api.robowhois.com/whois/example.com/record', 'whois_record')
145
+ stub_get('http://API_KEY:X@api.robowhois.com/v1/whois/example.com/record', 'whois_record')
164
146
  @response = client.whois_record("example.com")
165
147
  end
166
148
 
@@ -175,12 +157,36 @@ describe RoboWhois do
175
157
  end
176
158
  end
177
159
 
160
+ describe "#whois_availability" do
161
+ it "delegates to #availability" do
162
+ client.should_receive(:availability).with("example.com")
163
+ client.whois_availability("example.com")
164
+ end
165
+ end
166
+
167
+ describe "#availability" do
168
+ before do
169
+ stub_get('http://API_KEY:X@api.robowhois.com/v1/availability/example.com', 'availability')
170
+ @response = client.availability("example.com")
171
+ end
172
+
173
+ it "responds with 200" do
174
+ client.last_response.code.should == 200
175
+ end
176
+
177
+ it "returns whois availability" do
178
+ @response.should be_a(Hash)
179
+ @response['available'].should == false
180
+ end
181
+ end
182
+
183
+
178
184
  context "request failure" do
179
185
  describe "BadCredentials" do
180
186
  let(:client) { client = RoboWhois.new(:api_key => 'BAD_KEY') }
181
187
 
182
188
  before do
183
- stub_get('http://BAD_KEY:X@api.robowhois.com/account', 'error_bad_credentials')
189
+ stub_get('http://BAD_KEY:X@api.robowhois.com/v1/account', 'error_bad_credentials')
184
190
  end
185
191
 
186
192
  it "raises an APIError" do
@@ -192,7 +198,7 @@ describe RoboWhois do
192
198
 
193
199
  describe "ServerWhoisOnlyWeb" do
194
200
  before do
195
- stub_get('http://API_KEY:X@api.robowhois.com/whois/example.com/record', 'error_whois_server_only_web')
201
+ stub_get('http://API_KEY:X@api.robowhois.com/v1/whois/example.com/record', 'error_whois_server_only_web')
196
202
  end
197
203
 
198
204
  it "raises an APIError" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robowhois
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,33 +9,43 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-19 00:00:00.000000000Z
12
+ date: 2012-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &70116522457040 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.8.0
21
+ version: 0.9.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70116522457040
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.9.0
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rake
27
- requirement: &70116522456580 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
31
36
  - !ruby/object:Gem::Version
32
- version: '0.9'
37
+ version: 10.0.0
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70116522456580
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 10.0.0
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: yard
38
- requirement: &70116522456200 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,7 +53,12 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70116522456200
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  description: Ruby client for the RoboWhois API.
48
63
  email:
49
64
  - weppos@weppos.net
@@ -53,10 +68,10 @@ extra_rdoc_files: []
53
68
  files:
54
69
  - .gitignore
55
70
  - .rspec
71
+ - .travis.yml
56
72
  - CHANGELOG.md
57
73
  - Gemfile
58
- - Gemfile.lock
59
- - LICENSE
74
+ - LICENSE.txt
60
75
  - README.md
61
76
  - Rakefile
62
77
  - lib/robo_whois.rb
@@ -64,14 +79,12 @@ files:
64
79
  - lib/robowhois.rb
65
80
  - robowhois.gemspec
66
81
  - spec/fixtures/account.dump
82
+ - spec/fixtures/availability.dump
67
83
  - spec/fixtures/commands.sh
68
84
  - spec/fixtures/error_bad_credentials.dump
69
85
  - spec/fixtures/error_unauthorized.dump
70
86
  - spec/fixtures/error_whois_server_only_web.dump
71
87
  - spec/fixtures/whois.dump
72
- - spec/fixtures/whois_availability.dump
73
- - spec/fixtures/whois_availability_available.dump
74
- - spec/fixtures/whois_availability_registered.dump
75
88
  - spec/fixtures/whois_parts.dump
76
89
  - spec/fixtures/whois_properties.dump
77
90
  - spec/fixtures/whois_properties_available.dump
@@ -81,7 +94,7 @@ files:
81
94
  - spec/support/fake_request_helpers.rb
82
95
  - spec/support/helpers.rb
83
96
  - spec/unit/robo_whois_spec.rb
84
- homepage: https://github.com/robowhois/robowhois-ruby-client
97
+ homepage: https://github.com/robowhois/robowhois-ruby
85
98
  licenses: []
86
99
  post_install_message:
87
100
  rdoc_options: []
@@ -101,20 +114,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
114
  version: '0'
102
115
  requirements: []
103
116
  rubyforge_project:
104
- rubygems_version: 1.8.15
117
+ rubygems_version: 1.8.24
105
118
  signing_key:
106
119
  specification_version: 3
107
120
  summary: Ruby client for the RoboWhois API.
108
121
  test_files:
109
122
  - spec/fixtures/account.dump
123
+ - spec/fixtures/availability.dump
110
124
  - spec/fixtures/commands.sh
111
125
  - spec/fixtures/error_bad_credentials.dump
112
126
  - spec/fixtures/error_unauthorized.dump
113
127
  - spec/fixtures/error_whois_server_only_web.dump
114
128
  - spec/fixtures/whois.dump
115
- - spec/fixtures/whois_availability.dump
116
- - spec/fixtures/whois_availability_available.dump
117
- - spec/fixtures/whois_availability_registered.dump
118
129
  - spec/fixtures/whois_parts.dump
119
130
  - spec/fixtures/whois_properties.dump
120
131
  - spec/fixtures/whois_properties_available.dump
data/Gemfile.lock DELETED
@@ -1,36 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- robowhois (0.2.2)
5
- httparty (~> 0.8.0)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- diff-lcs (1.1.3)
11
- fakeweb (1.3.0)
12
- httparty (0.8.1)
13
- multi_json
14
- multi_xml
15
- multi_json (1.1.0)
16
- multi_xml (0.4.1)
17
- rake (0.9.2.2)
18
- rspec (2.8.0)
19
- rspec-core (~> 2.8.0)
20
- rspec-expectations (~> 2.8.0)
21
- rspec-mocks (~> 2.8.0)
22
- rspec-core (2.8.0)
23
- rspec-expectations (2.8.0)
24
- diff-lcs (~> 1.1.2)
25
- rspec-mocks (2.8.0)
26
- yard (0.7.5)
27
-
28
- PLATFORMS
29
- ruby
30
-
31
- DEPENDENCIES
32
- fakeweb (~> 1.3.0)
33
- rake (~> 0.9)
34
- robowhois!
35
- rspec (~> 2.8.0)
36
- yard
@@ -1,16 +0,0 @@
1
- HTTP/1.1 200 OK
2
- Content-Type: application/json; charset=utf-8
3
- Transfer-Encoding: chunked
4
- Connection: keep-alive
5
- Status: 200
6
- X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.7
7
- X-UA-Compatible: IE=Edge,chrome=1
8
- ETag: "8f7b51b498f919a966fb86e40e1a0c90"
9
- Cache-Control: must-revalidate, private, max-age=0
10
- X-Request-Id: db845f5a236b1c03a6a5632c41b28685
11
- X-Runtime: 0.184463
12
- Date: Sat, 11 Feb 2012 11:36:39 GMT
13
- X-Rack-Cache: miss
14
- Server: nginx/1.0.4 + Phusion Passenger 3.0.7 (mod_rails/mod_rack)
15
-
16
- {"response":{"daystamp":"2012-02-11","available":false,"registered":true}}
@@ -1,16 +0,0 @@
1
- HTTP/1.1 200 OK
2
- Content-Type: application/json; charset=utf-8
3
- Transfer-Encoding: chunked
4
- Connection: keep-alive
5
- Status: 200
6
- X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.7
7
- X-UA-Compatible: IE=Edge,chrome=1
8
- ETag: "7b9fff40475dfd3e77b544aafb1f22e9"
9
- Cache-Control: must-revalidate, private, max-age=0
10
- X-Request-Id: 8abf4e8cff594351c65bb870263fbfca
11
- X-Runtime: 0.145351
12
- Date: Sat, 11 Feb 2012 11:36:41 GMT
13
- X-Rack-Cache: miss
14
- Server: nginx/1.0.4 + Phusion Passenger 3.0.7 (mod_rails/mod_rack)
15
-
16
- {"response":{"daystamp":"2012-02-11","available":true,"registered":false}}
@@ -1,16 +0,0 @@
1
- HTTP/1.1 200 OK
2
- Content-Type: application/json; charset=utf-8
3
- Transfer-Encoding: chunked
4
- Connection: keep-alive
5
- Status: 200
6
- X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.7
7
- X-UA-Compatible: IE=Edge,chrome=1
8
- ETag: "8f7b51b498f919a966fb86e40e1a0c90"
9
- Cache-Control: must-revalidate, private, max-age=0
10
- X-Request-Id: db845f5a236b1c03a6a5632c41b28685
11
- X-Runtime: 0.184463
12
- Date: Sat, 11 Feb 2012 11:36:39 GMT
13
- X-Rack-Cache: miss
14
- Server: nginx/1.0.4 + Phusion Passenger 3.0.7 (mod_rails/mod_rack)
15
-
16
- {"response":{"daystamp":"2012-02-11","available":false,"registered":true}}