wechat 0.16.0 → 0.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +5 -0
- data/bin/wechat +6 -0
- data/lib/wechat/concern/common.rb +5 -0
- data/lib/wechat.rb +1 -0
- data.tar.gz.sig +0 -0
- metadata +5 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21cc679665961f23e1a3f1ed4c061fc03f83adbc769e8902051218a36117891f
|
4
|
+
data.tar.gz: 4aa87ae135591958906787ba284d142a834cad1eca2cbd5106455864c82cd051
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37da06392ad0595dc8ecfe971667c6c7fdeaa26e81e6d6affc128443dbf5a4865fe996fbde4f68e2991eb391caf1fbacd33d49acc84bb4a6e74a3115b68b7d8d
|
7
|
+
data.tar.gz: 0a0adf9373431db6d4da5e00191883ca3df035defcf82717e5e4ee648107fa4b39b07f959729036bdc4400c07080b8b5955cb968021611bf418394db8bc2370b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v0.16.1 (released at 2022-07-20)
|
4
|
+
|
5
|
+
* Add api urllink.generate support. by @iuhoay #313
|
6
|
+
* Fix WARNING: Zeitwerk defines the constant ActionController after the directory
|
7
|
+
|
3
8
|
## v0.16.0 (released at 2022-06-06)
|
4
9
|
|
5
10
|
* Support wechat draft. #305
|
data/bin/wechat
CHANGED
@@ -230,6 +230,12 @@ class App < Thor
|
|
230
230
|
puts wechat_api.wxa_msg_sec_check(content)
|
231
231
|
end
|
232
232
|
|
233
|
+
desc 'wxa_generate_urllink [PATH]', '获取小程序 URL Link'
|
234
|
+
def wxa_generate_urllink(path)
|
235
|
+
body_hash = { path: path, expire_type: 0 }
|
236
|
+
puts wechat_api.wxa_generate_urllink(body_hash)
|
237
|
+
end
|
238
|
+
|
233
239
|
desc 'media_uploadnews [MPNEWS_YAML_PATH]', '上传图文消息素材'
|
234
240
|
def media_uploadnews(mpnews_yaml_path)
|
235
241
|
mpnew = Wechat::ApiLoader.load_yaml(File.read(mpnews_yaml_path))
|
@@ -104,6 +104,11 @@ module Wechat
|
|
104
104
|
post 'msg_sec_check', JSON.generate(content: content), base: Wechat::Api::WXA_BASE
|
105
105
|
end
|
106
106
|
|
107
|
+
def wxa_generate_urllink(body_hash)
|
108
|
+
# https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/url-link/urllink.generate.html
|
109
|
+
post 'generate_urllink', JSON.generate(body_hash), base: Wechat::Api::WXA_BASE
|
110
|
+
end
|
111
|
+
|
107
112
|
def menu
|
108
113
|
get 'menu/get'
|
109
114
|
end
|
data/lib/wechat.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
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.16.
|
4
|
+
version: 0.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Skinnyworm
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
ZM9IDtdMg8E/4ujwilV8HKmgU77vVN6vSMvxx8zQFSz9a6GbdpB4egPZ++peSk/Q
|
36
36
|
uaIJtOX6M4VC6u7eZfotARKyUy6EcoN2zNqEAQ==
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-
|
38
|
+
date: 2022-07-20 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: activesupport
|
@@ -270,8 +270,8 @@ licenses:
|
|
270
270
|
metadata:
|
271
271
|
bug_tracker_uri: https://github.com/Eric-Guo/wechat/issues
|
272
272
|
changelog_uri: https://github.com/Eric-Guo/wechat/releases
|
273
|
-
documentation_uri: https://github.com/Eric-Guo/wechat/tree/v0.16.
|
274
|
-
source_code_uri: https://github.com/Eric-Guo/wechat/tree/v0.16.
|
273
|
+
documentation_uri: https://github.com/Eric-Guo/wechat/tree/v0.16.1#readme
|
274
|
+
source_code_uri: https://github.com/Eric-Guo/wechat/tree/v0.16.1
|
275
275
|
rubygems_mfa_required: 'true'
|
276
276
|
post_install_message: |-
|
277
277
|
*****WECHAT BREAK CHANGE*****
|
@@ -293,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
293
|
- !ruby/object:Gem::Version
|
294
294
|
version: 1.8.11
|
295
295
|
requirements: []
|
296
|
-
rubygems_version: 3.3.
|
296
|
+
rubygems_version: 3.3.18
|
297
297
|
signing_key:
|
298
298
|
specification_version: 4
|
299
299
|
summary: DSL for wechat message handling and API
|
metadata.gz.sig
CHANGED
Binary file
|