aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/rubygems_ext.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-06-04 11:50:36 -0700
committerCarl Lerche <carllerche@mac.com>2010-06-04 11:50:36 -0700
commit60df08e450991c226b643abd515233c5aef37098 (patch)
tree44d3553c9672081745aa7cf4d66b7e6ff27fc6b6 /lib/bundler/rubygems_ext.rb
parent092f169d01472336598e29b32550399991940d63 (diff)
downloadbundler-60df08e450991c226b643abd515233c5aef37098.tar.gz
Improve writing the lockfile
Diffstat (limited to 'lib/bundler/rubygems_ext.rb')
-rw-r--r--lib/bundler/rubygems_ext.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb
index 6f4ffe7a..26fd9a21 100644
--- a/lib/bundler/rubygems_ext.rb
+++ b/lib/bundler/rubygems_ext.rb
@@ -47,21 +47,6 @@ module Gem
end
end
- def to_lock
- if platform == Gem::Platform::RUBY or platform.nil?
- out = " #{name} (#{version})\n"
- else
- out = " #{name} (#{version}-#{platform})\n"
- end
-
- dependencies.sort_by {|d| d.name }.each do |dep|
- next if dep.type == :development
- out << " #{dep.to_lock}\n"
- end
-
- out
- end
-
def to_gemfile(path = nil)
gemfile = "source :gemcutter\n"
gemfile << dependencies_to_gemfile(nondevelopment_dependencies)