suning_pay 0.3.1 → 0.3.2
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 +4 -4
- data/README.md +1 -1
- data/lib/suning_pay/util.rb +3 -2
- data/lib/suning_pay/version.rb +1 -1
- data/suning_pay.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 38850acc8a1b1623c68ac8b15d5053dcab8685c4
|
|
4
|
+
data.tar.gz: 35bdce9eddc6623abdf9baafa7acdda6de464e3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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/
|
|
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
|
|
data/lib/suning_pay/util.rb
CHANGED
|
@@ -64,11 +64,12 @@ module SuningPay
|
|
|
64
64
|
html_response = response.body
|
|
65
65
|
|
|
66
66
|
if SuningPay.debug_mode
|
|
67
|
-
|
|
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.
|
|
72
|
+
logger.info("RESPONSE:#{html_response.force_encoding('UTF-8')}")
|
|
72
73
|
end
|
|
73
74
|
|
|
74
75
|
begin
|
data/lib/suning_pay/version.rb
CHANGED
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://
|
|
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.
|
|
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-
|
|
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://
|
|
120
|
+
homepage: https://github.com/tuminfei/suning_pay
|
|
121
121
|
licenses:
|
|
122
122
|
- MIT
|
|
123
123
|
metadata: {}
|