David Rodríguez
ce0d71b3a7
[rubygems/rubygems] Simplify new gem spec that simulates "no git available"
...
I don't know why it was written like that.
ee83fddd30
2025-07-25 11:10:34 +09:00
David Rodríguez
b78406a032
[rubygems/rubygems] Fix some specs running the wrong rake
...
8d4eb154b1
2025-07-25 11:10:34 +09:00
Sweta Sanghavi
4ed2757543
[rubygems/rubygems] Update gemspec based on provided github username when exists
...
* Conditionally set changelog_url if gh username passed
and enabled
* conditionally set homepage, source code uri, homepage uri when gh
username passed in
* update documentation to say username will also be used for gemspec file
1c1ada593b
2025-07-09 13:48:37 +09:00
David Rodríguez
9942ff7c6a
[rubygems/rubygems] Use shorter questions as prompts in bundle gem
...
If we use long explanations as prompts, sometimes the prompt gets
printed twice due to a (I think) reline/readline bug.
987e0dfa90
2025-07-09 13:48:33 +09:00
David Rodríguez
5fa484a441
[rubygems/rubygems] Move specs independent of gem name out of shared examples
...
And rename the shared examples to "paths dependent on gem name".
cdcc8ba92a
2025-07-07 11:53:10 +09:00
David Rodríguez
6d696fa3b4
[rubygems/rubygems] Move specs independent from gem_name out of "generating a gem" shared specs
...
So that they don't run repeatedly.
1f65e879f4
2025-07-07 11:53:09 +09:00
David Rodríguez
fab1323ab3
[rubygems/rubygems] Remove unnecessary nesting
...
eac831a1b7
2025-07-07 11:53:08 +09:00
David Rodríguez
e7f11ecc2b
[rubygems/rubygems] Actually run "generating a gem" shared examples for the more standard name
...
They were only being run for "edge case" names, yet it tests all kind of
things about generation.
3e9d805eea
2025-07-07 11:53:08 +09:00
David Rodríguez
8a802f7e4e
[rubygems/rubygems] Fix assertions to not depend on specific gem name
...
27a4af859e
2025-07-07 11:53:07 +09:00
David Rodríguez
f609d3395e
[rubygems/rubygems] Remove unnecessary feature flag check
...
This spec now only runs in Bundler 2 mode.
f52cb240ca
2025-07-07 11:52:59 +09:00
David Rodríguez
83c403c4d8
[rubygems/rubygems] Rename some helpers to avoid name classes
...
I plan to introduce a `base_system_gems` helper to actually install gems
from `base_system_gem_path` into system gems but that would collapse
with an existing helper.
714c209e62
2025-07-02 10:34:18 +09:00
Hiroshi SHIBATA
4e3ef1d9b3
[rubygems/rubygems] Added extra examples
...
a2e4d8299f
2025-06-30 12:56:50 +09:00
Hiroshi SHIBATA
4ef8cb2671
[rubygems/rubygems] Assert stdout message instead of rspec-mock
...
91d7abe27f
2025-06-30 12:56:50 +09:00
Hiroshi SHIBATA
7e9cbb109f
[rubygems/rubygems] Added missing caller for shared_example
...
ab9b8c2511
2025-06-30 12:56:50 +09:00
Hiroshi SHIBATA
1cb1b15f77
[rubygems/rubygems] Added --bundle option for triggering bundle install automatically after bundle gem
...
59ac0db26b
2025-06-30 12:56:50 +09:00
David Rodríguez
9e566141cd
[rubygems/rubygems] Remove "double CI" for testing Bundler 4 mode
...
Since now every functionality that changes in Bundler 4 is under a
setting, we can enable that setting to test the new functionality,
without having to run our full CI twice.
This can actually be seen as increasing coverage, because Bundler 4
functionality will now be tested on Windows, MacOS, or any other
environment where previously "Bundler 4 mode" was not running.
1cb3e009fc
2025-06-30 12:56:50 +09:00
David Rodríguez
f3ea6c35cc
[rubygems/rubygems] Normalize Bundler version spec filters
...
28b6a7cf5e
2025-06-19 10:23:36 +09:00
David Rodríguez
459f265b56
[rubygems/rubygems] Cleanup dead code, RubyGems 3.3 is no longer supported
...
945a29a477
2025-06-17 15:09:34 +09:00
David Rodríguez
d95f7a3c43
[rubygems/rubygems] Extract stdboth spec helper
...
bb13f4e702
2025-06-06 10:09:14 +09:00
TangRufus
710f5b7711
[rubygems/rubygems] Follow coding style
...
bfac93100e
2025-06-03 08:06:50 +09:00
TangRufus
792414678d
[rubygems/rubygems] Test bin/
is included in the ignore list
...
7afe81fd45
2025-06-03 08:06:45 +09:00
TangRufus
204e3c58e1
[rubygems/rubygems] Only ignore .gitignore
when generating gems with git
...
aec5a7887d
2025-06-03 08:06:39 +09:00
TangRufus
9024caa1d6
[rubygems/rubygems] Ignore Gemfile
, gems.rb
& gems.locked
according to init_gems_rb
preference
...
88aeb66f41
2025-06-03 08:06:31 +09:00
TangRufus
582e2c7fe2
[rubygems/rubygems] Extract ignore_paths
helper method
...
d45710ee53
2025-06-03 08:06:21 +09:00
TangRufus
68345e2930
[rubygems/rubygems] Only ignore test/
when generating gems with minitest
or test-unit
...
c464f2036a
2025-06-03 08:05:31 +09:00
TangRufus
2745221ad8
[rubygems/rubygems] Test it does not add any CI config files into ignore list when not generating any CI config
...
018bb19244
2025-06-03 08:05:24 +09:00
TangRufus
f1512bfa55
[rubygems/rubygems] Extract before
blocks
...
ff51a51d1a
2025-06-03 08:05:17 +09:00
TangRufus
959bde8643
[rubygems/rubygems] Suffix .circleci
with /
in spec.files
in the .gemspec
template
...
e48c6beaf6
2025-06-03 08:05:07 +09:00
TangRufus
3691c5409d
[rubygems/rubygems] Suffix .github
with /
in spec.files
in the .gemspec
template
...
edf13f7e60
2025-06-03 08:04:59 +09:00
TangRufus
6b2088cf90
[rubygems/rubygems] Exclude .rspec
from spec.files
in the .gemspec
template
...
331901941d
2025-06-03 08:04:39 +09:00
TangRufus
a7be563d0b
[rubygems/rubygems] Exclude .rubocop.yml
and .standard.yml
from spec.files
in the .gemspec
template
...
9d937d4f7f
2025-06-03 08:04:32 +09:00
TangRufus
04a396409d
[rubygems/rubygems] Refactor spec.files
ignore list generation
...
c11539f325
2025-06-03 08:04:04 +09:00
TangRufus
b34959b497
[rubygems/rubygems] Fix English grammar
...
160938e75c
2025-06-03 08:03:52 +09:00
Tang Rufus
f88d67db34
[rubygems/rubygems] Fix example name typo
...
2d0cf3c31e
2025-05-28 13:34:39 +09:00
Hiroshi SHIBATA
a8aa83cc7b
all of examples at commands/newgem_spec.rb are working on ruby repo
2025-04-23 18:09:55 +09:00
David Rodríguez
1a985d36a7
[rubygems/rubygems] Adapt specs to extraction of irb from ruby-core
...
This gets our daily Bundler CI back to green.
1bb70f75d2
2025-03-10 12:43:36 +09:00
gemmaro
1d510a952d
[rubygems/rubygems] Fix test task name on generated readme when using test-unit
...
* bundler/lib/bundler/templates/newgem/README.md.tt (Development): Use the
test_task value to get the correct test task name ("test", not "test-unit").
* bundler/spec/commands/newgem_spec.rb (README.md): Add tests for test task
names for each test frameworks.
2a24708a63
2024-11-25 16:20:52 +00:00
Guilherme Carreiro
c3fea18094
[rubygems/rubygems] Update --ext=rust
to support compiling the native extension from source
...
9b0ec807c7
2024-10-30 23:09:12 +00:00
Yuji Yaginuma
c37b667774
[rubygems/rubygems] Make an exe file executable when generating new gems
...
Currently, an exe file isn't executable when generating new gems
because it doesn't have the correct permission.
This PR sets the correct permission same as files under the `bin`.
6509bf128a
2024-09-11 04:41:20 +00:00
Jason Karns
a4563be05c
[rubygems/rubygems] bundle-gem learns to find Gemfile template correctly
...
Removes the symlink for gems.rb.tt and instead uses the singular
template file. Only the destination filename for the gemfile reads from
the `init_gems_rb` setting.
43ce0e1666
2024-07-25 19:50:59 +00:00
Jerome Dalbert
2830a6ae38
[rubygems/rubygems] Only allow valid values for --test, --ci, and --linter options
...
d4360c9032
2024-07-02 19:54:23 +00:00
Jerome Dalbert
c6c817df28
[rubygems/rubygems] Add --no-test, --no-ci, and --no-linter options
...
f58660ffcc
2024-06-26 11:24:47 +00:00
David Rodriguez
9579c3d988
[rubygems/rubygems] Reuse git
helper when possible
...
f7c7bae940
2024-06-06 18:44:43 +00:00
David Rodríguez
180ae00989
[rubygems/rubygems] Rework bundle gem
specs so that they work on Windows
...
Most of the commands run by these specs actually prompt for user input
but for some reason `Open3` outside of Windows ignores that and goes on
with no user input. Windows does not like this.
This commit refactors these specs so that:
* They don't prompt for user input when not necessary.
* They pass proper user input when necessary.
As long as no user input is needed, most specs pass, so it allows to
remove the `:readline` tag from most of them.
3dfabcdae4
2024-05-24 16:25:40 +00:00
Masato Ohba
933ede5d76
[rubygems/rubygems] Remove travis_removal_info
...
`travis_removal_info` is added by https://github.com/rubygems/rubygems/pull/6150 . According to the comment, it's supposed to be removed at bundler v2.5.0 but it hasn't.
e18797d43f
2024-01-29 05:39:13 +00:00
David Rodríguez
67940b135c
[rubygems/rubygems] Bump rake version used by tests
...
And make it easier to update next time.
1ea4bfa5d8
2023-12-12 17:16:19 +00:00
Yuji Yaginuma
8bb90f4d77
[rubygems/rubygems] Use Minitest::TestTask
in a template file for minitest
...
`minitest` has introduced a rake task for running test on 5.16.0.
https://github.com/minitest/minitest/blob/master/History.rdoc#5160--2022-06-14-
This has some tasks related to running tests and it's useful for
`minitest` user I think.
https://github.com/minitest/minitest#rake-tasks-
This PR changed to use the task in a template file for `minitest`
7a86d13062
2023-12-08 03:25:43 +00:00
David Rodríguez
2755cb1b2f
[rubygems/rubygems] Use modern hashes consistently
...
bb66253f2c
2023-12-07 22:29:33 +00:00
Hiroshi SHIBATA
c5861903ac
[rubygems/rubygems] Handle CI configuration on ignore list for Gem::Specification#files
...
4bb0ef3e55
2023-10-25 00:46:09 +00:00
Graham Marlow
f3aea74c3d
[rubygems/rubygems] Include gemspec in ExtensionTask for native gem tasks
...
042cfb7007
2023-10-02 01:34:01 +00:00