xcodeproj 0.10.0 → 0.10.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/gem_version.rb +1 -1
- data/lib/xcodeproj/project/project_helper.rb +26 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6468f6b75aff22cc08a717290a382693e8125588
|
4
|
+
data.tar.gz: 3dbb139858843463ea7fb130da5d3d06477339c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91a24f65192034d96f77e24d9e6eff7295c7ec25b6bcaf7914ad4ea430ac6ab0cbb236d6eeacf0eea0a4e04941f06dfe5cb33988e1e89fee1fe9004095941599
|
7
|
+
data.tar.gz: b1c8ba00d8a772a4d3db04dd3d3a20ce9536a8013650397fe6301e1e3917a8c4e5b6c057f9633017c3db04ee8b68452fea69eabf79c30e12a71ec9d76c65dbe8
|
@@ -233,10 +233,10 @@ module Xcodeproj
|
|
233
233
|
build_settings
|
234
234
|
else
|
235
235
|
common_settings = Constants::COMMON_BUILD_SETTINGS
|
236
|
-
settings = common_settings[:all]
|
237
|
-
settings.merge!(common_settings[type])
|
238
|
-
settings.merge!(common_settings[platform])
|
239
|
-
settings.merge!(common_settings[[platform, type]])
|
236
|
+
settings = deep_dup(common_settings[:all])
|
237
|
+
settings.merge!(deep_dup(common_settings[type]))
|
238
|
+
settings.merge!(deep_dup(common_settings[platform]))
|
239
|
+
settings.merge!(deep_dup(common_settings[[platform, type]]))
|
240
240
|
if deployment_target
|
241
241
|
if platform == :ios
|
242
242
|
settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
|
@@ -248,6 +248,28 @@ module Xcodeproj
|
|
248
248
|
end
|
249
249
|
end
|
250
250
|
|
251
|
+
# Creates a deep copy of the given object
|
252
|
+
#
|
253
|
+
# @param [Object] object
|
254
|
+
# the object to copy.
|
255
|
+
#
|
256
|
+
# @return [Object] The deeply copy of the obejct object.
|
257
|
+
#
|
258
|
+
def self.deep_dup(object)
|
259
|
+
case object
|
260
|
+
when Hash
|
261
|
+
new_hash = {}
|
262
|
+
object.each do |key, value|
|
263
|
+
new_hash[key] = deep_dup(value)
|
264
|
+
end
|
265
|
+
new_hash
|
266
|
+
when Array
|
267
|
+
object.map { |value| deep_dup(value) }
|
268
|
+
else
|
269
|
+
object.dup
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
251
273
|
#-----------------------------------------------------------------------#
|
252
274
|
|
253
275
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcodeproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: colored
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|