fir-cli 2.0.21 → 2.0.22

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23af796a126a7d87f70d1b12982e9f455c5e920a36013850ba7f7dbd904e8afc
4
- data.tar.gz: 984b10ea726b298007b05a609ad1eaf1dd3451d7b69da017091484a63d33c106
3
+ metadata.gz: 77e9cba516478be239dcf9a96ee35f2a70d7da8871344a535d8de295ec32c4da
4
+ data.tar.gz: 19dd18244a059ee6aea0437b0e932d0dc483103fa52b4dfcf6b1f3c554e823bb
5
5
  SHA512:
6
- metadata.gz: 5a1d184b6ea50e228aa2a30fb5e33bf098b816fc2559122bf34db4b0d0c90afa9ea4d090462d94c93137f5662a59e4ce2cfaad3f20b5b2ce703a90aa52b6674b
7
- data.tar.gz: cb54969ff1352e0f5eec0c08a4d21e9a4a87e5edcb17dfa9b1a70b166ffcba19a63887bbc94e97d190c8b6ff913bf30a7469b770fcf350da8b3f02e473d2577d
6
+ metadata.gz: 8f72df72c72976e596d68a9b6c3b13afca9f5656253d295de2330b46d3fb44a7399894abe34b292ebffbcb408a2da1c6459160de73fd33b20b52af0140a8a1c1
7
+ data.tar.gz: d7bd5babd00854b4bcca761b283b2228fcc8970b47754436e3c9899ea750111309a449a7191d78893ab9a3c4ee16e8fa5012b57da4b2af9ffca8680a120c549d
data/README.md CHANGED
@@ -15,10 +15,11 @@ fir.im-cli 可以通过指令查看, 上传, iOS/Android 应用.
15
15
 
16
16
  # 请注意
17
17
  - 如果您遇到了任何fir-cli 使用上的问题, 建议您首先使用 `gem install fir-cli ` 升级到最新版本的 fir-cli, 目前最新版本是 [![最新版本的版本号](https://badge.fury.io/rb/fir-cli.svg)](http://badge.fury.io/rb/fir-cli), 您要是不确定的话, 可以使用 `fir version` 查看当前版本号
18
-
18
+ - 请注意, 请尽快将 fir-cli 的版本升级至 2.0.15 以上, 旧有 api 即将过期
19
19
  - 我们也提供 docker 版本的 fir-cli, 具体使用方式参见 **Docker 运行 fir-cli** 章节
20
20
 
21
21
  # 最近更新
22
+ - (2.0.22) 支持自定义下载文件名称 --user_download_file_name=具体文件名称 注意, 此参数无法与switch_to_qiniu 一起使用
22
23
  - (2.0.21) 修正 publish 的结果不返回导致 fastlane-plugin-fir_cli 命令执行结果为nil 的问题
23
24
  - (2.0.20) 新增参数 --save_uploaded_info, 可以将上传的结果存入当前目录下的 fir-cli-upload-info.json 文件中, 方便集成其他功能
24
25
  - (2.0.19) 修正了上传的图标不显示的问题
data/lib/fir/cli.rb CHANGED
@@ -144,9 +144,10 @@ module FIR
144
144
  method_option :auto_download_bundletool_jar, type: :boolean, default: false, desc: "upload aab file command: would download bundletool when invoke bundletool failure"
145
145
 
146
146
  method_option :save_uploaded_info, type: :boolean, default: false, desc: 'save uploaded info to local file named fir-cli-answer.json'
147
+
148
+ method_option :user_download_file_name, type: :string, desc: 'set user download file name, (not support with params switch_to_qiniu)'
147
149
  def publish(*args)
148
150
  prepare :publish
149
-
150
151
  FIR.publish(*args, options)
151
152
  end
152
153
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'uri'
3
4
  require_relative './app_uploader'
4
5
 
5
6
 
@@ -39,6 +40,15 @@ module FIR
39
40
  'authorization' => headers[:authorization]
40
41
  }
41
42
 
43
+ if @options[:user_download_file_name] != nil
44
+ # 处理中文问题, 使之支持 CONTENT-DISPOSITION 的要求
45
+
46
+
47
+ headers_copy["CONTENT-DISPOSITION"] = "attachment; filename=#{URI.encode_www_form_component @options[:user_download_file_name]}"
48
+
49
+
50
+ end
51
+
42
52
  logger.debug headers_copy
43
53
  put_file(binary_url, binary_info, headers_copy)
44
54
  callback_to_api(callback_url, callback_binary_information)
data/lib/fir/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = "2.0.21"
4
+ VERSION = "2.0.22"
5
5
  end
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.21
4
+ version: 2.0.22
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: 2023-03-27 00:00:00.000000000 Z
12
+ date: 2024-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler