wechat_kit 0.0.1 → 0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wechat_kit/version.rb +1 -1
- data/lib/wechat_kit.rb +2 -2
- metadata +2 -3
- data/README.rdoc +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78c22dda01658186ec3f0ad8082ec0183a93afbd
|
4
|
+
data.tar.gz: 92e7392f59b2eb6541ca8aad4e64749187186b6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4b41472bc128cf879b02775997fcc002f3a2655861e6892238e4ceb16d3030e3d886c49b376b87abc5a7dcd8c7fb598e250d44039d5a2709867aea3b77a5649
|
7
|
+
data.tar.gz: cab20894eff704da0e6e89a20adb64ae3d9695133079cc150df1679b5ef8587b9a7d113b8134f63a19ab35a4e787fc4c3501b7954ec06c144b8150cb6008a1df
|
data/lib/wechat_kit/version.rb
CHANGED
data/lib/wechat_kit.rb
CHANGED
@@ -19,7 +19,7 @@ module WechatKit
|
|
19
19
|
@app_secret = app_secret
|
20
20
|
end
|
21
21
|
|
22
|
-
def signature(url)
|
22
|
+
def signature(url, jsApiList=[])
|
23
23
|
jsapi_ticket = get_js_api_ticket
|
24
24
|
timestamp = Time.now.to_i.to_s
|
25
25
|
nonce = SecureRandom.hex 16
|
@@ -33,7 +33,7 @@ module WechatKit
|
|
33
33
|
"timeStamp" => timestamp,
|
34
34
|
"url" => url,
|
35
35
|
"signature" => signature,
|
36
|
-
"
|
36
|
+
"jsApiList" => jsApiList
|
37
37
|
}
|
38
38
|
return sign_package.to_json
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wechat_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.1'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sharp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: "微信js_ssdk签名"
|
14
14
|
email:
|
@@ -18,7 +18,6 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- MIT-LICENSE
|
21
|
-
- README.rdoc
|
22
21
|
- Rakefile
|
23
22
|
- lib/tasks/wechat_kit_tasks.rake
|
24
23
|
- lib/wechat_kit.rb
|
data/README.rdoc
DELETED