Kenta Murata
928a06723d
[bigdecimal] Make bigdecimal Ractor safe
...
93fc392640
a90d13c4d0
2020-12-19 22:13:57 +09:00
Kenta Murata
97d4e72e0b
[bigdecimal] Use DBLE_FIG
...
12296dcb90
2020-12-19 22:13:57 +09:00
Kenta Murata
e1424c3501
[bigdecimal] Fix the default precision of Float#to_d
...
Fix https://github.com/ruby/bigdecimal/issues/70
[Bug #13331 ]
aa536cd4b5
2020-12-19 22:13:53 +09:00
Nobuhiro IMAI
e33eb09b76
ripper: fix #tok
on some error events [Bug 17345]
...
sorting alias target by event arity, and setup suitable `Elem` for error.
2020-12-19 17:32:39 +09:00
Nobuyoshi Nakada
5c9d6ea6b4
Strip trailing spaces [ci skip]
2020-12-19 15:34:37 +09:00
Kenta Murata
0cb556b457
[digest] Version 3.0.0
...
4bbd247a32
2020-12-19 15:08:01 +09:00
Kenta Murata
b66f52b0e3
[digest] Make digest Ractor safe
...
c13a024b85
9edca3f8be
378b56b6ca
2020-12-19 15:08:01 +09:00
Nobuyoshi Nakada
feacae193c
[digest] Added rb_digest_make_metadata to wrap metadata
...
7046fe6005
2020-12-19 15:08:01 +09:00
Kenta Murata
d5ab8e8562
[bigdecimal] Use rb_undef_alloc_func to undefine allocate
2020-12-19 02:29:31 +09:00
Koichi Sasada
e76b56f58e
support Ruby 2.x for openssl
2020-12-19 02:05:08 +09:00
Kenta Murata
c71934f8a5
[stringio] Version 3.0.0
...
831be01071
2020-12-18 22:00:07 +09:00
Kenta Murata
e1b5289a2b
[stringio] Add test-unit in the development dependencies
...
de010fc0e9
2020-12-18 22:00:07 +09:00
Kenta Murata
3d31944129
[stringio] Make stringio Ractor safe
...
ee3fec7512
18dcd045ef
18dcd045ef
2020-12-18 22:00:07 +09:00
Kenta Murata
14ca7f633c
[openssl] Fix dependencies
2020-12-18 21:58:41 +09:00
Koichi Sasada
b5588edc0a
openssl is ractor-safe
...
ossl_bn_ctx is C's global variable and it should be ractor-local
to make it ractor-safe.
2020-12-18 18:19:33 +09:00
Kenta Murata
b5de66e132
[strscan] Fix license comment and files
...
a999f2c6d1
2020-12-18 14:25:48 +09:00
Kenta Murata
5370963992
[strscan] Version 3.0.0
...
08645e4e77
2020-12-18 14:25:42 +09:00
Kenta Murata
985f0af257
[strscan] Make strscan Ractor safe ( #17 )
...
* Make strscan Ractor safe
* Add test-unit in the development dependencies
3c93c2bebe
2020-12-18 14:25:41 +09:00
Koichi Sasada
b44f7151c7
zlib is ractor-safe
2020-12-18 14:09:32 +09:00
Koichi Sasada
a07f249803
socket is ractor-safe.
2020-12-18 11:23:34 +09:00
Hiroshi SHIBATA
a09c3c6fe1
expand VERSION path for ruby repository.
2020-12-17 14:37:45 +09:00
Hiroshi SHIBATA
46ea74297e
Bump version to json-2.4.1 and use VERSION file for json version same as upstream
2020-12-17 14:20:42 +09:00
Kenta Murata
1bafb3cb47
[memory_view] Make MemoryView API Ractor-safe ( #3911 )
...
* memory_view.c: make Ractor-safe
* test/ruby/test_memory_view.rb: Add test_ractor
* memory_view: fix typo
* memory_view.c: Use st_update in unregster_exported_object
* memory_view: update dependency
2020-12-16 13:43:56 +09:00
Nobuyoshi Nakada
e0bdd54348
Ripper: Refined error callbacks [Bug #17345 ]
2020-12-15 21:36:23 +09:00
Hiroshi SHIBATA
ad3e3bd65a
Bump version to json-2.4.0
2020-12-15 19:54:58 +09:00
Kenta Murata
a86c147579
Import bigdecimal 2.0.2 ( #3905 )
...
* remove duplicated include
* Make BigDecimal#round with argument < 1 return Integer
Fixes [Bug #12780 ]
* Use a higher default precision for BigDecimal#power and #**
When a fractional power is given, increase the precision if the
precision isn't specified via power's second argument:
Float: increase by 15 (rough number of decimal precision in float)
BigDecimal: increase by adding similar precision modifier as done to
calculate the base precision.
Rational: double the precision, since a BigDecimal is created, but
the created BigDecimal uses the same precision.
Increasing the precision for these power calculations has the obvious
tradeoff of making the calculations slower.
Fixes Ruby Bug #17264
* Use DBLE_FIG for a Float value
* Version 2.0.1
Co-authored-by: pavel <pavel.rosicky@easy.cz>
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
2020-12-15 15:17:15 +09:00
Nobuyoshi Nakada
7898f4243f
ripper: return pushed new token instead of the token list
2020-12-15 10:26:50 +09:00
Alan Wu
a5fd651575
Reword docs for Fiddle::Function#call [ci skip]
...
I'm using `<code>` instead of `+` since `+` only works when it encloses
a single word.
2020-12-14 18:26:32 -05:00
Hiroshi SHIBATA
c2a60fec2f
Merge Psych-3.2.1 from ruby/psych
2020-12-14 20:13:12 +09:00
Masaki Matsushita
56918578ea
Remove unimplemented parameter from comment
...
:resolv_timeout of TCPSocket.new is not implemented for now.
2020-12-11 11:13:24 +09:00
Kenta Murata
9b0c36b390
Import fiddle-1.0.4 ( #3860 )
...
I don't use tool/sync_default_gem.rb because the last sync was incomplete.
Co-authored-by: Hiroshi SHIBATA <hsbt@ruby-lang.org>
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
Co-authored-by: sinisterchipmunk <sinisterchipmunk@gmail.com>
Co-authored-by: Sutou Kouhei <kou@clear-code.com>
2020-12-11 09:41:12 +09:00
Masaki Matsushita
78f188524f
Add connect_timeout to TCPSocket
...
Add connect_timeout to TCPSocket.new in the same way as Socket.tcp.
Closes [Feature #17187 ]
2020-12-10 20:52:29 +09:00
Kenta Murata
bb489aca58
memory_view.c: Add rb_memory_view_get_item and rb_memory_view_prepare_item_desc ( #3871 )
2020-12-10 00:24:36 +09:00
Kenta Murata
7e69296a2b
memory_view.c: Add rb_memory_view_extract_item_members ( #3855 )
2020-12-08 02:01:31 +09:00
Masaki Matsushita
5d8bcc4870
Revert getaddrinfo_a()
...
getaddrinfo_a() gets stuck after fork().
To avoid this, we need 1 second sleep to wait for internal
worker threads of getaddrinfo_a() to be finished, but that is unacceptable.
[Bug #17220 ] [Feature #17134 ] [Feature #17187 ]
2020-12-07 13:33:53 +09:00
Kenta Murata
60eabb1aa7
Revert "memory_view.c: Add rb_memory_view_extract_item_members"
...
This reverts the following three commits.
- ce707079c1
- 1a76bb56b0
- 51500eedef
2020-12-07 00:38:19 +09:00
Kenta Murata
51500eedef
memory_view.c: Add rb_memory_view_extract_item_members
2020-12-06 22:46:06 +09:00
Masaki Matsushita
76439eee68
Call cleanup function for getaddrinfo_a(3) only before fork()
...
Previously, rb_getaddrinfo_a_before_exec() is called from before_exec().
However, the function needs to be called only before fork().
The change moves it to before_fork().
2020-12-06 01:32:43 +09:00
Masaki Matsushita
c56a1c1953
Extend sleep time to 1.5 second in rb_getaddrinfo_a_before_exec()
...
After 94d49ed31c
, TestSocket#test_getaddrinfo_after_fork fails in some
platforms. To avoid this, the change extends sleep time to 1.5 second.
2020-12-06 01:01:13 +09:00
Nobuyoshi Nakada
d2b7e1e4b2
Protoized old pre-ANSI K&R style definitions
2020-12-05 14:57:31 +09:00
Masaki Matsushita
94d49ed31c
Add a hook before fork() for getaddrinfo_a()
...
We need stop worker threads in getaddrinfo_a() before fork().
This change adds a hook before fork() that cancel all outstanding requests
and wait for all ongoing requests. Then, it waits for all worker
threads to be finished.
Fixes [Bug #17220 ]
2020-12-04 23:31:51 +09:00
Jeremy Evans
0adc426ca5
[ruby/zlib] Add Zlib::Inflate#inflate :buffer keyword argument
...
If a buffer keyword argument is given, it is used as the buffer,
instead of creating new strings. This can result in significantly
lower memory usage during inflation.
Implements #19
dac9a9b57d
2020-12-04 19:12:32 +09:00
Jeremy Evans
bc63ec57e7
[ruby/zlib] Allow Zlib.crc32 and .adler32 to accept IO instance
...
This reads from the IO in 8192 byte chunks, so you don't need to
have the entire string in memory.
Fixes #16
ba9793c550
2020-12-04 19:12:20 +09:00
Jeremy Evans
a60dfff434
[ruby/zlib] Document that gets can return nil when eof? returns false
...
This behavior differs from File#gets.
Fixes [Bug #13904 ]
448e41efdd
2020-12-04 19:11:30 +09:00
aycabta
5b1ebb8ead
[ruby/readline-ext] Rename depend.gem with depend-gem
...
897ffe26a6
2020-12-03 17:35:29 +09:00
aycabta
b526db85fe
[ruby/readline-ext] Version 0.1.1
...
6d55854434
2020-12-03 17:35:29 +09:00
aycabta
b619197dfa
Use gemified depend
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
eab4aa4178
[ruby/io-wait] Added extensions
...
664c93b2ff
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
09266eccf4
[ruby/io-wait] Fixed regexp to reject .travis* at the toplevel only
...
4434b10e46
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
7fcbe07d61
[ruby/io-wait] Exclude dot-files for CIs
...
12cce69ddf
2020-12-03 17:35:29 +09:00