suning_pay 0.3.1 → 0.3.2

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: 9d08ccdbeacfd4700b58052e65b068d863cb350f
4
- data.tar.gz: 93fb05887b89199efffd6919da1d768b9c036112
3
+ metadata.gz: 38850acc8a1b1623c68ac8b15d5053dcab8685c4
4
+ data.tar.gz: 35bdce9eddc6623abdf9baafa7acdda6de464e3d
5
5
  SHA512:
6
- metadata.gz: 81ed60599580d3668002883a7d756c6e53c5cda96b323614a6f4cdbcde1d921d3bd49f8ecc215e34ef35c37d8abfdeae9960e7a404d3023a3b41eaa0a9976916
7
- data.tar.gz: 984db1e1039a57ca8c41befbd659669fc3c91e76e09449227f79b4b070f798ef65fbcf8ff7813efe5d93a5ebd98e9115822d90c229249b710e840dd3a0c04f96
6
+ metadata.gz: 2e9ed3876db66cb6dab7cf7ffeda5da1abf984d213330836af29719d3a2397d5a0b4ad3c0f3cb7aeba0e5530806d41f9179623d3915ddb1f39d003160b1a83a5
7
+ data.tar.gz: 0a1b9723f74cfa0d3fed7ad5506ec691f7bd9c3ced475c163dd629c292e5d93b97b4f3c0a8dd4a9bb2ef56efbdec08bdd4797e025dd76f250afb829ab8f60cc0
data/README.md CHANGED
@@ -107,7 +107,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
107
107
 
108
108
  ## Contributing
109
109
 
110
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/suning_pay. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
110
+ Bug reports and pull requests are welcome on GitHub at https://github.com/tuminfei/suning_pay. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
111
111
 
112
112
  ## License
113
113
 
@@ -64,11 +64,12 @@ module SuningPay
64
64
  html_response = response.body
65
65
 
66
66
  if SuningPay.debug_mode
67
- logger = Logger.new('suning_pay.log')
67
+ log_file = File.join(Rails.root, "log", "suning_pay.log")
68
+ logger = Logger.new(log_file)
68
69
  logger.info('--------------SUNING PAY DEBUG--------------')
69
70
  logger.info("URL:#{api_url.to_s}")
70
71
  logger.info("PARAMS:#{func_params.to_s}")
71
- logger.info("RESPONSE:#{html_response.to_s}")
72
+ logger.info("RESPONSE:#{html_response.force_encoding('UTF-8')}")
72
73
  end
73
74
 
74
75
  begin
@@ -1,3 +1,3 @@
1
1
  module SuningPay
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
data/suning_pay.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{Suning Pay 1.1.2 doc.}
13
13
  spec.description = %q{Suning Pay 1.1.2 doc.}
14
- spec.homepage = "https://gitee.com/tarzansos/suning_pay"
14
+ spec.homepage = "https://github.com/tuminfei/suning_pay"
15
15
  spec.license = "MIT"
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suning_pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry.Tu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-17 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -117,7 +117,7 @@ files:
117
117
  - lib/suning_pay/version.rb
118
118
  - suning_pay.gemspec
119
119
  - suning_pay.rb
120
- homepage: https://gitee.com/tarzansos/suning_pay
120
+ homepage: https://github.com/tuminfei/suning_pay
121
121
  licenses:
122
122
  - MIT
123
123
  metadata: {}