fir-cli 1.7.1 → 1.7.2

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: f519307fd500f9c5abcb1f9e58bb07a400b1c2d4e83c86bd497f78bdbe697872
4
- data.tar.gz: d1fb7013596a6f40b9604d9ada08b72e473b4eaaa63f1b84e2428e914f7155d4
3
+ metadata.gz: 20bfcb3b79089a7e71d3e11863ffcb2d884ba3f28036bd977a869b50a073b243
4
+ data.tar.gz: c7f95ac0b0da3915c1f402bd51ea14ae845ffdd018612efa984b16cf40853594
5
5
  SHA512:
6
- metadata.gz: 227a5f10ffb7fa3de80000b3e49549a39978df87dcf3a3d271bca90eabf89fd25baa8b758fbd88b88ca3fd9bcabb0cce809347c8b83115fe63091d57c28ac05a
7
- data.tar.gz: 34374e11164cb8d8213ae3f71d0cafa66e4232673f01478fd94f72f9157b4ec099192a0522b5cf5a3265b90da8d7728dc982b7e1292e07032644c65fc3eeb577
6
+ metadata.gz: dce50d46d8fffd9221cee1b291c8f9c4ffe96005d8beb7d3e09564d636ecb0b6260b64e27de805c8d57876cf6ef5e4f1984f9e60424c08e60f48c6529e5ea625
7
+ data.tar.gz: 8c1c426413283f1925ef7811793449f2af0b87a661056d6700fc5548dd2d084c6e9bc5282bae4025dee0e580af9aec2d6a75d99ff8a81bc9480d674aabb66aae
data/.travis.yml CHANGED
@@ -1,9 +1,8 @@
1
1
  rvm:
2
- - 2.1
3
- - 2.2
4
2
  - 2.3
5
3
  - 2.4
6
- - 2.4
4
+ - 2.5
5
+ - 2.6
7
6
  - ruby-head
8
7
  matrix:
9
8
  allow_failures:
data/README.md CHANGED
@@ -14,8 +14,8 @@ fir.im-cli 可以通过指令查看, 上传, iOS/Android 应用.
14
14
 
15
15
 
16
16
  # 最近更新
17
- - 官方支持 钉钉推送, 使用方法为 在publish 中增加 --dingtalk_access_token=xxxxxxxxxxxxxxxxxxx (或者 -D=xxxxxxx)
18
- - 官方支持 上传完毕后, 返回精确的版本的下载地址, 使用方案为 在 publish 后增加 --need_release_id (特定版本支持近期30个以内的任意版本)
17
+ - 官方支持 钉钉推送, 使用方法为 在publish 中增加 --dingtalk_access_token=xxxxxxxxxxxxxxxxxxx (或者 -D=xxxxxxx) [2019年05月06日]
18
+ - 官方支持 上传完毕后, 返回精确的版本的下载地址, 使用方案为 在 publish 后增加 --need_release_id (特定版本支持近期30个以内的任意版本) [2019年05月06日]
19
19
  - 已过期 build_ipa 功能, 推荐用户使用 fastlane (fastlane gym)进行打包,生成好 ipa 文件后,再使用 `fir publish` 上传生成的ipa [2019年03月21日]
20
20
  - 由于部分地区上传时遇到的证书问题, 新版本默认忽略证书校验. 如需打开, 请在命令前加入`UPLOAD_VERIFY_SSL=1`
21
21
  - 现已添加 docker 版本, 具体请见 `Docker 运行 fir-cli ` 说明
@@ -55,14 +55,6 @@ fir login token
55
55
  fir help
56
56
  ```
57
57
 
58
- ## 最近更新
59
- - (1.7.1) 新增发布后可选返回精确到版本的下载地址, 以及支持钉钉推送
60
- - (1.7.0) 过期了ipa_build 功能, 增加了对 android manifest instant run 的兼容
61
- - (1.6.13) 上传图标逻辑修改
62
- - (1.6.12) 修复了部分机器没有默认安装 byebug 的问题
63
- - (1.6.11) 变化了 ruby gem 仓库地址
64
- - (1.6.10) 增加显示release_id 以及 app_id
65
-
66
58
  ## 提交反馈
67
59
 
68
60
  - 联系微信 `atpking`
data/doc/install.md CHANGED
@@ -3,12 +3,14 @@
3
3
  fir-cli 使用 Ruby 构建, 无需编译, 只要安装相应 gem 即可.
4
4
 
5
5
  ```sh
6
- $ ruby -v # > 1.9.3
6
+ $ ruby -v # > 2.6.1
7
7
  $ gem install fir-cli
8
8
  ```
9
9
 
10
10
  #### 常见的安装问题
11
11
 
12
+ - ruby 要求最低版本为 2.3
13
+
12
14
  - 使用系统自带的 Ruby 安装, 需确保 ruby-dev 已被正确的安装:
13
15
 
14
16
  ```sh
@@ -26,12 +28,12 @@ $ gem install fir-cli
26
28
 
