alipay_global 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +6 -7
- data/alipay_global.gemspec +0 -1
- data/lib/alipay_global/service/notification.rb +3 -0
- data/lib/alipay_global/version.rb +1 -1
- data/test/utils_test.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad843ac2c3089ede0f911c6430269cdbfd1d4518
|
4
|
+
data.tar.gz: a8c7096d475a52cfa08dbb70f328a096a0e2202e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c706cda76ad9a1848bbc2ef3ea1653e2d255751254eec9b0b21d78558fa74a012bc5e93d9520e092c8b9d49906c92ca82155075152fe279751b1cc0eb2066b5f
|
7
|
+
data.tar.gz: b07e6fac57ec6d969647eeaaa56ef9d0e9992a1d7ebe67a53fa5a570318b53fee7d8b31a5492aa297b3fae6efa1457c3b37a82fe376cb33d5e1da56aa0b903f6
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
The MIT License
|
1
|
+
The MIT License
|
2
2
|
|
3
|
-
Copyright (c) 2015
|
3
|
+
Copyright (c) 2014-2015 Kaligo Private Limited. https://www.kaligo.com/
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -9,14 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
9
|
copies of the Software, and to permit persons to whom the Software is
|
10
10
|
furnished to do so, subject to the following conditions:
|
11
11
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
copies or substantial portions of the Software.
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
14
|
|
15
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
SOFTWARE.
|
22
|
-
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/alipay_global.gemspec
CHANGED
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "minitest"
|
24
|
-
spec.add_development_dependency "rspec"
|
25
24
|
spec.add_development_dependency "fakeweb"
|
26
25
|
spec.add_development_dependency "nokogiri"
|
27
26
|
end
|
@@ -10,6 +10,9 @@ module AlipayGlobal
|
|
10
10
|
'partner' => AlipayGlobal.api_partner_id,
|
11
11
|
}.merge(params)
|
12
12
|
|
13
|
+
Rails.logger.debug AlipayGlobal::Service.request_uri(params,false)
|
14
|
+
Rails.logger.debug Net::HTTP.get(AlipayGlobal::Service.request_uri(params,false))
|
15
|
+
|
13
16
|
Net::HTTP.get(AlipayGlobal::Service.request_uri(params,false))
|
14
17
|
end
|
15
18
|
|
data/test/utils_test.rb
CHANGED
@@ -16,7 +16,7 @@ describe "AlipayGlobal::Utils", "service functions" do
|
|
16
16
|
it "should write the file correctly" do
|
17
17
|
sample_refunds = [
|
18
18
|
{ new_transaction_id: '111222333', old_transaction_id: '444555666', currency: 'USD', refund_sum: 200.00, refund_time: '20120330235959', refund_reason: 'bello minions' },
|
19
|
-
{ new_transaction_id: '111222333', old_transaction_id: '444555667', currency: 'USD', refund_sum: 150.
|
19
|
+
{ new_transaction_id: '111222333', old_transaction_id: '444555667', currency: 'USD', refund_sum: 150.0, refund_time: '20120330235959' }
|
20
20
|
]
|
21
21
|
|
22
22
|
assert_equal "2088101122136241|111222333|444555666|USD|200.00|20120330235959|bello minions\n2088101122136241|111222333|444555667|USD|150.00|20120330235959|", @alipay::Utils.write_refund_content(sample_refunds)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alipay_global
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Melvrick Goh, Ng Junyang, Grzegorz Witek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: fakeweb
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|