Граф коммитов

101 Коммитов

Автор SHA1 Сообщение Дата
Hiroshi SHIBATA cbeea5f3e6 [rubygems/rubygems] Unify java_platform? to Gem.java_platform?
https://github.com/rubygems/rubygems/commit/7f27ab32b8
2023-04-05 05:49:24 +00:00
Hiroshi SHIBATA f24a86d83f util/rubocop -A --only Layout/EmptyLineAfterMagicComment 2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA 72d09a568f [rubygems/rubygems] util/rubocop -A --only Style/RedundantBegin
https://github.com/rubygems/rubygems/commit/b595d3cf0f
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA 03b82d1865 [rubygems/rubygems] util/rubocop -A --only Style/SingleLineMethods
https://github.com/rubygems/rubygems/commit/fa2e835ed2
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA 712d6e675b [rubygems/rubygems] util/rubocop -A --only Style/RedundantInterpolation
https://github.com/rubygems/rubygems/commit/add44e56eb
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA 567db6064b [rubygems/rubygems] util/rubocop -A --only Style/NestedParenthesizedCalls
https://github.com/rubygems/rubygems/commit/a875fdb535
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA 83f9aa8f02 [rubygems/rubygems] util/rubocop -A --only Style/Alias
https://github.com/rubygems/rubygems/commit/fba6e94de9
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA 05208c3875 [rubygems/rubygems] util/rubocop -A --only Lint/UnusedBlockArgument
https://github.com/rubygems/rubygems/commit/d8efd919db
2023-03-17 18:50:55 +09:00
Nobuyoshi Nakada 53cd5796c5 [rubygems/rubygems] Clean test output
The output from the command is mixed in this test, even when
successful.
Use the output as a part of the message on failure instead.

https://github.com/rubygems/rubygems/commit/960509a133
2023-01-20 10:39:57 +00:00
Hiroshi SHIBATA f6620037ba Merge RubyGems-3.4.0 and Bundler-2.4.0 2022-12-24 16:57:07 +09:00
David Rodríguez 9d10b8393e [rubygems/rubygems] Use better name for variable
The installed file not always have the `.so` extension.

https://github.com/rubygems/rubygems/commit/6f6681bcb9

Co-authored-by: Eloy Espinaco <eloyesp@gmail.com>
2022-12-20 13:15:02 +09:00
Eloy Espinaco 012ef7d1d0 [rubygems/rubygems] Fix tests checking intermediate files
Some tests check that the shared objects are actually installed, but
checking an intermediate build file instead of the installed one.

https://github.com/rubygems/rubygems/commit/ad526073b0
2022-12-20 13:15:02 +09:00
Hiroshi SHIBATA bbe56a6437 Merge RubyGems/Bundler master
from bfb0ae6977
2022-12-12 10:49:43 +09:00
David Rodríguez 20eff52087 [rubygems/rubygems] Test a pure RubyGems method
`Gem::Specification#load_paths` is actually a Bundler thing.

https://github.com/rubygems/rubygems/commit/d20b4d1950
2022-09-29 03:41:52 +09:00
Hiroshi SHIBATA 44264b4fee Merge rubygems/bundler HEAD.
Pick from dfbb5a3811
2022-08-09 12:05:19 +09: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 12a5fa408b Sync RubyGems & Bundler with upstream repo 2022-06-24 10:52:02 +09:00
Hiroshi SHIBATA aeea88174d
Merge RubyGems and Bundler HEAD
125415593e
2022-05-20 17:32:19 +09:00
Hiroshi SHIBATA d77b88c681 Move testing_ruby_repo into test helper 2022-04-28 19:08:49 +09:00
Hiroshi SHIBATA 678d58c850 Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5 2022-04-28 19:08:49 +09:00
Hiroshi SHIBATA fb1ab27f53 Merge RubyGems-3.3.1 and Bundler-2.3.1 2021-12-23 09:44:45 +09:00
David Rodríguez 890a6b432c [rubygems/rubygems] Unify duplicated helper
https://github.com/rubygems/rubygems/commit/c6ef75424d
2021-12-15 19:46:43 +09:00
David Rodríguez e713552868 [rubygems/rubygems] LOAD_PATH is already reset globally
https://github.com/rubygems/rubygems/commit/b0bbb27115
2021-12-06 05:25:22 +09:00
David Rodríguez 2fc47bad78 [rubygems/rubygems] Remove unneded setup
https://github.com/rubygems/rubygems/commit/9815a04e31
2021-12-06 05:25:21 +09:00
Hiroshi SHIBATA 0b53a8895f
Merge rubygems master fd676ac464491afaa0baf5435cb11b3f86229cbd 2021-12-01 11:00:10 +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.

