xcodeproj 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6d41966c286020a61f2c4949fa22b2482db9036
|
4
|
+
data.tar.gz: 4d8ca5070e741ca5026c55730625b14025c3b0a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b032960ff420b5922f581cb18d1e4b0632890f107a0a91e2f9cb6ed571eee0cf9201b3a5e9fb921d28ae3c325086717ddd534219070b6e5b05c94ca51f7b89e
|
7
|
+
data.tar.gz: b3f72482cdd5fedc0769f878d51b8119e386bfd7e466a34246527598b1968c4cbce10e63efce4ab488df97966b75b2d922121490f4fb7967f2367d9e8db0dddf
|
@@ -10,19 +10,20 @@ module Xcodeproj
|
|
10
10
|
# @!group Attributes
|
11
11
|
|
12
12
|
# @return [String] whether the default configuration is visible.
|
13
|
-
#
|
14
|
-
#
|
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
|
-
|
21
|
-
#
|
22
|
-
attribute :default_configuration_name, String
|
23
|
+
attribute :default_configuration_name, String, 'Release'
|
23
24
|
|
24
25
|
# @return [ObjectList<XCBuildConfiguration>] the build
|
25
|
-
#
|
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
|
78
|
+
values = resolved_build_setting(key).values.compact.uniq
|
79
|
+
if values.count <= 1
|
75
80
|
values.first
|
76
81
|
else
|
77
|
-
raise "
|
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
|
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.
|
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-
|
11
|
+
date: 2013-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|