fir-cli 2.0.7 → 2.0.8
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/README.md +1 -0
- data/fir-cli.gemspec +1 -0
- data/lib/fir/cli.rb +3 -0
- data/lib/fir/util/publish.rb +14 -0
- data/lib/fir/version.rb +1 -1
- metadata +16 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9850b88e681117a4ca51cbbb03a4a763b9988e0bbbe9a71240ce4be0c0d3af8e
|
4
|
+
data.tar.gz: 7216bcba798d427464cea462fd51c01547930478eb173a145d8395c2e1c3b4c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c296355543864f8b42c21c356a54d8c297aa4f3cc31ac0df0e94a3e9a6a54aaca68a8d1970052cb4106b102d42eb0ac8fe82618c860b787adbd85b6dba9c2083
|
7
|
+
data.tar.gz: 8c5beba65c8401c85a87f1b8437682133fdec9c9ad95441df4c8ac4ef199044ec23aacc105aa72bef21c046e4699de9e14616254406eeac9cf664b6be419e7e7
|
data/README.md
CHANGED
@@ -18,6 +18,7 @@ fir.im-cli 可以通过指令查看, 上传, iOS/Android 应用.
|
|
18
18
|
当然还有种解决办法是 更新 `fir-cli` 至 `2.0.5`, 这个版本换到了备用域名
|
19
19
|
|
20
20
|
# 最近更新
|
21
|
+
- (2.0.8) publish 支持 飞书通知, 可使用 `feishu_access_token` 和 `feishu_custom_message`
|
21
22
|
- (2.0.7) 修复了提示 token 错误的问题
|
22
23
|
- (2.0.6) 修复了因为文件读取方式变化而导致的文件找不到不报错的问题
|
23
24
|
- (2.0.5) 因为深信服 的黑名单误判, 将 api 切换到了备用域名
|
data/fir-cli.gemspec
CHANGED
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
/_/ /___/_/ |_| \____/_____/___/
|
28
28
|
|
29
29
|
## 更新记录
|
30
|
+
- (2.0.8) publish 支持 飞书通知, 可使用 `feishu_access_token` 和 `feishu_custom_message`, 详情见 `fir publish --help`
|
30
31
|
- (2.0.7) 修复了提示 token 有问题的错误
|
31
32
|
- (2.0.6) 将校验文件是否存在提前
|
32
33
|
- (2.0.5) 更换了上传域名, 避免与 深信服的设备冲突
|
data/lib/fir/cli.rb
CHANGED
@@ -127,6 +127,9 @@ module FIR
|
|
127
127
|
method_option :dingtalk_at_phones, type: :string, desc: 'at some phones, split by , eg: 13111111111,13111111112'
|
128
128
|
method_option :dingtalk_at_all, type: :boolean, default: false
|
129
129
|
|
130
|
+
method_option :feishu_access_token, type: :string, desc: 'Send msg to feishu, need access_token, not whole url'
|
131
|
+
method_option :feishu_custom_message, type: :string, desc: 'add custom message to feishu'
|
132
|
+
|
130
133
|
method_option :open, type: :boolean, desc: 'true/false if open for everyone'
|
131
134
|
method_option :password, type: :string, desc: 'Set password for app'
|
132
135
|
|
data/lib/fir/util/publish.rb
CHANGED
@@ -25,7 +25,10 @@ module FIR
|
|
25
25
|
logger.info "Published succeed: #{download_url}"
|
26
26
|
|
27
27
|
qrcode_path = build_qrcode download_url
|
28
|
+
|
28
29
|
dingtalk_notifier(download_url, qrcode_path)
|
30
|
+
feishu_notifier(download_url)
|
31
|
+
|
29
32
|
upload_mapping_file_with_publish
|
30
33
|
|
31
34
|
upload_fir_cli_usage_info(received_app_info)
|
@@ -212,6 +215,17 @@ module FIR
|
|
212
215
|
logger.warn "Dingtalk send error #{e.message}"
|
213
216
|
end
|
214
217
|
|
218
|
+
def feishu_notifier(download_url)
|
219
|
+
return if options[:feishu_access_token].blank?
|
220
|
+
title = "#{@app_info[:name]}-#{@app_info[:version]}(Build #{@app_info[:build]})"
|
221
|
+
url = "https://open.feishu.cn/open-apis/bot/hook/#{options[:feishu_access_token]}"
|
222
|
+
payload = {
|
223
|
+
"title": "#{title} uploaded",
|
224
|
+
"text": "#{title} uploaded at #{Time.now}\nurl: #{download_url}\n#{options[:feishu_custom_message]}\n"
|
225
|
+
}
|
226
|
+
DefaultRest.post(url, payload)
|
227
|
+
end
|
228
|
+
|
215
229
|
def initialize_publish_options(args, options)
|
216
230
|
@options = options
|
217
231
|
@file_path = File.absolute_path(args.first.to_s)
|
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.8
|
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: 2020-03-
|
12
|
+
date: 2020-03-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -254,18 +254,20 @@ metadata: {}
|
|
254
254
|
post_install_message: "\n ______________ ________ ____\n /
|
255
255
|
____/ _/ __ \\ / ____/ / / _/\n / /_ / // /_/ /_____/ / / / /
|
256
256
|
/\n / __/ _/ // _, _/_____/ /___/ /____/ /\n /_/ /___/_/ |_| \\____/_____/___/\n\n
|
257
|
-
\ ## 更新记录\n - (2.0.
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
使用\n - (2.0.3)
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
`
|
266
|
-
|
267
|
-
|
268
|
-
|
257
|
+
\ ## 更新记录\n - (2.0.8) publish 支持 飞书通知, 可使用 `feishu_access_token` 和 `feishu_custom_message`,
|
258
|
+
详情见 `fir publish --help`\n - (2.0.7) 修复了提示 token 有问题的错误\n - (2.0.6) 将校验文件是否存在提前\n
|
259
|
+
\ - (2.0.5) 更换了上传域名, 避免与 深信服的设备冲突\n - (2.0.4) 修复了 cdn 不支持 patch 方法透传, 导致在修改 app
|
260
|
+
信息的时候返回的 400 错误\n - (2.0.3) 增加 dingtalk_at_phones, 钉钉通知可 at 用户手机号, 以逗号,分割. 此命令需配合
|
261
|
+
`dingtalk_access_token` 使用\n - (2.0.3) 增加 dingtalk_at_all, 钉钉通知可 at 所有人, 此命令需配合
|
262
|
+
`dingtalk_access_token` 使用\n - (2.0.3) publish 增加海外加速参数 --oversea_turbo\n - (2.0.2)
|
263
|
+
有限支持 aab 文件上传, 强依赖`bundletool`工具, 具体请参见参数 `--bundletool_jar_path` 和 `auto_download_bundletool_jar`\n
|
264
|
+
\ - (2.0.1) publish 支持 新参数 `specify_app_display_name`, 指定 app 显示名称\n - (2.0.1)
|
265
|
+
publish 支持 新参数 `need_ansi_qrcode`, 在控制台直接打印二维码, jenkins 用户可能需要使用 `AnsiColor Plugin`
|
266
|
+
插件配合\n - (2.0.1) publish 支持 新参数 `dingtalk_custom_message`, 可以在钉钉通知里增加自定义消息, 此命令需配合
|
267
|
+
`dingtalk_access_token` 使用\n - (2.0.1) publish 支持 新参数 `skip_fir_cli_feedback`,
|
268
|
+
可禁止 fir-cli 发送统计信息\n - (2.0.0) publish 使用更快的存储商, 加速上传速度, 若感觉没以前可使用 switch_to_qiniu
|
269
|
+
恢复\n - [fir-cli](https://github.com/firhq/fir-cli) 已经开源\n - 欢迎 fork, issue 和 pull
|
270
|
+
request\n "
|
269
271
|
rdoc_options: []
|
270
272
|
require_paths:
|
271
273
|
- lib
|