pbxproject 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,21 +19,21 @@ module PBXProject
19
19
  # initialize our class
20
20
  # make sure that our sections are on proper order
21
21
  @sections = {
22
- :PBXBuildFile => nil,
23
- :PBXContainerItemProxy => nil,
24
- :PBXFileReference => nil,
25
- :PBXFrameworksBuildPhase => nil,
26
- :PBXGroup => nil,
27
- :PBXNativeTarget => nil,
28
- :PBXProject => nil,
29
- :PBXResourcesBuildPhase => nil,
30
- :PBXShellScriptBuildPhase => nil,
31
- :PBXSourcesBuildPhase => nil,
32
- :PBXTargetDependency => nil,
33
- :PBXVariantGroup => nil,
34
- :XCBuildConfiguration => nil,
35
- :XCConfigurationList => nil,
36
- :XCVersionGroup => nil
22
+ "PBXBuildFile" => nil,
23
+ "PBXContainerItemProxy" => nil,
24
+ "PBXFileReference" => nil,
25
+ "PBXFrameworksBuildPhase" => nil,
26
+ "PBXGroup" => nil,
27
+ "PBXNativeTarget" => nil,
28
+ "PBXProject" => nil,
29
+ "PBXResourcesBuildPhase" => nil,
30
+ "PBXShellScriptBuildPhase" => nil,
31
+ "PBXSourcesBuildPhase" => nil,
32
+ "PBXTargetDependency" => nil,
33
+ "PBXVariantGroup" => nil,
34
+ "XCBuildConfiguration" => nil,
35
+ "XCConfigurationList" => nil,
36
+ "XCVersionGroup" => nil
37
37
  }
38
38
 
39
39
  # and set that we're ready for parsing
@@ -250,10 +250,7 @@ module PBXProject
250
250
  type = item.class.name.split('::').last || ''
251
251
 
252
252
  # Ensure that we have array
253
- if (@sections[type].nil?)
254
- @sections[type] = []
255
- end
256
-
253
+ @sections[type] ||= []
257
254
  @sections[type].insert(position, item)
258
255
 
259
256
  item.guid
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pbxproject}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mikko Kokkonen"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pbxproject
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-05-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70165036077260 !ruby/object:Gem::Requirement
16
+ requirement: &70168508570900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.3.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70165036077260
24
+ version_requirements: *70168508570900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70165036076600 !ruby/object:Gem::Requirement
27
+ requirement: &70168508220080 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70165036076600
35
+ version_requirements: *70168508220080
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &70165036076120 !ruby/object:Gem::Requirement
38
+ requirement: &70168508219600 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.5.2
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70165036076120
46
+ version_requirements: *70168508219600
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &70165036075420 !ruby/object:Gem::Requirement
49
+ requirement: &70168508219100 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70165036075420
57
+ version_requirements: *70168508219100
58
58
  description: makes managing XCode 4 project files as easy as modifying ruby classes.
59
59
  email: mikko.kokkonen@me.com
60
60
  executables: