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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f7cfb3bbcfdc094b1de8969a506125098e98436
4
- data.tar.gz: cea8ffc6330ce065ec706ab07adba2a8faa26c74
3
+ metadata.gz: cc6b329e0757511690b398a8bb83cdebd430362c
4
+ data.tar.gz: e060c2695da726cf344211c737feaf6468711507
5
5
  SHA512:
6
- metadata.gz: 36b1991a9fee64d5f91a3ff55f244b0766e8875bc15be6643aa2aba49258f284148af40cd8dd6ffc1670cbb0385a78deb33acc14f01bd15c1e68f5411329b1dc
7
- data.tar.gz: 6db9516e6b422ab98ea1aeb855fef0c383afecac9c5e256806282f7b7503ff7772fe3f7d463128a6e03fd6c9eced39031f82ebeafdbfc41ea93ea88c45157233
6
+ metadata.gz: c3f0aad343ab48a907d9b684e7de361cc9f3b07becd2564da0bbb47076cffb0899297da8332dcd0707bcecc49a7652f3250cfe22fbabf388696db1b4537589c2
7
+ data.tar.gz: e55f2c1857af8f515f856338b378351a4edf9e0bc038894860324803ca3b46bc5c021a2f49c9e48909be6e6b292a2de70bbb8f14d5573d93d9d0ef28fc2ad71b
@@ -19,12 +19,16 @@ module ChanPay
19
19
 
20
20
  private
21
21
 
22
- def self.link_hash(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
 
@@ -1,3 +1,3 @@
1
1
  module ChanPay
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
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.6.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: 2017-11-18 00:00:00.000000000 Z
11
+ date: 2018-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler