fir-cli 2.0.12 → 2.0.13
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
- data/Dockerfile +1 -1
- data/fir-cli.gemspec +1 -0
- data/lib/fir/util/publish.rb +6 -10
- data/lib/fir/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8320833a429e9d6ffafbe6feacc844f1351c987c901eeac424adbaa2b4d95c8b
|
|
4
|
+
data.tar.gz: 6009124d94abd0d307350faeebd78fa60cfaf7b4cb93ba8d437545f885d4f2aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e580eeb77c1b70129c819d44543991afa1164f93939459877791bb29b3d933c11834b4febf298976a3f149d83972df0acdc09044ba609228d869d34fe176b904
|
|
7
|
+
data.tar.gz: 0b1fc894b5aef760d0848184a5dd942e98b1d6f3aa0968ffaf16faab3bffd4f76e4c94a4780b50c10083278dd3f4f5a9bb70e7dfda30d23f255f41b008c0e346
|
data/Dockerfile
CHANGED
data/fir-cli.gemspec
CHANGED
|
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
/_/ /___/_/ |_| \____/_____/___/
|
|
28
28
|
|
|
29
29
|
## 更新记录
|
|
30
|
+
- (2.0.13) 修复了无法跳过企业微信通知逻辑的bug
|
|
30
31
|
- (2.0.12) 修复因为钉钉机器人不再支持base64导致无法显示二维码,另外开始支持钉钉加签方式的鉴权, 参数为 --dingtalk_secret
|
|
31
32
|
- (2.0.11) 兼容了 ruby 3.0 版本, 增加了环境变量FEISHU_TIMEOUT,可以多给飞书一些超时时间
|
|
32
33
|
- (2.0.10) 飞书支持了 V2 版本的机器人推送
|
data/lib/fir/util/publish.rb
CHANGED
|
@@ -17,7 +17,6 @@ module FIR
|
|
|
17
17
|
logger.info "fir-cli version #{FIR::VERSION} (#{RUBY_VERSION} @ #{RUBY_PLATFORM})"
|
|
18
18
|
received_app_info = upload_app
|
|
19
19
|
|
|
20
|
-
|
|
21
20
|
short = received_app_info[:short]
|
|
22
21
|
download_domain = received_app_info[:download_domain]
|
|
23
22
|
release_id = received_app_info[:release_id]
|
|
@@ -97,9 +96,7 @@ module FIR
|
|
|
97
96
|
app_info_dict
|
|
98
97
|
rescue StandardError => e
|
|
99
98
|
puts e.message
|
|
100
|
-
if e.respond_to?(e.response) && e.respond_to?(e.response.body)
|
|
101
|
-
puts e.response.body
|
|
102
|
-
end
|
|
99
|
+
puts e.response.body if e.respond_to?(e.response) && e.respond_to?(e.response.body)
|
|
103
100
|
raise e
|
|
104
101
|
end
|
|
105
102
|
|
|
@@ -207,21 +204,22 @@ module FIR
|
|
|
207
204
|
end
|
|
208
205
|
|
|
209
206
|
def wxwork_notifier(download_url)
|
|
207
|
+
return if options[:wxwork_webhook].blank? && options[:wxwork_access_token].blank?
|
|
208
|
+
|
|
210
209
|
webhook_url = options[:wxwork_webhook]
|
|
211
210
|
webhook_url ||= "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=#{options[:wxwork_access_token]}"
|
|
212
|
-
return if webhook_url.blank?
|
|
213
211
|
|
|
214
212
|
title = "#{@app_info[:name]}-#{@app_info[:version]}(Build #{@app_info[:build]})"
|
|
215
213
|
payload = {
|
|
216
|
-
"msgtype":
|
|
214
|
+
"msgtype": 'news',
|
|
217
215
|
"news": {
|
|
218
216
|
"articles": [{
|
|
219
217
|
"title": "#{title} uploaded",
|
|
220
218
|
"description": "#{title} uploaded at #{Time.now}\nurl: #{download_url}\n#{options[:wxwork_custom_message]}\n",
|
|
221
219
|
"url": download_url,
|
|
222
220
|
"picurl": options[:wxwork_pic_url]
|
|
223
|
-
}]
|
|
224
|
-
}
|
|
221
|
+
}]
|
|
222
|
+
}
|
|
225
223
|
}
|
|
226
224
|
DefaultRest.post(webhook_url, payload)
|
|
227
225
|
end
|
|
@@ -262,7 +260,5 @@ module FIR
|
|
|
262
260
|
|
|
263
261
|
File.exist?(changelog) ? File.read(changelog) : changelog
|
|
264
262
|
end
|
|
265
|
-
|
|
266
|
-
|
|
267
263
|
end
|
|
268
264
|
end
|
data/lib/fir/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fir-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- NaixSpirit
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2021-
|
|
12
|
+
date: 2021-04-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -270,20 +270,20 @@ metadata: {}
|
|
|
270
270
|
post_install_message: "\n ______________ ________ ____\n /
|
|
271
271
|
____/ _/ __ \\ / ____/ / / _/\n / /_ / // /_/ /_____/ / / / /
|
|
272
272
|
/\n / __/ _/ // _, _/_____/ /___/ /____/ /\n /_/ /___/_/ |_| \\____/_____/___/\n\n
|
|
273
|
-
\ ## 更新记录\n - (2.0.12) 修复因为钉钉机器人不再支持base64导致无法显示二维码,另外开始支持钉钉加签方式的鉴权,
|
|
274
|
-
\
|
|
275
|
-
V2 版本的机器人推送\n - (2.0.9) publish 支持了 企业微信通知 可以使用 --wxwork_access_token
|
|
276
|
-
增加了回调超时时间至20秒\n - (2.0.8) publish 支持 飞书通知, 可使用 `feishu_access_token`
|
|
277
|
-
详情见 `fir publish --help`\n - (2.0.7) 修复了提示 token 有问题的错误\n
|
|
278
|
-
\ - (2.0.5) 更换了上传域名, 避免与 深信服的设备冲突\n - (2.0.4) 修复了 cdn
|
|
279
|
-
信息的时候返回的 400 错误\n - (2.0.3) 增加 dingtalk_at_phones, 钉钉通知可
|
|
280
|
-
`dingtalk_access_token` 使用\n - (2.0.3) 增加 dingtalk_at_all,
|
|
281
|
-
`dingtalk_access_token` 使用\n - (2.0.3) publish 增加海外加速参数 --oversea_turbo\n
|
|
282
|
-
有限支持 aab 文件上传, 强依赖`bundletool`工具, 具体请参见参数 `--bundletool_jar_path` 和
|
|
283
|
-
|
|
284
|
-
publish 支持 新参数 `need_ansi_qrcode`, 在控制台直接打印二维码, jenkins
|
|
285
|
-
插件配合\n - (2.0.1) publish 支持 新参数 `dingtalk_custom_message`,
|
|
286
|
-
`dingtalk_access_token` 使用\n - (2.0.1) publish 支持 新参数 `skip_fir_cli_feedback`,
|
|
273
|
+
\ ## 更新记录\n - (2.0.13) 修复了无法跳过企业微信通知逻辑的bug\n - (2.0.12) 修复因为钉钉机器人不再支持base64导致无法显示二维码,另外开始支持钉钉加签方式的鉴权,
|
|
274
|
+
参数为 --dingtalk_secret\n - (2.0.11) 兼容了 ruby 3.0 版本, 增加了环境变量FEISHU_TIMEOUT,可以多给飞书一些超时时间\n
|
|
275
|
+
\ - (2.0.10) 飞书支持了 V2 版本的机器人推送\n - (2.0.9) publish 支持了 企业微信通知 可以使用 --wxwork_access_token
|
|
276
|
+
或 --wxwork_webhook, 增加了回调超时时间至20秒\n - (2.0.8) publish 支持 飞书通知, 可使用 `feishu_access_token`
|
|
277
|
+
和 `feishu_custom_message`, 详情见 `fir publish --help`\n - (2.0.7) 修复了提示 token 有问题的错误\n
|
|
278
|
+
\ - (2.0.6) 将校验文件是否存在提前\n - (2.0.5) 更换了上传域名, 避免与 深信服的设备冲突\n - (2.0.4) 修复了 cdn
|
|
279
|
+
不支持 patch 方法透传, 导致在修改 app 信息的时候返回的 400 错误\n - (2.0.3) 增加 dingtalk_at_phones, 钉钉通知可
|
|
280
|
+
at 用户手机号, 以逗号,分割. 此命令需配合 `dingtalk_access_token` 使用\n - (2.0.3) 增加 dingtalk_at_all,
|
|
281
|
+
钉钉通知可 at 所有人, 此命令需配合 `dingtalk_access_token` 使用\n - (2.0.3) publish 增加海外加速参数 --oversea_turbo\n
|
|
282
|
+
\ - (2.0.2) 有限支持 aab 文件上传, 强依赖`bundletool`工具, 具体请参见参数 `--bundletool_jar_path` 和
|
|
283
|
+
`auto_download_bundletool_jar`\n - (2.0.1) publish 支持 新参数 `specify_app_display_name`,
|
|
284
|
+
指定 app 显示名称\n - (2.0.1) publish 支持 新参数 `need_ansi_qrcode`, 在控制台直接打印二维码, jenkins
|
|
285
|
+
用户可能需要使用 `AnsiColor Plugin` 插件配合\n - (2.0.1) publish 支持 新参数 `dingtalk_custom_message`,
|
|
286
|
+
可以在钉钉通知里增加自定义消息, 此命令需配合 `dingtalk_access_token` 使用\n - (2.0.1) publish 支持 新参数 `skip_fir_cli_feedback`,
|
|
287
287
|
可禁止 fir-cli 发送统计信息\n - (2.0.0) publish 使用更快的存储商, 加速上传速度, 若感觉没以前可使用 switch_to_qiniu
|
|
288
288
|
恢复\n - [fir-cli](https://github.com/firhq/fir-cli) 已经开源\n - 欢迎 fork, issue 和 pull
|
|
289
289
|
request\n "
|