summaryrefslogtreecommitdiff
path: root/lib/bundler/environment.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-05-05 03:30:37 -0700
committerCarl Lerche <carllerche@mac.com>2010-05-05 03:30:37 -0700
commit2d3df08eb3d69c891f3b56444853f3aeac020271 (patch)
tree239a16fa2528ec2734366e952f19db0dea627866 /lib/bundler/environment.rb
parent8f3f7840bbb5fe6700b1c4a0329beccd067998e0 (diff)
downloadbundler-2d3df08eb3d69c891f3b56444853f3aeac020271.tar.gz
Rewrite the autorequire code since we do not need to handle generated lock files
Diffstat (limited to 'lib/bundler/environment.rb')
-rw-r--r--lib/bundler/environment.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/bundler/environment.rb b/lib/bundler/environment.rb
index 67387f6825..d182c77d0a 100644
--- a/lib/bundler/environment.rb
+++ b/lib/bundler/environment.rb
@@ -107,33 +107,5 @@ module Bundler
output
end
-
- def autorequires_for_groups(*groups)
- groups.map! { |g| g.to_sym }
- groups = groups.any? ? groups : (@definition.groups - Bundler.settings.without)
- autorequires = Hash.new { |h,k| h[k] = [] }
-
- ordered_deps = @definition.dependencies.find_all{|d| (d.groups & groups).any? }
-
- ordered_deps.each do |dep|
- dep.groups.each do |group|
- # If there is no autorequire, then rescue from
- # autorequiring the gems name
- if dep.autorequire
- dep.autorequire.each do |file|
- autorequires[group] << [file, true]
- end
- else
- autorequires[group] << [dep.name, false]
- end
- end
- end
-
- if groups.empty?
- autorequires
- else
- groups.inject({}) { |h,g| h[g] = autorequires[g]; h }
- end
- end
end
end