| Age | Commit message (Collapse) | Author |
|
thread.c: Convert TAG_BREAK to a normal exception at thread top-level
[Bug #18475]
---
test/ruby/test_enum.rb | 11 +++++++++++
thread.c | 3 +++
2 files changed, 14 insertions(+)
|
|
Allow include before calling Module#initialize
This is to allow Module subclasses that include modules before
calling super in the subclass's initialize.
Remove rb_module_check_initializable from Module#initialize.
Module#initialize only calls module_exec if a block is passed,
it doesn't have other issues that would cause problems if
called multiple times or with an already initialized module.
Move initialization of super to Module#allocate, though I'm not
sure it is required there. However, it's needed to be removed
from Module#initialize for this to work.
Fixes [Bug #18292]
---
class.c | 1 +
object.c | 1 -
test/ruby/test_module.rb | 10 ++++++++++
3 files changed, 11 insertions(+), 1 deletion(-)
|
|
Don't segfault if Warning.warn is undefined
Check that there is a method entry for the method before passing
it to rb_method_entry_arity.
Fixes [Bug #18458]
---
error.c | 3 ++-
test/ruby/test_exception.rb | 8 ++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
|
|
Make RubyVM::AST.of work with code written in `-e` command-line
option
[Bug #18434]
---
ast.c | 11 +++++++----
test/ruby/test_ast.rb | 5 +++++
2 files changed, 12 insertions(+), 4 deletions(-)
|
|
https://bugs.ruby-lang.org/issues/17485#change-89871
(cherry picked from commit 0867b638aff9ec192ca420a44ffa5a77c892e8f2)
|
|
OpenSSL::BN has been make ractor-safed in 9e7cf9e ,
but there was no test.
And to use 'ractor' annotation, update test-unit to v3.4.6 or higher.
https://github.com/ruby/openssl/commit/7541a66911
|
|
https://github.com/ruby/reline/commit/9b209ee1ea
|
|
https://github.com/ruby/reline/commit/b545459fca
|
|
|
|
|
|
This reverts commit 1527f7569b0412f3bc7ac98a3461e59a4891ed96.
|
|
|
|
|
|
|
|
|
|
https://github.com/ruby/reline/commit/9fca6ceb45
|
|
"unix-line-discard"
https://github.com/ruby/reline/commit/da7af35d1f
|
|
https://github.com/ruby/reline/commit/9ab99574f5
|
|
So that the actually run test code corresponds to the source file
line-by-line.
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5339
|
|
on Windows
The method "input_keys" in test/reline/helper.rb handles a single-byte
and 8-bit charater as an input with the meta key.
However, "test_halfwidth_kana_width_dakuten" in test/reline/test_key_actor_emacs.rb
uses a string that contains "hankaku" characters.
A "hankaku" character is not with the meta key, but it is a single-byte
and 8-bit character on Windows-31J encoding, which confused "input_keys"
method. This caused the following error.
https://ci.appveyor.com/project/ruby/ruby/builds/41997092/job/ejm77qxgvnlpdwvg
```
1) Failure:
Reline::KeyActor::Emacs::Test#test_halfwidth_kana_width_dakuten [C:/projects/ruby/test/reline/test_key_actor_emacs.rb:2311]:
<"\xB6\xDE\xB7\xDE\xB9\xDE\xBA\xDE" (#<Encoding:Windows-31J>)> expected but was
<"\e^\e^\e^\e:\e^" (#<Encoding:Windows-31J>)> in <Terminal #<Encoding:Windows-31J>>
.
<8> expected but was
<10>.
Finished tests in 1045.472722s, 19.3922 tests/s, 2609.4320 assertions/s.
```
This change introduces "input_raw_keys" that does not convert a
single-byte and 8-bit character to "with the meta key", and use it in
the test in question.
https://github.com/ruby/reline/commit/f6ae0e5d19
|
|
https://github.com/ruby/csv/commit/68461aead5
Notes:
Merged: https://github.com/ruby/ruby/pull/5336
|
|
unexpectedly"
This reverts commit https://github.com/ruby/csv/commit/5c6523da0a61.
This introduces another pbolem. We should try again later.
https://github.com/ruby/csv/commit/43a1d6fff1
Notes:
Merged: https://github.com/ruby/ruby/pull/5336
|
|
Ruby: [Bug #18245] [ruby-core:105587]
Reported by Hassan Abdul Rehman.
https://github.com/ruby/csv/commit/5c6523da0a
Notes:
Merged: https://github.com/ruby/ruby/pull/5336
|
|
(https://github.com/ruby/csv/pull/226)
GitHub: fix GH-225
With Ruby 3.0.2 and csv 3.2.1, the file
```ruby
require "csv"
File.open("example.tsv", "w") { |f| f.puts("foo\t\tbar") }
CSV.read("example.tsv", col_sep: "\t", strip: true)
```
produces the error
```
lib/csv/parser.rb:935:in `parse_quotable_robust': TODO: Meaningful
message in line 1. (CSV::MalformedCSVError)
```
However, the CSV in this example is not malformed; instead, ambiguous
options were provided to the parser. It is not obvious (to me) whether
the string should be parsed as
- `["foo\t\tbar"]`,
- `["foo", "bar"]`,
- `["foo", "", "bar"]`, or
- `["foo", nil, "bar"]`.
This commit adds code that raises an exception when this situation is
encountered. Specifically, it checks if the column separator either ends
with or starts with the characters that would be stripped away.
This commit also adds unit tests and updates the documentation.
https://github.com/ruby/csv/commit/cc317dd42d
Notes:
Merged: https://github.com/ruby/ruby/pull/5336
|
|
https://github.com/ruby/csv/commit/27c0b66c8f
Notes:
Merged: https://github.com/ruby/ruby/pull/5336
|
|
https://github.com/ruby/reline/commit/22d9262d79
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5334
|
|
https://github.com/ruby/bigdecimal/commit/a32f6cb9e2
|
|
Fix GH-214.
https://github.com/ruby/bigdecimal/commit/13e0e93f37
|
|
Fix GH-212.
https://github.com/ruby/bigdecimal/commit/900bb7fcf5
|
|
https://github.com/ruby/bigdecimal/commit/c019caeaba
|
|
Fixes GH-198.
https://github.com/ruby/bigdecimal/commit/4fbec55680
|
|
Fix GH-205
https://github.com/ruby/bigdecimal/commit/7d198394a2
|
|
https://github.com/ruby/bigdecimal/commit/8dc8cd339d
|
|
as BigDecimal_divide
https://github.com/ruby/bigdecimal/commit/11cb2c8840
|
|
results
Just in case for irrational or recurring results, the precision of the
quotient is set to at least more than 2*Float::DIG plus alpha.
[Bug #13754] [Fix GH-94]
https://github.com/ruby/bigdecimal/commit/99442c75d3
|
|
https://github.com/ruby/bigdecimal/commit/e864828b47
|
|
https://github.com/ruby/bigdecimal/commit/14e35f5a70
|
|
https://github.com/ruby/bigdecimal/commit/aa31ef2f33
|
|
Introduced in https://github.com/ruby/bigdecimal/commit/4792a917d806
`rb_absint_size` return the number of bytes needed to fit
the absolute integer, but negative integers need the sign, so one more
bit, and potentially one more byte.
https://github.com/ruby/bigdecimal/commit/0f3d5d0eb7
|
|
https://github.com/ruby/bigdecimal/commit/a834eb92a2
|
|
https://github.com/ruby/reline/commit/0895a0d4a1
|
|
This reverts commit 573d9d3a4a0f112379874cedf4e494515e4b3f15.
|
|
This reverts commit feaf4fbc3fa16382fbd07158c448c7b5bdae78b5.
This reverts commit 0d4bfbdbe1f880c712b3e60de5fce423e6096f8d.
This reverts commit ac4e0978ee4358430396403065eabe1aca05784f.
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5325
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5249
Merged-By: ioquatix <samuel@codeotaku.com>
|
|
|
|
|