summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Hull <joshbuddy@gmail.com>2010-06-24 00:40:34 -0400
committerAndre Arko <andre@arko.net>2010-06-23 21:46:24 -0700
commit5d3b55e9874fea0165c97a23a611ed392f1710cd (patch)
tree75ac2832c0989bed144f65af6adb3b39a5fd41fb
parent87ab62c5321c3132127c79b98992eb2dbfba3478 (diff)
downloadbundler-5d3b55e9874fea0165c97a23a611ed392f1710cd.tar.gz
make opts optional
-rw-r--r--lib/bundler/dsl.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index 59499d0b4b..5e9123877e 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -21,9 +21,9 @@ module Bundler
end
def gemspec(opts)
- path = opts[:path] || '.'
- name = opts[:name] || '*'
- development_group = opts[:development_group] || :development
+ path = opts && opts[:path] || '.'
+ name = opts && opts[:name] || '*'
+ development_group = opts && opts[:development_group] || :development
gemspecs = Dir[File.join(path, "#{name}.gemspec")]
case gemspecs.size
when 1