fir-cli 2.0.0.beta → 2.0.0.beta2

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: 673a534b58afadd5a2b7491884a074dd2db722b636929ac3a43c5de1778e981d
4
- data.tar.gz: fcf5a3e79f1bfaf937d6ae13bfed6f40c3f405e59344c797c1fe7a43f8489ddd
3
+ metadata.gz: 8f13a043c4d041e028d11b0c35aeb29f05732834f9121a7d3927084ce46bd710
4
+ data.tar.gz: 10050897eee65529a03d9c377e7004f36e9f0b7404a7317e2c88534e26fdde38
5
5
  SHA512:
6
- metadata.gz: 3d62c7e16583cf776c29bbbaec8dfae9104b01534cbf52882545bebf688fda89a51dd928cbd31ae7ccab6ac833fffd1650c13f9c2639f526396c1bdd4ec60a99
7
- data.tar.gz: 31d38f670026014742b1a4c1cf87b5f1e33d13bb294266d327dc517a655a395a84629f226285432899c0755882e3304a2ab199b21994f227b348fa54f7d20b53
6
+ metadata.gz: 5b437008a68205b9e17e4f20fc222eb7fb879132e1240ce9a3d2f357581e8811d2c020fcea699ff1ca8f0599d8e360f0d23f60492d139ddb080b784c161bb332
7
+ data.tar.gz: 8caae649e99fa4dcc24daa99e3fcfbec8a1a83d2f9e5c03725cef31488d57ed0e2fea6ccff7be7f2aaa08826a55dc9e3fadeead2e2bd3bdf99a75665a6d0befe
data/README.md CHANGED
@@ -14,7 +14,7 @@ fir.im-cli 可以通过指令查看, 上传, iOS/Android 应用.
14
14
 
15
15
 
16
16
  # 最近更新
17
- - (2.0.0) publish 使用更快的存储商, 加速上传速度, 若感觉没以前可使用 switch_to_qiniu 恢复
17
+ - (2.0.0.beta2 beta 版本, `gem install fir-cli -v 2.0.0.beta2` 进行安装) publish 使用更快的存储商, 加速上传速度, 若感觉没以前可使用 switch_to_qiniu 恢复
18
18
  - 支持了在fastlane 直接调用, 具体请参见 [https://github.com/FIRHQ/fastlane-plugin-fir_cli](https://github.com/FIRHQ/fastlane-plugin-fir_cli)
19
19
  - publish 支持 新参数 force_pin_history, 可以 将上传的版本, 固定在下载页面上(当大于最大固定版本数后, 会挤掉最老的固定版本) [2019年11月18日]
20
20
  - publish 支持 新参数 specify_icon_file_path, 可以直接指定 app 的 icon 图标文件 [2019年11月18日]
@@ -38,6 +38,16 @@ module FIR
38
38
  }
39
39
  end
40
40
 
41
+ def fetch_app_info
42
+ logger.info 'Fetch app info from fir.im'
43
+
44
+ fir_app_info = get(fir_api[:app_url] + "/#{@app_id}", api_token: @token)
45
+ write_app_info(id: fir_app_info[:id],
46
+ short: fir_app_info[:short],
47
+ name: fir_app_info[:name])
48
+ fir_app_info
49
+ end
50
+
41
51
  protected
42
52
 
43
53
  def logger_info_publishing_message
@@ -76,8 +86,8 @@ module FIR
76
86
  return if @app_info[:devices].blank?
77
87
 
78
88
  logger.info 'Updating devices info......'
79
-
80
- post fir_api[:udids_url], key: @binary_cert[:key],
89
+ key = @uploading_info[:cert][:binary][:key]
90
+ post fir_api[:udids_url], key: key,
81
91
  udids: @app_info[:devices].join(','),
82
92
  api_token: @token
83
93
  end
@@ -111,15 +121,7 @@ module FIR
111
121
  }
112
122
  end
113
123
 
114
- def fetch_app_info
115
- logger.info 'Fetch app info from fir.im'
116
124
 
117
- fir_app_info = get(fir_api[:app_url] + "/#{@app_id}", api_token: @token)
118
- write_app_info(id: fir_app_info[:id],
119
- short: fir_app_info[:short],
120
- name: fir_app_info[:name])
121
- fir_app_info
122
- end
123
125
 
124
126
  def upload_mapping_file_with_publish
125
127
  return if !options[:mappingfile] || !options[:proj]
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.0.beta'
4
+ VERSION = '2.0.0.beta2'
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.0.beta
4
+ version: 2.0.0.beta2
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-11-21 00:00:00.000000000 Z
12
+ date: 2019-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler