fir-cli 1.4.7 → 1.4.8

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
  SHA1:
3
- metadata.gz: b48f9ebc4585b549dde104d253061c5841a4794f
4
- data.tar.gz: 7ad1fce8df00369f7523ced7c3f9e0f765a6910a
3
+ metadata.gz: 27473f4f09804d0df210c601facda8cc44b863d7
4
+ data.tar.gz: ba0632fd67774815f55b92b82396d4cb818c4aa5
5
5
  SHA512:
6
- metadata.gz: a3185e5ac69bbe774842fb7e72c3e3a95a5042fa1c76bc83fd52957612b7451099d3fd25f8b2a782816a1b163d433078209d206cdadfcb39ebf2279525b81885
7
- data.tar.gz: b7c0826ee737b50a1fed0cf536e13a2280e1f1210b14e174be52fc21264ca1e912037630af19cc2db1fc572bf12e9a8f785b827fd3345c533381a38dab063047
6
+ metadata.gz: 4e84960a168d32128f468e984e2814ede6a75187edff1698bc66907fe7aba142a9cb0b746c1b12b41c3bc1067834e4f7c0dcf8f6c9e8bd68986c224fd5290e09
7
+ data.tar.gz: 75f5ed37ff32aaf5c94926db800c20cb0ff9efecf733acd70076a6faae2bdd3c8fab6e8e993fd43e0c7cf8d026925ce19ec639d2b99228b0a0932548518fcbe8
data/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
1
  ## 更新记录
2
2
 
3
+ ### fir-cli 1.4.8
4
+ - 修正 build 后直接 -p 发布的权限错误
5
+
3
6
  ### fir-cli 1.4.7
4
7
  - 增加 build_ipa 中的 destination 参数
5
8
 
data/fir-cli.gemspec CHANGED
@@ -27,10 +27,9 @@ Gem::Specification.new do |spec|
27
27
  /_/ /___/_/ |_| \____/_____/___/
28
28
 
29
29
  ## 更新记录
30
- ### fir-cli 1.4.7
30
+ ### fir-cli 1.4.8
31
+ - 修正 build 后直接 -p 发布的权限错误
31
32
  - 增加上传时候设置密码及公开访问权限
