Skip to content
Browse files

Avoid Symbol#to_proc, compatible with MRI 1.8.6 again.

  • Loading branch information...
1 parent a69d294 commit 06d9a7e57f4a24da7c05ee574d726b0e208ca34b @wilson wilson committed with Carl Lerche Dec 22, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler/dsl.rb
View
2 lib/bundler/dsl.rb
@@ -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

0 comments on commit 06d9a7e

Please sign in to comment.
Something went wrong with that request. Please try again.