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

68318 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 78ff9b719c
Add tests for the edge caces of `String#end_with?`
Also, check if a suffix is empty, to guarantee the assumption of
`onigenc_get_left_adjust_char_head` that `*s` is always accessible,
even in the case of `SHARABLE_MIDDLE_SUBSTRING`.
2021-10-08 14:08:03 +09:00
Nobuyoshi Nakada d0268c5ec2
Collect symbols instead of strings and get rid of rb_str_intern 2021-10-08 11:01:51 +09:00
Jeremy Evans 55d7f63bde [ruby/reline] Better fix for non-UTF-8 default external encoding
Previous fix didn't show the cursor or dialogs.  This allows the
dialogs to continue to work.

https://github.com/ruby/reline/commit/651c5f63cc
2021-10-08 10:38:47 +09:00
Jeremy Evans eb4682b3c6 [ruby/reline] Only show dialogs if default external encoding is UTF-8
Fixes a crash in IRB if a dialog is displayed and the default
external encoding is not UTF-8:

/home/jeremy/tmp/reline/lib/reline/line_editor.rb:731:in `write': U+2588 from UTF-8 to US-ASCII (Encoding::UndefinedConversionError)

https://github.com/ruby/reline/commit/f570525ecd
2021-10-08 10:38:43 +09:00
aycabta 1251edd1db [ruby/irb] Add tests for truncated show doc dialog
But pending them now because they need dummy document data to show doc.

https://github.com/ruby/irb/commit/ac471ee14e
2021-10-08 10:34:20 +09:00
aycabta 1507cb084c [ruby/irb] Determine left and right when the width of either side is zero correctly
https://github.com/ruby/irb/commit/5df6e1f027
2021-10-08 10:34:06 +09:00
aycabta 576eccf76d [ruby/irb] Calculate right side doc dialog width correctly
https://github.com/ruby/irb/commit/f34da7fa04
2021-10-08 10:33:56 +09:00
aycabta 374efa8e30 [ruby/irb] Specify whether to show the doc dialog on the left or right side by using variable names
https://github.com/ruby/irb/commit/a23a88b8c9
2021-10-08 10:33:47 +09:00
aycabta 5c02df8296 [ruby/irb] Display doc dialog in gaps on narrow screen
https://github.com/ruby/irb/commit/4d7cefcaa4
2021-10-08 10:33:39 +09:00
aycabta 36bf378363 [ruby/reline] Add a test for narrow screen without scrollbar
https://github.com/ruby/reline/commit/44cd35e65d
2021-10-08 10:33:27 +09:00
aycabta 374b15a84a [ruby/reline] Cut off the excess on narrow screen
https://github.com/ruby/reline/commit/972cc993ca
2021-10-08 10:33:22 +09:00
aycabta a2f55679f0 [ruby/reline] Rename DIALOG_HEIGHT with DIALOG_DEFAULT_HEIGHT
https://github.com/ruby/reline/commit/996bfec64b
2021-10-08 10:33:17 +09:00
Aaron Patterson 217df51f0e Dump outer variables tables when dumping an iseq to binary
This commit dumps the outer variables table when dumping an iseq to
binary.  This fixes a case where Ractors aren't able to tell what outer
variables belong to a lambda after the lambda is loaded via ISeq.load_from_binary

[Bug #18232] [ruby-core:105504]
2021-10-07 15:39:47 -07:00
git cb5a3b198e * 2021-10-08 [ci skip] 2021-10-08 00:15:42 +09:00
Nobuyoshi Nakada 8057129da6
Remove duplicate value checks on `mrhs` which always has the value 2021-10-08 00:11:22 +09:00
Kaíque Kandy Koga 80e2242da6 [ruby/irb] Update descriptions of methods
From Reidline to Reline

Update description used in take_corresponding_syntax_to_kw_do and is_the_in_correspond_to_a_for methods

Use possessive noun correctly

Second element

https://github.com/ruby/irb/commit/4fa9714d6f
2021-10-07 23:55:54 +09:00
Jeremy Evans 896626fa02 [ruby/irb] Make IRB::Context#exit call super if UncaughtThrowError
Fixes calling exit after binding.irb.

Fixes [Bug #18234]

https://github.com/ruby/irb/commit/4ea8d376f2
2021-10-07 23:53:58 +09:00
Nobuyoshi Nakada 606e785fa8
Reuse ractor stderr 2021-10-07 19:57:09 +09:00
Nobuyoshi Nakada a706c09fa6
Adjust styles [ci skip] 2021-10-07 19:57:09 +09:00
Hiroshi SHIBATA ae5dffd666
Followed up bd6e1a0f08 2021-10-07 18:34:29 +09:00
Jeremy Evans bd6e1a0f08
[ruby/ipaddr] Support zone identifiers in IPv6 addresses
These are supported by Ruby's socket library if the operating system
supports zone indentifiers, so they should be supported by ipaddr.
See RFCs 4007 and 6874 for additional information.

Implements Ruby Feature #10911

https://github.com/ruby/ipaddr/commit/09a6408fb2
2021-10-07 18:22:43 +09:00
Bogdan Irimie 74ed881e10
[ruby/ipaddr] Add netmask method that returns net mask as string.
https://github.com/ruby/ipaddr/commit/283d16f3a3
2021-10-07 18:22:43 +09:00
Jeremy Evans abad5e10e8
[ruby/ipaddr] Disallow leading zeros in mask
https://github.com/ruby/ipaddr/commit/f49d2d49a4
2021-10-07 18:22:43 +09:00
Nobuyoshi Nakada 38da84296c
[ruby/ipaddr] Raise if extra slashes follow
https://bugs.ruby-lang.org/issues/15832

https://github.com/ruby/ipaddr/commit/de9805d6fa
2021-10-07 18:22:42 +09:00
Jeremy Evans 54ee22be53
[ruby/ipaddr] Avoid reraising exceptions
Instead of raising a new exception with a modified message, just
use the correct message to begin with.  This avoids the issue with
both exceptions being displayed at error exit.

https://github.com/ruby/ipaddr/commit/09edfd4a7f
2021-10-07 18:22:42 +09:00
Espartaco Palma b23fba91ae [ruby/ipaddr] Removing superfluos assingments & return
Also adding test for ntop

https://github.com/ruby/ipaddr/commit/0ba16cca10
2021-10-07 17:46:00 +09:00
S-H-GAMELINKS 323e7a6744 Merge if statement 2021-10-07 19:18:46 +13:00
Yusuke Endoh 273673aeaf test/ruby/test_process (test_no_curdir): tentatively skipped on Solaris
The test gets stuck on Solaris CI.

http://rubyci.s3.amazonaws.com/solaris11-gcc/ruby-master/log/20211006T050007Z.fail.html.gz#test-all
```
[14558/21042] TestProcess#test_no_curdirtimeout: output interval exceeds 1800.0 seconds.
timeout: the process group 3857 is alive.
```

Related to ee89543e09
2021-10-07 10:40:40 +09:00
Burdette Lamar 7caeead36f
Accommondate earlier reviews of RDoc for Enumerable (#4943) 2021-10-06 19:06:17 -05:00
Burdette Lamar fb122042e0
Enhanced RDoc for Enumerable (#4941)
Treated:

    #sum
    #uniq
    #compact
2021-10-06 15:51:49 -05:00
git 121424a097 * 2021-10-07 [ci skip] 2021-10-07 04:38:52 +09:00
Alan Wu 7622819147
Fix Ractor.make_shareable changing locals for Procs
env_copy() uses rb_ary_delete_at() with a loop counting up while
iterating through the list of read only locals. rb_ary_delete_at() can
shift elements in the array to an index lesser than the loop index,
causing locals to be missed and set to Qfalse in the returned
environment.

Iterate through the locals in reverse instead, this way the shifting
never happens for locals that are yet to be visited and we process all
the locals in the array.

[Bug #18023]
2021-10-06 15:38:33 -04:00
Nobuyoshi Nakada d53493715c
Add the dependency of GNUmakefile itself [ci skip] 2021-10-06 15:42:37 +09:00
Nobuyoshi Nakada 702a58e9e5
Remove duplicate type qualifiers
`rb_encoding` is defined as `const OnigEncodingType`.
Fix lots of C4114 warnings for each files by MSVC.
2021-10-06 14:01:43 +09:00
Nobuyoshi Nakada 7ed1180e00
Remove the useless platform guard 2021-10-06 12:19:52 +09:00
Nobuyoshi Nakada ddca0c6686
Fix filesystem dependent tests
Ruby cannot guarantee the resolutions of underlying filesystems.
2021-10-06 11:41:03 +09:00
Burdette Lamar abd473928e
Enhanced RDoc for Enumerable (#4938)
Treats:

    #slice_after
    #slice_when
    #chunk_while
2021-10-05 18:57:06 -05:00
Benoit Daloze b9f34062f0 Update to ruby/spec@ccf0d85 2021-10-05 19:41:44 +02:00
Jean Boussier afcbb501ac marshal.c Marshal.load accepts a freeze: true option.
Fixes [Feature #18148]

When set, all the loaded objects are returned as frozen.

If a proc is provided, it is called with the objects already frozen.
2021-10-05 18:34:56 +02:00
Burdette Lamar 279b2b5b60
Enhanced RDoc for Enumerable#slice_before (#4932)
* Enhanced RDoc for Enumerable#slice_before

* Enhanced RDoc for Enumerable#slice_before
2021-10-05 10:52:51 -05:00
git f883f550f2 * 2021-10-06 [ci skip] 2021-10-06 00:41:05 +09:00
git 1bf3f3f4da * remove trailing spaces. [ci skip] 2021-10-06 00:40:54 +09:00
Jeremy Evans c6706f15af Fix documentation for String#{<<,concat,prepend}
These methods mutate and return the receiver, they don't create
and return a new string.

Fixes [Bug #18241]
2021-10-05 08:39:27 -07:00
Koichi Sasada f2ca65266f debug.gem v1.2.4
This version fixes test failures on MacOS enviornment.
2021-10-05 23:22:42 +09:00
aycabta dc8fa2691b [ruby/reline] Reduce window size so that it can be displayed in my desktop
https://github.com/ruby/reline/commit/22359d50ab
2021-10-05 22:33:13 +09:00
aycabta f625645a37 [ruby/reline] The width of block elements is 1 on Windows
https://github.com/ruby/reline/commit/5f4a75c7a0
2021-10-05 22:33:07 +09:00
aycabta 2c2a017fe8 [ruby/reline] Cyrillic chars are now forced to be displayed in full-width on Windows
So testing is no longer necessary.

https://github.com/ruby/reline/commit/c59589548b
2021-10-05 22:33:02 +09:00
aycabta 6966c3ff44 [ruby/reline] Change struct size correctly
https://github.com/ruby/reline/commit/df2a1b4e08
2021-10-05 22:32:56 +09:00
Nobuyoshi Nakada 7c98e673d7
Fix a typo since 688f2e1a89 2021-10-05 18:24:34 +09:00
Nobuyoshi Nakada cd182c5ee1
Adjust types to rb_enc_left_char_head
I dislike unnatural casts.
2021-10-05 17:14:29 +09:00