diff options
author | Carl Lerche <carllerche@mac.com> | 2010-06-08 17:58:48 -0400 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-06-08 18:14:35 -0400 |
commit | ba81b29637b6393cc104c92d1e1fda9d31470984 (patch) | |
tree | 7e3ba219f195d69a895aa19f464e1721c44574c2 /lib/bundler/lockfile_parser.rb | |
parent | 803f3816fb9b79ee639c9e938285ec2da286b068 (diff) | |
download | bundler-ba81b29637b6393cc104c92d1e1fda9d31470984.tar.gz |
Fix a bug in the lockfile parser
Diffstat (limited to 'lib/bundler/lockfile_parser.rb')
-rw-r--r-- | lib/bundler/lockfile_parser.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bundler/lockfile_parser.rb b/lib/bundler/lockfile_parser.rb index ce682b139a..15578040dc 100644 --- a/lib/bundler/lockfile_parser.rb +++ b/lib/bundler/lockfile_parser.rb @@ -83,7 +83,10 @@ module Bundler @current_spec.source = @current_source @specs << @current_spec elsif line =~ %r{^ {6}#{NAME_VERSION}$} - @current_spec.dependencies << Gem::Dependency.new($1, $2) + name, version = $1, $2 + version = version.split(',').map { |d| d.strip } if version + dep = Gem::Dependency.new(name, version) + @current_spec.dependencies << dep end end |