Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append '.gemspec' extension only when it is not present. #3988

Merged

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 rubygems#3953.
@voxik voxik mentioned this pull request Oct 2, 2020
Copy link
Member

@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
Member

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

@deivid-rodriguez deivid-rodriguez merged commit 214fefc into rubygems: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.

None yet

3 participants