xcodeproj 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xcodeproj/config.rb +19 -2
- data/lib/xcodeproj/constants.rb +1 -0
- data/lib/xcodeproj.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83e6bf6b11e996e68a074e5af25a00831f545ee6
|
4
|
+
data.tar.gz: 4980d635c9662a3b452c176a17f341945c3fc93d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f2739f78c34031a6dd82463ba6217b95c8db14f6aefd3a687025424f35333a3ace56d378949dc0f45b730edc06850351969c43177ee38a693843a9ba81a7058
|
7
|
+
data.tar.gz: 7771e126db7c22b4c9ba2e66f414ea27e5a19a8e2c82eae683b58b6bc6529e8e7397a21a3fbecb4f67df0f09262659ada473bf0584a708588b9ec26390a180b8
|
data/lib/xcodeproj/config.rb
CHANGED
@@ -67,8 +67,9 @@ module Xcodeproj
|
|
67
67
|
# @return [String] The serialized internal data.
|
68
68
|
#
|
69
69
|
def to_s(prefix = nil)
|
70
|
-
|
71
|
-
|
70
|
+
include_lines = includes.map { |path| "#include \"#{normalized_xcconfig_path(path)}\""}
|
71
|
+
settings = to_hash(prefix).sort_by(&:first).map { |k, v| "#{k} = #{v}" }
|
72
|
+
[include_lines + settings].join("\n")
|
72
73
|
end
|
73
74
|
|
74
75
|
# Writes the serialized representation of the internal data to the given
|
@@ -266,6 +267,22 @@ module Xcodeproj
|
|
266
267
|
end
|
267
268
|
end
|
268
269
|
|
270
|
+
# Normalizes the given path to an xcconfing file to be used in includes,
|
271
|
+
# appending the extension if necessary.
|
272
|
+
#
|
273
|
+
# @param [String] path
|
274
|
+
# The path of the file which will be included in the xcconfig.
|
275
|
+
#
|
276
|
+
# @return [String] The normalized path.
|
277
|
+
#
|
278
|
+
def normalized_xcconfig_path(path)
|
279
|
+
if File.extname(path) == '.xcconfig'
|
280
|
+
path
|
281
|
+
else
|
282
|
+
"#{path}.xcconfig"
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
269
286
|
#-------------------------------------------------------------------------#
|
270
287
|
|
271
288
|
end
|
data/lib/xcodeproj/constants.rb
CHANGED
@@ -79,6 +79,7 @@ module Xcodeproj
|
|
79
79
|
#
|
80
80
|
PRODUCT_TYPE_UTI = {
|
81
81
|
:application => 'com.apple.product-type.application',
|
82
|
+
:framework => 'com.apple.product-type.framework',
|
82
83
|
:dynamic_library => 'com.apple.product-type.library.dynamic',
|
83
84
|
:static_library => 'com.apple.product-type.library.static',
|
84
85
|
}.freeze
|
data/lib/xcodeproj.rb
CHANGED
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.7.
|
4
|
+
version: 0.7.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-
|
11
|
+
date: 2013-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|