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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84c6467a7cd004f3991d034b5f76ace9534982d4
4
- data.tar.gz: 402a1cb4fcb28ff0828f7c8091daa0a931506c40
3
+ metadata.gz: 3612eb905d3fee60cdb58b3a582701b9eb257d15
4
+ data.tar.gz: 0a624cd366dfb72cf565be40c181ce87f1d0e327
5
5
  SHA512:
6
- metadata.gz: 81b257735132fb968eb47190b8d49bff3af8d9e46e16667af00fb0705be5eeb73d9ddeb10b8ed91abc94e4f8e329aa43e49034b3c331c275565c5b87d80767f4
7
- data.tar.gz: a0c6a12fac087650b401b7fa4dad7b5489accea73d934fd0949b9a5906c7d676cbf034bc3bedebf26477d95db09512a4fa700db5cc3461577f4ea8a2a862a9b3
6
+ metadata.gz: dec65c16e523a323f31bc4f3221175eb55a3feccce05d456e79a1862dc80f14ba31b624fd5c59d41e5ed24eed60910d6201bce7b9eba79cb7321ebc148c7393b
7
+ data.tar.gz: eb15d8af4f25b93facdbd538a1374760f696578587049eaec07bcaf9e75e3d199fe6b3c78af7d012147500f3d557e6ac1f7a3e1f11875c1a7c6bf4eed9ace00e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ige_isb_api (1.1.8)
4
+ ige_isb_api (1.1.9)
5
5
  nokogiri (~> 1.6)
6
6
  rfc-822 (~> 0.4)
7
7
 
@@ -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
- uri = URI.parse("#{IGE_ISB_API::Constants::BONUS_API_SERVER}/bonus_system/api/#{self.command}")
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
@@ -3,6 +3,9 @@
3
3
 
4
4
  module IGE_ISB_API
5
5
  class Constants
6
+
7
+ DEBUGGING = (ENV['ISB_DEBUGGING'] == 'true')
8
+
6
9
  USER_API_VERSION = '2.3'
7
10
  BONUS_API_VERSION = '1.5'
8
11
 
@@ -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
@@ -2,5 +2,5 @@
2
2
  #coding: utf-8
3
3
 
4
4
  module IGE_ISB_API
5
- VERSION = "1.1.8"
5
+ VERSION = "1.1.9"
6
6
  end
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.8
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-26 00:00:00.000000000 Z
11
+ date: 2014-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri