fir-cli 1.2.9 → 1.3.0

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: ba21bf45fa66a3258e0487843c45b2c5fa3aa079
4
- data.tar.gz: 1817005f1c05b9665443c9fe27a768ff515dfb96
3
+ metadata.gz: 326c112e30856cfa7e8b51acceb9540717a8af76
4
+ data.tar.gz: e74f4803296b340830e02274b87e6e6490eeb4db
5
5
  SHA512:
6
- metadata.gz: 64ae9b0ae7f0f1e33559ff95f3948f68f09aace41ce7632283e63637fa4540eaea045799f2ec35d00dee4071abcc9f1f35f528de454e2f2500bc65ba59789087
7
- data.tar.gz: 235d964b9effb042741f32408fa36f242e197cb7a3067e2523e698e30ac44c1ff77e4020d8f9bc6166beedc8882152e66eae923c813f936438b8fb3033779d8c
6
+ metadata.gz: 28f35efce82bb923c0455066e167a695dfb5ebe2aff4c3bd844e5d1591d59efddb8b9dd460eab8358411155476a36b6ff164557fc22e481f26ac552ea401911e
7
+ data.tar.gz: dc0dfd3287aafbde124c1680ec8a96731b556d5653afb9ac34fb33590e1cb399f1504955d65f0b6c4daa867ddc9fb3331660fb10d196a12d6219de511fb76761
data/.travis.yml CHANGED
@@ -14,6 +14,8 @@ matrix:
14
14
  - rvm: jruby
15
15
  - rvm: jruby-head
16
16
  - rvm: rbx-2
17
+ env:
18
+ - USE_OFFICIAL_GEM_SOURCE=true
17
19
  notifications:
18
20
  recipients:
19
21
  - hxy@fir.im
data/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
1
  ## 更新记录
2
2
 
3
+ ### fir-cli 1.3.0
4
+ - 去掉 build multi apps 的限制
5
+
3
6
  ### fir-cli 1.2.9
4
7
  - 修复指定 output_path 后, publish 默认查找第一个 app 的 bug
5
8
  - 暂时不支持 build multi apps
data/fir-cli.gemspec CHANGED
@@ -27,9 +27,8 @@ Gem::Specification.new do |spec|
27
27
  /_/ /___/_/ |_| \____/_____/___/
28
28
 
29
29
  ## 更新记录
30
- ### fir-cli 1.2.9
30
+ ### fir-cli 1.3.0
31
31
  - 修复指定 output_path 后, publish 默认查找第一个 app 的 bug
32
- - 暂时不支持 build multi apps
33
32
  - 详细更新记录, 请查看: https://github.com/FIRHQ/fir-cli/blob/master/CHANGELOG
34
33
  - [fir-cli](https://github.com/FIRHQ/fir-cli) 已经开源
35
34
  - 欢迎 fork, issue 和 pull request
@@ -47,7 +47,8 @@ module FIR
47
47
  def output_ipa_and_dsym
48
48
  Dir.chdir(@build_tmp_dir) do
49
49
  apps = Dir['*.app']
50
- check_no_output_app_and_multi_apps(apps)
50
+ check_no_output_app(apps)
51
+ check_multi_apps(apps)
51
52
 
52
53
  temp_ipa = zip_app2ipa(File.join(@build_tmp_dir, apps.first))
53
54
  ipa_info = FIR.ipa_info(temp_ipa)
@@ -118,15 +119,18 @@ module FIR
118
119
  end
119
120
  end
120
121
 
121
- def check_no_output_app_and_multi_apps(apps)
122
+ def check_no_output_app(apps)
122
123
  if apps.length == 0
123
124
  logger.error 'Builded has no output app, Can not be packaged'
124
125
  exit 1
125
126
  end
127
+ end
126
128
 
129
+ def check_multi_apps(apps)
127
130
  if apps.length > 1
128
- logger.error 'Builded multi apps, Not supported'
129
- exit 1
131
+ logger.warn '!' * 50
132
+ logger.warn 'Builded multi apps! Only package the first one!'
133
+ logger.warn '!' * 50
130
134
  end
131
135
  end
132
136
 
data/lib/fir/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = '1.2.9'
4
+ VERSION = '1.3.0'
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.2.9
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NaixSpirit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-13 00:00:00.000000000 Z
11
+ date: 2015-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -196,10 +196,9 @@ metadata: {}
196
196
  post_install_message: "\n ______________ ________ ____\n /
197
197
  ____/ _/ __ \\ / ____/ / / _/\n / /_ / // /_/ /_____/ / / / /
198
198
  /\n / __/ _/ // _, _/_____/ /___/ /____/ /\n /_/ /___/_/ |_| \\____/_____/___/\n\n
199
- \ ## 更新记录\n ### fir-cli 1.2.9\n - 修复指定 output_path 后, publish 默认查找第一个 app 的 bug\n
200
- \ - 暂时不支持 build multi apps\n - 详细更新记录, 请查看: https://github.com/FIRHQ/fir-cli/blob/master/CHANGELOG\n
201
- \ - [fir-cli](https://github.com/FIRHQ/fir-cli) 已经开源\n - 欢迎 fork, issue 和 pull
202
- request\n "
199
+ \ ## 更新记录\n ### fir-cli 1.3.0\n - 修复指定 output_path 后, publish 默认查找第一个 app 的 bug\n
200
+ \ - 详细更新记录, 请查看: https://github.com/FIRHQ/fir-cli/blob/master/CHANGELOG\n - [fir-cli](https://github.com/FIRHQ/fir-cli)
201
+ 已经开源\n - 欢迎 fork, issue 和 pull request\n "
203
202
  rdoc_options: []
204
203
  require_paths:
205
204
  - lib