Skip to content

Conversation

@voxik
Copy link
Contributor

@voxik voxik commented Oct 2, 2020

This avoids confusing messages such as:

$ gem build *.gemspec
ERROR:  Gemspec file not found: *.gemspec.gemspec

Please note that the TestGemCommandsBuildCommand#test_can_find_gemspecs_without_dot_gemspec
testcase was probably wrong from the beginning, trying to apply .gemspec extension to @gem.spec_name, which already contains the extension.

Fixes minor issue mentioned in #3953.

This avoids confusing messages such as:

~~~
$ gem build *.gemspec
ERROR:  Gemspec file not found: *.gemspec.gemspec
~~~

Please note that the
`TestGemCommandsBuildCommand#test_can_find_gemspecs_without_dot_gemspec`
testcase was probably wrong from the beginning, trying to apply
`.gemspec` extension to `@gem.spec_name`, which already contains the
extension.

Fixes minor issue mentioned in ruby#3953.
@voxik voxik mentioned this pull request Oct 2, 2020
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@deivid-rodriguez
Copy link
Contributor

Since this fix is independent from the whole #3954 vs #3983 discussion, I'm merging it!

@deivid-rodriguez deivid-rodriguez merged commit 214fefc into ruby:master Oct 2, 2020
deivid-rodriguez added a commit that referenced this pull request Dec 7, 2020
Append '.gemspec' extension only when it is not present.

(cherry picked from commit 214fefc)
deivid-rodriguez added a commit that referenced this pull request Dec 7, 2020
Append '.gemspec' extension only when it is not present.

(cherry picked from commit 214fefc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants