xcodeproj 0.13.0 → 0.13.1

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: 758b380d1a1b1be6189e2aaad39dd5b5e8bc21a8
4
- data.tar.gz: dbff6c8152af77a624432d9f63c19452146e8db3
3
+ metadata.gz: a6d41966c286020a61f2c4949fa22b2482db9036
4
+ data.tar.gz: 4d8ca5070e741ca5026c55730625b14025c3b0a2
5
5
  SHA512:
6
- metadata.gz: d5ccf1647397824c714e6a089563864687f2a9d6941981f226e3e699d4cf88e400d5cb922b24856129158ff298d370d00e49112523381beaf9245951fdc75461
7
- data.tar.gz: e18c4f8367e934160bba7b4264f9f2a4599acf81e735cf59052377982d907070b52a32c913ad9aaa3ca64c943e4f14b17bf839b253bf0e624df8f3596b9790ee
6
+ metadata.gz: 0b032960ff420b5922f581cb18d1e4b0632890f107a0a91e2f9cb6ed571eee0cf9201b3a5e9fb921d28ae3c325086717ddd534219070b6e5b05c94ca51f7b89e
7
+ data.tar.gz: b3f72482cdd5fedc0769f878d51b8119e386bfd7e466a34246527598b1968c4cbce10e63efce4ab488df97966b75b2d922121490f4fb7967f2367d9e8db0dddf
@@ -1,6 +1,6 @@
1
1
  module Xcodeproj
2
2
  # The version of the xcodeproj gem.
3
3
  #
4
- VERSION = '0.13.0' unless defined? Xcodeproj::VERSION
4
+ VERSION = '0.13.1' unless defined? Xcodeproj::VERSION
5
5
  end
6
6
 
@@ -10,19 +10,20 @@ module Xcodeproj
10
10
  # @!group Attributes
11
11
 
12
12
  # @return [String] whether the default configuration is visible.
13
- #
14
- # Usually `0`.
13
+ # Usually `0`. The purpose of this flag and how Xcode displays
14
+ # it in the UI is unknown.
15
15
  #
16
16
  attribute :default_configuration_is_visible, String, '0'
17
17
 
18
18
  # @return [String] the name of the default configuration.
19
+ # Usually `Release`. Xcode exposes this attribute as the
20
+ # configuration for the command line tools and only allows to
21
+ # set it at the project level.
19
22
  #
20
- # Usually `Release`.
21
- #
22
- attribute :default_configuration_name, String
23
+ attribute :default_configuration_name, String, 'Release'
23
24
 
24
25
  # @return [ObjectList<XCBuildConfiguration>] the build
25
- # configurations of the target.
26
+ # configurations of the target.
26
27
  #
27
28
  has_many :build_configurations, XCBuildConfiguration
28
29
 
@@ -67,14 +67,19 @@ module Xcodeproj
67
67
  #
68
68
  # @raise If the build setting has multiple values.
69
69
  #
70
+ # @note As it is common not to have a setting with no value for
71
+ # custom build configurations nil keys are not considered to
72
+ # determine if the setting is unique. This is an heuristic
73
+ # which might not closely match Xcode behaviour.
74
+ #
70
75
  # @return [String] The value of the build setting.
71
76
  #
72
77
  def common_resolved_build_setting(key)
73
- values = resolved_build_setting(key).values.uniq
74
- if values.count == 1
78
+ values = resolved_build_setting(key).values.compact.uniq
79
+ if values.count <= 1
75
80
  values.first
76
81
  else
77
- raise "Build setting `#{key}` has multiple values: `#{resolved_build_setting(key)}`"
82
+ raise "[Xcodeproj] Consistency issue: build setting `#{key}` has multiple values: `#{resolved_build_setting(key)}`"
78
83
  end
79
84
  end
80
85
 
@@ -95,7 +100,9 @@ module Xcodeproj
95
100
  # @return [String] the version of the SDK.
96
101
  #
97
102
  def sdk_version
98
- sdk.scan(/[0-9.]+/).first
103
+ if sdk
104
+ sdk.scan(/[0-9.]+/).first
105
+ end
99
106
  end
100
107
 
101
108
  # @return [String] the deployment target of the target according to its
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcodeproj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-09 00:00:00.000000000 Z
11
+ date: 2013-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport