We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0861f7f commit 22473e4Copy full SHA for 22473e4
lib/rubygems/commands/build_command.rb
@@ -79,7 +79,7 @@ def find_gemspec
79
end
80
81
def build_gem(gem_name)
82
- gemspec = File.exist?(gem_name) ? gem_name : "#{gem_name}.gemspec"
+ gemspec = File.extname(gem_name) == ".gemspec" ? gem_name : "#{gem_name}.gemspec"
83
84
if File.exist?(gemspec)
85
spec = Gem::Specification.load(gemspec)
test/rubygems/test_gem_commands_build_command.rb
@@ -273,7 +273,7 @@ def test_execute_outside_dir
273
274
275
def test_can_find_gemspecs_without_dot_gemspec
276
- gemspec_file = File.join(@tempdir, @gem.spec_name)
+ gemspec_file = File.join(@tempdir, @gem.name)
277
278
File.open gemspec_file + ".gemspec", 'w' do |gs|
279
gs.write @gem.to_ruby
0 commit comments