27
29
  ```sh
28
30
  $ gem sources --remove https://rubygems.org/
29
- $ gem sources -a https://gems.ruby-china.org/
31
+ $ gem sources -a https://gems.ruby-china.com/
30
32
  $ gem sources -l
31
33
  *** CURRENT SOURCES ***
32
34
 
33
- https://gems.ruby-china.org
34
- # 请确保只有 gems.ruby-china.org, 如果有其他的源, 请 remove 掉
35
+ https://gems.ruby-china.com
36
+ # 请确保只有 gems.ruby-china.com, 如果有其他的源, 请 remove 掉
35
37
 
36
38
  gem update --system
37
39
  gem install fir-cli
data/doc/publish.md CHANGED
@@ -28,8 +28,6 @@ Options:
28
28
  - `-s` 参数, 自定义发布后的短链接地址.
29
29
  - `-c` 参数, 自定义发布时的 changelog, 支持字符串与文件两种方式, 即 `--changelog='this is changelog'` 和 `--changelog='/Users/fir-cli/changelog'`.
30
30
  - `-Q` 参数, 是否生成发布后二维码, 默认为不生成, 加上 `-Q` 参数后会在当前目录生成一张二维码图片, 扫描该图片即可下载该应用.
31
- - `-m` 参数, 上传当前应用的符号表文件, 配合 `-P` 参数使用.
32
- - `-P` 参数, [BugHD.com](http://bughd.com) 上相对应的 Project id.
33
31
  - `-R` 参数, 显示具体版本, 会在发布结束后的下载地址中生成指定的版本
34
32
  - `-D` 参数, 钉钉机器人的access_token, 填写后当上传完毕, 会发送至钉钉机器人
35
33
  - `--open` 参数, 设置发布后的应用是否开放给所有人下载, 关闭开放使用 `--no-open` 参数.
data/fir-cli.gemspec CHANGED
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
27
27
  /_/ /___/_/ |_| \____/_____/___/
28
28
 
29
29
  ## 更新记录
30
+ - (1.7.2) 修正了无论是否加参数都固定出现二维码图片的bug
30
31
  - (1.7.1) 增加了 钉钉推送 , 增加了返回指定版本下载地址
31
32
  - (1.7.0) 过期了ipa_build 功能, 增加了对 android manifest instant run 的兼容
32
33
  - (1.6.13) 上传图标逻辑修改
@@ -20,6 +20,7 @@ module FIR
20
20
  dingtalk_notifier(options)
21
21
  upload_mapping_file_with_publish(options)
22
22
  logger_info_blank_line
23
+ clean_files
23
24
  end
24
25
 
25
26
  def logger_info_publishing_message
@@ -182,13 +183,17 @@ module FIR
182
183
  logger.info "Published succeed: #{@download_url}"
183
184
 
184
185
  @qrcode_path = "#{File.dirname(@file_path)}/fir-#{@app_info[:name]}.png"
185
- FIR.generate_rqrcode(@qrcode_path, @qrcode_path)
186
+ FIR.generate_rqrcode(@download_url, @qrcode_path)
186
187
 
187
188
  logger.info "Local qrcode file: #{@qrcode_path}" if @export_qrcode
188
189
  end
189
190
 
190
191
  private
191
192
 
193
+ def clean_files
194
+ File.delete(@qrcode_path) unless @export_qrcode
195
+ end
196
+
192
197
  def dingtalk_notifier(options)
193
198
  if options[:dingtalk_access_token]
194
199
  title = "#{@app_info[:name]}-#{@app_info[:version]}(Build #{@app_info[:build]})"
data/lib/fir/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = '1.7.1'
4
+ VERSION = '1.7.2'
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: 1.7.1
4
+ version: 1.7.2
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: 2019-05-06 00:00:00.000000000 Z
12
+ date: 2019-05-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -234,10 +234,11 @@ metadata: {}
234
234
  post_install_message: "\n ______________ ________ ____\n /
235
235
  ____/ _/ __ \\ / ____/ / / _/\n / /_ / // /_/ /_____/ / / / /
236
236
  /\n / __/ _/ // _, _/_____/ /___/ /____/ /\n /_/ /___/_/ |_| \\____/_____/___/\n\n
237
- \ ## 更新记录\n - (1.7.1) 增加了 钉钉推送 , 增加了返回指定版本下载地址\n - (1.7.0) 过期了ipa_build 功能, 增加了对
238
- android manifest instant run 的兼容\n - (1.6.13) 上传图标逻辑修改\n - (1.6.12) 修复了部分机器没有默认安装
239
- byebug 的问题\n - (1.6.11) 变化了 ruby gem 仓库地址\n - [fir-cli](https://github.com/firhq/fir-cli)
240
- 已经开源\n - 欢迎 fork, issue 和 pull request\n "
237
+ \ ## 更新记录\n - (1.7.2) 修正了无论是否加参数都固定出现二维码图片的bug\n - (1.7.1) 增加了 钉钉推送 , 增加了返回指定版本下载地址\n
238
+ \ - (1.7.0) 过期了ipa_build 功能, 增加了对 android manifest instant run 的兼容\n - (1.6.13)
239
+ 上传图标逻辑修改\n - (1.6.12) 修复了部分机器没有默认安装 byebug 的问题\n - (1.6.11) 变化了 ruby gem 仓库地址\n
240
+ \ - [fir-cli](https://github.com/firhq/fir-cli) 已经开源\n - 欢迎 fork, issue 和 pull
241
+ request\n "
241
242
  rdoc_options: []
242
243
  require_paths:
243
244
  - lib