Commit graph

214 commits

Author SHA1 Message Date
David Rodríguez
57404e4369 [rubygems/rubygems] Fix duplicated specs when they have been previously activated
b44bf2ac74
2024-10-14 14:51:20 +00:00
David Rodríguez
8e73609c7b
[rubygems/rubygems] Fix weirdness of "interrupt" test command
0a75590ac9
2024-10-02 14:34:54 +09:00
David Rodríguez
10c256f98f Sychronize with rubygems/rubygems repo 2024-06-01 01:13:55 +09:00
David Rodríguez
5668933296 [rubygems/rubygems] Extract a spec variable
It's consistent with the previous test and makes print debugging easier.

d7f424df16
2024-05-31 11:58:00 +00:00
David Rodríguez
530c85be49 [rubygems/rubygems] Remove unnecessary reset
33328e54fd
2024-05-31 11:58:00 +00:00
Hiroshi SHIBATA
ba8e6e77fd
Revert "[rubygems/rubygems] Fix gem pristine sometimes failing to pristine user installed gems"
This reverts commit a3edc4abc5.

That commit caused test failure with Windows platform.

* 2556187139
* 2556187306
2024-05-30 12:46:19 +09:00
David Rodriguez
a3edc4abc5 [rubygems/rubygems] Fix gem pristine sometimes failing to pristine user installed gems
0eb6ed8f86
2024-05-29 15:35:04 +00:00
David Rodriguez
6454238072 [rubygems/rubygems] Make Gem.clear_paths test less implementation dependent
b545daa95d
2024-05-14 16:08:01 +00:00
David Rodriguez
281df1e495 [rubygems/rubygems] Remove Gem::Specification#mark_version
This gets in the middle if we ever start allowing to build as if using a
different RubyGems version than the one being run.

This could be useful to make `gem rebuild` a little more usable, and
it's already done by Bundler specs which already make this method a noop
when they need this.

I'm not sure forcefully setting this, even if user explicitly specified
something else is helpful.

Since this could potentially prevent gems explicitly setting a constant
RubyGems version from building, I changed the error of incorrect
RubyGems version from a hard error to a warning, since it will start
happening in those cases if we stop overwriting the version.

