bogdanvlviv
cdb5258bec
Fix `ENV.except`'s docs
2020-09-26 12:02:00 -04:00
Benoit Daloze
dead747874
Use Tempfile.create instead of Tempfile.open in test_io.rb
2020-09-26 12:36:31 +02:00
NARUSE, Yui
4e31cbc070
update-deps
...
https://github.com/ruby/ruby/runs/1169621878
2020-09-26 18:55:00 +09:00
NARUSE, Yui
ce92d15596
fix typo [Bug #17194 ]
2020-09-26 18:24:28 +09:00
Aaron Patterson
137fa5b27e
Fibers should update themselves on compaction
...
We should let fibers update their own references on compaction. I don't
think we need the thread to update the associated fiber because there
will be a fiber object on the heap that knows how to update itself.
2020-09-25 15:52:04 -07:00
Burdette Lamar
8b42474a26
Enhanced RDoc for String#succ ( #3590 )
...
* Enhanced RDoc for String#succ
2020-09-25 15:13:10 -05:00
Alan Wu
24820d508b
Return nil when argument to ObjectSpace.internal_class_of is T_IMEMO
...
The added test case crashes the interpreter because it makes
ObjectSpace.internal_class_of return the second VALUE slot of an AST
imemo object. The second VALUE slot of `struct rb_ast_struct` is
not a VALUE and not a pointer to a Ruby object.
2020-09-25 09:27:49 -07:00
Kenta Murata
3a00f2a0f4
ext/readline/depend: update-deps --fix
2020-09-26 00:34:27 +09:00
卜部昌平
722a1e479f
RBIMPL_ALIGNAS: reorder #ifdef blocks
...
Since r63443, `-std=gnu99 -D_XOPEN_SOUCE=x00` is added to Solaris'
`CPPFLAGS`. `CPPFLAGS` is shared among `CC` / `CXX`. This results in
both `__STDC_VERSION__` and `__cplusplus` to be defined at the same time
for a C++ compilation, only on Solaris.
It seems the `CPPFLAGS` addition is intentional. We sould not touch
that part. Instead we need to reroute this by always check for
`__cplusplus` first.
2020-09-26 00:30:36 +09:00
git
f7c4118263
* 2020-09-26 [ci skip]
2020-09-26 00:27:30 +09:00
Yusuke Endoh
b271bd73e0
test/net/smtp/test_smtp.rb: Stop io leaks
...
`make test-all` was very noisy by warnings like
```
Leaked file descriptor: Net::TestSMTP#test_start_with_position_argument: 6 : #<TCPSocket:fd 6, AF_INET, 127.0.0.1, 43770>
```
2020-09-26 00:20:06 +09:00
Kenta Murata
8119e5b0e6
memory_view.c: prevent "warning: instance variable __memory_view__ not initialized"
2020-09-25 23:56:38 +09:00
Yusuke Endoh
abdd3c5616
test/ruby/test_enumerator.rb: check the deprecation warning
...
by explicitly setting `Warning[:deprecated] = true`.
I removed "capture_io" at 79063d8cbf
, but
it printed the warning when `RUBYOPT=-w`.
This change makes the warnings enabled explicitly, capture and check the
warning.
2020-09-25 23:45:42 +09:00
Yusuke Endoh
0db5324e0d
test/ruby/test_memory_view.rb: prevent "assigned but unused variable - members"
2020-09-25 23:39:35 +09:00
Yusuke Endoh
79063d8cbf
test/ruby/test_enumerator.rb: remove capture_io that is no longer needed
...
The deprecation warning was disabled, and the code to check the warning
was removed at 996af2ce08
, thus capture_io
is no longer needed.
2020-09-25 23:38:01 +09:00
Yusuke Endoh
e4b2c4fca5
t/json/json_common_interface_test.rb: fix wrong indentation
...
to prevent:
```
test/json/json_common_interface_test.rb:182: warning: mismatched indentations at 'end' with 'def' at 169
```
2020-09-25 23:37:12 +09:00
Koichi Sasada
0096d2b895
freeze all Range objects.
...
Matz want to try to freeze all Range objects.
[Feature #15504 ]
2020-09-25 22:16:55 +09:00
aycabta
f4328d7f5d
[ruby/readline-ext] Remove unnecessary header files from depend
...
https://github.com/ruby/readline-ext/commit/f9783c0739
2020-09-25 21:34:34 +09:00
Kenta Murata
c04c34df47
memory_view.h: brush up the description in the comment
2020-09-25 21:32:00 +09:00
Kenta Murata
56012d2f7e
NEWS.md: Add memory view entry
...
The memory view interface added at 890bc2cdde
is experimental new C-API
set. This feature permits extension libraries to share a memory area
that contains such a numerical array and a bitmap image. This is
designed by referring to Python's buffer protocol.
[[Feature #13767 ]]
[[Feature #14722 ]]
2020-09-25 21:16:10 +09:00
Koichi Sasada
caaa36b4e6
prohibi method call by defined_method in other racotrs
...
We can not call a non-isolated Proc in multiple ractors.
2020-09-25 20:37:38 +09:00
Kenta Murata
890bc2cdde
Buffer protocol proposal ( #3261 )
...
* Add buffer protocol
* Modify for some review comments
* Per-object buffer availability
* Rename to MemoryView from Buffer and make compilable
* Support integral repeat count in memory view format
* Support 'x' for padding bytes
* Add rb_memory_view_parse_item_format
* Check type in rb_memory_view_register
* Update dependencies in common.mk
* Add test of MemoryView
* Add test of rb_memory_view_init_as_byte_array
* Add native size format test
* Add MemoryView test utilities
* Add test of rb_memory_view_fill_contiguous_strides
* Skip spaces in format string
* Support endianness specifiers
* Update documentation
* Support alignment
* Use RUBY_ALIGNOF
* Fix format parser to follow the pack format
* Support the _ modifier
* Parse count specifiers in get_format_size function.
* Use STRUCT_ALIGNOF
* Fix test
* Fix test
* Fix total size for the case with tail padding
* Fix rb_memory_view_get_item_pointer
* Fix rb_memory_view_parse_item_format again
2020-09-25 20:32:02 +09:00
Hiroshi SHIBATA
6eeacbbc36
Extract assert assertion to assert_include and assert_not_include.
2020-09-25 20:28:31 +09:00
Kazuhiro NISHIYAMA
8705dba194
Update dependencies
2020-09-25 19:21:36 +09:00
Kazuhiro NISHIYAMA
cd44febc93
Add check_dependencies workflow
2020-09-25 19:21:36 +09:00
Hiroshi SHIBATA
81dc37b1b4
assert_true is not provided by test-unit
2020-09-25 17:28:42 +09:00
Marc-Andre Lafortune
e30d1b0923
Fix pure parser with unclosed arrays / objects [ Fix #314 ]
2020-09-25 17:28:42 +09:00
Jean Boussier
927a377a7c
[flori/json] Fix JSON.load_file doc
...
https://github.com/flori/json/commit/cb61a00ba8
2020-09-25 17:28:42 +09:00
BurdetteLamar
038252fe66
[flori/json] Partial compliance with doc/method_documentation.rdoc
...
https://github.com/flori/json/commit/6dfa885134
2020-09-25 17:28:42 +09:00
Burdette Lamar
71f64e15b9
[flori/json] Enhanced RDoc for JSON.dump ( #443 )
...
* Enhanced RDoc for JSON.dump
https://github.com/flori/json/commit/03f1699ec4
2020-09-25 17:28:42 +09:00
Julien Feltesse
3d5e833998
bundle the LICENSE file in the gem
2020-09-25 17:28:42 +09:00
BurdetteLamar
de0e0ffad4
[flori/json] Nodoc for recurse_proc
...
https://github.com/flori/json/commit/f8c0fe2408
2020-09-25 17:28:42 +09:00
BurdetteLamar
e9096f796c
[flori/json] RDoc for JSON.load with proc
...
https://github.com/flori/json/commit/a55c91934e
2020-09-25 17:28:42 +09:00
Karol Bucek
0089854fc5
[test] properly 'skip' test on JRuby
...
an early return still caused ensure to execute,
setting JSON constant to `nil` for later tests!
2020-09-25 17:28:42 +09:00
Karol Bucek
f8d43e5370
unify json-java gemspec with the baseline
2020-09-25 17:28:42 +09:00
BurdetteLamar
8c057bb845
[flori/json] RDoc example for JSON.load
...
https://github.com/flori/json/commit/e4eead665c
2020-09-25 17:28:42 +09:00
BurdetteLamar
36b2177ea8
[flori/json] Enhance RDoc for JSON.parse
...
https://github.com/flori/json/commit/33e64ef255
2020-09-25 17:28:42 +09:00
BurdetteLamar
71b1bbad02
[flori/json] Move options from #generate and #parse to common area
...
https://github.com/flori/json/commit/20d7be605a
2020-09-25 17:28:42 +09:00
Keith Bennett
c3614877d2
[flori/json] Add `load_file` and `load_file!` methods, with tests. Fixes issue #386 .
...
https://github.com/flori/json/commit/0be363c99b
2020-09-25 17:28:42 +09:00
Jean Boussier
e1659af372
Add an option to escape forward slash character
...
Squashed commit of the following:
commit 26d181059989279a79c433cedcd893b4f52e42ee
Author: Francois Chagnon <francois.chagnon@jadedpixel.com>
Date: Tue Sep 15 21:17:34 2015 +0000
add config options for escape_slash
commit fa282334051b16df91ca097dd7304b46f3bc7719
Author: Francois Chagnon <francois.chagnon@jadedpixel.com>
Date: Mon Feb 9 21:09:33 2015 +0000
add forward slash to escape character
2020-09-25 17:28:42 +09:00
Soutaro Matsumoto
c5ea060ef8
Update NEWS about RBS ( #3579 )
2020-09-25 17:08:39 +09:00
Koichi Sasada
25cfb0c040
Range is based on Struct.
...
Range can be shareable because it is implemented by Struct.
2020-09-25 16:00:13 +09:00
Koichi Sasada
96739c4222
Frozen Struct can be shareable.
...
A frozen Struct object which refers to shareable objects should be
shareable.
2020-09-25 16:00:13 +09:00
Masaki Matsushita
97416ae54c
Describe resolv_timeout in NEWS
2020-09-25 15:47:47 +09:00
Masaki Matsushita
f2d1808e73
Add comments for resolv_timeout
2020-09-25 15:39:26 +09:00
Masaki Matsushita
511fe23fa2
Add resolve_timeout to TCPSocket [Feature #17134 ]
2020-09-25 15:19:14 +09:00
Jean Boussier
b72f9200ac
[ruby/psych] Forward keyword arguments in load_file and load_stream
...
https://github.com/ruby/psych/commit/4e1dd37f09
2020-09-25 13:11:33 +09:00
Hiroshi SHIBATA
8ea1021f19
[ruby/psych] Bump version to 3.2.0
...
https://github.com/ruby/psych/commit/181a727c90
2020-09-25 13:11:33 +09:00
SzymonKowalczyk
263c43487f
[ruby/psych] Revert psych version
...
https://github.com/ruby/psych/commit/55a294fcd0
2020-09-25 13:11:33 +09:00
SzymonKowalczyk
f794c928a0
[ruby/psych] Update SNAKEYAML CVE-2017-18640
...
to version 1.26
https://github.com/ruby/psych/commit/b2802135e7
2020-09-25 13:11:32 +09:00