xcodeproj 1.16.0 → 1.17.0

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
  SHA256:
3
- metadata.gz: a86aeeac02c6c6b617b0249f2c23ac48dc1243ac9392f1f53e681784026f1a93
4
- data.tar.gz: ecbfba43b4d44a0e41c1bba40bdd4e86c25acc05151c24b8b443eddd2603ef3f
3
+ metadata.gz: '07911f95b24cf5e6d26bbfeca1b8374001ee97c61a94ec53ffabb0967e8303b5'
4
+ data.tar.gz: a9223334f63670e3385877afb7c097be717604bac8195376d0eafa1c3c9611a4
5
5
  SHA512:
6
- metadata.gz: c35479b4336d807abfc27296527fdb8674c3640adbc72705bc31eb475187991a2165d337e833c831000ee0a10aed5f8152607b2c39cf86161b0ec1567a20ff0e
7
- data.tar.gz: 94cb0ba39d5865c9069f3bb5956542c4917f18bde13d1484dc3d6333a50822aedbf8e5dfa4897172a00202da1db800667bdd46978b2b8343797234724464ddaa
6
+ metadata.gz: 1d2d8516fc689a28df9a71f0d5fac7ef4dadb8b8196c162ca3a6faa1746c4d8c12f5567b2b798e85a905c7fe6477179c0b7856c78fc409a1ebeda1dd04a0357c
7
+ data.tar.gz: 40a40c7b1f908739005ab167e920bbd2299f6db144a7c2c4189a5746f25747db9b7ce61b6ee231dff85d182f45239b176e0c420ac8d632fabe8586f18cd9abb4
@@ -32,7 +32,7 @@ module Xcodeproj
32
32
 
33
33
  # @return [String] The last known object version to Xcodeproj.
34
34
  #
35
- LAST_KNOWN_OBJECT_VERSION = 53
35
+ LAST_KNOWN_OBJECT_VERSION = 54
36
36
 
37
37
  # @return [String] The last known object version to Xcodeproj.
38
38
  #
@@ -126,6 +126,7 @@ module Xcodeproj
126
126
  # @return [Hash] The compatibility version string for different object versions.
127
127
  #
128
128
  COMPATIBILITY_VERSION_BY_OBJECT_VERSION = {
129
+ 54 => 'Xcode 12.0',
129
130
  53 => 'Xcode 11.4',
130
131
  52 => 'Xcode 11.0',
131
132
  51 => 'Xcode 10.0',
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
2
  # The version of the xcodeproj gem.
3
3
  #
4
- VERSION = '1.16.0'.freeze unless defined? Xcodeproj::VERSION
4
+ VERSION = '1.17.0'.freeze unless defined? Xcodeproj::VERSION
5
5
  end
@@ -52,7 +52,9 @@ module Xcodeproj
52
52
  prefix = 'lib'
53
53
  end
54
54
  extension = Constants::PRODUCT_UTI_EXTENSIONS[product_type]
55
- ref = new_reference(group, "#{prefix}#{target_name}.#{extension}", :built_products)
55
+ path = "#{prefix}#{target_name}"
56
+ path += ".#{extension}" if extension
57
+ ref = new_reference(group, path, :built_products)
56
58
  ref.include_in_index = '0'
57
59
  ref.set_explicit_file_type
58
60
  ref
@@ -73,6 +73,7 @@ module Xcodeproj
73
73
  hash = {}
74
74
  hash['displayName'] = display_name
75
75
  hash['isa'] = isa
76
+ hash['targetProxy'] = target_proxy.to_tree_hash
76
77
  hash
77
78
  end
78
79
 
@@ -107,8 +107,9 @@ module Xcodeproj
107
107
  else
108
108
  raise ArgumentError, "Input to the << operator must be a file path or FileReference, got #{path_or_reference.inspect}"
109
109
  end
110
-
111
- @document.root.add_element(project_file_reference.to_node)
110
+ unless file_references.any? { |ref| project_file_reference.eql? ref }
111
+ @document.root.add_element(project_file_reference.to_node)
112
+ end
112
113
  load_schemes_from_project File.expand_path(projpath || project_file_reference.path)
113
114
  end
114
115
 
@@ -13,7 +13,7 @@ module Xcodeproj
13
13
  # @param [#to_s] type @see type
14
14
  #
15
15
  def initialize(path, type = 'group')
16
- @path = path.to_s
16
+ @path = Pathname.new(path.to_s).cleanpath.to_s
17
17
  @type = type.to_s
18
18
  end
19
19
 
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.16.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-10 00:00:00.000000000 Z
11
+ date: 2020-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: atomos
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  requirements: []
186
- rubygems_version: 3.1.2
186
+ rubygems_version: 3.0.4
187
187
  signing_key:
188
188
  specification_version: 3
189
189
  summary: Create and modify Xcode projects from Ruby.