rock_fintech 0.9.0 → 0.10.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '099ba97f2c001d14cea9901a5fbb6c934eea9520'
4
- data.tar.gz: 9f5d1f5c2f0a86aff766a471bafbe73cfffa9395
3
+ metadata.gz: cc40be3b2af85f4843dfaf5fc932a78cd000395c
4
+ data.tar.gz: '0597041ea4bbdaee1893c8868e1fa143a2f89ceb'
5
5
  SHA512:
6
- metadata.gz: a40c262ed04344cf3758234533aeac9d49686d2205670db00fc696d180ccc3a6f504d96f36591ee34566cc8132fc36702b333f4aac03a54104a74ec90493751d
7
- data.tar.gz: 2e6e03460734da41c6aa2ff01f8ba076b3e7a4cd33ef30792d271ff360863a5aa9a5608e0108e1f310e8dbf9d0a3a42e953cbd39e5f54d036bdda4dcab8c9e44
6
+ metadata.gz: 37c9d752479e3bfda840038121aa1a7e59393d9e06f25400ff52d55c74fbd75fa38438203546352859335224eef3e6427fb22b71f3923f31d5cf81c71b31b71e
7
+ data.tar.gz: c44cabb59fe3ca70adc5242e34bbbd1688ca2a0a7e47bf4529126e048d6818e234a64af3fa1f56e0d96df9a929090b5f8bea886ce4d9f928cf17e1521990f5bb
@@ -29,6 +29,7 @@ module RockFintech
29
29
  encode: ENCODE,
30
30
  version: @version,
31
31
  }.merge(@params)
32
+
32
33
  sign_str = Sign.sign(sign_body, @config)
33
34
 
34
35
  # 3. merge sign
@@ -14,7 +14,8 @@ module RockFintech
14
14
 
15
15
  private
16
16
 
17
- def self.serialize(data)
17
+ def self.serialize(data_in)
18
+ data = Marshal.load( Marshal.dump(data_in) ) # deep clone, not affect original data
18
19
  data = Hash[data.sort] # key 按照 alphabet 排序
19
20
 
20
21
  data.each{ |k, v|
@@ -1,3 +1,3 @@
1
1
  module RockFintech
2
- VERSION = "0.9.0"
2
+ VERSION = "0.10.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rock_fintech
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chenpengyu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-07 00:00:00.000000000 Z
11
+ date: 2018-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler