Commit c8ce61f4 authored by Eloy Duran's avatar Eloy Duran

Replace Xcodeproj git submodule by adding it to the Gemfile. Closes #172.

parent 5d9984d1
...@@ -12,7 +12,6 @@ examples/Pods ...@@ -12,7 +12,6 @@ examples/Pods
examples/**/Pods examples/**/Pods
spec/fixtures/banana-lib spec/fixtures/banana-lib
spec/fixtures/integration/Headers/ spec/fixtures/integration/Headers/
pod
/concatenated.* /concatenated.*
spec/fixtures/mercurial-repo/.hg/*cache spec/fixtures/mercurial-repo/.hg/*cache
.hg .hg
......
...@@ -10,9 +10,6 @@ ...@@ -10,9 +10,6 @@
[submodule "spec/fixtures/integration/sstoolkit"] [submodule "spec/fixtures/integration/sstoolkit"]
path = spec/fixtures/integration/sstoolkit path = spec/fixtures/integration/sstoolkit
url = https://github.com/samsoffes/sstoolkit.git url = https://github.com/samsoffes/sstoolkit.git
[submodule "external/Xcodeproj"]
path = external/Xcodeproj
url = https://github.com/CocoaPods/Xcodeproj.git
[submodule "spec/fixtures/spec-repos/master"] [submodule "spec/fixtures/spec-repos/master"]
path = spec/fixtures/spec-repos/master path = spec/fixtures/spec-repos/master
url = https://github.com/CocoaPods/Specs.git url = https://github.com/CocoaPods/Specs.git
...@@ -2,5 +2,5 @@ language: ruby ...@@ -2,5 +2,5 @@ language: ruby
rvm: rvm:
- 1.8.7 - 1.8.7
- 1.9.3 - 1.9.3
before_install: git submodule update --init && cd external/Xcodeproj && rake travis:setup && sudo apt-get install subversion install: git submodule update --init && bundle install --path bundle && pushd . && cd bundle/ruby/*/bundler/gems/Xcodeproj-* && rake travis:setup && popd && sudo apt-get install subversion
script: cd ../.. && bundle exec rake spec script: bundle exec rake spec
...@@ -3,14 +3,16 @@ source "http://rubygems.org" ...@@ -3,14 +3,16 @@ source "http://rubygems.org"
gem "open4" gem "open4"
group :development do group :development do
gem "rake" gem "xcodeproj", :git => "git://github.com/CocoaPods/Xcodeproj.git"
gem "bacon" gem "bacon"
gem "guard" gem "guard"
gem "guard-shell" gem "guard-shell"
gem "rb-fsevent"
gem "growl" gem "growl"
gem "kicker"
gem "mocha-on-bacon" gem "mocha-on-bacon"
gem "rake"
gem "rb-fsevent"
gem "vcr" gem "vcr"
gem "webmock" gem "webmock"
gem "kicker"
end end
GIT
remote: git://github.com/CocoaPods/Xcodeproj.git
revision: 338e4d37f282121754f10f6d169256a57a64860d
specs:
xcodeproj (0.1.0)
GEM GEM
remote: http://rubygems.org/ remote: http://rubygems.org/
specs: specs:
...@@ -40,3 +46,4 @@ DEPENDENCIES ...@@ -40,3 +46,4 @@ DEPENDENCIES
rb-fsevent rb-fsevent
vcr vcr
webmock webmock
xcodeproj!
...@@ -41,20 +41,6 @@ namespace :gem do ...@@ -41,20 +41,6 @@ namespace :gem do
end end
end end
namespace :ext do
XCODEPROJ_DIR = "./external/Xcodeproj"
task :clean do
sh "cd #{XCODEPROJ_DIR} && rake ext:clean"
end
task :build do
sh "cd #{XCODEPROJ_DIR} && rake ext:build"
end
task :cleanbuild => [:clean, :build]
end
namespace :spec do namespace :spec do
def specs(dir) def specs(dir)
FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ') FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
...@@ -110,7 +96,7 @@ namespace :spec do ...@@ -110,7 +96,7 @@ namespace :spec do
sh "rm -f spec/fixtures/vcr/tarballs.yml" sh "rm -f spec/fixtures/vcr/tarballs.yml"
end end
task :clean_env => [:clean_vcr, :unpack_fixture_tarballs, "ext:cleanbuild"] task :clean_env => [:clean_vcr, :unpack_fixture_tarballs]
end end
namespace :examples do namespace :examples do
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
if $0 == __FILE__ if $0 == __FILE__
$:.unshift File.expand_path('../../external/Xcodeproj/ext', __FILE__) require "rubygems"
$:.unshift File.expand_path('../../external/Xcodeproj/lib', __FILE__) require "bundler/setup"
$:.unshift File.expand_path('../../lib', __FILE__) $:.unshift File.expand_path('../../lib', __FILE__)
end end
......
Subproject commit 338e4d37f282121754f10f6d169256a57a64860d
require 'rubygems' require 'rubygems'
require 'bundler/setup'
require 'bacon' require 'bacon'
require 'mocha-on-bacon' require 'mocha-on-bacon'
...@@ -7,8 +8,6 @@ Bacon.summary_at_exit ...@@ -7,8 +8,6 @@ Bacon.summary_at_exit
require 'pathname' require 'pathname'
ROOT = Pathname.new(File.expand_path('../../', __FILE__)) ROOT = Pathname.new(File.expand_path('../../', __FILE__))
$:.unshift File.expand_path('../../external/Xcodeproj/ext', __FILE__)
$:.unshift File.expand_path('../../external/Xcodeproj/lib', __FILE__)
$:.unshift((ROOT + 'lib').to_s) $:.unshift((ROOT + 'lib').to_s)
require 'cocoapods' require 'cocoapods'
......
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