pbxproject 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/pbxproject/pbxproject.rb +4 -1
- data/lib/pbxproject/pbxtypes.rb +16 -86
- data/pbxproject.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
@@ -13,6 +13,7 @@ module PBXProject
|
|
13
13
|
# make sure that our sections are on proper order
|
14
14
|
@sections = {
|
15
15
|
:PBXBuildFile => nil,
|
16
|
+
:PBXContainerItemProxy => nil,
|
16
17
|
:PBXFileReference => nil,
|
17
18
|
:PBXFrameworksBuildPhase => nil,
|
18
19
|
:PBXGroup => nil,
|
@@ -21,9 +22,11 @@ module PBXProject
|
|
21
22
|
:PBXResourcesBuildPhase => nil,
|
22
23
|
:PBXShellScriptBuildPhase => nil,
|
23
24
|
:PBXSourcesBuildPhase => nil,
|
25
|
+
:PBXTargetDependency => nil,
|
24
26
|
:PBXVariantGroup => nil,
|
25
27
|
:XCBuildConfiguration => nil,
|
26
|
-
:XCConfigurationList => nil
|
28
|
+
:XCConfigurationList => nil,
|
29
|
+
:XCVersionGroup => nil
|
27
30
|
}
|
28
31
|
|
29
32
|
# and set that we're ready for parsing
|
data/lib/pbxproject/pbxtypes.rb
CHANGED
@@ -137,69 +137,7 @@ module PBXProject
|
|
137
137
|
puts "WHAT? #{field.class}"
|
138
138
|
puts "#{field}"
|
139
139
|
end
|
140
|
-
|
141
|
-
# case self.instance_variable_get("@#{field}").class.name
|
142
|
-
# when "Hash"
|
143
|
-
# h = self.instance_variable_get("@#{field}")
|
144
|
-
# if (h.value)
|
145
|
-
# # We have value-comment hash
|
146
|
-
# h.comment = " /* #{h.comment} */" if h.comment != nil
|
147
|
-
#
|
148
|
-
# ind.times{print"\t"};
|
149
|
-
# pbx += sprintf "%s = %s%s;", field, h[:value], h[:comment]
|
150
|
-
# pbx += "\n" unless @format == :oneline
|
151
|
-
# else
|
152
|
-
# # We have dictionary
|
153
|
-
# ind.times{print"\t"};
|
154
|
-
# pbx += sprintf "%s = {", field
|
155
|
-
# pbx += "\n" unless @format == :oneline
|
156
|
-
#
|
157
|
-
# ind += 1
|
158
|
-
# h.each do |name, d|
|
159
|
-
# case d.class.name
|
160
|
-
# when "Hash"
|
161
|
-
# ind.times{print"\t"}
|
162
|
-
# d[:comment] = " /* #{d[:comment]} */" if d[:comment] != nil
|
163
|
-
# pbx += sprintf "%s = %s%s;", name, d[:value], d[:comment]
|
164
|
-
# pbx += "\n" unless @format == :oneline
|
165
|
-
#
|
166
|
-
# when "Array"
|
167
|
-
# ind.times{print"\t"}
|
168
|
-
# pbx += "#{name} = ("
|
169
|
-
# pbx += "\n" unless @format == :oneline
|
170
|
-
#
|
171
|
-
# ind += 1
|
172
|
-
# d.each do |r|
|
173
|
-
# ind.times{print"\t"}
|
174
|
-
# r[:comment] = " /* #{r[:comment]} */" if r[:comment] != nil
|
175
|
-
# pbx += sprintf "%s%s,", r[:name], r[:item], r[:comment]
|
176
|
-
# pbx += "\n" unless @format == :oneline
|
177
|
-
#
|
178
|
-
# end
|
179
|
-
# ind -= 1
|
180
|
-
# ind.times{print"\t"}
|
181
|
-
# pbx += ");"
|
182
|
-
# pbx += "\n" unless @format == :oneline
|
183
|
-
#
|
184
|
-
# end
|
185
|
-
# end
|
186
|
-
# ind -= 1
|
187
|
-
# ind.times{print"\t"}; puts "};"
|
188
|
-
# end
|
189
|
-
# when "Array"
|
190
|
-
# a = self.instance_variable_get("@#{field}")
|
191
|
-
# ind.times{print"\t"};
|
192
|
-
# pbx += sprintf "%s = (%s", field, pbxformat
|
193
|
-
# ind += 1
|
194
|
-
# a.each do |r|
|
195
|
-
# ind.times{print"\t"}
|
196
|
-
# r[:comment] = " /* #{r[:comment]} */" if r[:comment] != nil
|
197
|
-
#
|
198
|
-
# printf "%s%s,\n", r[:item], r[:comment]
|
199
|
-
# end
|
200
|
-
# ind -= 1
|
201
|
-
# ind.times{print"\t"}; print ");\n"
|
202
|
-
# end
|
140
|
+
|
203
141
|
end
|
204
142
|
ind -= 1
|
205
143
|
|
@@ -217,33 +155,16 @@ module PBXProject
|
|
217
155
|
class PBXBuildFile < ISAType
|
218
156
|
has_fields :isa, :fileRef
|
219
157
|
has_format :oneline
|
158
|
+
end
|
220
159
|
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
# print " = {isa = #{@isa}; "
|
225
|
-
# if (@fileRef.kind_of?(Hash))
|
226
|
-
# print "fileRef = #{@fileRef[:value]} /* #{@fileRef[:comment]} */"
|
227
|
-
# else
|
228
|
-
# print "fileRef = #{@fileRef}"
|
229
|
-
# end
|
230
|
-
# puts "; };"
|
231
|
-
# end
|
160
|
+
class PBXContainerItemProxy < ISAType
|
161
|
+
has_fields :isa, :containerPortal, :proxyType, :remoteGlobalIDString, :remoteInfo
|
162
|
+
has_format :multiline
|
232
163
|
end
|
233
|
-
|
164
|
+
|
234
165
|
class PBXFileReference < ISAType
|
235
166
|
has_fields :isa, :fileEncoding, :explicitFileType, :lastKnownFileType, :includeInIndex, :name, :path, :sourceTree
|
236
167
|
has_format :oneline
|
237
|
-
|
238
|
-
# def to_pbx(ind)
|
239
|
-
# print "#{@guid}"
|
240
|
-
# print " /* #{@comment} */" if @comment
|
241
|
-
# print " = {"
|
242
|
-
# ["isa", "fileEncoding", "explicitFileType", "lastKnownFileType", "includeInIndex", "name", "path", "sourceTree"].each do |var|
|
243
|
-
# printf "%s = %s; ", var, self.instance_variable_get("@#{var}") if self.instance_variable_get("@#{var}") != nil
|
244
|
-
# end
|
245
|
-
# puts "};"
|
246
|
-
# end
|
247
168
|
end
|
248
169
|
|
249
170
|
class PBXFrameworksBuildPhase < ISAType
|
@@ -307,6 +228,11 @@ module PBXProject
|
|
307
228
|
has_format :multiline
|
308
229
|
end
|
309
230
|
|
231
|
+
class PBXTargetDependency < ISAType
|
232
|
+
has_fields :isa, :target, :targetProxy
|
233
|
+
has_format :multiline
|
234
|
+
end
|
235
|
+
|
310
236
|
class PBXVariantGroup < ISAType
|
311
237
|
has_fields :isa, :children, :name, :sourceTree
|
312
238
|
has_format :multiline
|
@@ -321,6 +247,10 @@ module PBXProject
|
|
321
247
|
has_fields :isa, :buildConfigurations, :defaultConfigurationIsVisible, :defaultConfigurationName
|
322
248
|
has_format :multiline
|
323
249
|
end
|
324
|
-
|
250
|
+
|
251
|
+
class XCVersionGroup < ISAType
|
252
|
+
has_fields :isa, :children, :currentVersion, :path, :sourceTree, :versionGroupType
|
253
|
+
has_format :multiline
|
254
|
+
end
|
325
255
|
end
|
326
256
|
end
|
data/pbxproject.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: pbxproject
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Mikko Kokkonen
|
@@ -99,7 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
hash: -
|
102
|
+
hash: -2308137766681399492
|
103
103
|
segments:
|
104
104
|
- 0
|
105
105
|
version: "0"
|