xcodeproj 1.8.1 → 1.8.2

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
- SHA1:
3
- metadata.gz: 160de31d624d01bb10824d3d9b06f0154828e769
4
- data.tar.gz: f692cb98d2e7ad4b34e344c2c8b4f995c5843bf4
2
+ SHA256:
3
+ metadata.gz: bf4b320347ecf2c903ac8f9d6332b54fff22c235eed6965ae757ccd570b49f10
4
+ data.tar.gz: 8395e067fc32058cb86d752ea6d25fd8275cf9a720568790df4068f156d285fa
5
5
  SHA512:
6
- metadata.gz: c85b6c33b61408e2597410292b3fcc3591b7feb6061c5cd3dcf3b950ca8e54d9ca936e1e633b4bd028dd289c9ec5b64f2a9a4c34a21dce299d9dd1e9fcd7dcd3
7
- data.tar.gz: 4bae982841ee95c3a2de0200210c46c9226d54f999e1a21366701fe19176ceca450c269548cd7c386642ef8581473005aff617171c7f86faf02ba8b26f5d252d
6
+ metadata.gz: c59157fade59b0365026e8281b75edb7cdfe3bdfd06ab4e56f2f561ec83cecf09fe10632d33456548ee955455120d920c11a90c157dcd35e442decb310084e79
7
+ data.tar.gz: 075dddb7c418949c0a400ed7576db622ed74aae47e1a953fe739524d4df5d718c831d911b82c80f999b3978cf43a8b4e395f184fe939918d58f42a0118f19ecb
@@ -275,7 +275,7 @@ module Xcodeproj
275
275
  string.split("\n").each do |line|
276
276
  uncommented_line = strip_comment(line)
277
277
  if include = extract_include(uncommented_line)
278
- @includes.push include
278
+ @includes.push normalized_xcconfig_path(include)
279
279
  else
280
280
  key, value = extract_key_value(uncommented_line)
281
281
  next unless key
@@ -11,9 +11,11 @@ module Xcodeproj
11
11
  LAST_KNOWN_OSX_SDK = '10.14'
12
12
 
13
13
  # @return [String] The last known tvOS SDK (stable).
14
+ #
14
15
  LAST_KNOWN_TVOS_SDK = '12.0'
15
16
 
16
17
  # @return [String] The last known watchOS SDK (stable).
18
+ #
17
19
  LAST_KNOWN_WATCHOS_SDK = '5.0'
18
20
 
19
21
  # @return [String] The last known archive version to Xcodeproj.
@@ -25,6 +27,7 @@ module Xcodeproj
25
27
  LAST_KNOWN_SWIFT_VERSION = '4.0'
26
28
 
27
29
  # @return [String] The default object version for Xcodeproj.
30
+ #
28
31
  DEFAULT_OBJECT_VERSION = 46
29
32
 
30
33
  # @return [String] The last known object version to Xcodeproj.
@@ -120,6 +123,17 @@ module Xcodeproj
120
123
  'zip' => 'archive.zip',
121
124
  }.freeze
122
125
 
126
+ # @return [Hash] The compatibility version string for different object versions.
127
+ #
128
+ COMPATIBILITY_VERSION_BY_OBJECT_VERSION = {
129
+ 51 => 'Xcode 10.0',
130
+ 50 => 'Xcode 9.3',
131
+ 48 => 'Xcode 8.0',
132
+ 47 => 'Xcode 6.3',
133
+ 46 => 'Xcode 3.2',
134
+ 45 => 'Xcode 3.1',
135
+ }.freeze
136
+
123
137
  # @return [Hash] The uniform type identifier of various product types.
124
138
  #
125
139
  PRODUCT_TYPE_UTI = {
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
2
  # The version of the xcodeproj gem.
3
3
  #
4
- VERSION = '1.8.1'.freeze unless defined? Xcodeproj::VERSION
4
+ VERSION = '1.8.2'.freeze unless defined? Xcodeproj::VERSION
5
5
  end
@@ -80,6 +80,10 @@ module Xcodeproj
80
80
  unless skip_initialization
81
81
  initialize_from_scratch
82
82
  @object_version = object_version.to_s
83
+ unless Constants::COMPATIBILITY_VERSION_BY_OBJECT_VERSION.key?(object_version)
84
+ raise ArgumentError, "[Xcodeproj] Unable to find compatibility version string for object version `#{object_version}`."
85
+ end
86
+ root_object.compatibility_version = Constants::COMPATIBILITY_VERSION_BY_OBJECT_VERSION[object_version]
83
87
  end
84
88
  end
85
89
 
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.8.1
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-19 00:00:00.000000000 Z
11
+ date: 2019-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: atomos
@@ -181,8 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubyforge_project:
185
- rubygems_version: 2.6.14
184
+ rubygems_version: 3.0.1
186
185
  signing_key:
187
186
  specification_version: 3
188
187
  summary: Create and modify Xcode projects from Ruby.