tomoya ishida
5f65321915
[ruby/reline] Combine MAPPINGS(single byte input to symbol) with
...
key_bindings(escape sequence to symbol)
(https://github.com/ruby/reline/pull/715 )
6a7e249374
2024-12-06 07:09:24 +00:00
Samuel Giddins
305318edbb
[rubygems/rubygems] Apply suggestions from code review
...
7c634ecd72
2024-12-05 19:00:44 +00:00
Samuel Giddins
7daf85bdf2
[rubygems/rubygems] Stop storing executable names in ivars
...
Removes usage of these classes as ACE gadgets
See https://nastystereo.com/security/ruby-3.4-deserialization.html
Signed-off-by: Samuel Giddins <segiddins@segiddins.me>
89ad04db86
2024-12-05 19:00:44 +00:00
Stan Lo
2ecd2fe0ed
[ruby/rdoc] Deprecate main
and title
directives
...
(https://github.com/ruby/rdoc/pull/1218 )
* Deprecate :main: directive
* Deprecate :title: direcive
* Update documentation
* Remove :main: directive's usage
* Update test cases
* Add '.rdoc_options' to suggested alternatives
e2d4ac9dad
2024-12-05 11:36:34 +00:00
Yuki Nishijima
834d68238c
[ruby/did_you_mean] Bump version to 2.0.0
...
1cce337962
2024-12-04 12:32:02 +00:00
Hiroshi SHIBATA
ef5dfcef3d
[ruby/did_you_mean] Removed deprecated constants for Ruby 3.4
...
e11bf81438
2024-12-04 12:07:11 +00:00
sodacris
e18fb1281a
[rubygems/rubygems] add relative path support for bundle exec
...
c982085f86
2024-12-04 08:34:57 +00:00
Nobuyoshi Nakada
3b27818062
[ruby/shellwords] NUL char cannot be in shell words
...
2c7ae1b76c
2024-12-04 07:48:59 +00:00
Nobuyoshi Nakada
edd3977b40
[ruby/logger] Enable log file rotation on Windows
...
Since ruby 2.3, a file opened with `File::SHARE_DELETE` and
`File::BINARY` can be renamed or removed.
7b6146fee6
2024-12-04 07:45:39 +00:00
Nobuyoshi Nakada
ed47b6b324
[ruby/logger] Extract Logger::LogDevice#handle_write_errors
...
f904ad2f7c
2024-12-04 07:45:37 +00:00
tomoya ishida
e539342f65
[ruby/irb] Don't show 'Maybe IRB bug!' in show_source and ls command
...
(https://github.com/ruby/irb/pull/1039 )
9eb14a3a0b
2024-12-03 21:55:33 +00:00
Cosmic Oppai
f6b62d001a
[ruby/timeout] removed the non numeric check
...
7d2af46a00
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
2024-12-03 06:49:57 +00:00
Cosmic Oppai
7dc7aab4e9
[ruby/timeout] updated doc string
...
4be6423de4
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
2024-12-03 06:49:56 +00:00
CosmicOppai
b156efc2a6
[ruby/timeout] updated doc and kept the nil compatiability
...
f992632cf3
2024-12-03 06:49:55 +00:00
CosmicOppai
e7dd185e21
[ruby/timeout] refactor the change to raise for nil and type-errror and added tests
...
ffc8d7c003
2024-12-03 06:49:55 +00:00
CosmicOppai
0f2cd39e68
[ruby/timeout] refactor the change to keep the compatability with nil and type-errror and added tests
...
8342544979
2024-12-03 06:49:54 +00:00
CosmicOppai
203a023447
[ruby/timeout] added the check for negative sec
...
8e57887eee
2024-12-03 06:49:53 +00:00
Hiroshi SHIBATA
e34163d7fe
[ruby/pp] Bump up 0.6.2
...
979f9d972d
2024-12-03 04:52:19 +00:00
Yusuke Endoh
043f26edee
[ruby/error_highlight] Bump version
...
a8e9eb7f2f
2024-12-03 03:11:18 +00:00
Hiroshi SHIBATA
d85e8b5339
Reapply "[ruby/rdoc] fix: C variables should never show up in Ancestors tree"
...
This reverts commit 0fe82ae087
.
2024-12-03 10:59:32 +09:00
Mike Dalessio
af5c34fb0b
[ruby/rdoc] Prefer String#ord to #codepoints[0]
...
(https://github.com/ruby/rdoc/pull/1220 )
09d7f35420
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2024-12-02 22:08:03 +00:00
Mike Dalessio
4cce246d86
[ruby/rdoc] ClassModule#superclass= accepts a ClassModule as an
...
argument
(https://github.com/ruby/rdoc/pull/1222 )
It is necessary for ClassModule's instance variable @superclass to
always be a String (or nil) so that the class can be saved with
`#marshal_dump` and loaded with `#marshal_load`.
However, there's no type checking being done, which allows a bug like
the one reported in #1221 (which was introduced in #1217 ) that sets
superclass to a ClassModule. That bug requires:
- setting a superclass to a NormalClass
- marshal_save
- marshal_load (which raises an exception)
With this change, passing a ClassModule to ClassModule#superclass= is
explicitly allowed by saving the full name of the ClassModule in the
@superclass instance variable.
9ced6d534c
2024-12-02 22:07:31 +00:00
tomoya ishida
36aeb12aa9
[ruby/reline] Implement buffered output to Reline::ANSI
...
(https://github.com/ruby/reline/pull/790 )
Minimize the call of STDOUT.write
This will improve rendering performance especially when there is a busy thread `Thread.new{loop{}}`
a6fe45f5ba
2024-12-02 16:44:49 +00:00
Nobuyoshi Nakada
44ef172dbd
[rubygems/rubygems] [DOC] Fix missing single quote
...
722d4c6926
2024-12-02 16:06:44 +00:00
Hiroshi SHIBATA
2b895a7ad5
[ruby/net-http] Bump up 0.6.0
...
6475fa68ba
2024-12-02 08:42:13 +00:00
Hiroshi SHIBATA
157fe74795
[ruby/logger] Bump up 1.6.2
...
2d07f086f8
2024-12-02 08:03:46 +00:00
Hiroshi SHIBATA
ff52431ee5
[ruby/securerandom] Bump up 0.4.0
...
53f97f3151
2024-12-02 07:45:05 +00:00
Hiroshi SHIBATA
983ae63f59
[ruby/securerandom] Random::Formatter is only provided from Ruby 3.1
...
90c7e390f5
2024-12-02 15:32:05 +09:00
Hiroshi SHIBATA
0fe82ae087
Revert "[ruby/rdoc] fix: C variables should never show up in Ancestors tree"
...
This reverts commit 2923f42ed7
.
3375565361 (step)
:23:1031
```
/home/runner/work/actions/actions/snapshot-master/lib/rdoc/code_object.rb:322:in 'RDoc::CodeObject#parent': undefined method 'find_class_or_module' for nil (NoMethodError)
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/code_object/class_module.rb:342:in 'RDoc::ClassModule#marshal_dump'
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/store.rb:878:in 'Marshal.dump'
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/store.rb:878:in 'block in RDoc::Store#save_class'
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/store.rb:877:in 'IO.open'
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/store.rb:877:in 'RDoc::Store#save_class'
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/store.rb:763:in 'block in RDoc::Store#save'
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/store.rb:762:in 'Array#each'
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/store.rb:762:in 'RDoc::Store#save'
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/generator/ri.rb:27:in 'RDoc::Generator::RI#generate'
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/rdoc.rb:528:in 'block in RDoc::RDoc#generate'
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/rdoc.rb:522:in 'Dir.chdir'
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/rdoc.rb:522:in 'RDoc::RDoc#generate'
from /home/runner/work/actions/actions/snapshot-master/lib/rdoc/rdoc.rb:501:in 'RDoc::RDoc#document'
from ./tool/rdoc-srcdir:27:in '<main>'
```
2024-12-02 09:39:56 +09:00
Kouhei Yanagita
ae59b44041
[ruby/set] Fix ^ to respect subclasses
...
f88ecdef6b
2024-12-02 08:28:58 +09:00
Kouhei Yanagita
f2334cf4b1
[ruby/set] Speed up Set#flatten
...
Improved performance by ensuring that identical `Set` objects are
processed only once.
cadb686e93
2024-12-02 08:28:44 +09:00
tomoya ishida
0fc70022e6
[ruby/reline] Call user defined sigwinch and sigcont handler
...
(https://github.com/ruby/reline/pull/788 )
7d44770c84
2024-11-30 17:21:20 +00:00
Mari Imaizumi
569f27b425
[ruby/irb] Prevent cursor flickering
...
(https://github.com/ruby/irb/pull/1041 )
0506ed0e11
2024-11-30 16:22:05 +00:00
Mike Dalessio
83bd9191d8
[ruby/rdoc] Methods are sorted symbols-first
...
(https://github.com/ruby/rdoc/pull/1219 )
There are three distinct ranges of symbols in ASCII:
- the range below "A", 0..64 in decimal
- the range between "Z" and "a", 91..96 in decimal
- the range above "z", 123..127 in decimal
With this change, any method starting with a character in these
"symbol ranges" will be sorted before a method starting with an alpha
ASCII character. The remaining methods, all starting with alpha or
8-bit characters, will be sorted against each other exactly as before.
Specifically this addresses the issue from #1204 which is that `#[]`
and `#^` were previously sorted _after_ the alpha methods. These
methods will now be sorted before alpha methods.
Fixes https://github.com/ruby/rdoc/pull/1204
a4f13d242b
2024-11-30 16:06:54 +00:00
Mike Dalessio
2923f42ed7
[ruby/rdoc] fix: C variables should never show up in Ancestors tree
...
(https://github.com/ruby/rdoc/pull/1217 )
If a NormalClass's superclass is a C enclosure, then update the
superclass to point to the RDoc::NormalClass.
This is done in a single pass after all files have been parsed.
Fixes https://github.com/ruby/rdoc/pull/1205 .
1ecd9581b1
2024-11-30 12:31:42 +00:00
tomoya ishida
7e02410bf8
[ruby/reline] Don't skip start_with check on encoding-incompatible
...
candidates
(https://github.com/ruby/reline/pull/787 )
8588be652f
2024-11-29 19:07:35 +00:00
Mari Imaizumi
c06dcba964
[ruby/reline] Fix RELINE_TEST_ENCODING
...
(https://github.com/ruby/reline/pull/743 )
* Fix RELINE_TEST_ENCODING
It was not working because it was not environment variable.
* Fix Encoding::CompatibilityError: Shift_JIS is not compatible with UTF-8
Error: test_completion_append_character(Reline::KeyActor::EmacsTest): Encoding::CompatibilityError: Shift_JIS is not compatible with UTF-8
/home/runner/work/reline/reline/lib/reline/line_editor.rb:814:in 'block in Reline::LineEditor#filter_normalize_candidates'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:808:in 'Array#select'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:808:in 'Reline::LineEditor#filter_normalize_candidates'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:831:in 'Reline::LineEditor#perform_completion'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1434:in 'Reline::LineEditor#complete'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:961:in 'Method#call'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:961:in 'Reline::LineEditor#wrap_method_call'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1029:in 'block in Reline::LineEditor#process_key'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:932:in 'Reline::LineEditor#run_for_operators'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1028:in 'Reline::LineEditor#process_key'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1051:in 'Reline::LineEditor#normal_char'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1089:in 'Reline::LineEditor#input_key'
/home/runner/work/reline/reline/test/reline/helper.rb:124:in 'block in Reline::TestCase#input_keys'
/home/runner/work/reline/reline/test/reline/helper.rb:117:in 'Array#each'
/home/runner/work/reline/reline/test/reline/helper.rb:117:in 'Reline::TestCase#input_keys'
/home/runner/work/reline/reline/test/reline/test_key_actor_emacs.rb:948:in 'Reline::KeyActor::EmacsTest#test_completion_append_character'
===============================================================================
===============================================================================
Error: test_continuous_completion_disabled_with_perfect_match(Reline::KeyActor::EmacsTest): Encoding::CompatibilityError: Shift_JIS is not compatible with UTF-8
/home/runner/work/reline/reline/lib/reline/line_editor.rb:814:in 'block in Reline::LineEditor#filter_normalize_candidates'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:808:in 'Array#select'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:808:in 'Reline::LineEditor#filter_normalize_candidates'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:831:in 'Reline::LineEditor#perform_completion'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1434:in 'Reline::LineEditor#complete'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:961:in 'Method#call'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:961:in 'Reline::LineEditor#wrap_method_call'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1029:in 'block in Reline::LineEditor#process_key'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:932:in 'Reline::LineEditor#run_for_operators'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1028:in 'Reline::LineEditor#process_key'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1051:in 'Reline::LineEditor#normal_char'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1089:in 'Reline::LineEditor#input_key'
/home/runner/work/reline/reline/test/reline/helper.rb:124:in 'block in Reline::TestCase#input_keys'
/home/runner/work/reline/reline/test/reline/helper.rb:117:in 'Array#each'
/home/runner/work/reline/reline/test/reline/helper.rb:117:in 'Reline::TestCase#input_keys'
/home/runner/work/reline/reline/test/reline/test_key_actor_emacs.rb:936:in 'Reline::KeyActor::EmacsTest#test_continuous_completion_disabled_with_perfect_match'
===============================================================================
===============================================================================
Error: test_continuous_completion_with_perfect_match(Reline::KeyActor::EmacsTest): Encoding::CompatibilityError: Shift_JIS is not compatible with UTF-8
/home/runner/work/reline/reline/lib/reline/line_editor.rb:814:in 'block in Reline::LineEditor#filter_normalize_candidates'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:808:in 'Array#select'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:808:in 'Reline::LineEditor#filter_normalize_candidates'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:831:in 'Reline::LineEditor#perform_completion'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1434:in 'Reline::LineEditor#complete'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:961:in 'Method#call'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:961:in 'Reline::LineEditor#wrap_method_call'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1029:in 'block in Reline::LineEditor#process_key'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:932:in 'Reline::LineEditor#run_for_operators'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1028:in 'Reline::LineEditor#process_key'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1051:in 'Reline::LineEditor#normal_char'
/home/runner/work/reline/reline/lib/reline/line_editor.rb:1089:in 'Reline::LineEditor#input_key'
/home/runner/work/reline/reline/test/reline/helper.rb:124:in 'block in Reline::TestCase#input_keys'
/home/runner/work/reline/reline/test/reline/helper.rb:117:in 'Array#each'
/home/runner/work/reline/reline/test/reline/helper.rb:117:in 'Reline::TestCase#input_keys'
/home/runner/work/reline/reline/test/reline/test_key_actor_emacs.rb:924:in 'Reline::KeyActor::EmacsTest#test_continuous_completion_with_perfect_match'
===============================================================================
Finished in 2.118582151 seconds.
385 tests, 1762 assertions, 0 failures, 3 errors, 0 pendings, 3 omissions, 0 notifications
4df825c48f
2024-11-29 18:15:46 +00:00
David Rodríguez
ee7ff4a12b
[rubygems/rubygems] Backwards compatibility for 2.5.17-2.5.23 caches
...
9dbfce76cf
2024-11-29 15:27:40 +00:00
David Rodríguez
9a4d91fa95
[rubygems/rubygems] Restore previous application cache format for git sources
...
And make sure `bundle install --local` can install from it without git.
7d6b631620
2024-11-29 15:27:39 +00:00
David Rodríguez
2a8437a1eb
[rubygems/rubygems] Check feature flag earlier
...
33536aa61c
2024-11-29 15:27:38 +00:00
David Rodríguez
68c7e75349
[rubygems/rubygems] Remove unnecessary early return
...
These are never equal.
69e369da74
2024-11-29 15:27:37 +00:00
David Rodríguez
34f6334bca
[rubygems/rubygems] Improve naming in git sources
...
The "revision" attribute is actually getting the revision from the
Gemfile.lock file. So I think "locked" is a better term here to avoid
confusion with the revision checked out in `vendor/cache`.
ca5bdebe1f
2024-11-29 15:27:34 +00:00
Akinori MUSHA
ae85fc7271
[ruby/set] Bump VERSION to 1.1.1
...
1c3cded76a
2024-11-29 10:27:25 +00:00
Nobuyoshi Nakada
ad773b5e99
[ruby/time] [DOC] Make RDoc coverage 100%
...
c668704413
2024-11-29 01:39:01 +00:00
David Rodríguez
bd88cffd8c
[rubygems/rubygems] Test with Ruby 3.4
...
23d06195fa
2024-11-28 15:52:16 +00:00
Mari Imaizumi
afea58a0ef
[ruby/reline] Bump version to 0.5.12
...
(https://github.com/ruby/reline/pull/786 )
d4f6741e7e
2024-11-28 15:22:40 +00:00
Stan Lo
36ed9c2fc9
[ruby/rdoc] Improve how gemspec's files are defined
...
(https://github.com/ruby/rdoc/pull/1212 )
Currently, the gemspec's files are defined by hand, which is error-prone.
For example: https://github.com/ruby/rdoc/pull/1211
This commit uses `Dir.glob` where possible to reduce the risk of that
happening again.
- Additional files added with this approach:
```
# This should have been added by only captured by this commit
lib/rdoc/parser/prism_ruby.rb
# These are folders and can be included/ignored either way
lib/rdoc/generator/template/darkfish
lib/rdoc/generator/template/darkfish/css
lib/rdoc/generator/template/darkfish/fonts
lib/rdoc/generator/template/darkfish/images
lib/rdoc/generator/template/darkfish/js
lib/rdoc/generator/template/json_index
lib/rdoc/generator/template/json_index/js
```
- Files that are ignored after this change:
```
# They make no difference on documentation generation
# Probably can be removed
lib/rdoc/generator/template/darkfish/.document
lib/rdoc/generator/template/json_index/.document
```
ac2a151f10
2024-11-28 12:18:11 +00:00
tomoya ishida
34a43d5972
[ruby/reline] Fix io_gate.encoding raises IOError in ruby <= 3.0
...
(https://github.com/ruby/reline/pull/785 )
85e20f0031
2024-11-27 18:51:04 +00:00
Hiroshi SHIBATA
24889e44f7
Rename environment name to more descriptive
2024-11-27 16:45:10 +09:00
Ellen Marie Dash
092a48de7e
[rubygems/rubygems] [SpecFetcher] If candidates include {name}-ruby or ruby-{name}, recommend those.
...
d7d33172c1
2024-11-26 22:04:26 +00:00