geostock 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/geostock/api.rb +1 -2
- data/lib/geostock/version.rb +1 -1
- metadata +2 -2
data/lib/geostock/api.rb
CHANGED
@@ -69,8 +69,7 @@ module GeoStock
|
|
69
69
|
text = b64encode(generate_json(value))
|
70
70
|
cur = (Time.now.utc.to_i / REQUEST_EXPIRATION_TIME)
|
71
71
|
d = HMAC::SHA256.new(@api_secret_token)
|
72
|
-
d.update text
|
73
|
-
d.update cur.to_s
|
72
|
+
d.update text + cur.to_s
|
74
73
|
[d.hexdigest, text].join('.')
|
75
74
|
end
|
76
75
|
def b64encode(text)
|
data/lib/geostock/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geostock
|
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:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-08-05 00:00:00.000000000 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
description: GeoStock API for Ruby
|