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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f83d94cd76866abf1c5e5fec10b67b4a52e8f6ea
4
- data.tar.gz: 28243c4a1427bdabec3efdc7cadc6fb27e50e8a6
3
+ metadata.gz: 83e6bf6b11e996e68a074e5af25a00831f545ee6
4
+ data.tar.gz: 4980d635c9662a3b452c176a17f341945c3fc93d
5
5
  SHA512:
6
- metadata.gz: 520ebdfb68a640a71d30e4bfd7d298f8c214626a83ba6de858b84df8865dae8590a417bf4f3a34b6de9e4b46962299356874d7d63240acd966f09ca1a0c5294a
7
- data.tar.gz: 1c2d9f6d83f300361901848ce6c0ab417034797d4e660249117f6123831036a9cdd399df5a4233b35a163ba56db90d43015a626e022a7d2a9d22e3dfc05e12bd
6
+ metadata.gz: 5f2739f78c34031a6dd82463ba6217b95c8db14f6aefd3a687025424f35333a3ace56d378949dc0f45b730edc06850351969c43177ee38a693843a9ba81a7058
7
+ data.tar.gz: 7771e126db7c22b4c9ba2e66f414ea27e5a19a8e2c82eae683b58b6bc6529e8e7397a21a3fbecb4f67df0f09262659ada473bf0584a708588b9ec26390a180b8
@@ -67,8 +67,9 @@ module Xcodeproj
67
67
  # @return [String] The serialized internal data.
68
68
  #
69
69
  def to_s(prefix = nil)
70
- [includes.map { |i| "#include \"#{i}\""} +
71
- to_hash(prefix).sort_by(&:first).map { |k, v| "#{k} = #{v}" }].join("\n")
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
- VERSION = '0.7.0' unless defined? Xcodeproj::VERSION
2
+ VERSION = '0.7.1' unless defined? Xcodeproj::VERSION
3
3
 
4
4
  class PlainInformative < StandardError
5
5
  end
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.0
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-06-18 00:00:00.000000000 Z
11
+ date: 2013-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport