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
David Rodríguez
ed1e4504a4
[rubygems/rubygems] Follow the pattern of other test files for foo.pem
...
a43cffddad
2020-05-08 14:13:29 +09:00
David Rodríguez
1090456370
[rubygems/rubygems] Move helper methods to private section of the test file
...
b85db66e2d
2020-05-08 14:13:29 +09:00
David Rodríguez
53b548f438
[rubygems/rubygems] Install existing gems as regular gems
...
a0880d78a8
2020-05-08 14:13:29 +09:00
David Rodríguez
6438c5848d
[rubygems/rubygems] Remove misleading comments
...
`site_dir`, or `vendor_dir`, is the location where the default version
of bundler & rubygems gets installed. These folders are placed directly
in the LOAD_PATH, so they cannot hold any nested gem directory
structure. So a single copy of either rubygems or bundler can be placed
in these folders.
What the tests are actually testing is the TODO comment that I'm
removing: that installing the default copy of bundler doesn't affect any
already installed copies of bundler as regular gems.
7ca8831d72
2020-05-08 14:13:29 +09:00
David Rodríguez
373d01bb7d
[rubygems/rubygems] Remove unnecessary line
...
1d0981809a
2020-05-08 14:13:29 +09:00
David Rodríguez
0b40279d7d
Normalize heredoc case in rubygems code base
2020-05-08 07:38:50 +09:00
David Rodríguez
061add792e
[rubygems/rubygems] Enable Style/ExtraSpacing
and auto-correct
...
6fa0b1b679
2020-03-30 12:48:23 +09:00
David Rodríguez
ba9dcdab36
[rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems
...
So it matches the style used by bundler.
ab0580fd65
2020-03-30 12:42:10 +09:00
Yusuke Endoh
12a3671a9b
test/rubygems: Try not only /usr/bin/env but also /bin/env
...
RubyGems chooses available one from the two: /usr/bin/env or /bin/env
20b0d60948/lib/rubygems/installer.rb (L38)
So, it is good not to hard-code /usr/bin/env in tests.
This is a retry of 65201c054a
which was
accidentally deleted by 96064e6f1c
2020-03-24 17:21:55 +09:00
David Rodríguez
96064e6f1c
Sync rubygems with current master ( #2889 )
2020-03-24 15:39:24 +09:00
Yusuke Endoh
377c63366f
test/rubygems/test_gem_commands_setup_command.rb: Allow /bin/env
...
Follow up of 65201c054a
2020-02-13 10:16:04 +09:00