robowhois 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## Release 0.2.1
5
+
6
+ * FIXED: Fixed outdated documentation that describes an invalid way to initialize the client.
7
+
8
+
4
9
  ## Release 0.2.0
5
10
 
6
11
  * NEW: Added support for Heroku ROBOWHOIS_API_KEY environment variable
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- robowhois (0.2.0)
4
+ robowhois (0.2.1)
5
5
  httparty (~> 0.8.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -34,7 +34,7 @@ Please refer to the RoboWhois [API Documentation](http://docs.robowhois.com/api/
34
34
 
35
35
  ### Account information
36
36
 
37
- client = RoboWhois.new('YOUR_API_KEY')
37
+ client = RoboWhois.new(:api_key => 'YOUR_API_KEY')
38
38
  account = client.account
39
39
 
40
40
  puts account['email']
@@ -44,7 +44,7 @@ Please refer to the RoboWhois [API Documentation](http://docs.robowhois.com/api/
44
44
 
45
45
  ### Original WHOIS record
46
46
 
47
- client = RoboWhois.new('YOUR_API_KEY')
47
+ client = RoboWhois.new(:api_key => 'YOUR_API_KEY')
48
48
  response = client.whois('example.com')
49
49
 
50
50
  puts response
@@ -52,7 +52,7 @@ Please refer to the RoboWhois [API Documentation](http://docs.robowhois.com/api/
52
52
 
53
53
  ### Parsed WHOIS record
54
54
 
55
- client = RoboWhois.new('YOUR_API_KEY')
55
+ client = RoboWhois.new(:api_key => 'YOUR_API_KEY')
56
56
  response = client.whois_properties('example.com')
57
57
 
58
58
  # The record date
@@ -78,7 +78,7 @@ Please refer to the RoboWhois [API Documentation](http://docs.robowhois.com/api/
78
78
 
79
79
  You can access the last response object using the `last_response` method.
80
80
 
81
- client = RoboWhois.new('YOUR_API_KEY')
81
+ client = RoboWhois.new(:api_key => 'YOUR_API_KEY')
82
82
  account = client.account
83
83
 
84
84
  response = client.last_response
@@ -91,7 +91,7 @@ You can access the last response object using the `last_response` method.
91
91
 
92
92
  In case of failure, the API call raises a `RoboWhois::APIError` exception.
93
93
 
94
- client = RoboWhois.new('YOUR_API_KEY')
94
+ client = RoboWhois.new(:api_key => 'YOUR_API_KEY')
95
95
 
96
96
  begin
97
97
  response = client.whois_properties('example.es')
@@ -13,7 +13,7 @@ class RoboWhois
13
13
  module Version
14
14
  MAJOR = 0
15
15
  MINOR = 2
16
- PATCH = 0
16
+ PATCH = 1
17
17
  BUILD = nil
18
18
 
19
19
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
data/robowhois.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "robowhois"
5
- s.version = "0.2.0"
5
+ s.version = "0.2.1"
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"]
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.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &70097769102120 !ruby/object:Gem::Requirement
16
+ requirement: &70154354022200 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.8.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70097769102120
24
+ version_requirements: *70154354022200
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70097769101600 !ruby/object:Gem::Requirement
27
+ requirement: &70154354021740 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0.9'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70097769101600
35
+ version_requirements: *70154354021740
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: yard
38
- requirement: &70097769101200 !ruby/object:Gem::Requirement
38
+ requirement: &70154354029540 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70097769101200
46
+ version_requirements: *70154354029540
47
47
  description: Ruby client for the RoboWhois API.
48
48
  email:
49
49
  - weppos@weppos.net