tin_alipay 1.0.0 → 2.4.1
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 +4 -4
- data/MIT-LICENSE +20 -0
- data/README.rdoc +52 -0
- data/Rakefile +32 -0
- data/lib/tasks/tin_alipay_tasks.rake +4 -0
- data/lib/tin_alipay/notify.rb +21 -0
- data/lib/tin_alipay/payment.rb +96 -0
- data/lib/tin_alipay/sign.rb +34 -0
- data/lib/tin_alipay/version.rb +3 -0
- data/lib/tin_alipay.rb +8 -12
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +78 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +5230 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/test_helper.rb +16 -0
- data/test/tin_alipay/notify_test.rb +53 -0
- data/test/tin_alipay/payment_test.rb +35 -0
- data/test/tin_alipay/sign_test.rb +40 -0
- data/test/tin_alipay_test.rb +12 -0
- metadata +139 -8
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
5
|
+
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
6
|
+
require "rails/test_help"
|
7
|
+
|
8
|
+
Rails.backtrace_cleaner.remove_silencers!
|
9
|
+
|
10
|
+
# Load support files
|
11
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
12
|
+
|
13
|
+
# Load fixtures from the engine
|
14
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
15
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
16
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TinAlipay::NotifyTest < ActiveSupport::TestCase
|
4
|
+
def setup
|
5
|
+
@options = {:notify_id => '1234'}
|
6
|
+
@sign_options = @options.merge(:sign_type => 'MD5', :sign => TinAlipay::Sign.excute_md5(@options))
|
7
|
+
|
8
|
+
@notify_id = 'notify_id_test'
|
9
|
+
@notify_params = {
|
10
|
+
:service => 'alipay.wap.trade.create.direct',
|
11
|
+
:v => '1.0',
|
12
|
+
:sec_id => 'MD5',
|
13
|
+
:notify_data => "<notify><notify_id>#{@notify_id}</notify_id><other_key>other_value</other_key></notify>"
|
14
|
+
}
|
15
|
+
query = [ :service, :v, :sec_id, :notify_data ].map {|key| "#{key}=#{@notify_params[key]}"}.join('&')
|
16
|
+
@sign_params = @notify_params.merge(:sign => Digest::MD5.hexdigest("#{query}#{TinAlipay.key}"))
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_verify_notify_pc_when_unsign
|
20
|
+
FakeWeb.register_uri(:get, "https://mapi.alipay.com/gateway.do?service=notify_verify&partner=#{TinAlipay.pid}¬ify_id=1234", :body => "true")
|
21
|
+
assert_not TinAlipay::Notify.verify?(@options)
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_verify_notify_pc_when_false
|
25
|
+
FakeWeb.register_uri(:get, "https://mapi.alipay.com/gateway.do?service=notify_verify&partner=#{TinAlipay.pid}¬ify_id=1234", :body => "false")
|
26
|
+
assert_not TinAlipay::Notify.verify?(@sign_options)
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_verify_notify_pc_when_true
|
30
|
+
FakeWeb.register_uri(:get, "https://mapi.alipay.com/gateway.do?service=notify_verify&partner=#{TinAlipay.pid}¬ify_id=1234", :body => "true")
|
31
|
+
assert TinAlipay::Notify.verify?(@sign_options)
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
def test_verify_notify_mobile_when_unsign
|
37
|
+
FakeWeb.register_uri(:get, "https://mapi.alipay.com/gateway.do?service=notify_verify&partner=#{TinAlipay.pid}¬ify_id=#{@notify_id}", :body => "true")
|
38
|
+
assert_not TinAlipay::Notify::Mobile.verify?(@notify_params)
|
39
|
+
end
|
40
|
+
|
41
|
+
def test_verify_notify_mobile_when_false
|
42
|
+
FakeWeb.register_uri(:get, "https://mapi.alipay.com/gateway.do?service=notify_verify&partner=#{TinAlipay.pid}¬ify_id=#{@notify_id}", :body => "false")
|
43
|
+
assert_not TinAlipay::Notify::Mobile.verify?(@sign_params)
|
44
|
+
end
|
45
|
+
|
46
|
+
def test_verify_notify_mobile_when_true
|
47
|
+
FakeWeb.register_uri(:get, "https://mapi.alipay.com/gateway.do?service=notify_verify&partner=#{TinAlipay.pid}¬ify_id=#{@notify_id}", :body => "true")
|
48
|
+
assert TinAlipay::Notify::Mobile.verify?(@sign_params)
|
49
|
+
end
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TinAlipay::PaymentTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
def test_create_direct_pay_pc_url
|
6
|
+
options = {
|
7
|
+
:out_trade_no => '1',
|
8
|
+
:subject => 'test',
|
9
|
+
:price => '0.01',
|
10
|
+
:quantity => 1,
|
11
|
+
:notify_url => 'http://www.xxxx.com/notify_call_back',
|
12
|
+
:return_url => 'http://www.xxxx.com/call_back'
|
13
|
+
}
|
14
|
+
assert_not_nil TinAlipay::Payment.create_direct_pay_pc_url(options)
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_create_direct_pay_mobile_url
|
18
|
+
token = 'REQUEST_TOKEN'
|
19
|
+
FakeWeb.register_uri(
|
20
|
+
:get,%r|https://wappaygw\.alipay\.com/service/rest\.htm.*|,
|
21
|
+
:body=>"res_data=<request_token>#{token}</request_token>"
|
22
|
+
)
|
23
|
+
options={
|
24
|
+
:req_data => {
|
25
|
+
:out_trade_no => '1',
|
26
|
+
:subject => 'subject',
|
27
|
+
:total_fee => '0.01',
|
28
|
+
:notify_url => "http://www.xxxx.com/notify_call_back",
|
29
|
+
:call_back_url => 'http://www.xxxx.com/call_back'
|
30
|
+
}}
|
31
|
+
assert_equal token,TinAlipay::Payment.mobile_request_token(options)
|
32
|
+
assert_not_nil TinAlipay::Payment.create_direct_pay_mobile_url(options)
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TinAlipay::SignTest < ActiveSupport::TestCase
|
4
|
+
def setup
|
5
|
+
@params = {
|
6
|
+
:service => 'tin_test',
|
7
|
+
:partner => '123'
|
8
|
+
}
|
9
|
+
@sign = Digest::MD5.hexdigest("partner=123&service=tin_test#{TinAlipay.key}")
|
10
|
+
|
11
|
+
@params_mobile = {
|
12
|
+
:v => '1.0',
|
13
|
+
:sec_id => 'MD5',
|
14
|
+
:service => 'tin_test',
|
15
|
+
:notify_data => 'notify_data'
|
16
|
+
}
|
17
|
+
@sign_mobile = Digest::MD5.hexdigest("service=tin_test&v=1.0&sec_id=MD5¬ify_data=notify_data#{TinAlipay.key}")
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_excute_md5_sign
|
21
|
+
assert_equal @sign, TinAlipay::Sign.excute_md5(@params)
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_verify_sign
|
25
|
+
assert TinAlipay::Sign.verify?(@params.merge(:sign => @sign))
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_verify_sign_when_fails
|
29
|
+
assert_not TinAlipay::Sign.verify?(@params.merge(:danger => 'danger', :sign => @sign))
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_verify_sign_mobile
|
33
|
+
assert_not TinAlipay::Sign::Mobile.verify?(@params_mobile.merge(:sign => @sign_mobile, :whatever => 'x',:danger => 'danger'))
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_verify_sign_mobile
|
37
|
+
assert TinAlipay::Sign::Mobile.verify?(@params_mobile.merge(:sign => @sign_mobile, :whatever => 'x'))
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'fakeweb'
|
3
|
+
|
4
|
+
class TinAlipayTest < ActiveSupport::TestCase
|
5
|
+
TinAlipay.pid = 'alipay_pid'
|
6
|
+
TinAlipay.key = 'alipay_key'
|
7
|
+
TinAlipay.seller_email = '107191613@qq.com'
|
8
|
+
|
9
|
+
test "truth" do
|
10
|
+
assert_kind_of Module, TinAlipay
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,23 +1,114 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tin_alipay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.1.8
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.1.8
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: fakeweb
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: The alipay directly payment web&mobile gem.
|
56
|
+
email:
|
57
|
+
- 107191613@qq.com
|
15
58
|
executables: []
|
16
59
|
extensions: []
|
17
60
|
extra_rdoc_files: []
|
18
61
|
files:
|
62
|
+
- MIT-LICENSE
|
63
|
+
- README.rdoc
|
64
|
+
- Rakefile
|
65
|
+
- lib/tasks/tin_alipay_tasks.rake
|
19
66
|
- lib/tin_alipay.rb
|
20
|
-
|
67
|
+
- lib/tin_alipay/notify.rb
|
68
|
+
- lib/tin_alipay/payment.rb
|
69
|
+
- lib/tin_alipay/sign.rb
|
70
|
+
- lib/tin_alipay/version.rb
|
71
|
+
- test/dummy/README.rdoc
|
72
|
+
- test/dummy/Rakefile
|
73
|
+
- test/dummy/app/assets/javascripts/application.js
|
74
|
+
- test/dummy/app/assets/stylesheets/application.css
|
75
|
+
- test/dummy/app/controllers/application_controller.rb
|
76
|
+
- test/dummy/app/helpers/application_helper.rb
|
77
|
+
- test/dummy/app/views/layouts/application.html.erb
|
78
|
+
- test/dummy/bin/bundle
|
79
|
+
- test/dummy/bin/rails
|
80
|
+
- test/dummy/bin/rake
|
81
|
+
- test/dummy/config.ru
|
82
|
+
- test/dummy/config/application.rb
|
83
|
+
- test/dummy/config/boot.rb
|
84
|
+
- test/dummy/config/database.yml
|
85
|
+
- test/dummy/config/environment.rb
|
86
|
+
- test/dummy/config/environments/development.rb
|
87
|
+
- test/dummy/config/environments/production.rb
|
88
|
+
- test/dummy/config/environments/test.rb
|
89
|
+
- test/dummy/config/initializers/assets.rb
|
90
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
91
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
92
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
93
|
+
- test/dummy/config/initializers/inflections.rb
|
94
|
+
- test/dummy/config/initializers/mime_types.rb
|
95
|
+
- test/dummy/config/initializers/session_store.rb
|
96
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
97
|
+
- test/dummy/config/locales/en.yml
|
98
|
+
- test/dummy/config/routes.rb
|
99
|
+
- test/dummy/config/secrets.yml
|
100
|
+
- test/dummy/db/test.sqlite3
|
101
|
+
- test/dummy/log/test.log
|
102
|
+
- test/dummy/public/404.html
|
103
|
+
- test/dummy/public/422.html
|
104
|
+
- test/dummy/public/500.html
|
105
|
+
- test/dummy/public/favicon.ico
|
106
|
+
- test/test_helper.rb
|
107
|
+
- test/tin_alipay/notify_test.rb
|
108
|
+
- test/tin_alipay/payment_test.rb
|
109
|
+
- test/tin_alipay/sign_test.rb
|
110
|
+
- test/tin_alipay_test.rb
|
111
|
+
homepage: https://github.com/tingi/tin_alipay
|
21
112
|
licenses:
|
22
113
|
- MIT
|
23
114
|
metadata: {}
|
@@ -40,5 +131,45 @@ rubyforge_project:
|
|
40
131
|
rubygems_version: 2.2.2
|
41
132
|
signing_key:
|
42
133
|
specification_version: 4
|
43
|
-
summary:
|
44
|
-
test_files:
|
134
|
+
summary: The alipay directly payment web&mobile gem.
|
135
|
+
test_files:
|
136
|
+
- test/dummy/app/assets/javascripts/application.js
|
137
|
+
- test/dummy/app/assets/stylesheets/application.css
|
138
|
+
- test/dummy/app/controllers/application_controller.rb
|
139
|
+
- test/dummy/app/helpers/application_helper.rb
|
140
|
+
- test/dummy/app/views/layouts/application.html.erb
|
141
|
+
- test/dummy/bin/bundle
|
142
|
+
- test/dummy/bin/rails
|
143
|
+
- test/dummy/bin/rake
|
144
|
+
- test/dummy/config/application.rb
|
145
|
+
- test/dummy/config/boot.rb
|
146
|
+
- test/dummy/config/database.yml
|
147
|
+
- test/dummy/config/environment.rb
|
148
|
+
- test/dummy/config/environments/development.rb
|
149
|
+
- test/dummy/config/environments/production.rb
|
150
|
+
- test/dummy/config/environments/test.rb
|
151
|
+
- test/dummy/config/initializers/assets.rb
|
152
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
153
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
154
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
155
|
+
- test/dummy/config/initializers/inflections.rb
|
156
|
+
- test/dummy/config/initializers/mime_types.rb
|
157
|
+
- test/dummy/config/initializers/session_store.rb
|
158
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
159
|
+
- test/dummy/config/locales/en.yml
|
160
|
+
- test/dummy/config/routes.rb
|
161
|
+
- test/dummy/config/secrets.yml
|
162
|
+
- test/dummy/config.ru
|
163
|
+
- test/dummy/db/test.sqlite3
|
164
|
+
- test/dummy/log/test.log
|
165
|
+
- test/dummy/public/404.html
|
166
|
+
- test/dummy/public/422.html
|
167
|
+
- test/dummy/public/500.html
|
168
|
+
- test/dummy/public/favicon.ico
|
169
|
+
- test/dummy/Rakefile
|
170
|
+
- test/dummy/README.rdoc
|
171
|
+
- test/test_helper.rb
|
172
|
+
- test/tin_alipay/notify_test.rb
|
173
|
+
- test/tin_alipay/payment_test.rb
|
174
|
+
- test/tin_alipay/sign_test.rb
|
175
|
+
- test/tin_alipay_test.rb
|