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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1954b46631b17a77c12982db31a1660d10c9530
4
- data.tar.gz: 308bf4cd23b5f586dc121397a12a1aca4878d344
3
+ metadata.gz: 78c22dda01658186ec3f0ad8082ec0183a93afbd
4
+ data.tar.gz: 92e7392f59b2eb6541ca8aad4e64749187186b6d
5
5
  SHA512:
6
- metadata.gz: 61e86f7f6b12ade1af3d7fc6ec6a2cbdc59ce4991b36778ef9df69f5f966905d718bce537bce897ddb917f432f28b74f9553a40180cde4eb77d095206582d14e
7
- data.tar.gz: 87e0e857fb835d5badd1f3c70b35b2e0aa6b9702bd33dd81d87f79c8a1a379600d65c65cbe66c473f4c4ca8610ca3dd2fde445e535967a1f8a33463b4ccfc3cb
6
+ metadata.gz: a4b41472bc128cf879b02775997fcc002f3a2655861e6892238e4ceb16d3030e3d886c49b376b87abc5a7dcd8c7fb598e250d44039d5a2709867aea3b77a5649
7
+ data.tar.gz: cab20894eff704da0e6e89a20adb64ae3d9695133079cc150df1679b5ef8587b9a7d113b8134f63a19ab35a4e787fc4c3501b7954ec06c144b8150cb6008a1df
@@ -1,3 +1,3 @@
1
1
  module WechatKit
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1"
3
3
  end
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
- "rawString" => string
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.0.1
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-07-29 00:00:00.000000000 Z
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
@@ -1,3 +0,0 @@
1
- = WechatKit
2
-
3
- This project rocks and uses MIT-LICENSE.