Commit e2bc2b2
committed
Append '.gemspec' extension only when it is not present.
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 #39531 parent 15e431b commit e2bc2b2
File tree
2 files changed
+2
-2
lines changed- lib/rubygems/commands
- test/rubygems
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
0 commit comments