ige_isb_api 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ige_isb_api/bonus.rb +13 -1
- data/lib/ige_isb_api/constants.rb +3 -0
- data/lib/ige_isb_api/request.rb +10 -0
- 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: 3612eb905d3fee60cdb58b3a582701b9eb257d15
|
4
|
+
data.tar.gz: 0a624cd366dfb72cf565be40c181ce87f1d0e327
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dec65c16e523a323f31bc4f3221175eb55a3feccce05d456e79a1862dc80f14ba31b624fd5c59d41e5ed24eed60910d6201bce7b9eba79cb7321ebc148c7393b
|
7
|
+
data.tar.gz: eb15d8af4f25b93facdbd538a1374760f696578587049eaec07bcaf9e75e3d199fe6b3c78af7d012147500f3d557e6ac1f7a3e1f11875c1a7c6bf4eed9ace00e
|
data/Gemfile.lock
CHANGED
data/lib/ige_isb_api/bonus.rb
CHANGED
@@ -162,6 +162,10 @@ module IGE_ISB_API
|
|
162
162
|
# http.cert = OpenSSL::X509::Certificate.new(pem)
|
163
163
|
# http.key = OpenSSL::PKey::RSA.new(pem)
|
164
164
|
# http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
165
|
+
if IGE_ISB_API::Constants::DEBUGGING
|
166
|
+
puts "DEBUGGING: http = #{http.inspect}"
|
167
|
+
puts "DEBUGGING: self.request = #{self.request.inspect}"
|
168
|
+
end
|
165
169
|
return http.request(self.request)
|
166
170
|
end
|
167
171
|
|
@@ -234,10 +238,18 @@ module IGE_ISB_API
|
|
234
238
|
|
235
239
|
def construct_request
|
236
240
|
raise RuntimeError, "Missing environment variable 'ISOFTBET_BONUS_API_SERVER'" if IGE_ISB_API::Constants::BONUS_API_SERVER.nil?
|
237
|
-
|
241
|
+
the_url = "#{IGE_ISB_API::Constants::BONUS_API_SERVER}/bonus_system/api/#{self.command}"
|
242
|
+
uri = URI.parse(the_url)
|
238
243
|
# http = Net::HTTP.new(uri.host, uri.port)
|
239
244
|
self.request = Net::HTTP::Post.new(uri)
|
240
245
|
self.request.set_form_data(self.params)
|
246
|
+
if IGE_ISB_API::Constants::DEBUGGING
|
247
|
+
puts "DEBUGGING: self.command is #{self.command}"
|
248
|
+
puts "DEBUGGING: the_url is #{the_url}"
|
249
|
+
puts "DEBUGGING: uri is #{uri.inspect}"
|
250
|
+
puts "DEBUGGING: self.request is #{self.request.inspect}"
|
251
|
+
puts "DEBUGGING: self.request.body is #{self.request.body}"
|
252
|
+
end
|
241
253
|
end
|
242
254
|
|
243
255
|
end
|
data/lib/ige_isb_api/request.rb
CHANGED
@@ -107,6 +107,10 @@ module IGE_ISB_API
|
|
107
107
|
# http.cert = OpenSSL::X509::Certificate.new(pem)
|
108
108
|
# http.key = OpenSSL::PKey::RSA.new(pem)
|
109
109
|
# http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
110
|
+
if IGE_ISB_API::Constants::DEBUGGING
|
111
|
+
puts "DEBUGGING: http = #{http.inspect}"
|
112
|
+
puts "DEBUGGING: self.request = #{self.request.inspect}"
|
113
|
+
end
|
110
114
|
return http.request(self.request)
|
111
115
|
end
|
112
116
|
|
@@ -171,6 +175,12 @@ module IGE_ISB_API
|
|
171
175
|
# http = Net::HTTP.new(uri.host, uri.port)
|
172
176
|
self.request = Net::HTTP::Post.new(uri)
|
173
177
|
self.request.set_form_data(self.params)
|
178
|
+
if IGE_ISB_API::Constants::DEBUGGING
|
179
|
+
puts "DEBUGGING: the_url is #{IGE_ISB_API::Constants::API_SERVER}"
|
180
|
+
puts "DEBUGGING: uri is #{uri.inspect}"
|
181
|
+
puts "DEBUGGING: self.request is #{self.request.inspect}"
|
182
|
+
puts "DEBUGGING: self.request.body is #{self.request.body}"
|
183
|
+
end
|
174
184
|
end
|
175
185
|
|
176
186
|
end
|
data/lib/ige_isb_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ige_isb_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Sag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|