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

Commit

Permalink
Remove lockfiles generated by 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Jun 8, 2010
1 parent 4601dde commit 58dab27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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)

Expand Down
7 changes: 7 additions & 0 deletions lib/bundler/lockfile_parser.rb
Expand Up @@ -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
Expand Down

0 comments on commit 58dab27

Please sign in to comment.