wechat 0.11.8 → 0.11.9

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
  SHA256:
3
- metadata.gz: 465247299a5c4eeec97432d778436af7f8f066eccf907a340ca26d297502dffb
4
- data.tar.gz: 959e57098cdf14661dbd335abea83c0285bd07534c7e42f5f47f560dd2c0235c
3
+ metadata.gz: 370e379885f4c8f7f926fa6a0d7a1d237e0152b9e87d7a87d3732446228b236a
4
+ data.tar.gz: 62477c436dd72bb156e22ef936581c881043c9008a077df2cc1f570f089ab43d
5
5
  SHA512:
6
- metadata.gz: 43195eadcc6b34292cd196c107efdc5d6a54ed19bb2919f7c1ad93f74d76f22ba7d3435ee4def7f7a68b05a98b2a4872142a17e2aa5992962cbd028f114484db
7
- data.tar.gz: 1f6149654cbf159db1469291e943aa5f0b173b5be7fcdd3e66e023e2aa262b331a4b068857b56e66453f3ecafe7e24c54f7a83f967e28f8a50aa517f64ce2ef6
6
+ metadata.gz: f5e603ac0672f10b6b98ef12b05ada4f1f58cec182d5046daec501666ee8204e6ebbe7e1da874b29876252803a2449835b829cb5a3b159e292fb0a4475370e65
7
+ data.tar.gz: e2c40b34f6d0ed589da874ee65745eab5f6588400e0dbd812603da7017017498d4666f784ecf7e06e867722b65bc97f8926e5e5e04d311d25cd0b558a3d52f12
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## v0.11.8 (released at 03/09/2019)
3
+ ## v0.11.9 (released at 04/29/2020)
4
+
5
+ * CHG: upgrade ssl_version to 1.2 by @paicha #276
6
+
7
+ ## v0.11.8 (released at 03/09/2020)
4
8
 
5
9
  * ADD: Wechat::CorpApi.news_message_send
6
10
  * FIX: Wechat API Change material/get_material. reported by @0000sir #275
@@ -41,7 +41,7 @@ module Wechat
41
41
 
42
42
  def unpack(msg)
43
43
  msg = decode_padding(msg)
44
- msg_len = msg[16, 4].reverse.unpack('V')[0]
44
+ msg_len = msg[16, 4].reverse.unpack1('V')
45
45
  content = msg[20, msg_len]
46
46
  app_id = msg[(20 + msg_len)..-1]
47
47
 
@@ -14,7 +14,7 @@ module Wechat
14
14
  HTTP.timeout(:global, write: timeout, connect: timeout, read: timeout)
15
15
  end
16
16
  @ssl_context = OpenSSL::SSL::SSLContext.new
17
- @ssl_context.ssl_version = :TLSv1
17
+ @ssl_context.ssl_version = :TLSv1_2
18
18
  @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE if skip_verify_ssl
19
19
  end
20
20
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wechat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.8
4
+ version: 0.11.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Skinnyworm
@@ -35,7 +35,7 @@ cert_chain:
35
35
  2Gz/SZ1dgCkJpJU45GNrhatKx3kyg8eC5IHekNrEvJNJqPl0VdRIs/GtUkQyk+np
36
36
  3kTPkfLMsAZznXo3bzMe0V5TB4+a7pFEK1nN/htWrOVkIi/3
37
37
  -----END CERTIFICATE-----
38
- date: 2020-03-09 00:00:00.000000000 Z
38
+ date: 2020-04-29 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: activesupport
metadata.gz.sig CHANGED
Binary file