xcodeproj 1.5.2 → 1.5.3

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: d69e019d682b09834105316249157ff2f8e8ce16
4
- data.tar.gz: 070eebafd685abfdcc50312ef3276c8e37e4aa95
3
+ metadata.gz: d90a203dc3522c9997eb87aae3f6f1a29b4bebdf
4
+ data.tar.gz: e62db789786883b44ec174e910b4f1ba97bdd384
5
5
  SHA512:
6
- metadata.gz: 99515f622edb41f755d5a0212c656393c4e7bd7cbf6c6fc732cccc847ade8d8ce342cb0b47ff34be1be44625ebc43c5f77f489fd652bdea9df3d7998ce9d0ae3
7
- data.tar.gz: 7a686f38cd6f43a1c0ab58037785e9e953444a728c40115b5df3ebae58eed82892c7742f085118ba50355094fae3090f96e7021739c6077153f214b90fdd5278
6
+ metadata.gz: d41cd07ebcd1168337125625243e283371b346def515a290af19cbc2b5c8e360c4612b5f0021f8dabe45bd9f8190537a0a55bb4bdeb9abbdab56ec2a0fe1ec27
7
+ data.tar.gz: d40a0254fdb0b7bbef8e63ed5189f8eaa04b93a0e3f51c3e597db5f59577e7dbe158af2910e6fc379a0d279e9a2b90fbad9fe872a3c28eadf1a9c7e8fc879a0c
@@ -134,6 +134,15 @@ module Xcodeproj
134
134
  inherited = %w($(inherited) ${inherited}).freeze
135
135
  result.reject! { |_, v| inherited.any? { |i| i == v.to_s.strip } }
136
136
 
137
+ result = @includes.map do |incl|
138
+ path = File.expand_path(incl, @filepath.dirname)
139
+ if File.readable? path
140
+ Xcodeproj::Config.new(path).to_hash
141
+ else
142
+ {}
143
+ end
144
+ end.inject(&:merge).merge(result) unless @filepath.nil? || @includes.empty?
145
+
137
146
  if prefix
138
147
  Hash[result.map { |k, v| [prefix + k, v] }]
139
148
  else
@@ -237,8 +246,10 @@ module Xcodeproj
237
246
  #
238
247
  def extract_hash(argument)
239
248
  if argument.respond_to? :read
249
+ @filepath = Pathname.new(argument.to_path)
240
250
  hash_from_file_content(argument.read)
241
251
  elsif File.readable?(argument.to_s)
252
+ @filepath = Pathname.new(argument.to_s)
242
253
  hash_from_file_content(File.read(argument))
243
254
  else
244
255
  argument
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
2
  # The version of the xcodeproj gem.
3
3
  #
4
- VERSION = '1.5.2'.freeze unless defined? Xcodeproj::VERSION
4
+ VERSION = '1.5.3'.freeze unless defined? Xcodeproj::VERSION
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: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-24 00:00:00.000000000 Z
11
+ date: 2017-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: CFPropertyList