wechat 0.8.5 → 0.8.6
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/wechat/http_client.rb +2 -1
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62ec874b95597f2ea1e8678e2903b591dae48c60
|
|
4
|
+
data.tar.gz: 35725116ed22adb68f8002bc670d5d450daa4d69
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25b8b447ff7bdd05a2269a2c830b880074ec11d84ffeac07b46e797213e8d26f170531da2e859384876556f9c88255829a54d163441cc220eb5a88c45119bc6b
|
|
7
|
+
data.tar.gz: 80300468b803ca0b035177a88df2b7f9cd06adad810bed9e721c48326aa7f72bc2c0452e0863e3d3be544d59ec5af1002f5611909fc67bc2959fd7b070905aab
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -77,7 +77,7 @@ Redis store supports Rails application running in multi-server, no need to enabl
|
|
|
77
77
|
|
|
78
78
|
#### Configure wechat for the first time
|
|
79
79
|
|
|
80
|
-
Make sure to finish all the setup on rails side first, then submit to wechat. Otherwise, wechat will raise error.
|
|
80
|
+
Make sure to finish all the setup on rails side first, then submit those setting to Tencent wechat management website. Otherwise, wechat will raise error.
|
|
81
81
|
|
|
82
82
|
URL address for wechat created by running `rails g wechat:install` is `http://your-server.com/wechat`
|
|
83
83
|
|
data/lib/wechat/http_client.rb
CHANGED
|
@@ -29,9 +29,10 @@ module Wechat
|
|
|
29
29
|
def post_file(path, file, post_header = {})
|
|
30
30
|
request(path, post_header) do |url, header|
|
|
31
31
|
params = header.delete(:params)
|
|
32
|
+
form_file = file.is_a?(HTTP::FormData::File) ? file : HTTP::FormData::File.new(file)
|
|
32
33
|
httprb.headers(header)
|
|
33
34
|
.post(url, params: params,
|
|
34
|
-
form: { media:
|
|
35
|
+
form: { media: form_file,
|
|
35
36
|
hack: 'X' }, # Existing here for http-form_data 1.0.1 handle single param improperly
|
|
36
37
|
ssl_context: ssl_context)
|
|
37
38
|
end
|
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.8.
|
|
4
|
+
version: 0.8.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Skinnyworm
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
R5k6Ma92sW8jupX4cqbSu9rntdVQkNRpoHIrfU0MZT0cKsg/D1zMteylxrO3KMsz
|
|
32
32
|
SPQRv+nrI1J0zevFqb8010heoR8SDyUA0Mm3+Q==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2017-03-
|
|
34
|
+
date: 2017-03-17 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: activesupport
|
|
@@ -40,9 +40,9 @@ dependencies:
|
|
|
40
40
|
- - ">="
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
42
|
version: '3.2'
|
|
43
|
-
- - "
|
|
43
|
+
- - "<="
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: 5.
|
|
45
|
+
version: '5.2'
|
|
46
46
|
type: :runtime
|
|
47
47
|
prerelease: false
|
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -50,9 +50,9 @@ dependencies:
|
|
|
50
50
|
- - ">="
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
52
|
version: '3.2'
|
|
53
|
-
- - "
|
|
53
|
+
- - "<="
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: 5.
|
|
55
|
+
version: '5.2'
|
|
56
56
|
- !ruby/object:Gem::Dependency
|
|
57
57
|
name: nokogiri
|
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
|
Binary file
|