Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3257 from segiddins/seg-molinillo
Browse files Browse the repository at this point in the history
Use Molinillo for Dependency Resolution

Conflicts:
	lib/bundler/resolver.rb
  • Loading branch information
indirect committed Jan 27, 2015
2 parents 8018a2e + 9d58492 commit f2c712b
Show file tree
Hide file tree
Showing 19 changed files with 1,187 additions and 413 deletions.
23 changes: 23 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/bundler/dep_proxy.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module Bundler
class DepProxy

attr_reader :required_by, :__platform, :dep
attr_reader :__platform, :dep

def initialize(dep, platform)
@dep, @__platform, @required_by = dep, platform, []
@dep, @__platform = dep, platform
end

def hash
Expand Down
Loading

0 comments on commit f2c712b

Please sign in to comment.