summaryrefslogtreecommitdiff
path: root/lib/bundler/lockfile_parser.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-06-07 19:41:53 -0700
committerAndre Arko <andre@arko.net>2010-06-08 12:19:34 -0400
commite0e79df7ccd3b665f631c120d4e8be573c76d651 (patch)
treec04a369b6d31977ef9b116f694a39924aec51a2f /lib/bundler/lockfile_parser.rb
parentef62ee67590926c8706ce6ce1286d0bf686a139d (diff)
downloadbundler-e0e79df7ccd3b665f631c120d4e8be573c76d651.tar.gz
Upgrade 0.9 lockfiles to 1.0 lockfiles in-place
Diffstat (limited to 'lib/bundler/lockfile_parser.rb')
-rw-r--r--lib/bundler/lockfile_parser.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/bundler/lockfile_parser.rb b/lib/bundler/lockfile_parser.rb
index 4e97a29aa0..ce682b139a 100644
--- a/lib/bundler/lockfile_parser.rb
+++ b/lib/bundler/lockfile_parser.rb
@@ -11,13 +11,6 @@ module Bundler
@specs = []
@state = :source
- # Check for 0.9 lockfile, removing it if found
- if lockfile[0..2] == "---"
- Bundler.ui.warn "Removing Gemfile.lock generated by Bundler 0.9"
- FileUtils.rm_rf(lockfile)
- return nil
- end
-
lockfile.split(/\n+/).each do |line|
if line == "DEPENDENCIES"
@state = :dependency
@@ -99,5 +92,6 @@ module Bundler
@platforms << Gem::Platform.new($1)
end
end
+
end
end \ No newline at end of file