wechat_kit 0.1.1 → 0.1.2

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: abc113409bf7880087bf10ef2e2ddd0f9a15335e
4
- data.tar.gz: ea878974682fb895bbc9ca8583a483c0428744a0
3
+ metadata.gz: 138cfe0be0930bc747bb1abcc96709f7bae2d9c8
4
+ data.tar.gz: 4745b77dc6d68a3243bd8add23b0d6ef9d229ff0
5
5
  SHA512:
6
- metadata.gz: c29545f1259e7e98aa5136684ffe7d6629775c56b6081e99ddd191a0d5fc0e977fe8441d4619ebd717cadb690e35dcb0e3eb8659d22c0a0dad93eccce76b6a43
7
- data.tar.gz: 046b6c364d8c4e5142708b227aacfbab0b27d80efc3ba8f1f7063fce54a7cbff2b5c866e22faa75a5ac5b3e6928be8ac179bf6c59d486c7ae446f27a10fa1254
6
+ metadata.gz: 49984791b5a8b28ad1eca539d224be136908b3d31d41fb4528c7fe6916eab93d3ad8caf373cedcca3dad9c35e530d098c0b77837700381851f157ccfa0abe11e
7
+ data.tar.gz: d01a72ae287a6a7d75ec4d13f91fda2faaf2ee410ec6ea9b9790b4c954049e2452651f6a590810259d52a7e93062b8d89b2e5fb02071f6d4a97574dd7e2b7d7d
@@ -1,3 +1,3 @@
1
1
  module WechatKit
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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, jsApiList=[])
22
+ def signature(url, jsApiList=[], debug=false)
23
23
  jsapi_ticket = get_js_api_ticket
24
24
  timestamp = Time.now.to_i.to_s
25
25
  nonce = SecureRandom.hex 16
@@ -28,6 +28,7 @@ module WechatKit
28
28
  signature = Digest::SHA1.hexdigest(string)
29
29
 
30
30
  sign_package = {
31
+ "debug" => debug,
31
32
  "appId" => @app_id,
32
33
  "nonceStr" => nonce,
33
34
  "timestamp" => timestamp,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wechat_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sharp