ige_isb_api 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/ige_isb_api/bonus.rb +1 -1
- data/lib/ige_isb_api/constants.rb +5 -3
- data/lib/ige_isb_api/games.rb +1 -1
- data/lib/ige_isb_api/request.rb +1 -0
- data/lib/ige_isb_api/version.rb +1 -1
- data/lib/ige_isb_api.rb +5 -5
- 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: 6a6553dafdf2e54df0bd089f608f58cd159bcbfd
|
4
|
+
data.tar.gz: 18b896a9bf17e9b2ffb34f3fc364c74526d46e4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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)
|
data/lib/ige_isb_api/bonus.rb
CHANGED
@@ -237,7 +237,7 @@ module IGE_ISB_API
|
|
237
237
|
end
|
238
238
|
|
239
239
|
def construct_request
|
240
|
-
raise RuntimeError, "Missing environment variable '
|
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
|
-
|
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)
|
data/lib/ige_isb_api/games.rb
CHANGED
@@ -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]}'",
|
data/lib/ige_isb_api/request.rb
CHANGED
@@ -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)
|
data/lib/ige_isb_api/version.rb
CHANGED
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.
|
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-
|
14
|
+
date: 2014-03-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: nokogiri
|