45676af80d
2024-05-03 15:12:55 +00:00
David Rodriguez
8ef923dc35 [rubygems/rubygems] Respect global umask when writing regular files
fd5cb7396f
2024-03-22 13:15:15 +00:00
Hiroshi SHIBATA
270ad76359
Revert "Ensure File.open applies default umask on gem extract"
This reverts commit 01f9766aa0.
2024-01-24 14:10:05 +09:00
Martin Emde
01f9766aa0 Ensure File.open applies default umask on gem extract 2024-01-24 13:50:16 +09:00
David Rodríguez
2755cb1b2f [rubygems/rubygems] Use modern hashes consistently
bb66253f2c
2023-12-07 22:29:33 +00:00
David Rodríguez
54511303a4 [rubygems/rubygems] Drop support for Ruby 2.6 and Ruby 2.7 in RubyGems
10c26a483d
2023-11-13 11:06:10 +09:00
Nobuyoshi Nakada
10e4a9a5c2 [rubygems/rubygems] Escape regexp metachacters or use assert_include
6d445a85d7
2023-06-19 02:24:13 +00: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
1f0974e654 [rubygems/rubygems] Downcase camel like cases of instance variable
4eaac27107
2023-04-13 08:38:45 +00:00
Hiroshi SHIBATA
d89cc317c6
util/rubocop -A --only Style/NumericLiteralPrefix 2023-04-11 19:12:28 +09:00
Hiroshi SHIBATA
fb822076d7 [rubygems/rubygems] util/rubocop -A --only Style/LineEndConcatenation
67ece7b8b6
2023-04-06 23:33:20 +00: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
f24a86d83f util/rubocop -A --only Layout/EmptyLineAfterMagicComment 2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
01be518eba [rubygems/rubygems] util/rubocop -A --only Lint/UnderscorePrefixedVariableName
6dc4bc3a5b
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
1a60012612 [rubygems/rubygems] util/rubocop -A --only Lint/RescueException
e8a5db50af
2023-03-23 17:18:49 +09:00
Nobuyoshi Nakada
348412c7fa [rubygems/rubygems] Use indented heredoc
085d2776d8
2023-03-22 21:21:08 +00:00
Hiroshi SHIBATA
5211900d37 util/rubocop -A --only Style/SymbolProc 2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
0373615948 util/rubocop -A --only Layout/SpaceInsideArrayLiteralBrackets 2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
6ad269dc39 [rubygems/rubygems] util/rubocop -A --only Style/RescueStandardError
80b57da926
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
70164eec0f [rubygems/rubygems] util/rubocop -A --only Style/RescueModifier
b490379eab
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
38664ede7e [rubygems/rubygems] util/rubocop -A --only Style/NonNilCheck
2b056b25c3
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
d2cebb4e31 [rubygems/rubygems] util/rubocop -A --only Style/NumericLiterals
860669b08a
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
567db6064b [rubygems/rubygems] util/rubocop -A --only Style/NestedParenthesizedCalls
a875fdb535
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
3d4c3f9e4f [rubygems/rubygems] util/rubocop -A --only Style/ParallelAssignment
5c88c77873
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
4bb5ce8188 [rubygems/rubygems] util/rubocop -A --only Style/StringLiteralsInInterpolation
cb554f6eb7
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
7c1d590a8a [rubygems/rubygems] util/rubocop -A --only Layout/SpaceBeforeComma
4a5b70b508
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
23150e0274 [rubygems/rubygems] util/rubocop -A --only Layout/MultilineHashBraceLayout
bf33d106d0
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
05208c3875 [rubygems/rubygems] util/rubocop -A --only Lint/UnusedBlockArgument
d8efd919db
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
5e27d82dd0 [rubygems/rubygems] rubocop -a test/rubygems/test_gem.rb
4d20ed7e32
2023-03-10 05:16:52 +00:00
Hiroshi SHIBATA
f1c9f89ff8 [rubygems/rubygems] Disable side-effect of GEM_HOME configuration
c43328ab03
2023-03-10 05:16:52 +00:00
Josef Šimánek
dc33d32f12
Use proper memoized var name for Gem.state_home. 2023-03-07 16:52:28 +09:00
David Rodríguez
022acb9593 [rubygems/rubygems] Don't load Bundler from RubyGems tests
c2e4cb7b5e
2023-01-31 10:49:08 +09:00
Hiroshi SHIBATA
bbe56a6437 Merge RubyGems/Bundler master
from bfb0ae6977
2022-12-12 10:49:43 +09:00
David Rodríguez
b7a61cb485 [rubygems/rubygems] Revert "Cleaup unnecessary code"
Unclear why, but 2e05dadbc5 created some
warnings in ruby-core CI, so let's revert it.

729ce3a6e1
2022-10-03 19:54:24 +09:00
David Rodríguez
ac56e5c1ab [rubygems/rubygems] Put bundler gemspec stub at the right place
So that it's found when needed, rather than dynamically modifying
loaded stubs and thus messing with RubyGems internals.

cd3e7cb9e5
2022-09-29 03:41:53 +09:00
David Rodríguez
668e78f01b [rubygems/rubygems] Only activate bundler when needed
Loading Bundler beforehand was actually replacing ENV with a backup of
the pre-Bundler environment through `Bundler::EnvironmentPreserver`. I
think that was making a bug in `ENV.replace` not bite our tests, because
Bundler includes proper patches to workaround that issue. So this commit
also includes these patches in RubyGems tests.

8e079149b9
2022-09-29 03:41:52 +09:00
David Rodríguez
00a040dda3 [rubygems/rubygems] Little refactor to keep things consistent
3934deb4e4
2022-09-29 03:41:51 +09:00
David Rodríguez
874a2bf17c [rubygems/rubygems] Remove unnecessary ensure
6c0c02c533
2022-09-29 03:41:51 +09:00
David Rodríguez
b9c426eaea [rubygems/rubygems] Remove unnecessary constant
4bd77488ad
2022-09-29 03:41:50 +09:00
David Rodríguez
1e5597532a [rubygems/rubygems] Cleaup unnecessary code
2e05dadbc5
2022-09-29 03:41:49 +09:00
David Rodríguez
5222a89ab6 [rubygems/rubygems] Unskip stuff that now works on JRuby
d86a5ae2eb
2022-09-29 03:41:49 +09:00