wx_pay 0.12.0 → 0.13.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: 509e50b1a6926828e434a63bf8621fd853709ac0
4
- data.tar.gz: fee8d3226f9576f72209bcc74ed02b514483ecc2
3
+ metadata.gz: e95db40ec493b67c02224e1893f3e803b9b3800a
4
+ data.tar.gz: 84218553e6b09ffb68461be907206ccbeaf97bca
5
5
  SHA512:
6
- metadata.gz: 448dbfed70032ce996f2ec727f2af69ac2c2d9a0e03ee01baa4ec91a9f8b87c5dbd7340b5c6255fd216d8cb86c508d015c989abee0b3b707783e2ac5de4e54ed
7
- data.tar.gz: b203b3950ff9663896e8d4cde3ad2042cd525a418be4e4f0bc0978fb00fb5ab3c1a5a42810623f9b9ea25f0533950e9361dab8ca69b5b0d9a699b7a2ac44bf3f
6
+ metadata.gz: faff8161f1aec80bac124717abe1c0b2df69412d85a504f71a128b558a0f6229cd7179729b46247fcdafcfb1a471426256029c27014128d6e681671dcbd5fe06
7
+ data.tar.gz: 94d756ce877fc655e1adb6d403208673662ab8e039d7b296a52b4aab4053da0414446b46f233f5f91082b62cd253df414751778e5bb29f68f956b030a475bbda
data/lib/wx_pay/result.rb CHANGED
@@ -3,8 +3,10 @@ module WxPay
3
3
  SUCCESS_FLAG = 'SUCCESS'.freeze
4
4
 
5
5
  def initialize(result)
6
- super
6
+ super nil # Or it will call `super result`
7
7
 
8
+ self[:raw] = result
9
+
8
10
  if result['xml'].class == Hash
9
11
  result['xml'].each_pair do |k, v|
10
12
  self[k] = v
@@ -1,3 +1,3 @@
1
1
  module WxPay
2
- VERSION = "0.12.0"
2
+ VERSION = "0.13.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wx_pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jasl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-18 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client