https://github.com/rubygems/rubygems/commit/6460e018df
2021-06-03 12:23:22 +09:00
Hiroshi SHIBATA e487ba7dda
[rubygems/rubygems] Use pend instead of skip 2021-05-28 12:33:16 +09:00
David Rodríguez f7732ae2eb [rubygems/rubygems] Require the new files in `test/` relatively
https://github.com/rubygems/rubygems/commit/c77868a555
2021-05-28 11:53:09 +09:00
Hiroshi SHIBATA c30594bb0c [rubygems/rubygems] Use assert_raise instead of assert_raises
https://github.com/rubygems/rubygems/commit/769e87f011
2021-05-12 17:24:43 +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
https://github.com/rubygems/rubygems/commit/a7c93558c3
2021-05-12 17:24:43 +09:00
Hiroshi SHIBATA 4aca77edde Merge prepare version of RubyGems 3.2.0 2020-12-08 17:30: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 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 955f1837a1 Use space inside block braces everywhere
To make rubygems code style consistent with bundler.
2020-06-15 21:20:37 +09:00
Nobuyoshi Nakada 449b62ba01
Skip tests which do not work until installed when load-relative 2020-06-05 10:20:38 +09:00
Nobuyoshi Nakada 073ff73972
Show better failure messages 2020-06-05 10:20:06 +09:00
Yuki Nishijima 77ba8a1d61 [rubygems/rubygems] Use LoadError#path to figure out the argument passed to 'require'
https://github.com/rubygems/rubygems/commit/5995394ec4
2020-06-05 07:32:42 +09:00
David Rodríguez f8f5e7fadf [rubygems/rubygems] Respect files loaded from default gems before rubygems
https://github.com/rubygems/rubygems/commit/f3da3c1190
2020-06-05 07:32:42 +09:00
Benoit Daloze ff5ca548c3 [rubygems/rubygems] Use a real file to run the test
* JRuby doesn't support multi-line -e.

https://github.com/rubygems/rubygems/commit/1fb6657a7d
2020-06-05 07:32:42 +09:00
Benoit Daloze ae3d0d8a20 [rubygems/rubygems] Add a more comprehensive and reliable test for upgraded default gems
* Test that the correct version is loaded and that the default gem is
  not loaded at all.

https://github.com/rubygems/rubygems/commit/ee08508b2a
2020-06-05 07:32:42 +09:00
Benoit Daloze 5f0e84ba8d [rubygems/rubygems] Fix check for testing in the ruby repository
* When testing in the rubygems/rubygems repository, the previous code would
  move the lib/ dir at the end of $LOAD_PATH, which would cause to load
  a mix of lib/ RubyGems and in-stdlib-dir RubyGems, which blows up.

https://github.com/rubygems/rubygems/commit/f6f6f00ed1
2020-06-05 07:32:42 +09:00
Benoit Daloze 709d58446f [rubygems/rubygems] Clarify what test_activate_via_require_respects_loaded_files does and tests
* Clearly require the benchmark stdlib instead of far away in test_case.rb

https://github.com/rubygems/rubygems/commit/d74b9ca04c
2020-06-05 07:32:42 +09:00
Benoit Daloze 5c1957e95c [rubygems/rubygems] Simplify #warn test to not rely on the effect of -C on -I
https://github.com/rubygems/rubygems/commit/382642a0d4
2020-06-05 07:32:42 +09:00
David Rodríguez f0f138aa5d [rubygems/rubygems] Fix `$LOADED_FEATURES` cache sometimes not respected
In the cases where the initial manually `-I` path resolution succeeded,
we were passing a full path to the original require effectively skipping
the `$LOADED_FEATURES` cache. With this change, we _only_ do the
resolution when a matching requirable path is found in a default gem. In
that case, we skip activation of the default gem if we detect that the
required file will be picked up for a `-I` path.

https://github.com/rubygems/rubygems/commit/22ad5717c3
2020-06-05 07:32:42 +09:00
David Rodríguez a18e81d797 [rubygems/rubygems] Fix performance regression in `require`
Our check for `-I` paths should not go through all activated gems.

https://github.com/rubygems/rubygems/commit/00d98eb8a3
2020-06-05 07:32:42 +09:00
David Rodríguez 676d816ef1 [rubygems/rubygems] Refactor ruby command line building for tests
https://github.com/rubygems/rubygems/commit/43819b6973
2020-05-08 14:13:29 +09:00
Brandon Fish 1635394347 [rubygems/rubygems] Update test_realworld_default_gem to use rubygems project sources
https://github.com/rubygems/rubygems/commit/7506f7eb07
2020-05-08 14:13:29 +09:00
David Rodríguez 9042787508 [rubygems/rubygems] Remove unnecessary `@@ruby` variable
https://github.com/rubygems/rubygems/commit/5f20647ec1
2020-05-08 14:13:29 +09:00