fir-cli 2.0.3.1 → 2.0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a2fc1d3b95afee819dc138e68291a1000f9e1cdd19edcbb8e14ad9f60670c29
4
- data.tar.gz: 683d4e5059cd554a9fb7617c4817e051dc0b596b9b4ff21c5a24fbf09dcc48ea
3
+ metadata.gz: b14544079d7f5a72d825d004445c4ff5cc6fb479875142d7a6885449644d43d0
4
+ data.tar.gz: 8457599ac5bfd4194aacc27365478019feccf90a22bf4f916fd24fdeded1b46a
5
5
  SHA512:
6
- metadata.gz: 33c1d814aec873e14afc256f11bd11cdca033f0c8184aa6368d4a7e96f2e8682690db2237f6710fb3c4da2797fdd6ff3de3c063e72d5c3e1cf2581cd07dd372d
7
- data.tar.gz: 2b0e261e1f295f30504b5ede4ccf83dd2059d16772e6d41d55fc56e77dd14578c8d17b8fad773886492fbf617adfb09ff7a92a4b119e6059f72abbf235835b5c
6
+ metadata.gz: 378d1d0a22fa1c25d748c834887cd200982bba5e46cbe7ecd3d071f5fdfef6c2d1c4a39eaead261dc1b52bc91e6b1f99e8c7968701b087b9b23018959992e053
7
+ data.tar.gz: c83632a660a369aaef236a0249423b8ccae460f0e5da96df5141dc26bd6f92f8566514ff9a963d7921218d02bfe0bede0ac736d8686b194e50d2406104449588
data/README.md CHANGED
@@ -14,7 +14,8 @@ fir.im-cli 可以通过指令查看, 上传, iOS/Android 应用.
14
14
 
15
15
 
16
16
  # 最近更新
17
- - (2.0.3.1) 切换到了临时的域名
17
+ - (2.0.3.2) 将返回下载地址转化为了绑定的域名
18
+ - (2.0.3.1) 因为域名问题, fir-cli切换到了备用域名上. 老版本用户 运行 `gem update fir-cli` 即可
18
19
  - (2.0.3) 增加 dingtalk_at_phones, 钉钉通知可 at 用户手机号, 以逗号,分割. 此命令需配合 `dingtalk_access_token` 使用
19
20
  - (2.0.3) 增加 dingtalk_at_all, 钉钉通知可 at 所有人, 此命令需配合 `dingtalk_access_token` 使用
20
21
  - (2.0.3) 增加海外加速参数 --oversea_turbo, 需要使用该功能的小伙伴请微信联系我, 我来开通
@@ -1,7 +1,7 @@
1
1
  fir:
2
- domain: 'https://www.jappstore.com'
3
- base_url: 'https://api.jappstore.com'
4
- user_url: 'https://api.jappstore.com/user'
5
- app_url: 'https://api.jappstore.com/apps'
6
- udids_url: 'https://api.jappstore.com/devices/multi_udid'
2
+ domain: 'http://www.betaqr.com'
3
+ base_url: 'http://api.bq04.com'
4
+ user_url: 'http://api.bq04.com/user'
5
+ app_url: 'http://api.bq04.com/apps'
6
+ udids_url: 'http://api.bq04.com/devices/multi_udid'
7
7
 
@@ -15,13 +15,14 @@ module FIR
15
15
  received_app_info = upload_app
16
16
 
17
17
  short = received_app_info[:short]
18
+ download_domain = received_app_info[:download_domain]
18
19
  release_id = received_app_info[:release_id]
19
20
 
20
21
  logger.info 'end upload'
21
22
 
22
23
  logger_info_dividing_line
23
24
 
24
- download_url = build_download_url(short, release_id)
25
+ download_url = build_download_url(download_domain, short, release_id)
25
26
  logger.info "Published succeed: #{download_url}"
26
27
 
27
28
  qrcode_path = build_qrcode download_url
@@ -168,8 +169,8 @@ module FIR
168
169
  qrcode_path
169
170
  end
170
171
 
171
- def build_download_url(short, release_id)
172
- url = "#{fir_api[:domain]}/#{short}"
172
+ def build_download_url(download_domain, short, release_id)
173
+ url = "http://#{download_domain}/#{short}"
173
174
  url += "?release_id=#{release_id}" if options[:need_release_id]
174
175
  url
175
176
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = '2.0.3.1'
4
+ VERSION = '2.0.3.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: 2.0.3.1
4
+ version: 2.0.3.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: 2020-02-25 00:00:00.000000000 Z
12
+ date: 2020-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler