diff options
author | Andre Arko <andre@arko.net> | 2015-01-26 23:43:06 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-01-26 23:43:06 -0800 |
commit | f2c712b6f5a16ea8f81b432537d2852bbea2df67 (patch) | |
tree | 7cb989302a62be892ac50f5f06b7112e9f3aa396 /Rakefile | |
parent | 8018a2e4fba070fb7e12a79e4eb92be0b1c32285 (diff) | |
parent | 9d584921ec7517d5fb89fb53b10f9491b753d0fa (diff) | |
download | bundler-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-- | Rakefile | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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 |