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

12606 Коммитов

Автор SHA1 Сообщение Дата
Hiroshi SHIBATA b68dab2d0f Extract getoptlong as bundled gems 2024-01-16 17:07:10 +09:00
Samuel Giddins e0312f90bb [ruby/pp] Print beginless ranges properly
Instead of displaying the start of the range as nil

https://github.com/ruby/pp/commit/1df210d903
2024-01-15 14:04:14 +00:00
Benoit Daloze 1ed3b60375 [ruby/pp] Fix pretty printing a Data subclass instance when the subclass is anonymous
* It would be "#<data  a=42>" (double space) instead of "#<data a=42>" (like #inspect).

https://github.com/ruby/pp/commit/bed72bfcb8
2024-01-11 13:44:01 +00:00
Benoit Daloze 62382a4345 [ruby/pp] Use .class.members for pretty printing Data
* Data#members might not be defined, instead it might be defined
  on Data subclasses or a module included there. This is notably the
  case on TruffleRuby which defines it there for optimization purposes.
  In fact the mere presence of Data#members implies a megamorphic call
  inside, so it seems best to avoid relying on its existence.

https://github.com/ruby/pp/commit/6a97d36fbb
2024-01-11 13:44:00 +00:00
Benoit Daloze 3b9cc22536 [ruby/pp] Use a proper feature check to check if Data is defined
https://github.com/ruby/pp/commit/ed602b9f2b
2024-01-11 13:44:00 +00:00
Nobuyoshi Nakada 7558625be1 [ruby/rdoc] Respect modeline to detect parser
https://github.com/ruby/rdoc/commit/485468f06f
2024-01-11 06:55:39 +00:00
David Rodríguez 0156b7416c [rubygems/rubygems] Always avoid "Updating rubygems-update" message
The fact that under the hood the upgrade is done through a
rubygems-update gem is an implementation detail that does not really
help users to know.

Plus, it reads a bit weird.

https://github.com/rubygems/rubygems/commit/0fa5c50258
2024-01-11 13:51:52 +09:00
David Rodríguez 3980cebda5 [rubygems/rubygems] Make `gem update --system` respect ruby version constraints
https://github.com/rubygems/rubygems/commit/36052abbe2
2024-01-11 13:51:52 +09:00
David Rodríguez aa908aa065 [rubygems/rubygems] Remove old condition no longer necessary
https://github.com/rubygems/rubygems/commit/701980b240
2024-01-11 13:51:52 +09:00
David Rodríguez ef0705b3c2 [rubygems/rubygems] Fix development dependency not being added if introduced by two gemspecs
https://github.com/rubygems/rubygems/commit/adc05bf1c3
2024-01-11 13:51:52 +09:00
David Rodríguez b8f859f0bf Complete missing specs for platforms after resolution
If two platform specific variants have different dependencies, then
resolution may fallback to the non platform specific variant. However,
the platform specific variants that have the same dependencies as the
non specific one can still be kept.

Do a pass to complete those after resolution.
2024-01-11 13:51:52 +09:00
David Rodríguez 7f0dbfc9c8 [rubygems/rubygems] Move resetting the spec set to where it becomes necessary
https://github.com/rubygems/rubygems/commit/a8b547c6b1
2024-01-11 13:51:52 +09:00
David Rodríguez 51d2a8e983 [rubygems/rubygems] Extract a couple of helper methods
https://github.com/rubygems/rubygems/commit/880a4eae7f
2024-01-11 13:51:52 +09:00
David Rodríguez ab1936faf9 [rubygems/rubygems] Remove methods to clarify what they do
https://github.com/rubygems/rubygems/commit/1d15d8a8ff
2024-01-11 13:51:52 +09:00
David Rodríguez e900814467 [rubygems/rubygems] Make private helper private
https://github.com/rubygems/rubygems/commit/de9dc90026
2024-01-11 13:51:52 +09:00
David Rodríguez 76916217b6 [rubygems/rubygems] Extract `SpecSet#reset!` helper
https://github.com/rubygems/rubygems/commit/41f9b4d940
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA acdc6abca8 [rubygems/rubygems] Disable false positive correction
https://github.com/rubygems/rubygems/commit/e75cca9496
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA 0e8b1973b4 [rubygems/rubygems] bin/rubocop -A --only Style/RedundantReturn
https://github.com/rubygems/rubygems/commit/ade728914f
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA a1d5c6555e [rubygems/rubygems] bin/rubocop -A --only Layout/ExtraSpacing
https://github.com/rubygems/rubygems/commit/39be5cd236
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA 888a8f4318 [rubygems/rubygems] bin/rubocop -A --only Style/StringLiteralsInInterpolation
https://github.com/rubygems/rubygems/commit/2333f5f9c5
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA ea31461ba0 [rubygems/rubygems] bin/rubocop -A --only Style/StringLiterals
https://github.com/rubygems/rubygems/commit/f25013bcc0
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA 443e417885 [rubygems/rubygems] bin/rubocop -A --only Style/RedundantParentheses
https://github.com/rubygems/rubygems/commit/7cc647c8f3
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA ff0119354e [rubygems/rubygems] bin/rubocop -A --only Performance/StringInclude
https://github.com/rubygems/rubygems/commit/34df962cf4
2024-01-11 13:51:52 +09:00
Kenta Murata 08e22c64b3 [rubygems/rubygems] Use cache_home instead of data_home in default_spec_cache_dir
https://github.com/rubygems/rubygems/commit/d2801fcfde
2024-01-11 04:21:38 +00:00
Cody Cutrer 94e1d3f3fa [rubygems/rubygems] include MatchMetadata in Bundler::LazySpecification
I'm running into a case in my plugin where matches_current_metadata? is
getting called on a lazy specification, and adding this fixes it

https://github.com/rubygems/rubygems/commit/24f962cb42
2024-01-11 04:19:13 +00:00
Brave Hager d5e83a0601 [rubygems/rubygems] Update documentation to use squiggly heredoc
https://github.com/rubygems/rubygems/commit/4691b959ad
2024-01-11 00:51:48 +00:00
Aaron Patterson 881c5a1846 [ruby/prism] Add a "repeated flag" to parameter nodes
It's possible to repeat parameters in method definitions like so:

```ruby
def foo(_a, _a)
end
```

The compiler needs to know to adjust the local table size to account for
these duplicate names.  We'll use the repeated parameter flag to account
for the extra stack space required

https://github.com/ruby/prism/commit/b443cb1f60

Co-Authored-By: Kevin Newton <kddnewton@gmail.com>
Co-Authored-By: Jemma Issroff <jemmaissroff@gmail.com>
2024-01-10 15:24:26 +00:00
Hiroshi SHIBATA d16f992e1b Extract mutex_m as bundled gems 2024-01-10 17:28:16 +09:00
Nobuyoshi Nakada 1817d644ee mkmf.rb: use kwargs 2024-01-10 09:18:18 +09:00
Kevin Newton 80da9b1547 [ruby/prism] Clarify __END__ comment
https://github.com/ruby/prism/commit/3e36d5eabc
2024-01-09 19:02:26 +00:00
Mark Young 7015cb2479 [ruby/abbrev] Provide a 'Changelog' link on rubygems.org/gems/abbrev
By providing a 'changelog_uri' in the metadata of the gemspec a
'Changelog' link will be shown on https://rubygems.org/gems/abbrev
which makes it quick and easy for someone to check on the changes
introduced with a new version.

Details of this functionality can be found on https://guides.rubygems.org/specification-reference/

https://github.com/ruby/abbrev/commit/9643a03ee8
2024-01-09 16:07:39 +00:00
Hiroshi SHIBATA 149373ce7f
racc is extracted at Ruby 3.3, not 3.4 2024-01-09 17:14:55 +09:00
Avdi Grimm 544c87d009 [rubygems/rubygems] Refer to underscores as underscores
https://github.com/rubygems/rubygems/commit/aa3ae5d245
2024-01-08 21:45:25 +00:00
Stan Lo 8f4eda5092 [ruby/irb] Make SourceFinder ignore binary sources
(https://github.com/ruby/irb/pull/836)

https://github.com/ruby/irb/commit/73b35bb7f4
2024-01-08 12:42:39 +00:00
Nobuyoshi Nakada 76c20b06aa Add `MakeMakefile["C"]` 2024-01-08 00:33:31 +09:00
Nobuyoshi Nakada bca1493815
[DOC] Documentation of mkmf.rb 2024-01-07 21:49:47 +09:00
Nobuyoshi Nakada 7fcc6f04ac [ruby/rdoc] Visibility should begin from `public` for each scope
Even for singleton class definition such as `class << self` that
shares the same container with the outer scope, its visibility is
separated and set to `public` by default.

https://github.com/ruby/rdoc/commit/baf26363b9
2024-01-07 11:39:46 +00:00
Nobuyoshi Nakada 2325b72cf3 [ruby/rdoc] Singleton method visibility should be isolated
Each singleton method definition of the form `def recv.method` has
visibility separate from the outer scope and is set to `public` by
default.

https://github.com/ruby/rdoc/commit/810913a7ea
2024-01-07 11:39:45 +00:00
BurdetteLamar 76afbda5b5 [ruby/net-http] Tweak to Net::HTTP What's Here
https://github.com/ruby/net-http/commit/3bf641ca63
2024-01-06 18:26:38 +00:00
Stan Lo 4bdfc9070c [ruby/irb] Refactor exit command
(https://github.com/ruby/irb/pull/835)

* Remove unnecessary code from the exit command's implementation

1. The parameters of `IRB.irb_exit` were never used. But there are some
   libraries seem to call it with arguments + it's declared on the top-level
   IRB constant. So I changed the params to anonymous splat instead of removing them.
2. `Context#exit` was completely unnecessary as `IRB.irb_exit` doesn't use
   the `@irb` instance it passes. And since it's (or should be treated as)
   a private method, I simply removed it.
3. The `exit` command doesn't use the status argument it receives at all.
   But to avoid raising errors on usages like `exit 1`, I changed the argument to
   anonymous splat instead removing it.

* Make exit an actual command

* Update readme

https://github.com/ruby/irb/commit/452b543a65
2024-01-06 17:15:16 +00:00
Stan Lo 3dac27897e [ruby/irb] Require Reline v0.4.2+
(https://github.com/ruby/irb/pull/834)

https://github.com/ruby/irb/commit/eff8d0d46a
2024-01-06 12:16:12 +00:00
Nobuyoshi Nakada f6847e9456 [ruby/rdoc] Ignore `locale` at `write_options`
`@locale` is set from `@locale_name` and loaded from `@locale_dir`
after `write_options`, and `RDoc::I18n::Locale` does not seem to
expected to be loaded.

https://github.com/ruby/rdoc/commit/fd610f7023
2024-01-06 10:17:49 +00:00
Nobuyoshi Nakada 4112585be5
Too much nestings make editors confused
Get rid of nested double quotes inside nested interpolations.  Also,
remove comments that are no longer needed by the documents.
2024-01-06 13:47:06 +09:00
Jeremy Evans 4d03140009 [ruby/net-http] Don't invoke response block more than once due to retry
If a socket error occurs while performing a streaming download via
the response block provided to transport_request, avoid calling
the response block again as this would result in duplicate data
received by the client.

Fixes https://github.com/ruby/net-http/pull/86
Fixes https://github.com/ruby/net-http/pull/87

Fixes [Bug #11526]

https://github.com/ruby/net-http/commit/114d01b092

Co-authored-by: Jeremy Stanley <jeremy@instructure.com>
2024-01-05 16:51:37 +00:00
Jeremy Evans 37657c79b6 [ruby/uri] Make URI#to_s prepend relative path with / if there is a host or port
Otherwise, the path could be considered part of the host or port.

This is better than modifying the path to make it absolute when
a host or port is set.  We could also raise for invalid paths
when a host or port is set using check_path, but that results
in weird errors, and won't catch issues (such as ftp allowing a
relative path).

Fixes [Bug #19916]

https://github.com/ruby/uri/commit/ac32aa005b
2024-01-05 16:07:55 +00:00
Stan Lo 99933751c1 [ruby/reline] Bump version to v0.4.2
(https://github.com/ruby/reline/pull/633)

https://github.com/ruby/reline/commit/5b59e48070
2024-01-05 14:32:18 +00:00
Hiroshi SHIBATA 75a8b48fba [ruby/net-http] Bump version to 0.4.1
https://github.com/ruby/net-http/commit/21e226c0bc
2024-01-05 08:25:03 +00:00
Martin Emde 098d97e96d [rubygems/rubygems] Quote Etag in `If-None-Match` header of compact index request
https://github.com/rubygems/rubygems/commit/d26bcd7551
2024-01-05 02:06:58 +00:00
Takashi Kokubun 5ff1524fde [ruby/erb] Version 4.0.4
https://github.com/ruby/erb/commit/b68bfed6a8
2024-01-04 22:34:59 +00:00
tomoya ishida 542011ff68 [ruby/reline] Fix pasting tab-indented code crash
(https://github.com/ruby/reline/pull/630)

https://github.com/ruby/reline/commit/90155fd0d9
2024-01-04 11:53:06 +00:00