chan_pay 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chan_pay/sign/rsa.rb +5 -1
- data/lib/chan_pay/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: cc6b329e0757511690b398a8bb83cdebd430362c
|
4
|
+
data.tar.gz: e060c2695da726cf344211c737feaf6468711507
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3f0aad343ab48a907d9b684e7de361cc9f3b07becd2564da0bbb47076cffb0899297da8332dcd0707bcecc49a7652f3250cfe22fbabf388696db1b4537589c2
|
7
|
+
data.tar.gz: e55f2c1857af8f515f856338b378351a4edf9e0bc038894860324803ca3b46bc5c021a2f49c9e48909be6e6b292a2de70bbb8f14d5573d93d9d0ef28fc2ad71b
|
data/lib/chan_pay/sign/rsa.rb
CHANGED
@@ -19,12 +19,16 @@ module ChanPay
|
|
19
19
|
|
20
20
|
private
|
21
21
|
|
22
|
-
def self.link_hash(
|
22
|
+
def self.link_hash(hash_in)
|
23
|
+
hash = Marshal.load Marshal.dump(hash_in)
|
23
24
|
hash.delete_if do |key, value|
|
24
25
|
key == :Sign || key == :SignType || value.nil? || value == ''
|
25
26
|
end
|
26
27
|
values = []
|
27
28
|
hash.sort.to_h.each{|k,v|
|
29
|
+
if v.kind_of?(Hash)
|
30
|
+
v = v.to_json
|
31
|
+
end
|
28
32
|
values << "#{k}=#{v}"
|
29
33
|
}
|
30
34
|
|
data/lib/chan_pay/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chan_pay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tony
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|