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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1907505b47d02aed8ba3a23bc42f90b864928bb4516c6a08af562a7da26babcb
4
- data.tar.gz: 615fe878b8b5fe6bfc176eb77c927957cad14b0fb71b65c6f891ddd850655ae0
3
+ metadata.gz: 21cc679665961f23e1a3f1ed4c061fc03f83adbc769e8902051218a36117891f
4
+ data.tar.gz: 4aa87ae135591958906787ba284d142a834cad1eca2cbd5106455864c82cd051
5
5
  SHA512:
6
- metadata.gz: 1aafb9ea5a0c1a1281810a0c28f7859de66851192d258939bd37e352dbe7ec5c70251418a41a70f0046a2da04230e8b925fef9bf6b3a7457d98feeb6de93d041
7
- data.tar.gz: a7b7acc261ce1051be6c8afa93a8f6eb8da2f5f0fc932fd0240d2a63cebfa257864dad3d63b20d0c75ae4c2e98e74a27318cad6cba0a0f63eae2b144d2d75d42
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
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'zeitwerk'
4
4
  loader = Zeitwerk::Loader.for_gem
5
+ loader.ignore("#{__dir__}/action_controller")
5
6
  loader.ignore("#{__dir__}/generators/**/*.rb")
6
7
  loader.setup
7
8
 
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.0
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-06-06 00:00:00.000000000 Z
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.0#readme
274
- source_code_uri: https://github.com/Eric-Guo/wechat/tree/v0.16.0
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.15
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