leshua_pay 0.0.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 +7 -0
- data/.gitignore +22 -0
- data/.travis.yml +16 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/LICENSE.txt +22 -0
- data/README.md +84 -0
- data/Rakefile +12 -0
- data/leshua_pay.gemspec +34 -0
- data/lib/leshua_pay.rb +25 -0
- data/lib/leshua_pay/service.rb +98 -0
- data/lib/leshua_pay/sign.rb +26 -0
- data/lib/leshua_pay/utils.rb +13 -0
- data/lib/leshua_pay/version.rb +3 -0
- data/spec/leshua_pay/sign_spec.rb +24 -0
- data/spec/leshua_pay/utils_spec.rb +7 -0
- data/spec/spec_helper.rb +7 -0
- metadata +217 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5a53ae13d626b0bc0673f7b008448d79e42f114b
|
4
|
+
data.tar.gz: 525108a9ff39aee947fbaf551b509ce1f072e907
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 47a7c4a8855d0663f2e11a155d2428f931c77fae3fd4664309d636b636913e3fd17a5079b2b6e37bbe906868fa46c67153ac35b0def384139eb2f8c2b78410a7
|
7
|
+
data.tar.gz: 3bef41811ac21014d4d4d14b7379d59ba73dbaa98ad9ee9573084ffdecd969a32d32acf57927ecf5fdcea17bb22e28ba8c4f47a31c1d3fe3fdbc9c098af1873b
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Strikingly.com
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
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 THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Junchen Xia
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# LeshuaPay
|
2
|
+
|
3
|
+
[](https://travis-ci.org/user-tony/leshua-pay)[](http://inch-ci.org/github/user-tony/leshua-pay)
|
4
|
+
|
5
|
+
|
6
|
+
A gem to deal with LeshuaPay. The LeshuaPay official document can be found [here](https://www.yeahka.com/leshua_index.html). You will receive the backend document when you get the LeshuaPay access.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Add this line to your application's Gemfile:
|
11
|
+
|
12
|
+
gem 'leshua_pay', '~> 0.0.1'
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install leshua_pay
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
|
25
|
+
### Configuration
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
LeshuaPay.configure do |w|
|
29
|
+
w.app_id = 'sdfadfasfd'
|
30
|
+
w.mch_id = '0000000018'
|
31
|
+
w.payment_key = 'a1613a0e7cb9d3a51e33784ee4d212ac'
|
32
|
+
end
|
33
|
+
```
|
34
|
+
|
35
|
+
The params contains:
|
36
|
+
|
37
|
+
- app_id: 公众账号ID
|
38
|
+
- mch_id: 微信商户账号
|
39
|
+
- payment_key: 商户支付秘钥
|
40
|
+
|
41
|
+
### 扫码支付
|
42
|
+
```ruby
|
43
|
+
options = {
|
44
|
+
body: 'awesome product name'
|
45
|
+
third_order_id: '20150101030320204',
|
46
|
+
amount: 100, # in cents
|
47
|
+
client_ip: '127.0.0.1',
|
48
|
+
notify_url: 'http://example.com/notify',
|
49
|
+
}
|
50
|
+
|
51
|
+
body = LeshuaPay::Service.scan_code_pay(options)
|
52
|
+
```
|
53
|
+
|
54
|
+
### 条码支付
|
55
|
+
```ruby
|
56
|
+
options = {
|
57
|
+
body: 'awesome product name'
|
58
|
+
third_order_id: '20150101030320204',
|
59
|
+
auth_code: 'http://www.baidu.com',
|
60
|
+
amount: 100,
|
61
|
+
client_ip: '127.0.0.1',
|
62
|
+
notify_url: 'http://example.com/notify',
|
63
|
+
}
|
64
|
+
|
65
|
+
body = LeshuaPay::Service.barcode_pay(options)
|
66
|
+
|
67
|
+
```
|
68
|
+
|
69
|
+
### Refund/退款
|
70
|
+
```ruby
|
71
|
+
options = {
|
72
|
+
third_order_id: "asdfwfa3231214",
|
73
|
+
refund_amount: 1,
|
74
|
+
merchant_refund_id: SecureRandom.base64(64)
|
75
|
+
}
|
76
|
+
LeshuaPay::Service.refund(options)
|
77
|
+
|
78
|
+
## Contributing
|
79
|
+
|
80
|
+
1. Fork it ( https://github.com/[my-github-username]/LeshuaPay/fork )
|
81
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
82
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
83
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
84
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'rspec/core/rake_task'
|
2
|
+
require 'bundler/gem_tasks'
|
3
|
+
|
4
|
+
# Default directory to look in is `/specs`
|
5
|
+
# Run with `rake spec`
|
6
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
7
|
+
t.rspec_opts = ['--color']
|
8
|
+
t.verbose = false
|
9
|
+
end
|
10
|
+
|
11
|
+
task :default => :spec
|
12
|
+
|
data/leshua_pay.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'leshua_pay/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "leshua_pay"
|
8
|
+
spec.version = LeshuaPay::VERSION
|
9
|
+
spec.authors = ["Tony Tong"]
|
10
|
+
spec.email = ["tony.tong@striking.ly"]
|
11
|
+
spec.summary = %q{A gem to deal with leshua payment.}
|
12
|
+
spec.homepage = "https://github.com/user-tony/leshua-pay"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_dependency 'activesupport'
|
21
|
+
spec.add_dependency 'builder'
|
22
|
+
spec.add_dependency 'httparty'
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
25
|
+
spec.add_development_dependency "rake"
|
26
|
+
|
27
|
+
spec.add_development_dependency "rspec"
|
28
|
+
spec.add_development_dependency "pry"
|
29
|
+
spec.add_development_dependency "pry-remote"
|
30
|
+
spec.add_development_dependency "pry-nav"
|
31
|
+
|
32
|
+
spec.add_development_dependency "fakeweb"
|
33
|
+
spec.add_development_dependency "awesome_print"
|
34
|
+
end
|
data/lib/leshua_pay.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require "leshua_pay/version"
|
2
|
+
require "leshua_pay/sign"
|
3
|
+
require "leshua_pay/utils"
|
4
|
+
require "leshua_pay/service"
|
5
|
+
|
6
|
+
module LeshuaPay
|
7
|
+
|
8
|
+
class Config
|
9
|
+
|
10
|
+
API_HOST = 'http://testlepos.yeahka.com:43102'
|
11
|
+
LEPOS_PAY_GATEWAY_URL = API_HOST + '/cgi-bin/lepos_pay_gateway.cgi'
|
12
|
+
|
13
|
+
class << self
|
14
|
+
attr_accessor :app_id, :mch_id, :payment_key
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
class << self
|
20
|
+
def configure
|
21
|
+
yield Config if block_given?
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
require 'active_support/core_ext/hash'
|
2
|
+
require 'httparty'
|
3
|
+
|
4
|
+
module LeshuaPay
|
5
|
+
module Service
|
6
|
+
|
7
|
+
class InvalidResponseError < StandardError; end
|
8
|
+
|
9
|
+
class << self
|
10
|
+
|
11
|
+
def scan_code_pay opt
|
12
|
+
options = {
|
13
|
+
merchant_id: Config.mch_id,
|
14
|
+
nonce_str: SecureRandom.base64(16),
|
15
|
+
service: 'get_tdcode',
|
16
|
+
pay_way: 'WXZF',
|
17
|
+
appid: Config.app_id,
|
18
|
+
body: 'LeshuaPay',
|
19
|
+
jspay_flag: 0,
|
20
|
+
}
|
21
|
+
|
22
|
+
ext_opt = opt.slice(
|
23
|
+
:pay_way, :sub_openid, :third_order_id, :body, :client_ip, :amount, :notify_url,
|
24
|
+
:callback_url, :goods_tag, :limit_pay, :shop_no, :pos_no, :attach, :app_id)
|
25
|
+
|
26
|
+
options = options.merge ext_opt
|
27
|
+
http_post(Config::LEPOS_PAY_GATEWAY_URL, Sign.signature(options))
|
28
|
+
end
|
29
|
+
|
30
|
+
def barcode_pay opt
|
31
|
+
options = {
|
32
|
+
merchant_id: Config.mch_id,
|
33
|
+
nonce_str: SecureRandom.base64(16),
|
34
|
+
service: 'upload_authcode',
|
35
|
+
appid: Config.app_id,
|
36
|
+
body: 'LeshuaPay',
|
37
|
+
}
|
38
|
+
|
39
|
+
ext_opt = opt.slice(
|
40
|
+
:pay_way, :auth_code, :third_order_id, :body, :client_ip, :amount, :notify_url,
|
41
|
+
:callback_url, :goods_tag, :limit_pay, :shop_no, :pos_no, :attach, :app_id)
|
42
|
+
|
43
|
+
options = options.merge ext_opt
|
44
|
+
http_post(Config::LEPOS_PAY_GATEWAY_URL, Sign.signature(options))
|
45
|
+
end
|
46
|
+
|
47
|
+
def query_order order_id
|
48
|
+
options = {
|
49
|
+
merchant_id: Config.mch_id,
|
50
|
+
service: 'query_status',
|
51
|
+
third_order_id: order_id,
|
52
|
+
nonce_str: SecureRandom.base64(16),
|
53
|
+
}
|
54
|
+
|
55
|
+
http_post(Config::LEPOS_PAY_GATEWAY_URL, Sign.signature(options))
|
56
|
+
end
|
57
|
+
|
58
|
+
def refund opt
|
59
|
+
options = {
|
60
|
+
merchant_id: Config.mch_id,
|
61
|
+
nonce_str: SecureRandom.base64(16),
|
62
|
+
service: 'unified_refund',
|
63
|
+
}
|
64
|
+
|
65
|
+
ext_opt = opt.slice(:third_order_id, :leshua_order_id, :notify_url, :refund_amount, :merchant_refund_id, :leshua_refund_id)
|
66
|
+
|
67
|
+
options = options.merge ext_opt
|
68
|
+
|
69
|
+
http_post(Config::LEPOS_PAY_GATEWAY_URL, Sign.signature(options))
|
70
|
+
end
|
71
|
+
|
72
|
+
def unified_query_refund opt
|
73
|
+
options = {
|
74
|
+
merchant_id: Config.mch_id,
|
75
|
+
nonce_str: SecureRandom.base64(16),
|
76
|
+
service: 'unified_query_refund',
|
77
|
+
}
|
78
|
+
|
79
|
+
ext_opt = opt.slice(:third_order_id, :leshua_order_id, :merchant_refund_id, :leshua_refund_id)
|
80
|
+
|
81
|
+
options = options.merge ext_opt
|
82
|
+
|
83
|
+
http_post(Config::LEPOS_PAY_GATEWAY_URL, Sign.signature(options))
|
84
|
+
end
|
85
|
+
|
86
|
+
private
|
87
|
+
|
88
|
+
def http_post url, body
|
89
|
+
response = HTTParty.post(
|
90
|
+
url,
|
91
|
+
body: body,
|
92
|
+
headers: { 'Content-Type' => 'application/x-www-form-urlencoded' }
|
93
|
+
)
|
94
|
+
Hash.from_xml(response.body)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module LeshuaPay
|
2
|
+
module Sign
|
3
|
+
|
4
|
+
class << self
|
5
|
+
|
6
|
+
def to_param options
|
7
|
+
options.select{ |k,v| v.present? }.sort.map{ |k,v| "#{k}=#{v}" }.join('&')
|
8
|
+
end
|
9
|
+
|
10
|
+
def md5 options
|
11
|
+
str = to_param options
|
12
|
+
str << "&key=#{Config.payment_key}"
|
13
|
+
Digest::MD5.hexdigest(str).upcase
|
14
|
+
end
|
15
|
+
|
16
|
+
def signature options
|
17
|
+
to_param(options)+"&sign="+md5(options)
|
18
|
+
end
|
19
|
+
|
20
|
+
def valid? options
|
21
|
+
md5(options) == options.delete("sign")
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe LeshuaPay::Sign do
|
4
|
+
let (:params) {
|
5
|
+
{a:1, b:2}
|
6
|
+
}
|
7
|
+
let (:inversed_params) {
|
8
|
+
{b:2, a:1}
|
9
|
+
}
|
10
|
+
let (:params_string) { "a=1&b=2&key=#{LeshuaPay::Config.payment_key}" }
|
11
|
+
|
12
|
+
describe "#md5" do
|
13
|
+
it 'returns the same with different params order' do
|
14
|
+
sign1 = LeshuaPay::Sign.md5(params)
|
15
|
+
sign2 = LeshuaPay::Sign.md5(inversed_params)
|
16
|
+
expect(sign1).to eq(sign2)
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'signs the params with md5' do
|
20
|
+
sign = LeshuaPay::Sign.md5(params)
|
21
|
+
expect(sign).to eq(Digest::MD5.hexdigest(params_string).upcase)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,217 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: leshua_pay
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tony Tong
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-10-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: builder
|
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: httparty
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.6'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.6'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry-remote
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry-nav
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: fakeweb
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: awesome_print
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
description:
|
168
|
+
email:
|
169
|
+
- tony.tong@striking.ly
|
170
|
+
executables: []
|
171
|
+
extensions: []
|
172
|
+
extra_rdoc_files: []
|
173
|
+
files:
|
174
|
+
- ".gitignore"
|
175
|
+
- ".travis.yml"
|
176
|
+
- Gemfile
|
177
|
+
- LICENSE
|
178
|
+
- LICENSE.txt
|
179
|
+
- README.md
|
180
|
+
- Rakefile
|
181
|
+
- leshua_pay.gemspec
|
182
|
+
- lib/leshua_pay.rb
|
183
|
+
- lib/leshua_pay/service.rb
|
184
|
+
- lib/leshua_pay/sign.rb
|
185
|
+
- lib/leshua_pay/utils.rb
|
186
|
+
- lib/leshua_pay/version.rb
|
187
|
+
- spec/leshua_pay/sign_spec.rb
|
188
|
+
- spec/leshua_pay/utils_spec.rb
|
189
|
+
- spec/spec_helper.rb
|
190
|
+
homepage: https://github.com/user-tony/leshua-pay
|
191
|
+
licenses:
|
192
|
+
- MIT
|
193
|
+
metadata: {}
|
194
|
+
post_install_message:
|
195
|
+
rdoc_options: []
|
196
|
+
require_paths:
|
197
|
+
- lib
|
198
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0'
|
203
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - ">="
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0'
|
208
|
+
requirements: []
|
209
|
+
rubyforge_project:
|
210
|
+
rubygems_version: 2.4.5
|
211
|
+
signing_key:
|
212
|
+
specification_version: 4
|
213
|
+
summary: A gem to deal with leshua payment.
|
214
|
+
test_files:
|
215
|
+
- spec/leshua_pay/sign_spec.rb
|
216
|
+
- spec/leshua_pay/utils_spec.rb
|
217
|
+
- spec/spec_helper.rb
|