xcodeproj 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97d8e4a22727dedcf6fdb5519a3e6fd750f460cd
|
|
4
|
+
data.tar.gz: 58f5c265c6296a779af208542a4b653a1d1b2a5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7413a13df962717a8563f8e5c5fd1247d159afd52cb8ae96e268f93a74e1baf22e0250741f7434c8619181ff4263aed1724139d642fe70c171990fcf7ad6e732
|
|
7
|
+
data.tar.gz: 8eb8612c99b268da6da7aab894719b1feabdae35d647a970cf67b52df74dfa3f3bcc611716df54416af0fd272a64609a3a407a3f7e889d3fbf59da50b7c7ba72
|
data/lib/xcodeproj.rb
CHANGED
data/lib/xcodeproj/constants.rb
CHANGED
|
@@ -71,8 +71,13 @@ module Xcodeproj
|
|
|
71
71
|
'framework' => 'wrapper.framework',
|
|
72
72
|
'h' => 'sourcecode.c.h',
|
|
73
73
|
'm' => 'sourcecode.c.objc',
|
|
74
|
+
'pch' => 'sourcecode.c.h',
|
|
74
75
|
'xcconfig' => 'text.xcconfig',
|
|
75
76
|
'xcdatamodel' => 'wrapper.xcdatamodel',
|
|
77
|
+
'xib' => 'file.xib',
|
|
78
|
+
'sh' => 'text.script.sh',
|
|
79
|
+
'plist' => 'text.plist.xml',
|
|
80
|
+
'markdown' => 'text',
|
|
76
81
|
}.freeze
|
|
77
82
|
|
|
78
83
|
# @return [Hash] The uniform type identifier of various product types.
|
|
@@ -121,10 +121,9 @@ module Xcodeproj
|
|
|
121
121
|
#
|
|
122
122
|
# @return [PBXFileReference] the new file reference.
|
|
123
123
|
#
|
|
124
|
-
def new_file(path, sub_group_path = nil)
|
|
124
|
+
def new_file(path, sub_group_path = nil, set_name = true)
|
|
125
125
|
file = project.new(PBXFileReference)
|
|
126
126
|
file.path = path.to_s
|
|
127
|
-
file.name = file.pathname.basename.to_s
|
|
128
127
|
file.update_last_known_file_type
|
|
129
128
|
|
|
130
129
|
target = find_subpath(sub_group_path, true)
|
|
@@ -269,10 +268,8 @@ module Xcodeproj
|
|
|
269
268
|
-1
|
|
270
269
|
elsif x.is_a?(PBXFileReference) && y.is_a?(PBXGroup)
|
|
271
270
|
1
|
|
272
|
-
elsif x.respond_to?(:name) && y.respond_to?(:name)
|
|
273
|
-
x.name <=> y.name
|
|
274
271
|
else
|
|
275
|
-
|
|
272
|
+
x.display_name <=> y.display_name
|
|
276
273
|
end
|
|
277
274
|
end
|
|
278
275
|
end
|
|
@@ -56,11 +56,11 @@ module Xcodeproj
|
|
|
56
56
|
|
|
57
57
|
# @return [String] the directory of the project.
|
|
58
58
|
#
|
|
59
|
-
attribute :project_dir_path, String
|
|
59
|
+
attribute :project_dir_path, String, ''
|
|
60
60
|
|
|
61
61
|
# @return [String] the root of the project.
|
|
62
62
|
#
|
|
63
|
-
attribute :project_root, String
|
|
63
|
+
attribute :project_root, String, ''
|
|
64
64
|
|
|
65
65
|
# @return [Array<ObjectDictionary>] any reference to other projects.
|
|
66
66
|
#
|
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.
|
|
4
|
+
version: 0.8.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: 2013-07-
|
|
11
|
+
date: 2013-07-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|