Skip to content
This repository
Browse code

Avoid Symbol#to_proc, compatible with MRI 1.8.6 again.

  • Loading branch information...
commit 06d9a7e57f4a24da7c05ee574d726b0e208ca34b 1 parent a69d294
Wilson Bilkovich authored December 22, 2009 Carl Lerche committed December 22, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/bundler/dsl.rb
2  lib/bundler/dsl.rb
@@ -107,7 +107,7 @@ def gem(name, *args)
107 107
       options = args.last.is_a?(Hash) ? args.pop : {}
108 108
       version = args.last
109 109
 
110  
-      keys = %w(vendored_at path only except git path bundle require_as tag branch ref).map(&:to_sym)
  110
+      keys = :vendored_at, :path, :only, :except, :git, :path, :bundle, :require_as, :tag, :branch, :ref
111 111
       unless (invalid = options.keys - keys).empty?
112 112
         raise InvalidKey, "Only #{keys.join(", ")} are valid options to #gem. You used #{invalid.join(", ")}"
113 113
       end

0 notes on commit 06d9a7e

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