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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70fb2a64b1aaeae7ba100ed9df79f1223c0f8ad8
4
- data.tar.gz: 8baa54f749b95012e46452a242fa6dec6b3b5a80
3
+ metadata.gz: 7679b1c7679dc60fe59f5ff927da539d699754f2
4
+ data.tar.gz: 6e45ccaac6ca95cd608d6fa4ab8b20a8e74cc35e
5
5
  SHA512:
6
- metadata.gz: ff31195512d2dfe843a7f70740b4f6cb6a70188ba55b752cf4415f57b1e5bcd715bd47c11eac583ba44208a7201876481e6416763cda787b82b8256e0c902fb9
7
- data.tar.gz: d757c86d3aa644b54781ea20baa1572a85f5de0276e8999059481eae6af435a977215eeff8c2975f19f458ccab453e6fbdd42d012aa308118b82af70bb41043b
6
+ metadata.gz: 1f02c1920f8720613ff5dcb340ffe64c1eccd27addffef1a670c7f339dfc0357cf693a5dd20c2e8ee18ebf2babc322203e01b4b4b506bf97f57b355b4310d70e
7
+ data.tar.gz: cb1b3da152dd072c77c97c71c249eb5c29e7f36107b9e63f3736635e5979d1e430ed44b100b380ab030ef086f2de1cc27e754490006cefa762ec713f28bef047
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ige_isb_api (1.2.10)
4
+ ige_isb_api (1.2.11)
5
5
  nokogiri (~> 1.6)
6
6
  rfc-822 (~> 0.4)
7
7
 
@@ -35,3 +35,6 @@ DEPENDENCIES
35
35
  ige_isb_api!
36
36
  rake (~> 10.1)
37
37
  rspec (~> 2.6)
38
+
39
+ BUNDLED WITH
40
+ 1.10.5
@@ -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}"
@@ -2,5 +2,5 @@
2
2
  #coding: utf-8
3
3
 
4
4
  module IGE_ISB_API
5
- VERSION = "1.2.10"
5
+ VERSION = "1.2.11"
6
6
  end
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.10
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-03-25 00:00:00.000000000 Z
14
+ date: 2015-07-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: nokogiri