David Rodríguez
4245d522b2
[rubygems/rubygems] Allow enabling "Bundler 3 mode" more easily
...
Currently to test Bundler 3 mode we have to actually edit the version
file to simulate we're running a future version. This is inconvenient.
Instead, allow passing an environment variable, `BUNDLER_3_MODE`, to set
the "working mode" Bundler should use.
This can now be set easily by end users to enable them to try out the
changes in the future version and give us feedback.
It's unclear how version auto-switching should work when this
environment variable is set, so the auto-switching feature will be
disabled in that case.
4e92e9b209
2025-06-19 10:23:36 +09:00
Antoine Marguerie
11492bd88d
[rubygems/rubygems] Fix headings levels in Changelogs
...
And adapt release scripts and configuration to the new structure.
3deb1aedae
2025-06-05 19:12:39 +09:00
David Rodríguez
1e1a37220b
[rubygems/rubygems] Fix gem update --system
leaving old default bundler executables around
...
4b81add54c
2024-10-30 14:22:08 +00:00
David Rodriguez
c55c11d7d5
[rubygems/rubygems] Fix binstubs sometimes not getting regenerated when --destdir
is given
...
This was only working for gems also installed in the default gem home.
47df02dbd9
2024-05-16 13:34:33 +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
Hiroshi SHIBATA
4bbeed6134
Merge RubyGems/Bundler master from 4076391fce5847689bf2ec402b17133fe4e32285
2023-05-30 21:50:07 +09:00
Sutou Kouhei
d83f32c34b
[rubygems/rubygems] Load plugin immediately
...
We can install RubyGems plugin by "gem install XXX". The installed
plugin is used from the NEXT "gem ...".
For example, "gem install gem-src kaminari" doesn't use gem-src plugin
for kaminari. "gem install gem-src && gem install kaminari" uses
gem-src plugin for kaminari.
How about loading a plugin immediately when the plugin is installed?
If this proposal is implemented, "gem install gem-src kaminari" works
like "gem install gem-src && gem install kaminari".
4917d96f4c
2023-05-25 21:51:15 +00:00
Hiroshi SHIBATA
250e97c0fb
[rubygems/rubygems] util/rubocop -A --only Style/FormatString
...
132a56569d
2023-04-07 05:13:05 +00:00
Vít Ondruch
b5f2432917
[rubygems/rubygems] Use TestCase#util_spec instead of custom code.
...
74d485ff1e
2023-04-06 13:07:16 +09:00
Hiroshi SHIBATA
e003784fc8
[rubygems/rubygems] util/rubocop -A --only Style/RegexpLiteral
...
9264d83421
2023-04-05 09:50:29 +00:00
Hiroshi SHIBATA
a464951fc7
[rubygems/rubygems] Unify win_platform? to Gem.win_platform?
...
b18a4ef076
2023-04-05 05:49:25 +00:00
Hiroshi SHIBATA
a43f1d90c2
Merge RubyGems and Bundler master
...
from 0635c1423d
2023-01-10 15:53:07 +09:00
Nobuyoshi Nakada
58dc9c931b
[rubygems/rubygems] Stop installing everything under "lib" at the top in all tests
...
f9772d62e1
2022-11-25 08:02:28 +00:00
Takuya Noguchi
d7ffd3fea4
RubyGems: Enable Style/StringLiterals cop
...
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2022-07-22 12:07:23 +09:00
David Rodríguez
fa5724cca9
[rubygems/rubygems] Fix ruby setup.rb --destdir /foo
modifying global specs
...
Running a command like that is actually removing any previous default
bundler specs in the default RubyGems installation (outside of destdir).
It should instead only modify destdir.
5ed275383c
2022-07-20 19:55:34 +09:00
David Rodríguez
fae0d60120
[rubygems/rubygems] Refactor destdir checks
...
ca956c0de2
2022-07-20 19:55:34 +09:00
David Rodríguez
fcfb3ce371
[rubygems/rubygems] More cleanup
...
6012800a20
2022-07-20 19:55:33 +09:00
David Rodríguez
bdef3c73fe
[rubygems/rubygems] Unify common logic
...
e5434be14c
2022-07-20 19:55:33 +09:00
David Rodríguez
a74634de10
[rubygems/rubygems] Fix upgrading RubyGems with a customized Gem.default_dir
...
16d01f9486
2022-07-18 19:07:55 +09:00
Hiroshi SHIBATA
678d58c850
Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5
2022-04-28 19:08:49 +09:00
Hiroshi SHIBATA
a49aae2c5e
[rubygems/rubygems] Resolve cleaned-up error with temporary gemhome
...
623162ad2b
2022-02-22 13:32:59 +09:00
David Rodríguez
a72aecac3a
[rubygems/rubygems] Don't write outside of destdir when regenerating plugins
...
141ef4cb9a
2021-12-05 05:47:46 +09:00
David Rodríguez
9dc76e102e
[rubygems/rubygems] Don't write outside of destdir when installing default bundler
...
a62d00c5e8
2021-12-05 05:47:45 +09:00
David Rodríguez
907aa47527
[rubygems/rubygems] Fix ruby setup.rb
command when --prefix
is passed
...
8d04092f6e
2021-11-05 23:20:50 +09:00
David Rodríguez
d47831d554
[rubygems/rubygems] Bin dir should fall inside destdir
...
Since that's what happens in real life when `--destdir` is passed.
55637bdc8a
2021-11-05 23:20:49 +09:00
David Rodríguez
ef6752c6c4
[rubygems/rubygems] Remove unnecessary test setup
...
The method being unit tested here doesn't use
`RbConfig::CONFIG["bindir"]`.
d3f092ad14
2021-11-05 23:20:49 +09:00
David Rodríguez
87a8b22455
[rubygems/rubygems] Simplify --destdir
test
...
0571fd1ec6
2021-11-05 23:20:48 +09:00
David Rodríguez
e60c1f7556
[rubygems/rubygems] Refactor setup tests to not always pass --prefix
...
Standard usage should be tested by default. I will add a test for
`--prefix` once I fix that option since it's not working correctly at
the moment.
50a7e34586
2021-11-05 23:20:47 +09:00
Alyssa Ross
1506c8228b
[rubygems/rubygems] Don't apply --destdir
twice when running setup.rb
...
Prior to this patch, if I ran:
ruby setup.rb --destdir /foo
Then Bundler files would be written into /foo/foo, because destdir was
being prepended, even though `bundler_spec.bin_dir` already included
destdir.
9e857ffb52
2021-11-05 07:23:36 +09:00
David Rodríguez
6e2240a2f9
Sync latest bundler & rubygems development version
2021-07-07 13:30:20 +09:00
Yusuke Endoh
b957c3dbcb
[rubygems/rubygems] Rename test/rubygems/test_{case,utilities}.rb to avoid "test_" prefix
...
This changes "test/rubygems/test_case.rb" to "test/rubygems/helper.rb",
and "test/rubygems/test_utilities.rb" to "test/rubygems/utilities.rb".
The two files are a helper for tests, not test files. However, a file
starting with "test_" prefix is handled as a test file directly loaded
by test-unit because Rakefile specifies:
```
t.test_files = FileList['test/**/test_*.rb']
```
Directly loading test/rubygems/test_utilities.rb caused "uninitialized
constant Gem::TestCase". This issue was fixed by
59c6820971
, but the fix caused a
"circular require" warning because test_utilities.rb and test_case.rb
are now requiring each other.
Anyway, adding "test_" prefix to a test helper file is confusing, so
this changeset reverts the fix and solve the issue by renaming them.
6460e018df
2021-06-03 12:23:22 +09:00
David Rodríguez
1f505000e6
[rubygems/rubygems] Test installing a non deprecated file
...
a678959eda
2021-05-28 11:53:45 +09:00
David Rodríguez
f7732ae2eb
[rubygems/rubygems] Require the new files in test/
relatively
...
c77868a555
2021-05-28 11:53:09 +09:00
Hiroshi SHIBATA
3948be3503
[rubygems/rubygems] Use assert_path_exist and assert_path_not_exist instead of assert_path_exists and refute_path_exists
...
a7c93558c3
2021-05-12 17:24:43 +09:00
Hiroshi SHIBATA
96741765d8
Merge the master branch of RubyGems
2021-04-15 15:36:15 +09:00
Hiroshi SHIBATA
5537adf719
Track RubyGems master(3.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20
2021-01-04 13:14:43 +09:00
Hiroshi SHIBATA
4aca77edde
Merge prepare version of RubyGems 3.2.0
2020-12-08 17:30:02 +09:00
Hiroshi SHIBATA
ab6c4f8be3
Merge rubygems-3.2.0.rc.2
2020-10-15 14:12:02 +09:00
Hiroshi SHIBATA
b717f73402
Revert "Manually merged from https://github.com/rubygems/rubygems/pull/2636 "
...
31a6eaabc1
is obsoleted with
https://github.com/rubygems/rubygems/pull/3820
2020-09-23 22:01:44 +09:00
Hiroshi SHIBATA
31a6eaabc1
Manually merged from https://github.com/rubygems/rubygems/pull/2636
...
Enable Style/EmptyLinesAroundClassBody rubocop cop.
2020-09-23 21:02:56 +09:00
David Rodríguez
a9b044e97b
[rubygems/rubygems] Setup no longer generates formatted executables by default
...
Catch up with that change in `gem update --system` tests.
127ba14344
2020-07-31 21:07:19 +09:00
David Rodríguez
a89665b7b1
Enforce no empty lines around class body in rubygems
...
To normalize the code style with `bundler`.
2020-07-31 21:07:19 +09:00
David Rodríguez
b1d74afd3a
Speed up setup test by not installing docs
...
This also makes this test consistent with the other tests in this file.
2020-06-17 21:16:56 +09:00
David Rodríguez
49c42b6012
Remove encoding magic comments
...
They are no longer needed since ruby 2.0.
2020-06-15 21:20:37 +09:00
David Rodríguez
dd5b918cbe
[rubygems/rubygems] Fix template cleanup as well
...
10cc79ee21
2020-06-05 07:32:42 +09:00
David Rodríguez
e4d0cca24a
[rubygems/rubygems] Fix installing template files with dots
...
a82a77251d
2020-06-05 07:32:42 +09:00
David Rodríguez
0e195c82c1
[rubygems/rubygems] Remove old gauntlet_rubygems
file on rubygems upgrade
...
The file was removed at
65b709b095
,
shipped with rubygems 2.6.5.
739159a120
2020-05-08 14:13:29 +09:00
David Rodríguez
ece1690105
[rubygems/rubygems] Install man files when bundler installed as a default gem
...
28d6d77d81
2020-05-08 14:13:29 +09:00
David Rodríguez
5400811db9
[rubygems/rubygems] Refactor dummy file creation
...
665099fe53
2020-05-08 14:13:29 +09:00
David Rodríguez
74867e2dc1
[rubygems/rubygems] Fix super weird code style
...
f1a5815896
2020-05-08 14:13:29 +09:00