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

12685 Коммитов

Автор SHA1 Сообщение Дата
Kevin Newton e9f1324464 Sync to latest prism 2024-02-01 12:52:16 -05:00
Stan Lo ef427123ad [ruby/irb] Add rubocop with a few basic styling rules
(https://github.com/ruby/irb/pull/849)

* Use rubocop to enforce a few styling rules

* Add a CI job for linting

https://github.com/ruby/irb/commit/4f60cd88bb
2024-02-01 17:46:02 +00:00
Stan Lo f36c61d27f [ruby/irb] Reset history counter even when @loaded_history_lines is
not defined
(https://github.com/ruby/irb/pull/853)

The issue (https://github.com/ruby/debug/issues/1064) is caused by a
combination of factors:

1. When user starts an IRB session without a history file, the
   `@loaded_history_lines` ivar is not defined.
2. If the user then starts the `irb:rdbg` session, the history counter
   is not set, because the `@loaded_history_lines` is not defined.
3. Because `irb:rdbg` saves the history before passing Ruby expression
   to the debugger, it saves the history with duplicated lines. The number
   grows in exponential order.
4. When the user exits the `irb:rdbg` session, the history file could be
   bloated with duplicated lines.

This commit fixes the issue by resetting the history counter even when
`@loaded_history_lines` is not defined.

https://github.com/ruby/irb/commit/4afc98c258
2024-02-01 16:19:07 +00:00
Nuno Silva 1236a74023 [ruby/irb] Skip re-setup when creating a child session
(https://github.com/ruby/irb/pull/850)

https://github.com/ruby/irb/commit/06b2d00dd3
2024-02-01 12:12:06 +00:00
David Rodriguez 95c9711d6e [rubygems/rubygems] Fix musl platform not being added to the lockfile
https://github.com/rubygems/rubygems/commit/235f7b4266
2024-01-31 19:07:39 +00:00
Hiroshi SHIBATA 3de2ab7fdb [ruby/yaml] Make PStore support as optional
https://github.com/ruby/yaml/commit/da421ce46f
2024-01-31 05:56:39 +00:00
Kevin Newton 731367d0ab [ruby/prism] Fix up CI
https://github.com/ruby/prism/commit/224ea85565
2024-01-30 18:45:19 +00:00
Aaron Patterson 8e708e4a07 Update forwarding locals for prism 2024-01-30 13:19:06 -05:00
tomoya ishida fd44b42fb3 [ruby/irb] Fix undef and alias indent
(https://github.com/ruby/irb/pull/838)

https://github.com/ruby/irb/commit/a641746b18
2024-01-30 12:55:47 +00:00
Hiroshi SHIBATA 2f54422d03 [rubygems/rubygems] Update namespace Gem::Resolver::Molinillo to Gem::Molinillo
https://github.com/rubygems/rubygems/commit/6c4caf3ab0
2024-01-30 09:26:54 +00:00
Hiroshi SHIBATA b31995d882 [rubygems/rubygems] Rename molinillo wrapper file to vendored_molinillo.rb
https://github.com/rubygems/rubygems/commit/d7c15f6fd7
2024-01-30 09:26:54 +00:00
Hiroshi SHIBATA 03246171cc
Move molinillo under the vendor directory 2024-01-30 14:07:51 +09:00
Hiroshi SHIBATA dfa8e696f2
Move tsort under the vendor directory 2024-01-30 14:07:18 +09:00
Hiroshi SHIBATA 881e76cef3
Move timeout under the vendor directory 2024-01-30 14:06:38 +09:00
Hiroshi SHIBATA 04dbdc81d1
Move net-http under the vendor directory 2024-01-30 14:05:59 +09:00
Hiroshi SHIBATA 6933aee9eb
Move net-protocol under the vendor directory 2024-01-30 14:05:07 +09:00
Hiroshi SHIBATA 898090ada1
Move optparse under the vendor directory 2024-01-30 14:03:52 +09:00
Hiroshi SHIBATA 5a0302d222
Move resolv under the vendor directory 2024-01-30 14:01:59 +09:00
Willian Tenfen W d42330d702 [rubygems/rubygems] Improve gem login scope selection
https://github.com/rubygems/rubygems/commit/26c7abe5f6
2024-01-29 17:22:01 +00:00
Kevin Newton e050097beb [ruby/prism] Raise diagnostics for parser
https://github.com/ruby/prism/commit/102b4a16f5
2024-01-29 16:09:47 +00:00
Masato Ohba 933ede5d76 [rubygems/rubygems] Remove `travis_removal_info`
`travis_removal_info` is added by https://github.com/rubygems/rubygems/pull/6150. According to the comment, it's supposed to be removed at bundler v2.5.0 but it hasn't.

https://github.com/rubygems/rubygems/commit/e18797d43f
2024-01-29 05:39:13 +00:00
David Rodríguez e99951edfa [rubygems/rubygems] Simplify how extensions are built
https://github.com/rubygems/rubygems/commit/0b8faf1e39
2024-01-29 12:20:44 +09:00
David Rodríguez 1991c6d7a0 [rubygems/rubygems] Remove now unnecessary elseif
https://github.com/rubygems/rubygems/commit/d05b9e659b

Co-authored-by: Samuel Giddins <segiddins@segiddins.me>
2024-01-29 12:19:32 +09:00
David Rodríguez 355480dec6 [rubygems/rubygems] Properly restore empty env vars
https://github.com/rubygems/rubygems/commit/e0d68a8688
2024-01-29 12:19:31 +09:00
Hiroshi SHIBATA 2956d3a511
Removed duplicated license file 2024-01-29 12:18:26 +09:00
David Rodríguez f3123f8af2 [rubygems/rubygems] Use rubygems vendored uri from Bundler when available
https://github.com/rubygems/rubygems/commit/5d6a8f2fb4
2024-01-29 12:15:10 +09:00
David Rodríguez d64d0b5423
Vendor uri gem in RubyGems 2024-01-29 12:14:21 +09:00
David Rodríguez 6bbbfb4629 [rubygems/rubygems] Require vendored_uri file in Bundler
https://github.com/rubygems/rubygems/commit/62bc261042
2024-01-29 12:02:04 +09:00
Masato Nakamura c166615837 [ruby/reline] Add metadata for rubygems.org
(https://github.com/ruby/reline/pull/638)

https://github.com/ruby/reline/commit/d3a324d22c
2024-01-28 12:38:55 +00:00
Kevin Newton e256d44f98 [ruby/prism] Handle implicit rest in array pattern for parser gem
https://github.com/ruby/prism/commit/d3722d6660
2024-01-28 01:10:47 +00:00
Kevin Newton f12ebe1188 [ruby/prism] Add parser translation
https://github.com/ruby/prism/commit/8cdec8070c
2024-01-27 19:59:42 +00:00
Kevin Newton e337c9478a [ruby/prism] Error follow-up
Split up the diagnostic levels so that error and warning levels
aren't mixed. Also fix up deconstruct_keys implementation.

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

Co-authored-by: Benoit Daloze <eregontp@gmail.com>
2024-01-27 18:46:16 +00:00
Benoit Daloze c2e2d2398b [ruby/prism] Call #inspect on diagnostic levels
* So it's clear it is a Symbol.
  Before:
  ... @level=warning_verbose_true>
  After:
  ... @level=:warning_verbose_true>

https://github.com/ruby/prism/commit/84503643b9
2024-01-27 18:41:07 +00:00
Masato Ohba 0bac390e07 [rubygems/rubygems] Bump Ruby version to be used in `bundle gem` template
since 2.6 and 2.7 are EOL and bundler dropped their support by https://github.com/rubygems/rubygems/pull/7116.

https://github.com/rubygems/rubygems/commit/b562d9a822
2024-01-27 15:50:24 +00:00
Kevin Newton 5d9d07a491 [ruby/prism] Bring back #arg_rest local
https://github.com/ruby/prism/commit/9b6907b727
2024-01-27 14:13:35 +00:00
Benoit Daloze de135bc247 [ruby/prism] Add level to warnings and errors to categorize them
* Fixes https://github.com/ruby/prism/issues/2082

https://github.com/ruby/prism/commit/7a74576357
2024-01-26 21:34:34 +00:00
Kevin Newton ebf803aa19 [ruby/prism] Fix Ruby head build
https://github.com/ruby/prism/commit/149e2ff7f6
2024-01-25 13:58:07 +00:00
Eddie Lebow fdb8f08639 [ruby/irb] Reword history file documentation and fix typo
(https://github.com/ruby/irb/pull/842)

https://github.com/ruby/irb/commit/bbabf818c7
2024-01-25 10:20:47 +00:00
ydah 0334115628 [ruby/irb] Synatx ==> Syntax
https://github.com/ruby/irb/commit/2ffacaa031
2024-01-25 09:58:17 +00:00
ydah 819ae2c2c1 [ruby/irb] assigment ==> assignment
https://github.com/ruby/irb/commit/24c7694467
2024-01-25 09:58:16 +00:00
ydah 5f9f46a24c [ruby/irb] reseting ==> resetting
https://github.com/ruby/irb/commit/6209f06c72
2024-01-25 09:58:16 +00:00
ydah 9b1cc68b77 [ruby/irb] configuation ==> configuration
https://github.com/ruby/irb/commit/a27a511777
2024-01-25 09:58:16 +00:00
ydah fd9b968569 [ruby/irb] recever ==> receiver
https://github.com/ruby/irb/commit/dbd0e368c4
2024-01-25 09:58:15 +00:00
ydah 6580a95f8d [ruby/irb] inifinity ==> infinity
https://github.com/ruby/irb/commit/78dea58000
2024-01-25 09:58:15 +00:00
Hiroshi SHIBATA 723deec9cf [rubygems/rubygems] Keep compatibility of past versions
https://github.com/rubygems/rubygems/commit/54b67fb251
2024-01-24 09:11:53 +00:00
Hiroshi SHIBATA 1018dca09a [rubygems/rubygems] Skip to load commented out words
https://github.com/rubygems/rubygems/commit/e6a9148ba2
2024-01-24 09:11:53 +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
David Rodríguez 6bd997ecfd [rubygems/rubygems] Remove no longer necessary code
https://github.com/rubygems/rubygems/commit/b7d2de2ba8
2024-01-24 13:56:07 +09:00
なつき 1e519abe21 [rubygems/rubygems] Fix rake extension warning
https://github.com/rubygems/rubygems/commit/04973e349c
2024-01-24 13:55:42 +09:00
Martin Emde 01f9766aa0 Ensure File.open applies default umask on gem extract 2024-01-24 13:50:16 +09:00