ige_isb_api 1.2.0 → 1.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fdb30a5bb32318e84423160124c27c3fb74918e
4
- data.tar.gz: 580dbc04e3fc7d8e62e02e699e6bbd01db9c7b61
3
+ metadata.gz: 6a6553dafdf2e54df0bd089f608f58cd159bcbfd
4
+ data.tar.gz: 18b896a9bf17e9b2ffb34f3fc364c74526d46e4c
5
5
  SHA512:
6
- metadata.gz: be6d918aa9a48f60dfea4d298cad8d7cd8221214d231b70c2529ca18e62a891437ce7015c4fe5be3359effdbe8b2830f8ba232b4a5ce4175fe3ec52bb5b69c6b
7
- data.tar.gz: 824ade09b502b2d5ac1d0488f814917d708d963a9544b383ffe61ca857db9a08047f0dadc0dddbaf904cc590258b3044a9ec2fc2cfbf9beebbd3667c7e686a73
6
+ metadata.gz: 6c949be3adf0f4317cb5c3b3c0e63d1af4c63a25f2111be348fc3982d0f225bc9e992269423e1f22a91154503c825b84550ef983adcdb754bb3e19b90d7fcc8f
7
+ data.tar.gz: 6b554f89699892c07b0ba8a9cdf94185bf6f7fcbd7cd96ec8b968a9172765d3f609d16d8903dfc18fc3f3d0f5011208ef90876c9e1416c4778d60221bdd0179b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ige_isb_api (1.1.9)
4
+ ige_isb_api (1.2.0)
5
5
  nokogiri (~> 1.6)
6
6
  rfc-822 (~> 0.4)
7
7
 
@@ -19,7 +19,7 @@ GEM
19
19
  rspec-core (~> 2.14.0)
20
20
  rspec-expectations (~> 2.14.0)
21
21
  rspec-mocks (~> 2.14.0)
22
- rspec-core (2.14.7)
22
+ rspec-core (2.14.8)
23
23
  rspec-expectations (2.14.5)
24
24
  diff-lcs (>= 1.1.3, < 2.0)
25
25
  rspec-mocks (2.14.6)
@@ -237,7 +237,7 @@ module IGE_ISB_API
237
237
  end
238
238
 
239
239
  def construct_request
240
- raise RuntimeError, "Missing environment variable 'ISOFTBET_BONUS_API_SERVER'" if IGE_ISB_API::Constants::BONUS_API_SERVER.nil?
240
+ raise RuntimeError, "Missing environment variable 'ISB_BONUS_API_SERVER'" if IGE_ISB_API::Constants::BONUS_API_SERVER.nil?
241
241
  the_url = "#{IGE_ISB_API::Constants::BONUS_API_SERVER}/bonus_system/api/#{self.command}"
242
242
  uri = URI.parse(the_url)
243
243
  # http = Net::HTTP.new(uri.host, uri.port)
@@ -8,16 +8,18 @@ module IGE_ISB_API
8
8
 
9
9
  USER_API_VERSION = '2.3'
10
10
  BONUS_API_VERSION = '1.5'
11
+ SEAMLESS_API_VERSION = '2.2.1'
11
12
 
12
13
  LICENSEE_ID = ENV['ISB_LICENSEE_ID'].to_i # issued by ISB
13
14
  CASINO = ENV['ISB_CASINO_ID'] # issued by ISB
14
15
  SECRET_KEY = ENV['ISB_SECRET_KEY'] # issued by ISB
15
- BONUS_API_KEY = ENV['ISB_BONUS_API_KEY'] # issued by ISB
16
- BONUS_SECRET_KEY = ENV['ISB_BONUS_SECRET_KEY'] # issued by ISB
16
+ SERVER = {fun: ENV['ISB_FUN_URL'], real: ENV['ISB_REAL_URL']} # issued by ISB
17
17
  CALLBACK_ID = ENV['ISB_CALLBACK_ID'].to_i # issued by ISB
18
18
  API_SERVER = ENV['ISB_API_SERVER'] # issued by ISB
19
+
20
+ BONUS_API_KEY = ENV['ISB_BONUS_API_KEY'] # issued by ISB
21
+ BONUS_SECRET_KEY = ENV['ISB_BONUS_SECRET_KEY'] # issued by ISB
19
22
  BONUS_API_SERVER = ENV['ISB_BONUS_API_SERVER'] # issued by ISB
20
- SERVER = {fun: ENV['ISB_FUN_URL'], real: ENV['ISB_REAL_URL']} # issued by ISB
21
23
 
22
24
  DEFAULT_ENCODING = 'utf-8'
23
25
  ALLOWED_CURRENCIES = %w(EUR GBP USD CAD)
@@ -277,7 +277,7 @@ module IGE_ISB_API
277
277
  password = options[:fun] ? 'fun' : Game.encode_password(options[:idrequest])
278
278
  name = options[:fun] ? Game.encode_login("fun") : Game.encode_login(options[:player_login])
279
279
  vars = [
280
- "gamename: '#{options[:name]}'",
280
+ "gamename: unescape('#{CGI.escape(options[:name])}')", # some game names contain "'" marks.
281
281
  "gameurl: '#{options[:game_swf_path]}'",
282
282
  "gameid: '#{options[:identifier]}'",
283
283
  "skin_id: '#{options[:skin]}'",
@@ -171,6 +171,7 @@ module IGE_ISB_API
171
171
  end
172
172
 
173
173
  def construct_request
174
+ raise RuntimeError, "Missing environment variable 'ISB_USER_API_SERVER'" if IGE_ISB_API::Constants::BONUS_API_SERVER.nil?
174
175
  uri = URI.parse(IGE_ISB_API::Constants::API_SERVER)
175
176
  # http = Net::HTTP.new(uri.host, uri.port)
176
177
  self.request = Net::HTTP::Post.new(uri)
@@ -2,5 +2,5 @@
2
2
  #coding: utf-8
3
3
 
4
4
  module IGE_ISB_API
5
- VERSION = "1.2.0"
5
+ VERSION = "1.2.1"
6
6
  end
data/lib/ige_isb_api.rb CHANGED
@@ -1,15 +1,15 @@
1
1
  #!/user/bin/env ruby
2
2
  #coding: utf-8
3
3
 
4
+ require "ige_isb_api/version"
5
+ require "ige_isb_api/constants"
6
+ require "ige_isb_api/validation"
7
+ require "ige_isb_api/request"
4
8
  require "ige_isb_api/user_api"
5
- require "ige_isb_api/bonus_api"
6
9
  require "ige_isb_api/bonus"
10
+ require "ige_isb_api/bonus_api"
7
11
  require "ige_isb_api/callback"
8
- require "ige_isb_api/constants"
9
12
  require "ige_isb_api/games"
10
- require "ige_isb_api/request"
11
- require "ige_isb_api/validation"
12
- require "ige_isb_api/version"
13
13
 
14
14
  module IGE_ISB_API
15
15
 
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.0
4
+ version: 1.2.1
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: 2014-03-03 00:00:00.000000000 Z
14
+ date: 2014-03-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: nokogiri