Samuel Giddins
7e5c3ec5b1
Update specification.rb
...
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
2023-08-20 09:05:29 +00:00
Samuel Giddins
1935433f5f
[rubygems/rubygems] Ensure that loading multiple gemspecs with legacy YAML class references does not warn
...
Before this, you would get constant redefinition warnings on Psych::DefaultKey
Additionally, ensure the retries wont continue infinitely in the case of the ArgumentError not being caused by Marshal trying to load the undefined classes
https://github.com/rubygems/rubygems/commit/919e8c2de4
2023-08-20 09:05:17 +00:00
Akira Matsuda
f69f775f24
[rubygems/rubygems] choose_from_list may return nil index since
...
https://github.com/rubygems/rubygems/commit/abacb0cb34cd
https://github.com/rubygems/rubygems/commit/5e2e9d6e50
2023-08-20 09:04:38 +00:00
John Hong
744bc4d5d0
[rubygems/rubygems] Make nil a valid license spec
...
https://github.com/rubygems/rubygems/commit/675effb67e
2023-08-18 16:42:49 +00:00
License Update
20106fe227
[rubygems/rubygems] Update SPDX license list as of 2023-06-18
...
https://github.com/rubygems/rubygems/commit/3db9165335
2023-08-18 08:21:13 +00:00
Martin Emde
e913431687
[rubygems/rubygems] Raise Gem::Package::FormatError on EOF, indicating corrupt gem
...
Gem::Package::TarReader::Entry now raises EOFError or returns nil
appropriately based on Ruby core IO.read and IO.readpartial behavior.
Zlib will respond accordingly by raising Zlib::GzipFile::Error on EOF.
When verifying a gem or extracting contents, raise FormatError similar
to other cases of corrupt gems.
Addresses a bug where Gem::Package would attempt to call size on nil
instead of raising a more descriptive and useful error, leading users
to assume the problem is internal to rubygems.
Remove unused error class TarReader::UnexpectedEOF that was never raised
since the NoMethodError on nil would happen first. Use EOFError instead.
https://github.com/rubygems/rubygems/commit/dc6129644b
2023-08-17 23:16:57 +00:00
Nobuyoshi Nakada
67be453d9d
[rubygems/rubygems] Set thread configurations inside block in the thread local manner
...
https://github.com/rubygems/rubygems/commit/965e54b8f1
2023-07-30 01:37:43 +00:00
Nobuyoshi Nakada
0d86cc4caf
[rubygems/rubygems] Use the dedicated method to convert file path
...
The dedicated method `File.path` to deal with pathname-like objects
has been provided since ruby 1.9.0.
Also adds a test for rubygems/rubygems#6837 .
https://github.com/rubygems/rubygems/commit/258c6eda80
2023-07-30 01:36:23 +00:00
ko1
bcf823fddb
Revert "[rubygems/rubygems] Set thread configurations inside block"
...
This reverts commit db80e947a3
.
This patch uses `Thread.abort_on_exception = true` and it affects
all of threads. This is why CI systems fails.
How to modify:
- use `thread.abort_on_exception = true` for specific threads
- Run this code in a separated process
2023-07-29 07:39:10 +09:00
Jenny Shen
17b50cdb68
[rubygems/rubygems] Add charset to Webauthn response content-type
...
https://github.com/rubygems/rubygems/commit/442a3e8f37
2023-07-28 16:08:11 +00:00
Jenny Shen
db80e947a3
[rubygems/rubygems] Set thread configurations inside block
...
https://github.com/rubygems/rubygems/commit/860b145359
2023-07-28 16:08:10 +00:00
Jenny Shen
24913e3dda
[rubygems/rubygems] Move Webauthn listener thread to WebauthnListener class
...
https://github.com/rubygems/rubygems/commit/6ec474975e
2023-07-28 16:08:08 +00:00
Jenny Shen
fce04f9a6c
[rubygems/rubygems] Move WebauthnListener into the Gem::GemcutterUtilities namespace
...
https://github.com/rubygems/rubygems/commit/3080394f81
2023-07-28 16:08:08 +00:00
Jenny Shen
108cc38a76
[rubygems/rubygems] Extract polling logic into its own class
...
https://github.com/rubygems/rubygems/commit/218b83abed
2023-07-28 16:08:07 +00:00
Jenny Shen
023d0f662b
[rubygems/rubygems] Add Webauthn verification poller to fetch OTP
...
https://github.com/rubygems/rubygems/commit/39c5e86a67
2023-07-28 16:08:07 +00:00
Nobuyoshi Nakada
989f3add62
Warn default gems which will be gemified in future
2023-07-28 14:57:10 +09:00
Nobuyoshi Nakada
70eeec0cad
[rubygems/rubygems] Simplify double loop
...
https://github.com/rubygems/rubygems/commit/630dc02112
2023-07-25 04:52:54 +00:00
Nobuyoshi Nakada
1b27e7aa1f
[rubygems/rubygems] Use `Monitor#synchronize` to ensure to exit
...
https://github.com/rubygems/rubygems/commit/b424353239
2023-07-25 04:52:54 +00:00
David Rodríguez
34f541ae36
[rubygems/rubygems] Avoid unnecessary network requests for local gem
...
https://github.com/rubygems/rubygems/commit/ec5f04f7b1
2023-07-24 15:03:15 +09:00
Hiroshi SHIBATA
7fdf98ef39
[rubygems/rubygems] Deprecate Gem::Platform.match
...
https://github.com/rubygems/rubygems/commit/e3ba3e2225
2023-07-21 08:47:55 +00:00
Nobuyoshi Nakada
f602cb55d7
[rubygems/rubygems] Boundary check in `Gem::StreamUI#choose_from_list`
...
https://github.com/rubygems/rubygems/commit/abacb0cb34
2023-07-21 07:48:49 +00:00
Nobuyoshi Nakada
419fbc77e0
[rubygems/rubygems] Clear `YAML` constant if it was undefined previously
...
https://github.com/rubygems/rubygems/commit/31d0311258
2023-07-19 23:20:54 +00:00
Hiroshi SHIBATA
9dd8698597
[rubygems/rubygems] Fixup
...
https://github.com/rubygems/rubygems/pull/6766
https://github.com/rubygems/rubygems/commit/c5c5797227
2023-06-27 07:37:24 +00:00
Hiroshi SHIBATA
a99d0c1555
[rubygems/rubygems] Removed unused variable
...
https://github.com/rubygems/rubygems/commit/68cc941bed
2023-06-27 02:15:40 +00:00
Hiroshi SHIBATA
65c2179336
[rubygems/rubygems] Molinillo::DependencyGraph is initialized in Molinillo::Resolver#resolve
...
https://github.com/rubygems/rubygems/commit/1c39e24c95
2023-06-27 02:15:40 +00:00
Hiroshi SHIBATA
827d66266b
[rubygems/rubygems] auto-correct Style/YodaCondition
...
https://github.com/rubygems/rubygems/commit/6d9e8025dc
2023-06-15 07:01:28 +09:00
Samuel Williams
27b07776c9
[rubygems/rubygems] Autoload shellwords when it's needed.
...
https://github.com/rubygems/rubygems/commit/e916ccb2d9
2023-06-13 09:32:47 +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".
https://github.com/rubygems/rubygems/commit/4917d96f4c
2023-05-25 21:51:15 +00:00
Jenny Shen
061e01ee50
[rubygems/rubygems] Remove forward slash in key regardless if it contains __
...
https://github.com/rubygems/rubygems/commit/33a02eec00
2023-05-23 18:37:09 +00:00
Jenny Shen
e854b050cc
[rubygems/rubygems] Modify invalid key check to accept keys with colons
...
https://github.com/rubygems/rubygems/commit/413033198b
Co-authored-by: Eric Herscovich <eric.herscovich@shopify.com>
2023-05-23 18:37:08 +00:00
Samuel Giddins
9ed189e9aa
Update SPDX license list
2023-05-10 14:58:55 +09:00
Takumasa Ochi
5831f7c831
[rubygems/rubygems] Simplify code by Gem::Specification#runtime_dependencies
...
https://github.com/rubygems/rubygems/commit/324139af8f
2023-05-08 08:56:22 +00:00
Nobuyoshi Nakada
dd5ba1b725
Update generate_spdx_license_list.rb
...
- Follow up RegexpLiteral at 9264d834215aa7ce14b0273032a7686c20141db9.
- Split the code to be generated so that `REGEXP` does not need
escapes.
- Use `REGEXP.match?` since support for Ruby 2.3 or earlier has been
dropped.
2023-05-01 17:40:02 +09:00
Hiroshi SHIBATA
ce38ad6963
[rubygems/rubygems] util/rubocop -A
...
https://github.com/rubygems/rubygems/commit/784e5e2fe5
2023-04-20 01:57:17 +00:00
Hiroshi SHIBATA
b42f0094ce
[rubygems/rubygems] Support Symbol and URL keys
...
https://github.com/rubygems/rubygems/commit/3bda049c73
2023-04-20 01:57:17 +00:00
Hiroshi SHIBATA
4bb0e01da2
[rubygems/rubygems] warn message when RubyGems handle invalid yaml like 'invalid: foo: bar'
...
https://github.com/rubygems/rubygems/commit/b8d0c25b7e
2023-04-20 01:57:17 +00:00
Hiroshi SHIBATA
7477284043
Hide Gem::MockGemUi. It's only used by tests
2023-04-19 15:59:59 +09:00
Hiroshi SHIBATA
40d1a00040
[rubygems/rubygems] Copy YAMLSerializer from Bundler
...
https://github.com/rubygems/rubygems/commit/6a97346708
2023-04-19 06:56:23 +00:00
Hiroshi SHIBATA
8b95b33a9d
[rubygems/rubygems] Bundler::YAMLSerializer.load couldn't raise error when invalid yaml was provided
...
https://github.com/rubygems/rubygems/commit/cfcfde04c7
2023-04-19 06:56:22 +00:00
Hiroshi SHIBATA
ef54a9aeb6
[rubygems/rubygems] Introduce self.load_with_rubygems_config_hash
...
https://github.com/rubygems/rubygems/commit/9175b8cf2a
2023-04-19 06:56:21 +00:00
Hiroshi SHIBATA
644d7df021
[rubygems/rubygems] Introduce self.dump_with_rubygems_yaml
...
https://github.com/rubygems/rubygems/commit/3d3b0d80a1
2023-04-19 06:56:21 +00:00
Hiroshi SHIBATA
45655089da
[rubygems/rubygems] Removed trailing-slash for domain
...
https://github.com/rubygems/rubygems/commit/81ba58f445
2023-04-19 06:56:20 +00:00
Hiroshi SHIBATA
cdc2e3de10
[rubygems/rubygems] Wrap self.convert_rubygems_config_hash from Bundler::YAMLSerializer.load
...
https://github.com/rubygems/rubygems/commit/080880ac23
2023-04-19 06:56:20 +00:00
Hiroshi SHIBATA
7b959f6288
[rubygems/rubygems] Move all changes only in RubyGems
...
https://github.com/rubygems/rubygems/commit/d842e2092f
2023-04-19 06:56:20 +00:00
Hiroshi SHIBATA
30b3290f26
[rubygems/rubygems] Added guard condition for replacing __ variable in YAML keys
...
https://github.com/rubygems/rubygems/commit/e7d31405ea
2023-04-19 06:56:19 +00:00
Hiroshi SHIBATA
bf8d8ce1ee
[rubygems/rubygems] Keep compatiblity of Bundler specs
...
https://github.com/rubygems/rubygems/commit/b211eeacba
2023-04-19 06:56:18 +00:00
Hiroshi SHIBATA
e684eb9e61
[rubygems/rubygems] Added missing require for Bundler::YAMLSerializer
...
https://github.com/rubygems/rubygems/commit/55ef32fdd7
2023-04-19 06:56:16 +00:00
Hiroshi SHIBATA
1225eff38f
[rubygems/rubygems] Don't use Psych
...
https://github.com/rubygems/rubygems/commit/d6555aaa28
2023-04-19 06:56:15 +00:00
Hiroshi SHIBATA
038c6e773f
[rubygems/rubygems] Added explicitly loading for Gem::SafeYAML
...
https://github.com/rubygems/rubygems/commit/3d9d587dd7
2023-04-19 06:56:15 +00:00