aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/dsl.rb
diff options
context:
space:
mode:
authorAntonio Scandurra <as_cii@hotmail.it>2014-03-21 09:12:35 +0100
committerAntonio Scandurra <as_cii@hotmail.it>2014-03-21 09:35:33 +0100
commit259012d7bdf90e362122122b1f090a8af8070b32 (patch)
treee2ea3eb4177d19576a90ade5708c0fb963bc7844 /lib/bundler/dsl.rb
parent4d29adeee6e000e309674ee38ce3c027cec3534d (diff)
downloadbundler-259012d7bdf90e362122122b1f090a8af8070b32.tar.gz
Avoid threequals operator where possible
Diffstat (limited to 'lib/bundler/dsl.rb')
-rw-r--r--lib/bundler/dsl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index b18125a4..5a985a67 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -74,7 +74,7 @@ module Bundler
raise GemfileError, %{You need to specify gem names as Strings. Use 'gem "#{name.to_s}"' instead.}
end
- options = Hash === args.last ? args.pop.dup : {}
+ options = args.last.is_a?(Hash) ? args.pop.dup : {}
version = args
normalize_options(name, version, options)