Skip to content

Commit

Permalink
Avoid Symbol#to_proc, compatible with MRI 1.8.6 again.
Browse files Browse the repository at this point in the history
  • Loading branch information
wilson authored and Carl Lerche committed Dec 22, 2009
1 parent a69d294 commit 06d9a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/dsl.rb
Expand Up @@ -107,7 +107,7 @@ def gem(name, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
version = args.last

keys = %w(vendored_at path only except git path bundle require_as tag branch ref).map(&:to_sym)
keys = :vendored_at, :path, :only, :except, :git, :path, :bundle, :require_as, :tag, :branch, :ref
unless (invalid = options.keys - keys).empty?
raise InvalidKey, "Only #{keys.join(", ")} are valid options to #gem. You used #{invalid.join(", ")}"
end
Expand Down

0 comments on commit 06d9a7e

Please sign in to comment.