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

68348 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 72797acf6e
Set `TEST_ALL` options first to show in the summary page 2021-10-10 11:16:13 +09:00
S-H-GAMELINKS 9cd9eca379 Refactor rb_proc_call function 2021-10-10 09:31:25 +09:00
S-H-GAMELINKS d25af1f44e Add flo_ndigits function 2021-10-10 09:29:53 +09:00
git 6678bb6679 * 2021-10-10 [ci skip] 2021-10-10 01:24:32 +09:00
Nobuyoshi Nakada 7f3786c3e8
Use an isolated class
The number of all instances of `Class` may be affected by GC-able
anonymous classes created by other tests.
2021-10-10 01:20:40 +09:00
aycabta 5805b1472a [ruby/irb] Version 1.3.8.pre.11
https://github.com/ruby/irb/commit/49b9f644c2
2021-10-09 23:29:29 +09:00
aycabta 98d9a7e435 [ruby/irb] Update dependency, reline >= 0.2.8.pre.11
https://github.com/ruby/irb/commit/4f686afbca
2021-10-09 23:29:24 +09:00
aycabta 56140bc7af [ruby/reline] Version 0.2.8.pre.11
https://github.com/ruby/reline/commit/de858ee1ac
2021-10-09 23:27:40 +09:00
aycabta d0f2c4d053 [ruby/reline] Fix tests to show dialog to the right edge
https://github.com/ruby/reline/commit/6a0d0ada94
2021-10-09 23:23:14 +09:00
aycabta bf1f6a696f [ruby/reline] Add a test for full-width scrollbar
https://github.com/ruby/reline/commit/cff83e68f8
2021-10-09 23:23:07 +09:00
aycabta 9cb7ba2f21 [ruby/reline] Add RELINE_ALT_SCROLLBAR env to use alternative text for scrollbar
The setting to use '::' instead of block elements.

https://github.com/ruby/reline/commit/4afbc98e2c
2021-10-09 23:23:02 +09:00
aycabta e6ba2953e9 [ruby/reline] Fix calculating dialog width with full-width scrollbar
https://github.com/ruby/reline/commit/93bc9b5277
2021-10-09 23:22:57 +09:00
Nobuyoshi Nakada c423cc932e
Refactor `Test::Unit::CoreAssertions#assert_nothing_raised`
* Separate exception classes to be rescued or reraised
* Use the filtered backtrace in the failure message
* Raise a new `AssertionFailedError` with the original backtrace
2021-10-09 18:14:21 +09:00
Nobuyoshi Nakada fc913ad21d
Exclude also core_assertions.rb from backtraces 2021-10-09 16:17:37 +09:00
Nobuyoshi Nakada 3932227d96
Unify `Test::Unit::Assertions#message`
Merge `Test::Unit::CoreAssertions#message`.
2021-10-09 16:17:01 +09:00
Nobuyoshi Nakada 489c22b17f
Let `Test::Unit::CoreAssertions::AllFailures#for` yield the key
Similar to `Test::Unit::CoreAssertions::AllFailures#foreach`.
2021-10-09 14:28:27 +09:00
OKURA Masafumi 7e506716d2
Newly generated gems require Ruby 2.6.0
In 2021, Ruby 2.5 and older are EOL.
We can set the default required Ruby version to 2.6.0 to
encourage people to use newer Ruby.
If the command is executed with old Ruby, it falls back to 2.3.0.
It's still possible to create a gem for older Ruby just by changing
two lines of code (one in gemspec and another is in rubocop.yml).
2021-10-09 09:07:47 +09:00
David Rodríguez 91f794b516 [rubygems/rubygems] I see no harm in this, allow it
https://github.com/rubygems/rubygems/commit/01feb40283
2021-10-09 08:05:46 +09:00
David Rodríguez 991a3aad05 [rubygems/rubygems] `git commit` no longer needs to be allowed to fail
https://github.com/rubygems/rubygems/commit/12af03d32f
2021-10-09 08:05:34 +09:00
David Rodríguez a5bae843ff [rubygems/rubygems] Let `update_git` work with whatever branch is checkout out
Unless the `:branch` option is passed.

It's more efficient, and it results in less hardcoding of "master".

https://github.com/rubygems/rubygems/commit/aa5c3409ab
2021-10-09 08:05:23 +09:00
David Rodríguez 5a34b639fc [rubygems/rubygems] Make adding files and committing into a single command
For efficiency.

https://github.com/rubygems/rubygems/commit/979d1634dd
2021-10-09 08:05:11 +09:00
David Rodríguez b857a87653 [rubygems/rubygems] Keep different code in custom branch in dummy repo
This doesn't affect the outcome of the test, but it makes the `git
commit` command inside `update_git` not fail because of not having
anything to commit.

https://github.com/rubygems/rubygems/commit/ad0160ed97
2021-10-09 08:04:59 +09:00
David Rodríguez 70066196a0 [rubygems/rubygems] Fix typo
We want to update the original repo, not a fresh one.

This went undetected because the `git commit` command inside the
`update_git` method ignores failures, and in this case it was failing
because all files are untracked in the new repo.

I will fix that later but for now fix the typo.

https://github.com/rubygems/rubygems/commit/c889f1d715
2021-10-09 08:04:48 +09:00
Masataka Pocke Kuwabara d03d122ba1 [rubygems/rubygems] Improve performance of Specification#missing_extensions?
https://github.com/rubygems/rubygems/commit/90c1919f94
2021-10-09 08:04:08 +09:00
gabriele renzi ad92651d64 [rubygems/rubygems] Add glob infomation to Bundler::Source::Git#to_s
The glob information was not specified in the string representation for
a source, which led to non-deterministic behaviour when generating the
lockfile, since sources are sorted by this value.

https://github.com/rubygems/rubygems/commit/493b880abc
2021-10-09 08:03:43 +09:00
Jeremy Evans 06c3e80611 Do not allow configuration where neither static or shared library is installed
Fixes [Bug #18000]
2021-10-08 14:01:54 -09:00
git b4afedb0dd * 2021-10-09 [ci skip] 2021-10-09 06:54:40 +09:00
Jeremy Evans 08759edea8
Remove autoload for constant if the autoload fails
Previously, if an autoload failed (the file was loaded, but the
constant was not defined by the autoloaded file). Ruby will try
to autoload again if you delete the autoloaded file from
$LOADED_FEATURES.  With this change, the autoload and the
constant itself are removed as soon as it fails.

To handle cases where multiple threads are autoloading, when
deleting an autoload, handle the case where another thread
already deleted it.

Fixes [Bug #15790]
2021-10-08 14:54:26 -07:00
aycabta ded5a66cb9 [ruby/reline] Use alternate text for scrollbar in non-UTF-8 env
https://github.com/ruby/reline/commit/69e365edcc
2021-10-08 18:48:44 +09:00
Nobuyoshi Nakada 076f2e9d3e
Make `volatile` the variable will be taken out from `EC_EXEC_TAG` 2021-10-08 15:44:47 +09:00
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