asin 0.0.4 → 0.0.5
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/lib/asin.rb +1 -1
- metadata +5 -5
data/lib/asin.rb
CHANGED
|
@@ -46,7 +46,7 @@ module ASIN
|
|
|
46
46
|
def create_signed_query_string(params) # http://cloudcarpenters.com/blog/amazon_products_api_request_signing/
|
|
47
47
|
params[:Service] = :AWSECommerceService
|
|
48
48
|
params[:AWSAccessKeyId] = @options[:key]
|
|
49
|
-
params[:Timestamp] = Time.now.strftime('%Y-%m-%dT%H:%M:%SZ') # needed for signing
|
|
49
|
+
params[:Timestamp] = Time.now.utc.strftime('%Y-%m-%dT%H:%M:%SZ') # utc timestamp needed for signing
|
|
50
50
|
|
|
51
51
|
query = params.map{|key, value| "#{key}=#{CGI.escape(value.to_s)}" }.sort.join('&')
|
|
52
52
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: asin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.0.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- "Peter Schr\xC3\xB6der"
|
|
@@ -110,11 +110,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
110
110
|
version: "0"
|
|
111
111
|
requirements: []
|
|
112
112
|
|
|
113
|
-
rubyforge_project:
|
|
113
|
+
rubyforge_project:
|
|
114
114
|
rubygems_version: 1.3.7
|
|
115
115
|
signing_key:
|
|
116
116
|
specification_version: 3
|
|
117
|
-
summary: Simple interface to Amazon Item lookup
|
|
117
|
+
summary: Simple interface to Amazon Item lookup
|
|
118
118
|
test_files:
|
|
119
119
|
- test/test_helper.rb
|
|
120
120
|
- test/test_asin.rb
|