Hiroshi SHIBATA
b5ef64a8a1
Merge RubyGems-3.3.8 and Bundler-2.3.8
2022-05-18 10:02:42 +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
Hiroshi SHIBATA
600a715c9b
Merge the current master branch of rubygems/rubygems.
...
Just started to develop RubyGems 3.2.0.
2020-02-01 11:14:57 +09:00
Hiroshi SHIBATA
e672494cd7
Merge RubyGems 3.1.2
2019-12-20 11:50:32 +09:00
David Rodríguez
d9e6315177
[rubygems/rubygems] Bump rubocop to 0.74.0 and fix new offenses
...
d4fc383497
2019-09-05 18:48:15 +09:00
Vít Ondruch
a3b784b3a0
[rubygems/rubygems] Move default specifications dir definition out of BasicSpecification.
...
This was never the right place. The method got there just by evolution,
not by design. Move it within default methods, where it suits better.
Since this method is presumably used just internally, it should be safe
to deprecate it and remove later.
0c0dd9458a
2019-07-31 07:47:02 +08:00
Hiroshi SHIBATA
56660de3c6
Merge rubygems master from upstream.
...
I picked the commit from 3c469e0da538428a0ddd94f99aa73c32da22e8ba
2019-06-01 13:50:41 +03:00
David Rodríguez
d0a5467320
Update rubygems with latest upstream changes
...
Closes: https://github.com/ruby/ruby/pull/2154
2019-04-28 11:07:45 +09:00
hsbt
f28be7e02d
Merge rubygems/rubygems from upstream.
...
The current master branch is
97b264f0fa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-02 11:48:18 +00:00
hsbt
4ae3df42f7
Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c
...
This version contains the some style changes by RuboCop.
* 9d810be0ed
* 61ea98a727
* 795893dce3
* 9be7858f7f
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-14 12:59:03 +00:00
hsbt
3dc6efbe9c
Merge rubygems master targeted RubyGems 3.1.0.
...
1172320540
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-22 06:28:04 +00:00