quova 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -0
- data/lib/quova/rest.rb +5 -1
- data/lib/quova/result.rb +1 -1
- data/lib/quova/version.rb +1 -1
- data/quova.gemspec +1 -1
- data/spec/spec_helper.rb +0 -2
- metadata +10 -10
data/README.md
CHANGED
@@ -79,6 +79,13 @@ in to ensure valid data types. As a side-effect, you may access the properties
|
|
79
79
|
either using a Hash (`[:key]`) syntax, or just like a regular method call.
|
80
80
|
(`result.longitude`). If you want a plain Hash, call `result.attributes`.
|
81
81
|
|
82
|
+
## Note
|
83
|
+
|
84
|
+
When using the standard (REST) API, it is important that the system time on
|
85
|
+
your server is correct (give or take 5 minutes), since the API signature is
|
86
|
+
generated by on the current time (see
|
87
|
+
http://developer.quova.com/docs#signing_api for more information).
|
88
|
+
|
82
89
|
## Resources
|
83
90
|
|
84
91
|
- [Source](https://github.com/d11wtq/quova)
|
data/lib/quova/rest.rb
CHANGED
@@ -9,7 +9,11 @@ module Quova
|
|
9
9
|
|
10
10
|
# Initialize the REST client with the Quova credentials.
|
11
11
|
#
|
12
|
-
# @example
|
12
|
+
# @example
|
13
|
+
# Quova::REST.new(:api_key => 'your-key', :secret => 'your-secret')
|
14
|
+
#
|
15
|
+
# @param [Hash] options
|
16
|
+
# Hash containing :api_key and :secret for Quova
|
13
17
|
#
|
14
18
|
# @api public
|
15
19
|
def initialize(options)
|
data/lib/quova/result.rb
CHANGED
data/lib/quova/version.rb
CHANGED
data/quova.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = ["chris@w3style.co.uk"]
|
11
11
|
s.homepage = "https://github.com/d11wtq/quova"
|
12
12
|
s.summary = %q{Quova GeoIP Client for Ruby}
|
13
|
-
s.description = %q{Provides a high-level client for Quova
|
13
|
+
s.description = %q{Provides a high-level client for the Quova API}
|
14
14
|
|
15
15
|
s.rubyforge_project = "quova"
|
16
16
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quova
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-07-10 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
16
|
-
requirement: &
|
16
|
+
requirement: &15647240 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.6.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *15647240
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: virtus
|
27
|
-
requirement: &
|
27
|
+
requirement: &15646680 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.0.5
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *15646680
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: nokogiri
|
38
|
-
requirement: &
|
38
|
+
requirement: &15646140 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.5.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *15646140
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &15645680 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,8 +54,8 @@ dependencies:
|
|
54
54
|
version: '2.6'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
58
|
-
description: Provides a high-level client for Quova
|
57
|
+
version_requirements: *15645680
|
58
|
+
description: Provides a high-level client for the Quova API
|
59
59
|
email:
|
60
60
|
- chris@w3style.co.uk
|
61
61
|
executables: []
|