robowhois 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## Release 0.4.0
5
+
6
+ * CHANGED: Relaxed dependencies to other gems
7
+
8
+ * CHANGED: Removed deprecated #whois_availability method
9
+
10
+
4
11
  ## Release 0.3.0
5
12
 
6
13
  * ADDED: Support for the new /availability endpoint.
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.12.0'
7
- gem 'fakeweb', '~> 1.3.0'
6
+ gem 'rspec'
7
+ gem 'fakeweb'
8
8
  end
data/Rakefile CHANGED
@@ -32,9 +32,9 @@ spec = Gem::Specification.new do |s|
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.9.0"
35
+ s.add_dependency "httparty", ">= 0.9"
36
36
 
37
- s.add_development_dependency "rake", "~> 10.0.0"
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
@@ -82,11 +82,6 @@ class RoboWhois
82
82
  get("/whois/#{query}/record")["response"]
83
83
  end
84
84
 
85
- def whois_availability(query)
86
- RoboWhois.deprecate("#whois_availability is deprecated, please use #availability")
87
- availability(query)
88
- end
89
-
90
85
  def availability(query)
91
86
  get("/availability/#{query}")["response"]
92
87
  end
@@ -12,7 +12,7 @@ class RoboWhois
12
12
  # Holds information about library version.
13
13
  module Version
14
14
  MAJOR = 0
15
- MINOR = 3
15
+ MINOR = 4
16
16
  PATCH = 0
17
17
  BUILD = nil
18
18
 
data/robowhois.gemspec CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "robowhois"
5
- s.version = "0.2.2"
5
+ s.version = "0.4.0"
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-12-10"
9
+ s.date = "2013-03-25"
10
10
  s.description = "Ruby client for the RoboWhois API."
11
11
  s.email = ["weppos@weppos.net"]
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"]
12
+ s.files = [".gitignore", ".rspec", ".travis.yml", "CHANGELOG.md", "Gemfile", "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
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")
@@ -21,17 +21,17 @@ Gem::Specification.new do |s|
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.9.0"])
25
- s.add_development_dependency(%q<rake>, ["~> 10.0.0"])
24
+ s.add_runtime_dependency(%q<httparty>, [">= 0.9"])
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.9.0"])
29
- s.add_dependency(%q<rake>, ["~> 10.0.0"])
28
+ s.add_dependency(%q<httparty>, [">= 0.9"])
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.9.0"])
34
- s.add_dependency(%q<rake>, ["~> 10.0.0"])
33
+ s.add_dependency(%q<httparty>, [">= 0.9"])
34
+ s.add_dependency(%q<rake>, [">= 10.0.0"])
35
35
  s.add_dependency(%q<yard>, [">= 0"])
36
36
  end
37
37
  end
@@ -157,13 +157,6 @@ describe RoboWhois do
157
157
  end
158
158
  end
159
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
160
  describe "#availability" do
168
161
  before do
169
162
  stub_get('http://API_KEY:X@api.robowhois.com/v1/availability/example.com', 'availability')
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.3.0
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,30 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-10 00:00:00.000000000 Z
12
+ date: 2013-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.9.0
21
+ version: '0.9'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ~>
27
+ - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.0
29
+ version: '0.9'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rake
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ~>
35
+ - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: 10.0.0
38
38
  type: :development
@@ -40,7 +40,7 @@ dependencies:
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ~>
43
+ - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: 10.0.0
46
46
  - !ruby/object:Gem::Dependency