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

70644 Коммитов

Автор SHA1 Сообщение Дата
aycabta 03f16d37bf [ruby/rdoc] Version 6.4.0
https://github.com/ruby/rdoc/commit/4797f28df8
2021-12-24 17:04:11 +09:00
aycabta 61ca29be1b Use UTF-8 for lib/reline on AppVeyor 2021-12-24 16:55:09 +09:00
Yusuke Endoh 71e85ec9b5
[rubygems/rubygems] Do not use IO#flock on Solaris
`io.flock(File::LOCK_EX)` fails on Solaris when the io is opened as
read-only. Due to this issue, `make install` of the ruby package failed
on Solaris.

https://github.com/rubygems/rubygems/commit/5905d17ab2
2021-12-24 16:04:29 +09:00
Yusuke Endoh 424800f707 [ruby/reline] Fix test input_keys to handle "hankaku" characters correctly 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
2021-12-24 15:01:17 +09:00
git 167dd73c6c Update default gems list at 1a1550ba5d [ci skip] 2021-12-24 05:41:11 +00:00
Sutou Kouhei 1a1550ba5d [ruby/csv] test: reduce size for stability on GitHub Actions
https://github.com/ruby/csv/commit/68461aead5
2021-12-24 14:35:33 +09:00
Sutou Kouhei 22ef4f6445 [ruby/csv] Revert "parser: fix a keep bug that some texts may be dropped 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
2021-12-24 14:35:33 +09:00
Sutou Kouhei 002ce9f515 [ruby/csv] parser: use row separator explicitly
It will improve performance a bit. (But I haven't confirmed it yet...)

https://github.com/ruby/csv/commit/06a65b0302
2021-12-24 14:35:33 +09:00
Sutou Kouhei 4a5d372ca8 [ruby/csv] parser: fix a keep bug that some texts may be dropped unexpectedly
Ruby: [Bug #18245] [ruby-core:105587]

Reported by Hassan Abdul Rehman.

https://github.com/ruby/csv/commit/5c6523da0a
2021-12-24 14:35:33 +09:00
Sutou Kouhei 56a5ae9f52 [ruby/csv] Fix a bug that all of ARGF contents may not be consumed
GitHub: fix GH-228

Reported by Rafael Navaza. Thanks!!!

https://github.com/ruby/csv/commit/81f595b6a1
2021-12-24 14:35:33 +09:00
Sutou Kouhei d137ce50a1 [ruby/csv] Bump version
https://github.com/ruby/csv/commit/e32b666731
2021-12-24 14:35:33 +09:00
adamroyjones c70dc3cafb [ruby/csv] Add handling for ambiguous parsing options (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
2021-12-24 14:35:33 +09:00
Nobuyoshi Nakada 47c53af168 [ruby/csv] Fix typos [ci skip] (https://github.com/ruby/csv/pull/224)
https://github.com/ruby/csv/commit/27c0b66c8f
2021-12-24 14:35:33 +09:00
Nobuyoshi Nakada 083cf6a577
sync_default_gems.rb: Expand GH-xxxx style GitHub links [ci skip] 2021-12-24 14:34:14 +09:00
Nobuyoshi Nakada 097c4a2adf
sync_default_gems.rb: GitHub links at word boundary only [ci skip] 2021-12-24 14:27:03 +09:00
aycabta 3a59abab08 [ruby/reline] Determine 1st char or 2nd char of surrogate pair correctly
https://github.com/ruby/reline/commit/182606c847
2021-12-24 13:57:46 +09:00
Koichi Sasada 6050e3e2a6 @@cv is not accessible from non-main ractors
Class variables (@@cv) is not accessible from non-main ractors.
But without this patch cached @@cv can be read.

fix [Bug #18128]
2021-12-24 13:52:02 +09:00
git e029560b22 Update default gems list at b0ad6cb371 [ci skip] 2021-12-24 02:20:07 +00:00
aycabta ae770cc372 [ruby/reline] Add encoding info to an assertion of editing line
https://github.com/ruby/reline/commit/22d9262d79
2021-12-24 11:03:34 +09:00
zverok cf83ba1da7 [DOC] Make sure new GC methods are documented 2021-12-24 10:36:29 +09:00
Hiroshi SHIBATA b0ad6cb371 Merge RubyGems-3.3.2 and Bundler-2.3.2 2021-12-24 10:35:31 +09:00
YO4 de0523fedd [ruby/irb] irb_info codepage mismatch
`chcp` returns different encoding

https://github.com/ruby/irb/commit/f80971994a
2021-12-24 10:32:14 +09:00
zverok 34deea3b42 Add docs for Refinement class 2021-12-24 10:31:04 +09:00
zverok fed1629ada Fix StructClass:: class method docs 2021-12-24 10:29:31 +09:00
Kenta Murata 9ccfc78346 [ruby/bigdecimal] Remove unused variable
https://github.com/ruby/bigdecimal/commit/ac7daa5f15
2021-12-24 09:44:23 +09:00
Kazuhiro NISHIYAMA 69380c60ce
Update badges from README.md [ci skip] 2021-12-24 09:05:12 +09:00
Victor Shepelev 0b999bef29
[DOC] Fix String#unpack and #unpack1 docs (#5331) 2021-12-23 21:58:13 +01:00
git eba05029b0 Update default gems list at 65d35502bd [ci skip] 2021-12-23 17:30:04 +00:00
Kenta Murata 65d35502bd
[ruby/bigdecimal] Version 3.1.1
https://github.com/ruby/bigdecimal/commit/2ef67c2cc7
2021-12-24 02:29:02 +09:00
Kenta Murata a1d9fbef05
[ruby/bigdecimal] Fix the result precision of BigDecimal#divmod
https://github.com/ruby/bigdecimal/commit/a32f6cb9e2
2021-12-24 02:29:01 +09:00
Kenta Murata 680a4ebb3c
[ruby/bigdecimal] Version 3.1.0
https://github.com/ruby/bigdecimal/commit/c3453d2b97
2021-12-24 02:29:01 +09:00
Burdette Lamar 0262f34905
[ruby/bigdecimal] Enhanced RDoc for BigDecimal (https://github.com/ruby/bigdecimal/pull/209)
* Enhanced RDoc for BigDecimal

* Update ext/bigdecimal/bigdecimal.c

Remove the instance number of `Float::DIG`.

* Update ext/bigdecimal/bigdecimal.c

Add BigDecimal call-seq without ndigits.

* Update ext/bigdecimal/bigdecimal.c

Replace the word sum with value or result in the description of BigDecimal().

* Update ext/bigdecimal/bigdecimal.c

Remove the instance value of Float::DIG.

* Update ext/bigdecimal/bigdecimal.c

Fix mis-description of precision

* Update ext/bigdecimal/bigdecimal.c

Fix the description of precision determination

* Update ext/bigdecimal/bigdecimal.c

Add the description of the precision in the Rational case.

https://github.com/ruby/bigdecimal/commit/acabb132a4

Co-authored-by: Kenta Murata <3959+mrkn@users.noreply.github.com>
2021-12-24 02:29:01 +09:00
Kenta Murata 79712fc083
[ruby/bigdecimal] Let BigDecimal#quo accept precision
Fix GH-214.

https://github.com/ruby/bigdecimal/commit/13e0e93f37
2021-12-24 02:29:00 +09:00
Kenta Murata 0b8638cd74
[ruby/bigdecimal] Add TODO comment
https://github.com/ruby/bigdecimal/commit/ef9cf4e69e
2021-12-24 02:29:00 +09:00
Kenta Murata 98918209b7
[ruby/bigdecimal] Allow passing both float and precision in BigDecimal#div
Fix GH-212.

https://github.com/ruby/bigdecimal/commit/900bb7fcf5
2021-12-24 02:29:00 +09:00
Jean Boussier d0897e3f3a
[ruby/bigdecimal] Improve extconf to allow using bigdecimal as a git gem
e.g.
```
gem "bigdecimal", github: "ruby/bigdecimal"
```

It would fail because bundler regenerates the `gemspec`,
so `bigdecimal_version` is gone.

https://github.com/ruby/bigdecimal/commit/bccaa66f2c
2021-12-24 02:28:59 +09:00
Kenta Murata 84ae7a5df9
[ruby/bigdecimal] Add BigDecimal#precision_scale
https://github.com/ruby/bigdecimal/commit/c019caeaba
2021-12-24 02:28:59 +09:00
Kenta Murata ea713009ba
[ruby/bigdecimal] [Doc] Add documentation of BigDecimal#n_significant_digits
https://github.com/ruby/bigdecimal/commit/ceaf16b03e
2021-12-24 02:28:59 +09:00
Kenta Murata aca96f7ec7
[ruby/bigdecimal] Add BigDecimal#scale
Fixes GH-198.

https://github.com/ruby/bigdecimal/commit/4fbec55680
2021-12-24 02:28:58 +09:00
BurdetteLamar 0c63aa11bc
[ruby/bigdecimal] Set rounding mode in example
https://github.com/ruby/bigdecimal/commit/8fc83dd2fe
2021-12-24 02:28:58 +09:00
BurdetteLamar a8243d07e1
[ruby/bigdecimal] Set rounding mode in example
https://github.com/ruby/bigdecimal/commit/42c999f728
2021-12-24 02:28:57 +09:00
BurdetteLamar de5c14d4d8
[ruby/bigdecimal] Enhanced RDoc for selected methods
https://github.com/ruby/bigdecimal/commit/0de9298d15
2021-12-24 02:28:57 +09:00
BurdetteLamar e043829a7f
[ruby/bigdecimal] Enhanced RDoc for selected methods
https://github.com/ruby/bigdecimal/commit/6139ea1092
2021-12-24 02:28:57 +09:00
Kenta Murata d905abb457
[ruby/bigdecimal] Fix BigDecimal#precision for single DECDIG case
Fix GH-205

https://github.com/ruby/bigdecimal/commit/7d198394a2
2021-12-24 02:28:56 +09:00
Kenta Murata 38e98cbdb7
[ruby/bigdecimal] Keep obj-to-Real link when VpReallocReal returns different pointer
https://github.com/ruby/bigdecimal/commit/252748de17
2021-12-24 02:28:56 +09:00
Kenta Murata 75f552e973
[ruby/bigdecimal] Fix the precision of the adjusted quotient
https://github.com/ruby/bigdecimal/commit/8dc8cd339d
2021-12-24 02:28:56 +09:00
Kenta Murata 7b2cfce543
[ruby/bigdecimal] Let BigDecimal_DoDivmod use the same precision calculation as BigDecimal_divide
https://github.com/ruby/bigdecimal/commit/11cb2c8840
2021-12-24 02:28:55 +09:00
Kenta Murata e1265c8198
[ruby/bigdecimal] Use larger precision in divide for irrational or recurring 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
2021-12-24 02:28:55 +09:00
Kenta Murata 8ee8ac6423
[ruby/bigdecimal] Fix trailing zeros handling in rb_uint64_convert_to_BigDecimal
Fix GH-192

https://github.com/ruby/bigdecimal/commit/eebc98b85a
2021-12-24 02:28:55 +09:00
Kenta Murata b2a74948b6
[ruby/bigdecimal] Add tests for the issue GH-192
https://github.com/ruby/bigdecimal/commit/e864828b47
2021-12-24 02:28:54 +09:00