ige_isb_api 1.2.5 → 1.2.6

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: 197d0086076006f78cc7d8e4e1bb7f55e5b05367
4
- data.tar.gz: ef2793ca7301daccc21079376b668e60acac9c23
3
+ metadata.gz: 04f22589f9def9b835ee4c3ff40a2f1f8266b6a7
4
+ data.tar.gz: 53926ae03bd5da7ecad34e031e223561cd4d5327
5
5
  SHA512:
6
- metadata.gz: f365cfea14438a01b54b0c924d5921c3c56d97424a2794078704f056164cfc90dd7818c83ab9ccf10b9fe3548c4769aa03717587df23bb9899131afbba968c03
7
- data.tar.gz: d78452a76fb64693d49c60086710b739c79343a18dff332556c2843812487af9f5cc89dfe380ad9d73b70746ea59f48a47b617454bffb551967dc66a236bbc6d
6
+ metadata.gz: ed82a4466bdbdb0d9d5fcdc4a2b0ce12937ecc22eb3b20f19a9522578754fb33ddfd98ebc4a7a476591c537d3f689d5859419e21610ae02b3413042902a00892
7
+ data.tar.gz: ebb4c0b1be64cf7e6c159c0ff02d7a4356e6b02e65f59741fcfd66372840185252a3c2dde9093be8df04408330d47b4eabccdae588979f5d62f92f97908b8487
data/.env ADDED
@@ -0,0 +1,89 @@
1
+ # Set a site-wide cookie pass-phrase. Used to encrypt and decrypt cookies.
2
+ # There is no default. The site will not run if you have not set this.
3
+ COOKIE_KEY=hello nasty
4
+
5
+ # first are we running tests via this install, and
6
+ # if so, do these tests need to be offline or tested against ISB/Safecharge's test server?
7
+ # default is false
8
+ LIVE_TESTING=true
9
+
10
+ # Are we in development mode and do we wish to talk to the ISB/Safecharge servers live?
11
+ # change to true if you wish to run in development mode and
12
+ # use ISB's test server instead of just getting mocked results.
13
+ LIVE_DEVELOPMENT=false
14
+
15
+ # Are we in production mode and do we wish to use ISB/Safecharge's real server or their test server?
16
+ # change to 'real' if using the real live server and not simply testing in production mode (i.e. staging).
17
+ PRODUCTION_SERVER_MODE=test
18
+
19
+ # which email server should I use in test mode?
20
+ # default is none
21
+ TEST_EMAIL_SENDER=none
22
+
23
+ # which email server should I use in development mode?
24
+ # default is sendmail, built into OSX
25
+ DEVELOPMENT_EMAIL_SENDER=sendmail
26
+
27
+ # which email server should I use in production mode?
28
+ # default is a properly configured sendgrid account
29
+ PRODUCTION_EMAIL_SENDER=sendgrid
30
+ SENDGRID_USERNAME=luckygoldfish
31
+ SENDGRID_PASSWORD=letmein2013
32
+ SENDGRID_DOMAIN=
33
+
34
+ # comment this out or set to anything other than true to turn debugging off.
35
+ ISB_DEBUGGING=false
36
+ # ISB_DEBUGGING=true
37
+
38
+ # development http://userapi.isoftbet.com/client/client.php
39
+ #ISB_API_SERVER=http://userapi.isoftbet.com/client/client.php
40
+ ISB_API_SERVER=https://userapi.isoftbet.com/client/client.php
41
+ # production: https://userapi-bh.isoftbet.com/client/client.php
42
+ # ISB_API_SERVER=https://userapi-bh.isoftbet.com/client/client.php
43
+
44
+ # development: http://userbo.isoftbet.com - note our code will automatically add the /bonus_system/api path
45
+ #ISB_BONUS_API_SERVER=http://userbo.isoftbet.com
46
+ ISB_BONUS_API_SERVER=https://userbo.isoftbet.com
47
+
48
+ # production: https://userbo-bh.isoftbet.com - again, our code will automatically add the /bonus_system/api path
49
+ # ISB_BONUS_API_SERVER=https://userbo-bh.isoftbet.com
50
+
51
+ # NOTE: the games list XML files are always to be pulled from the FUN URL never REAL URL.
52
+ # development: https://static-fun-ige.isoftbet.com/staging/
53
+ ISB_FUN_URL=https://static-fun-ige.isoftbet.com/staging/
54
+
55
+ # production: https://static-fun-ige.isoftbet.com/games/
56
+ # ISB_FUN_URL=https://static-fun-ige.isoftbet.com/games/
57
+
58
+ # development https://static-real.ige.isoftbet.com/staging/
59
+ ISB_REAL_URL=https://static-real-ige.isoftbet.com/staging/
60
+
61
+ # production: https://static-real-ige.isoftbet.com/games/
62
+ # ISB_REAL_URL=https://static-real-ige.isoftbet.com/games/
63
+
64
+ ISB_SECRET_KEY=51174add1c52758f33d414ceaf3fe6ba
65
+ ISB_BONUS_API_KEY=5b667d147a6427363a426cc2d03828c4
66
+ ISB_BONUS_SECRET_KEY=70bfbc92c25892a0feb20902e872a18b
67
+ ISB_SEAMLESS_SECRET_KEY=unused
68
+ ISB_SEAMLESS_API_SERVER=unused
69
+ ISB_LICENSEE_ID=54
70
+ ISB_CASINO_ID=igeau
71
+ # NOTE - this currently will callback to the office IP.
72
+ ISB_CALLBACK_ID=3
73
+ SAFECHARGE_SERVER_TEST=https://ppp-test.safecharge.com/ppp/purchase.do?
74
+ SAFECHARGE_SERVER_LIVE=https://secure.safecharge.com/ppp/purchase.do?
75
+ SAFECHARGE_SG_SERVER_TEST=https://test.safecharge.com/service.asmx/Process?
76
+ SAFECHARGE_SG_SERVER_LIVE=https://process.safecharge.com/service.asmx/Process?
77
+ SAFECHARGE_SECRET_KEY=AJGGYeb8ZOOjs0NndqXYe6Xe7gaJyhCnqbd94rYhVKDjmc8e8nb5uF1ocfyffjNZ
78
+ SAFECHARGE_MERCHANT_ID=3701887803592985798
79
+ # NOTE: Both of these point to testing.luckygoldfish.com's IP (83.222.249.233/dmn/callback) but 64391 is for https
80
+ # vs 64101 which is just http
81
+ # SAFECHARGE_MERCHANT_SITE_ID=64391
82
+ SAFECHARGE_MERCHANT_SITE_ID=64101
83
+ SAFECHARGE_MERCHANT_3D_SITE_ID=53001
84
+ SAFECHARGE_SG_CLIENT_LOGIN_ID=IGETestTRX
85
+ SAFECHARGE_SG_CLIENT_PASSWORD=bRG1fTFMkh
86
+ SAFECHARGE_SG_3D_CLIENT_PASSWORD=yfX5CcSfEY
87
+ SAFECHARGE_CPANEL_PASSWORD=24w8JiL4vu
88
+
89
+
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ige_isb_api (1.2.5)
4
+ ige_isb_api (1.2.6)
5
5
  nokogiri (~> 1.6)
