Commit ac2c14db authored by Ben Scheirman's avatar Ben Scheirman Committed by Eloy Duran

Podfile specifies project path

This will allow more flexible paths where the won't have
to type the path to the install command each time.
parent e256b49e
...@@ -119,6 +119,12 @@ module Pod ...@@ -119,6 +119,12 @@ module Pod
@target_definition.link_with = targets @target_definition.link_with = targets
end end
# Specifies the path of the xcode project so it doesn't require the project to be specified
# when running pod install each time.
def xcodeproj(path = nil)
path ? @xcodeproj = path : @xcodeproj
end
# Specifies a dependency of the project. # Specifies a dependency of the project.
# #
# A dependency requirement is defined by the name of the Pod and _optionally_ # A dependency requirement is defined by the name of the Pod and _optionally_
......
...@@ -11,6 +11,11 @@ describe "Pod::Podfile" do ...@@ -11,6 +11,11 @@ describe "Pod::Podfile" do
podfile.target_definitions[:default].platform.should == :ios podfile.target_definitions[:default].platform.should == :ios
end end
it "assigns the xcodeproj attribute" do
podfile = Pod::Podfile.new { platform :ios; xcodeproj "foo.xcodeproj" }
podfile.xcodeproj.should == "foo.xcodeproj"
end
it "adds dependencies" do it "adds dependencies" do
podfile = Pod::Podfile.new { dependency 'ASIHTTPRequest'; dependency 'SSZipArchive', '>= 0.1' } podfile = Pod::Podfile.new { dependency 'ASIHTTPRequest'; dependency 'SSZipArchive', '>= 0.1' }
podfile.dependencies.size.should == 2 podfile.dependencies.size.should == 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment