ige_isb_api 1.2.10 → 1.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -1
- data/lib/ige_isb_api/bonus.rb +5 -1
- data/lib/ige_isb_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7679b1c7679dc60fe59f5ff927da539d699754f2
|
4
|
+
data.tar.gz: 6e45ccaac6ca95cd608d6fa4ab8b20a8e74cc35e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f02c1920f8720613ff5dcb340ffe64c1eccd27addffef1a670c7f339dfc0357cf693a5dd20c2e8ee18ebf2babc322203e01b4b4b506bf97f57b355b4310d70e
|
7
|
+
data.tar.gz: cb1b3da152dd072c77c97c71c249eb5c29e7f36107b9e63f3736635e5979d1e430ed44b100b380ab030ef086f2de1cc27e754490006cefa762ec713f28bef047
|
data/Gemfile.lock
CHANGED
data/lib/ige_isb_api/bonus.rb
CHANGED
@@ -7,6 +7,7 @@ require 'cgi'
|
|
7
7
|
require 'date'
|
8
8
|
require "ige_isb_api"
|
9
9
|
require "ige_isb_api/constants"
|
10
|
+
require 'digest' # Needed for Ruby 2.2
|
10
11
|
|
11
12
|
module IGE_ISB_API
|
12
13
|
class Bonus
|
@@ -224,7 +225,10 @@ module IGE_ISB_API
|
|
224
225
|
return unless self.params['signature'].nil?
|
225
226
|
encoded_params = self.params.map { |key, value| "#{key}=#{value}" }
|
226
227
|
encoded_params.shift # remove the first item which is always the 'api_key'
|
227
|
-
hmac = Digest::HMAC.new(IGE_ISB_API::Constants::BONUS_SECRET_KEY, Digest::SHA256)
|
228
|
+
# hmac = Digest::HMAC.new(IGE_ISB_API::Constants::BONUS_SECRET_KEY, Digest::SHA256)
|
229
|
+
# Rewrite for Ruby 2.2 Also, need the require 'digest' above
|
230
|
+
hmac = Digest::SHA256.new
|
231
|
+
hmac << IGE_ISB_API::Constants::BONUS_SECRET_KEY
|
228
232
|
hmac << CGI.escape(encoded_params.join('&'))
|
229
233
|
self.params['signature'] = hmac.to_s
|
230
234
|
# puts "debugging params: api_key=#{self.params['api_key']}&#{encoded_params.join('&')}&signature=#{hmac.to_s}"
|
data/lib/ige_isb_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ige_isb_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Sag
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-
|
14
|
+
date: 2015-07-17 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: nokogiri
|