diff options
author | 7rans <transfire@gmail.com> | 2010-11-06 14:23:15 -0400 |
---|---|---|
committer | Gabriel Horner <gabriel.horner@gmail.com> | 2011-07-09 14:11:05 -0400 |
commit | fd57ab852798225187e60f1f3be33aa6bead3907 (patch) | |
tree | 5052cf502a1b994ae63878f1df083054c5c4bb6f /lib/bundler/gem_helper.rb | |
parent | f15de0cd2de9243ab1ca3ac5a64b813117696c2f (diff) | |
download | bundler-fd57ab852798225187e60f1f3be33aa6bead3907.tar.gz |
support hidden gemspec file
Diffstat (limited to 'lib/bundler/gem_helper.rb')
-rw-r--r-- | lib/bundler/gem_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb index b906d5afa4..a3f83e5853 100644 --- a/lib/bundler/gem_helper.rb +++ b/lib/bundler/gem_helper.rb @@ -16,7 +16,7 @@ module Bundler def initialize(base, name = nil) Bundler.ui = UI::Shell.new(Thor::Base.shell.new) @base = base - gemspecs = name ? [File.join(base, "#{name}.gemspec")] : Dir[File.join(base, "*.gemspec")] + gemspecs = name ? [File.join(base, "#{name}.gemspec")] : Dir[File.join(base, "{,*}.gemspec")] raise "Unable to determine name from existing gemspec. Use :name => 'gemname' in #install_tasks to manually set it." unless gemspecs.size == 1 @spec_path = gemspecs.first @gemspec = Bundler.load_gemspec(@spec_path) |