Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove lockfiles generated by 0.9

  • Loading branch information...
commit 58dab2773d1d1e5552fb96205c7d1929231ea37a 1 parent 4601dde
@indirect indirect authored
Showing with 8 additions and 0 deletions.
  1. +1 −0  CHANGELOG.md
  2. +7 −0 lib/bundler/lockfile_parser.rb
View
1  CHANGELOG.md
@@ -3,6 +3,7 @@
- No `bundle lock` command. Locking happens automatically on install or update
- No .bundle/environment.rb. Require 'bundler/setup' instead.
- $BUNDLE_HOME defaults to $GEM_HOME instead of ~/.bundle
+ - Remove lockfiles generated by 0.9
## 0.9.25 (May 3, 2010)
View
7 lib/bundler/lockfile_parser.rb
@@ -11,6 +11,13 @@ def initialize(lockfile)
@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
Please sign in to comment.
Something went wrong with that request. Please try again.