32
- - 增加 Android flavor 打包(感谢 [msdx](https://github.com/msdx) 的热心帮助)
33
- - `$ fir ba <project dir> -f <flavor>`
34
33
  - 增加 build_ipa 中的 destination 参数
35
34
  - 详细更新记录, 请查看: https://github.com/FIRHQ/fir-cli/blob/master/CHANGELOG
36
35
  - [fir-cli](https://github.com/FIRHQ/fir-cli) 已经开源
data/lib/fir/cli.rb CHANGED
@@ -40,6 +40,8 @@ module FIR
40
40
  method_option :qrcode, type: :boolean, aliases: '-Q', desc: 'Generate qrcode'
41
41
  method_option :mapping, type: :boolean, aliases: '-M', desc: 'true/false if upload app mapping file to BugHD.com'
42
42
  method_option :proj, type: :string, aliases: '-P', desc: 'Project id in BugHD.com if upload app mapping file'
43
+ method_option :open, type: :boolean, desc: 'true/false if open for everyone, the default is: true', default: true
44
+ method_option :password, type: :string, desc: 'Set password for app'
43
45
  def build_ipa(*args)
44
46
  prepare :build_ipa
45
47
 
@@ -69,6 +71,8 @@ module FIR
69
71
  method_option :name, type: :string, aliases: '-n', desc: 'Set custom apk name when builded'
70
72
  method_option :changelog, type: :string, aliases: '-c', desc: 'Set changelog if publish to fir.im, support string/file'
71
73
  method_option :qrcode, type: :boolean, aliases: '-Q', desc: 'Generate qrcode'
74
+ method_option :open, type: :boolean, desc: 'true/false if open for everyone, the default is: true', default: true
75
+ method_option :password, type: :string, desc: 'Set password for app'
72
76
  def build_apk(*args)
73
77
  prepare :build_apk
74
78
 
@@ -92,18 +96,18 @@ module FIR
92
96
 
93
97
  $ fir p <app file path> [-c <changelog> -s <custom short link> -Q -T <your api token>]
94
98
 
95
- $ fir p <app file path> [-c <changelog> -s <custom short link> --password=123456 -o false -Q -T <your api token>]
99
+ $ fir p <app file path> [-c <changelog> -s <custom short link> --password=123456 --open=false -Q -T <your api token>]
96
100
 
97
101
  $ fir p <app file path> [-c <changelog> -s <custom short link> -m <mapping file path> -P <bughd project id> -Q -T <your api token>]
98
102
  LONGDESC
99
103
  map 'p' => :publish
100
104
  method_option :short, type: :string, aliases: '-s', desc: 'Set custom short link'
101
105
  method_option :changelog, type: :string, aliases: '-c', desc: 'Set changelog'
102
- method_option :password, type: :string, aliases: '-p', desc: 'Set password for app'
103
- method_option :open, type: :boolean, aliases: '-o', desc: 'true/false if open for everyone, the default is: true', default: true
104
106
  method_option :qrcode, type: :boolean, aliases: '-Q', desc: 'Generate qrcode'
105
107
  method_option :mappingfile, type: :string, aliases: '-m', desc: 'App mapping file'
106
108
  method_option :proj, type: :string, aliases: '-P', desc: 'Project id in BugHD.com if upload app mapping file'
109
+ method_option :open, type: :boolean, desc: 'true/false if open for everyone, the default is: true', default: true
110
+ method_option :password, type: :string, desc: 'Set password for app'
107
111
  def publish(*args)
108
112
  prepare :publish
109
113
 
@@ -13,7 +13,7 @@ module FIR
13
13
  logger_info_and_run_build_command
14
14
 
15
15
  output_apk
16
- publish_build_app if options.publish?
16
+ publish_build_app(options) if options.publish?
17
17
 
18
18
  logger_info_blank_line
19
19
  end
@@ -51,12 +51,9 @@ module FIR
51
51
  end
52
52
  end
53
53
 
54
- def publish_build_app
54
+ def publish_build_app(options)
55
55
  logger_info_blank_line
56
- publish @builded_app_path, short: @short,
57
- changelog: @changelog,
58
- token: @token,
59
- qrcode: @export_qrcode
56
+ publish @builded_app_path, options
60
57
  end
61
58
 
62
59
  def logger_info_and_run_build_command
@@ -12,7 +12,7 @@ module FIR
12
12
  logger_info_and_run_build_command
13
13
 
14
14
  output_ipa_and_dsym
15
- publish_build_app if options.publish?
15
+ publish_build_app(options) if options.publish?
16
16
  upload_build_dsym_mapping_file if options.mapping?
17
17
 
18
18
  logger_info_blank_line
data/lib/fir/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = '1.4.7'
4
+ VERSION = '1.4.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fir-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - NaixSpirit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-25 00:00:00.000000000 Z
11
+ date: 2016-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -206,8 +206,7 @@ metadata: {}
206
206
  post_install_message: "\n ______________ ________ ____\n /
207
207
  ____/ _/ __ \\ / ____/ / / _/\n / /_ / // /_/ /_____/ / / / /
208
208
  /\n / __/ _/ // _, _/_____/ /___/ /____/ /\n /_/ /___/_/ |_| \\____/_____/___/\n\n
209
- \ ## 更新记录\n ### fir-cli 1.4.7\n - 增加上传时候设置密码及公开访问权限\n - 增加 Android flavor 打包(感谢
210
- [msdx](https://github.com/msdx) 的热心帮助)\n - `$ fir ba <project dir> -f <flavor>`\n
209
+ \ ## 更新记录\n ### fir-cli 1.4.8\n - 修正 build 后直接 -p 发布的权限错误\n - 增加上传时候设置密码及公开访问权限\n
211
210
  \ - 增加 build_ipa 中的 destination 参数\n - 详细更新记录, 请查看: https://github.com/FIRHQ/fir-cli/blob/master/CHANGELOG\n
212
211
  \ - [fir-cli](https://github.com/FIRHQ/fir-cli) 已经开源\n - 欢迎 fork, issue 和 pull
213
212
  request\n "