fir-cli 1.3.2 → 1.3.3

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: 81eb6326b7b1e1ff334ee9d2c0277dcf9e40430f
4
- data.tar.gz: ff5a608d1a33177c964b5a16ef54606f6c08ddb2
3
+ metadata.gz: a56444da7328deec7e69223fece6eb2dc715d466
4
+ data.tar.gz: d9be4d37e529796ce52da8dd29a562fb715c8e27
5
5
  SHA512:
6
- metadata.gz: edefb7042202cbc3f1f633c7640b2e731b6e1b12adff12cd318d89f79f52eab14b7bbcc99930c0919819b05a40a0a5b41543248879d3227ba666531dd6907899
7
- data.tar.gz: befd4d052fc98329a999a3305558134bd74eb389051ff5aa60ab2b849814aed9e5ec92e7492d761d2f7b198eacc46c9f0b9f61a65d691c896be31f003b7d3ceb
6
+ metadata.gz: 9d4f3e80372416a4e2bbe1585d1b82dd2c1f022f409b002e30ba4895618c0b4bfd6658d0253fca086ed47789e2ad8ab734fc907bf52e0b8833a5300a3514c183
7
+ data.tar.gz: 82757960380028c490fcc349ff69c6a19f86278d3f9c750647afeec08fd9aae4b486eef74d3574471e24cc6979338228f6f64122a75924ec6c76a5cf41d989a2
data/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
1
  ## 更新记录
2
2
 
3
+ ### fir-cli 1.3.3
4
+ - 修正解析 inhouse 错误的现象
5
+
3
6
  ### fir-cli 1.3.2
4
7
  - 支持打包提供 app watch 的应用
5
8
 
data/fir-cli.gemspec CHANGED
@@ -27,8 +27,8 @@ Gem::Specification.new do |spec|
27
27
  /_/ /___/_/ |_| \____/_____/___/
28
28
 
29
29
  ## 更新记录
30
- ### fir-cli 1.3.2
31
- - 已经支持打包提供 app watch 的应用
30
+ ### fir-cli 1.3.3
31
+ - 修正解析 inhouse 错误的现象
32
32
  - 详细更新记录, 请查看: https://github.com/FIRHQ/fir-cli/blob/master/CHANGELOG
33
33
  - [fir-cli](https://github.com/FIRHQ/fir-cli) 已经开源
34
34
  - 欢迎 fork, issue 和 pull request
data/lib/fir/util/info.rb CHANGED
@@ -24,7 +24,7 @@ module FIR
24
24
  def ipa_info(ipa_path, options = {})
25
25
  ipa = FIR::Parser::Ipa.new(ipa_path)
26
26
  app = ipa.app
27
- info = app.full_info(options).merge(release_type: ipa.release_type)
27
+ info = app.full_info(options)
28
28
 
29
29
  ipa.cleanup
30
30
  info
@@ -12,7 +12,7 @@ module FIR
12
12
  end
13
13
 
14
14
  def app
15
- @app ||= App.new(app_path)
15
+ @app ||= App.new(app_path, is_stored)
16
16
  end
17
17
 
18
18
  def app_path
@@ -38,8 +38,8 @@ module FIR
38
38
  @metadata_path ||= File.join(@contents, 'iTunesMetadata.plist')
39
39
  end
40
40
 
41
- def release_type
42
- has_metadata? ? 'store' : 'adhoc'
41
+ def is_stored
42
+ has_metadata? ? true : false
43
43
  end
44
44
 
45
45
  def contents
@@ -60,8 +60,9 @@ module FIR
60
60
  class App
61
61
  include Parser::Common
62
62
 
63
- def initialize(path)
64
- @path = path
63
+ def initialize(path, is_stored = false)
64
+ @path = path
65
+ @is_stored = is_stored
65
66
  end
66
67
 
67
68
  def full_info(options)
@@ -161,11 +162,15 @@ module FIR
161
162
  end
162
163
 
163
164
  def release_type
164
- if has_mobileprovision?
165
- if devices
166
- 'adhoc'
167
- else
168
- 'inhouse'
165
+ if @is_stored
166
+ 'store'
167
+ else
168
+ if has_mobileprovision?
169
+ if devices
170
+ 'adhoc'
171
+ else
172
+ 'inhouse'
173
+ end
169
174
  end
170
175
  end
171
176
  end
data/lib/fir/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = '1.3.2'
4
+ VERSION = '1.3.3'
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.3.2
4
+ version: 1.3.3
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-16 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -196,7 +196,7 @@ metadata: {}
196
196
  post_install_message: "\n ______________ ________ ____\n /
197
197
  ____/ _/ __ \\ / ____/ / / _/\n / /_ / // /_/ /_____/ / / / /
198
198
  /\n / __/ _/ // _, _/_____/ /___/ /____/ /\n /_/ /___/_/ |_| \\____/_____/___/\n\n
199
- \ ## 更新记录\n ### fir-cli 1.3.2\n - 已经支持打包提供 app watch 的应用\n - 详细更新记录, 请查看: https://github.com/FIRHQ/fir-cli/blob/master/CHANGELOG\n
199
+ \ ## 更新记录\n ### fir-cli 1.3.3\n - 修正解析 inhouse 错误的现象\n - 详细更新记录, 请查看: https://github.com/FIRHQ/fir-cli/blob/master/CHANGELOG\n
200
200
  \ - [fir-cli](https://github.com/FIRHQ/fir-cli) 已经开源\n - 欢迎 fork, issue 和 pull
201
201
  request\n "
202
202
  rdoc_options: []