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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17c13e04abd44c7e6dceedf68acf67a1d8ba2f37
4
- data.tar.gz: 44fdf17f6e7ea9ca3a9f08dece0112eacffe746c
3
+ metadata.gz: 6468f6b75aff22cc08a717290a382693e8125588
4
+ data.tar.gz: 3dbb139858843463ea7fb130da5d3d06477339c4
5
5
  SHA512:
6
- metadata.gz: a6cd8393ddfa58f805c14e0e2dface2ae60d24bd4774b78f81faa6c40f228ec2b3d9fd7eb24b6b6ebf05027227db84c1e9c5cc8b52b07235e0ad955b004f35c1
7
- data.tar.gz: 979709a8376c2e40be97fcba4d554a0e53277a173a99fe56cf70380c54d240c783c248a6b275cb4ccff589c4e02cf66dc93f722acc136228345debb7960eef8a
6
+ metadata.gz: 91a24f65192034d96f77e24d9e6eff7295c7ec25b6bcaf7914ad4ea430ac6ab0cbb236d6eeacf0eea0a4e04941f06dfe5cb33988e1e89fee1fe9004095941599
7
+ data.tar.gz: b1c8ba00d8a772a4d3db04dd3d3a20ce9536a8013650397fe6301e1e3917a8c4e5b6c057f9633017c3db04ee8b68452fea69eabf79c30e12a71ec9d76c65dbe8
@@ -1,6 +1,6 @@
1
1
  module Xcodeproj
2
2
  # The version of the xcodeproj gem.
3
3
  #
4
- VERSION = '0.10.0' unless defined? Xcodeproj::VERSION
4
+ VERSION = '0.10.1' unless defined? Xcodeproj::VERSION
5
5
  end
6
6
 
@@ -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].dup
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.0
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: '4.0'
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: '4.0'
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: colored
29
29
  requirement: !ruby/object:Gem::Requirement