Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: CocoaPods/Xcodeproj
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.3.0
Choose a base ref
...
head repository: CocoaPods/Xcodeproj
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.3.1
Choose a head ref
  • 3 commits
  • 4 files changed
  • 3 contributors

Commits on Jul 15, 2012

  1. Copy the full SHA
    94edf02 View commit details

Commits on Jul 16, 2012

  1. Merge pull request #23 from yury/xcversiongroup

    Set path attribute on XCVersionGroup when creating with #new_xcdatamodel_group
    alloy committed Jul 16, 2012
    Copy the full SHA
    492af11 View commit details
  2. Release 0.3.1

    alloy committed Jul 16, 2012
    Copy the full SHA
    e5e7bdf View commit details
Showing with 5 additions and 3 deletions.
  1. +1 −1 Gemfile.lock
  2. +1 −1 lib/xcodeproj.rb
  3. +2 −1 lib/xcodeproj/project/object/group.rb
  4. +1 −0 spec/project/object/group_spec.rb
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
xcodeproj (0.3.0)
xcodeproj (0.3.1)
activesupport (~> 3.2.6)

GEM
2 changes: 1 addition & 1 deletion lib/xcodeproj.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Xcodeproj
VERSION = '0.3.0'
VERSION = '0.3.1'

autoload :Config, 'xcodeproj/config'
autoload :Project, 'xcodeproj/project'
3 changes: 2 additions & 1 deletion lib/xcodeproj/project/object/group.rb
Original file line number Diff line number Diff line change
@@ -105,9 +105,10 @@ class XCVersionGroup < PBXGroup

attribute :version_group_type
attribute :current_version
attribute :path

def self.new_xcdatamodel_group(project, xcdatamodel_path)
group = new(project, nil, 'versionGroupType' => 'wrapper.xcdatamodel')
group = new(project, nil, 'path' => xcdatamodel_path, 'versionGroupType' => 'wrapper.xcdatamodel')
file = group.files.new(
'path' => xcdatamodel_path.sub(/xcdatamodeld$/, 'xcdatamodel'),
'lastKnownFileType' => 'wrapper.xcdatamodel'
1 change: 1 addition & 0 deletions spec/project/object/group_spec.rb
Original file line number Diff line number Diff line change
@@ -121,6 +121,7 @@ module ProjectSpecs
file = @project.files[version_group.current_version]
version_group.files.should == [file]
file.path.should == 'some/Model.xcdatamodel'
version_group.path.should == 'some/Model.xcdatamodeld'
end
end
end