summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-01-26 23:43:06 -0800
committerAndre Arko <andre@arko.net>2015-01-26 23:43:06 -0800
commitf2c712b6f5a16ea8f81b432537d2852bbea2df67 (patch)
tree7cb989302a62be892ac50f5f06b7112e9f3aa396 /Rakefile
parent8018a2e4fba070fb7e12a79e4eb92be0b1c32285 (diff)
parent9d584921ec7517d5fb89fb53b10f9491b753d0fa (diff)
downloadbundler-f2c712b6f5a16ea8f81b432537d2852bbea2df67.tar.gz
Merge pull request #3257 from segiddins/seg-molinillo
Use Molinillo for Dependency Resolution Conflicts: lib/bundler/resolver.rb
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index d4d08da058..19c9cf37ca 100644
--- a/Rakefile
+++ b/Rakefile
@@ -27,6 +27,29 @@ module Rake
end
end
+namespace :molinillo do
+ task :namespace do
+ files = Dir.glob('lib/bundler/vendor/Molinillo*/**/*.rb')
+ sh "sed -i.bak 's/Molinillo/Bundler::Molinillo/g' #{files.join(' ')}"
+ sh "rm #{files.join('.bak ')}.bak"
+ end
+
+ task :clean do
+ files = Dir.glob('lib/bundler/vendor/Molinillo*/*', File::FNM_DOTMATCH).reject { |f| %(. .. lib).include? f.split('/').last }
+ puts files
+ sh "rm -r #{files.join(' ')}"
+ end
+
+ task :update, [:tag] => [] do |t, args|
+ tag = args[:tag]
+ Dir.chdir 'lib/bundler/vendor' do
+ `curl -L https://github.com/CocoaPods/molinillo/archive/#{tag}.tar.gz | tar -xz`
+ end
+ Rake::Task['molinillo:namespace'].invoke
+ Rake::Task['molinillo:clean'].invoke
+ end
+end
+
namespace :spec do
desc "Ensure spec dependencies are installed"
task :deps do