6
6
  rfc-822 (~> 0.4)
7
7
 
@@ -9,20 +9,22 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  diff-lcs (1.2.5)
12
- dotenv (0.10.0)
12
+ dotenv (0.11.1)
13
+ dotenv-deployment (~> 0.0.2)
14
+ dotenv-deployment (0.0.2)
13
15
  mini_portile (0.6.0)
14
16
  nokogiri (1.6.3.1)
15
17
  mini_portile (= 0.6.0)
16
- rake (10.1.1)
18
+ rake (10.3.2)
17
19
  rfc-822 (0.4.0)
18
- rspec (2.14.1)
19
- rspec-core (~> 2.14.0)
20
- rspec-expectations (~> 2.14.0)
21
- rspec-mocks (~> 2.14.0)
22
- rspec-core (2.14.8)
23
- rspec-expectations (2.14.5)
20
+ rspec (2.99.0)
21
+ rspec-core (~> 2.99.0)
22
+ rspec-expectations (~> 2.99.0)
23
+ rspec-mocks (~> 2.99.0)
24
+ rspec-core (2.99.2)
25
+ rspec-expectations (2.99.2)
24
26
  diff-lcs (>= 1.1.3, < 2.0)
25
- rspec-mocks (2.14.6)
27
+ rspec-mocks (2.99.2)
26
28
 
27
29
  PLATFORMS
28
30
  ruby
@@ -93,7 +93,7 @@ module IGE_ISB_API
93
93
 
94
94
  def game_html5_url(mode)
95
95
  the_info = self.get_info(mode)
96
- return "#{IGE_ISB_API::Constants::SERVER[mode]}html/#{self.identifier}/#{self.identifier}_r#{the_info.swf_revision}/#{self.identifier}.html"
96
+ return "#{IGE_ISB_API::Constants::SERVER[mode]}html/#{self.main_category}/#{self.identifier}/#{self.identifier}_r#{the_info.swf_revision}/#{self.identifier}.html"
97
97
  end
98
98
 
99
99
  def game_swf_url(mode)
@@ -143,6 +143,7 @@ module IGE_ISB_API
143
143
  @casino = gn.xpath('casino').first.text
144
144
  @game_type = gn.xpath('type').first.text
145
145
  @wmode = gn.xpath('wmode').first.text
146
+ @main_category = gn.xpath('main_cat').first.text
146
147
  # mode specific info
147
148
  fun = gn.xpath('fun').first.text == '1'
148
149
  mode = fun ? :fun : :real
@@ -224,8 +225,8 @@ module IGE_ISB_API
224
225
  g.restricted_countries = node['rc'].split(', ')
225
226
  g.identifier = node['i']
226
227
  g.description = node.xpath('d').first.text
227
- mcn = node.xpath('main_cat').first
228
- g.main_category = mcn.text unless mcn.nil?
228
+ # mcn = node.xpath('main_cat').first
229
+ # g.main_category = mcn.text unless mcn.nil?
229
230
  g.translated = (node['translated'] == '1')
230
231
  g.language = g.translated? ? lang : IGE_ISB_API::Constants::DEFAULT_LANGUAGE
231
232
  return g
@@ -2,5 +2,5 @@
2
2
  #coding: utf-8
3
3
 
4
4
  module IGE_ISB_API
5
- VERSION = "1.2.5"
5
+ VERSION = "1.2.6"
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.5
4
+ version: 1.2.6
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-09-17 00:00:00.000000000 Z
14
+ date: 2014-09-24 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: nokogiri
@@ -108,6 +108,7 @@ executables: []
108
108
  extensions: []
109
109
  extra_rdoc_files: []
110
110
  files:
111
+ - .env
111
112
  - Gemfile
112
113
  - Gemfile.lock
113
114
  - LICENSE