xcodeproj 0.27.1 → 0.27.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xcodeproj/gem_version.rb +1 -1
- data/lib/xcodeproj/project/uuid_generator.rb +11 -6
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b0f8d63361f82eb6bc44be2e0976a42bb971198
|
4
|
+
data.tar.gz: 992549aadead9840e9b0625f93b1d07df5be2695
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c21d709018ec479ccdb644149027e3b5bfc39a6341d3c3fe99f3ebcdbf63f7caee22c881914690cae59c53484f7082a3e79391c305b170df4c845338f010f31
|
7
|
+
data.tar.gz: 32d2d5498206cbd37afdc008cea026ea885bce673ba4a5e30b9b7a167eebb8685b419a6585e420541d733e3732528d6c3a5d487daa63ddf018d0909b180b672a
|
@@ -19,6 +19,8 @@ module Xcodeproj
|
|
19
19
|
|
20
20
|
private
|
21
21
|
|
22
|
+
UUID_ATTRIBUTES = [:remote_global_id_string, :container_portal, :target_proxy].freeze
|
23
|
+
|
22
24
|
def verify_no_duplicates!(all_objects)
|
23
25
|
duplicates = all_objects - @new_objects_by_uuid.values
|
24
26
|
UserInterface.warn "[Xcodeproj] Generated duplicate UUIDs:\n\n" <<
|
@@ -32,14 +34,15 @@ module Xcodeproj
|
|
32
34
|
end
|
33
35
|
end
|
34
36
|
@project.objects.each do |object|
|
35
|
-
|
37
|
+
UUID_ATTRIBUTES.each do |attr|
|
36
38
|
fixup[object, attr]
|
37
39
|
end
|
38
40
|
end
|
39
41
|
end
|
40
42
|
|
41
43
|
def generate_paths(object, path = '')
|
42
|
-
@paths_by_object[object]
|
44
|
+
existing = @paths_by_object[object] || path
|
45
|
+
@paths_by_object[object] = path.size > existing.size ? path : existing
|
43
46
|
|
44
47
|
object.to_one_attributes.each do |attrb|
|
45
48
|
obj = attrb.get_value(object)
|
@@ -75,10 +78,12 @@ module Xcodeproj
|
|
75
78
|
end
|
76
79
|
|
77
80
|
def path_component_for_object(object)
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
81
|
+
@path_component_for_object ||= Hash.new do |cache, key|
|
82
|
+
component = tree_hash_to_path(key.to_tree_hash)
|
83
|
+
component << key.hierarchy_path.to_s if key.respond_to?(:hierarchy_path)
|
84
|
+
cache[key] = component
|
85
|
+
end
|
86
|
+
@path_component_for_object[object]
|
82
87
|
end
|
83
88
|
|
84
89
|
def tree_hash_to_path(object, depth = 4)
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcodeproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.
|
4
|
+
version: 0.27.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: 2015-
|
11
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3'
|
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
26
|
version: '3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: colored
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: claide
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.9.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.9.1
|
55
55
|
description: Xcodeproj lets you create and modify Xcode projects from Ruby. Script
|
@@ -126,12 +126,12 @@ require_paths:
|
|
126
126
|
- lib
|
127
127
|
required_ruby_version: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: 2.0.0
|
132
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
133
|
requirements:
|
134
|
-
- -
|
134
|
+
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|