Commit 20e2da4a authored by Marius Rackwitz's avatar Marius Rackwitz

Merge pull request #4836 from CocoaPods/mr-dsl-project-directive

[Podfile] Adopt renaming from xcodeproj to project
parents 1711e76c 7cbf7a9b
...@@ -6,6 +6,12 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -6,6 +6,12 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
## Master ## Master
##### Breaking
* Rename the `xcodeproj` Podfile directive to `project`.
[Marius Rackwitz](https://github.com/mrackwitz)
[Core#298](https://github.com/CocoaPods/Core/issues/298)
##### Enhancements ##### Enhancements
##### Bug Fixes ##### Bug Fixes
......
...@@ -7,7 +7,7 @@ GIT ...@@ -7,7 +7,7 @@ GIT
GIT GIT
remote: https://github.com/CocoaPods/Core.git remote: https://github.com/CocoaPods/Core.git
revision: 28418bb448a7b5712cd196fed70d72778af0d128 revision: 8c55fdc3e2bacca908c9cf12eff0e64e8ed036f5
branch: master branch: master
specs: specs:
cocoapods-core (1.0.0.beta.2) cocoapods-core (1.0.0.beta.2)
......
Subproject commit bfd098b2ee45861951a200f609dbe7d7a1485628 Subproject commit 05c3fc9beea098b5e1ce3aaa882d454511e6348c
...@@ -6,7 +6,7 @@ module Pod ...@@ -6,7 +6,7 @@ module Pod
before do before do
@podfile = Pod::Podfile.new do @podfile = Pod::Podfile.new do
platform :ios, '6.0' platform :ios, '6.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
target 'SampleProject' do target 'SampleProject' do
pod 'JSONKit', '1.5pre' pod 'JSONKit', '1.5pre'
...@@ -88,7 +88,7 @@ module Pod ...@@ -88,7 +88,7 @@ module Pod
podfile = Podfile.new do podfile = Podfile.new do
platform :ios, '8.0' platform :ios, '8.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
pod 'BananaLib', '1.0' pod 'BananaLib', '1.0'
end end
config.skip_repo_update = false config.skip_repo_update = false
...@@ -159,7 +159,7 @@ module Pod ...@@ -159,7 +159,7 @@ module Pod
it 'generates the set of dependent pod targets' do it 'generates the set of dependent pod targets' do
@podfile = Pod::Podfile.new do @podfile = Pod::Podfile.new do
platform :ios, '8.0' platform :ios, '8.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
pod 'RestKit', '~> 0.23.0' pod 'RestKit', '~> 0.23.0'
target 'TestRunner' do target 'TestRunner' do
pod 'RestKit/Testing', '~> 0.23.0' pod 'RestKit/Testing', '~> 0.23.0'
...@@ -191,7 +191,7 @@ module Pod ...@@ -191,7 +191,7 @@ module Pod
podfile = Pod::Podfile.new do podfile = Pod::Podfile.new do
source SpecHelper.test_repo_url source SpecHelper.test_repo_url
platform :ios, '6.0' platform :ios, '6.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
target 'SampleProject' do target 'SampleProject' do
pod 'BananaLib' pod 'BananaLib'
pod 'monkey' pod 'monkey'
...@@ -217,7 +217,7 @@ module Pod ...@@ -217,7 +217,7 @@ module Pod
podfile = Pod::Podfile.new do podfile = Pod::Podfile.new do
source SpecHelper.test_repo_url source SpecHelper.test_repo_url
platform :ios, '6.0' platform :ios, '6.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
pod 'BananaLib' pod 'BananaLib'
pod 'monkey' pod 'monkey'
...@@ -251,7 +251,7 @@ module Pod ...@@ -251,7 +251,7 @@ module Pod
source SpecHelper.test_repo_url source SpecHelper.test_repo_url
platform :ios, '6.0' platform :ios, '6.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
pod 'BananaLib' pod 'BananaLib'
...@@ -295,7 +295,7 @@ module Pod ...@@ -295,7 +295,7 @@ module Pod
podfile = Pod::Podfile.new do podfile = Pod::Podfile.new do
install! 'cocoapods', :integrate_targets => false install! 'cocoapods', :integrate_targets => false
source SpecHelper.test_repo_url source SpecHelper.test_repo_url
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
target 'TestRunner' do target 'TestRunner' do
platform :osx platform :osx
pod 'monkey' pod 'monkey'
...@@ -310,7 +310,7 @@ module Pod ...@@ -310,7 +310,7 @@ module Pod
podfile = Pod::Podfile.new do podfile = Pod::Podfile.new do
install! 'cocoapods', :integrate_targets => false install! 'cocoapods', :integrate_targets => false
source SpecHelper.test_repo_url source SpecHelper.test_repo_url
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
platform :osx platform :osx
target 'TestRunner' do target 'TestRunner' do
pod 'monkey' pod 'monkey'
...@@ -325,7 +325,7 @@ module Pod ...@@ -325,7 +325,7 @@ module Pod
podfile = Pod::Podfile.new do podfile = Pod::Podfile.new do
install! 'cocoapods', :integrate_targets => false install! 'cocoapods', :integrate_targets => false
source SpecHelper.test_repo_url source SpecHelper.test_repo_url
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
target 'TestRunner' do target 'TestRunner' do
pod 'monkey' pod 'monkey'
end end
...@@ -372,7 +372,7 @@ module Pod ...@@ -372,7 +372,7 @@ module Pod
it 'unlocks all dependencies with the same root name in update mode' do it 'unlocks all dependencies with the same root name in update mode' do
podfile = Podfile.new do podfile = Podfile.new do
platform :ios, '8.0' platform :ios, '8.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
target 'SampleProject' do target 'SampleProject' do
pod 'AFNetworking' pod 'AFNetworking'
pod 'AFNetworkActivityLogger' pod 'AFNetworkActivityLogger'
...@@ -406,7 +406,7 @@ module Pod ...@@ -406,7 +406,7 @@ module Pod
it 'takes into account locked implicit dependencies' do it 'takes into account locked implicit dependencies' do
podfile = Podfile.new do podfile = Podfile.new do
platform :ios, '8.0' platform :ios, '8.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
target 'SampleProject' do target 'SampleProject' do
pod 'ARAnalytics/Mixpanel' pod 'ARAnalytics/Mixpanel'
end end
...@@ -506,7 +506,7 @@ module Pod ...@@ -506,7 +506,7 @@ module Pod
it 'warns when a dependency is duplicated' do it 'warns when a dependency is duplicated' do
podfile = Podfile.new do podfile = Podfile.new do
source 'https://github.com/CocoaPods/Specs.git' source 'https://github.com/CocoaPods/Specs.git'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
platform :ios, '8.0' platform :ios, '8.0'
target 'SampleProject' do target 'SampleProject' do
pod 'RestKit', '~> 0.23.0' pod 'RestKit', '~> 0.23.0'
...@@ -581,7 +581,7 @@ module Pod ...@@ -581,7 +581,7 @@ module Pod
'external sources' do 'external sources' do
podfile = Podfile.new do podfile = Podfile.new do
source 'https://github.com/CocoaPods/Specs.git' source 'https://github.com/CocoaPods/Specs.git'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
platform :ios platform :ios
target 'SampleProject' do target 'SampleProject' do
pod 'SEGModules', :git => 'https://github.com/segiddins/SEGModules.git' pod 'SEGModules', :git => 'https://github.com/segiddins/SEGModules.git'
...@@ -600,7 +600,7 @@ module Pod ...@@ -600,7 +600,7 @@ module Pod
'external sources' do 'external sources' do
podfile = Podfile.new do podfile = Podfile.new do
source 'https://github.com/CocoaPods/Specs.git' source 'https://github.com/CocoaPods/Specs.git'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
platform :ios platform :ios
target 'SampleProject' do target 'SampleProject' do
pod 'RestKit/Core', :git => 'https://github.com/RestKit/RestKit.git' pod 'RestKit/Core', :git => 'https://github.com/RestKit/RestKit.git'
...@@ -619,7 +619,7 @@ module Pod ...@@ -619,7 +619,7 @@ module Pod
'external sources with one being nil' do 'external sources with one being nil' do
podfile = Podfile.new do podfile = Podfile.new do
source 'https://github.com/CocoaPods/Specs.git' source 'https://github.com/CocoaPods/Specs.git'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
platform :ios platform :ios
target 'SampleProject' do target 'SampleProject' do
pod 'RestKit', :git => 'https://github.com/RestKit/RestKit.git' pod 'RestKit', :git => 'https://github.com/RestKit/RestKit.git'
......
...@@ -7,7 +7,7 @@ module Pod ...@@ -7,7 +7,7 @@ module Pod
config.sandbox.prepare config.sandbox.prepare
@podfile = Podfile.new do @podfile = Podfile.new do
platform :ios platform :ios
xcodeproj 'dummy' project 'dummy'
end end
@target_definition = @podfile.target_definitions['Pods'] @target_definition = @podfile.target_definitions['Pods']
@project = Project.new(config.sandbox.project_path) @project = Project.new(config.sandbox.project_path)
......
...@@ -7,7 +7,7 @@ module Pod ...@@ -7,7 +7,7 @@ module Pod
config.sandbox.prepare config.sandbox.prepare
@podfile = Podfile.new do @podfile = Podfile.new do
platform :ios, '6.0' platform :ios, '6.0'
xcodeproj 'dummy' project 'dummy'
end end
@target_definition = @podfile.target_definitions['Pods'] @target_definition = @podfile.target_definitions['Pods']
@project = Project.new(config.sandbox.project_path) @project = Project.new(config.sandbox.project_path)
......
...@@ -5,7 +5,7 @@ module Pod ...@@ -5,7 +5,7 @@ module Pod
before do before do
@podfile = Podfile.new do @podfile = Podfile.new do
platform :ios platform :ios
xcodeproj 'dummy' project 'dummy'
end end
@target_definition = @podfile.target_definitions['Pods'] @target_definition = @podfile.target_definitions['Pods']
@project = Project.new(config.sandbox.project_path) @project = Project.new(config.sandbox.project_path)
......
...@@ -8,7 +8,7 @@ module Pod ...@@ -8,7 +8,7 @@ module Pod
sample_project_path = @sample_project_path sample_project_path = @sample_project_path
@podfile = Podfile.new do @podfile = Podfile.new do
platform :ios platform :ios
xcodeproj sample_project_path project sample_project_path
target 'SampleProject' do target 'SampleProject' do
pod 'JSONKit' pod 'JSONKit'
target :empty do target :empty do
......
...@@ -18,7 +18,7 @@ end ...@@ -18,7 +18,7 @@ end
def generate_podfile(pods = ['JSONKit']) def generate_podfile(pods = ['JSONKit'])
Pod::Podfile.new do Pod::Podfile.new do
platform :ios platform :ios
xcodeproj SpecHelper.fixture('SampleProject/SampleProject'), 'Test' => :debug, 'App Store' => :release project SpecHelper.fixture('SampleProject/SampleProject'), 'Test' => :debug, 'App Store' => :release
target 'SampleProject' do target 'SampleProject' do
pods.each { |name| pod name } pods.each { |name| pod name }
target 'SampleProjectTests' do target 'SampleProjectTests' do
...@@ -33,7 +33,7 @@ end ...@@ -33,7 +33,7 @@ end
def generate_local_podfile def generate_local_podfile
Pod::Podfile.new do Pod::Podfile.new do
platform :ios platform :ios
xcodeproj SpecHelper.fixture('SampleProject/SampleProject'), 'Test' => :debug, 'App Store' => :release project SpecHelper.fixture('SampleProject/SampleProject'), 'Test' => :debug, 'App Store' => :release
target 'SampleProject' do target 'SampleProject' do
pod 'Reachability', :path => SpecHelper.fixture('integration/Reachability') pod 'Reachability', :path => SpecHelper.fixture('integration/Reachability')
target 'SampleProjectTests' do target 'SampleProjectTests' do
...@@ -228,7 +228,7 @@ module Pod ...@@ -228,7 +228,7 @@ module Pod
config.repos_dir = fixture_path + 'spec-repos' config.repos_dir = fixture_path + 'spec-repos'
podfile = Pod::Podfile.new do podfile = Pod::Podfile.new do
platform :ios, '8.0' platform :ios, '8.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
use_frameworks! use_frameworks!
pod 'BananaLib', :path => (fixture_path + 'banana-lib').to_s pod 'BananaLib', :path => (fixture_path + 'banana-lib').to_s
pod 'OrangeFramework', :path => (fixture_path + 'orange-framework').to_s pod 'OrangeFramework', :path => (fixture_path + 'orange-framework').to_s
...@@ -268,7 +268,7 @@ module Pod ...@@ -268,7 +268,7 @@ module Pod
config.repos_dir = fixture_path + 'spec-repos' config.repos_dir = fixture_path + 'spec-repos'
podfile = Pod::Podfile.new do podfile = Pod::Podfile.new do
platform :ios, '8.0' platform :ios, '8.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
pod 'BananaLib', :path => (fixture_path + 'banana-lib').to_s pod 'BananaLib', :path => (fixture_path + 'banana-lib').to_s
pod 'OrangeFramework', :path => (fixture_path + 'orange-framework').to_s pod 'OrangeFramework', :path => (fixture_path + 'orange-framework').to_s
pod 'monkey', :path => (fixture_path + 'monkey').to_s pod 'monkey', :path => (fixture_path + 'monkey').to_s
...@@ -288,7 +288,7 @@ module Pod ...@@ -288,7 +288,7 @@ module Pod
config.repos_dir = fixture_path + 'spec-repos' config.repos_dir = fixture_path + 'spec-repos'
podfile = Pod::Podfile.new do podfile = Pod::Podfile.new do
platform :ios, '8.0' platform :ios, '8.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
use_frameworks! use_frameworks!
pod 'BananaLib', :path => (fixture_path + 'banana-lib').to_s pod 'BananaLib', :path => (fixture_path + 'banana-lib').to_s
pod 'monkey', :path => (fixture_path + 'monkey').to_s pod 'monkey', :path => (fixture_path + 'monkey').to_s
...@@ -311,7 +311,7 @@ module Pod ...@@ -311,7 +311,7 @@ module Pod
@podfile = Pod::Podfile.new do @podfile = Pod::Podfile.new do
install! 'cocoapods', 'integrate_targets' => false install! 'cocoapods', 'integrate_targets' => false
platform :ios, '8.0' platform :ios, '8.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
use_frameworks! use_frameworks!
pod 'BananaLib', :path => (fixture_path + 'banana-lib').to_s pod 'BananaLib', :path => (fixture_path + 'banana-lib').to_s
pod 'OrangeFramework', :path => (fixture_path + 'orange-framework').to_s pod 'OrangeFramework', :path => (fixture_path + 'orange-framework').to_s
...@@ -356,7 +356,7 @@ module Pod ...@@ -356,7 +356,7 @@ module Pod
config.repos_dir = fixture_path + 'spec-repos' config.repos_dir = fixture_path + 'spec-repos'
podfile = Pod::Podfile.new do podfile = Pod::Podfile.new do
platform :ios, '8.0' platform :ios, '8.0'
xcodeproj 'SampleProject/SampleProject' project 'SampleProject/SampleProject'
pod 'OrangeFramework', :path => (fixture_path + 'orange-framework').to_s pod 'OrangeFramework', :path => (fixture_path + 'orange-framework').to_s
target 'SampleProject' target 'SampleProject'
end end
......
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