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
Charles Oliver Nutter
33641e00cd
Remove private_iv_get
...
The only remaining use of this function was to get the internal
message object from an exception's hidden `mesg` instance
variable to allow it to be dumped wiithout converting to a string.
As discussed in #103 , this exposes internal implementation details
of CRuby, and ultimately does not provide any real utility to the
user since they can't directly inspect this hidden variable. The
test change here is to reflect CRuby behavior that denies equality
if the internal message objects do not match, as is the case after
the exception has been loaded and now has a simple String value.
The impact to users is that exceptions with special hidden message
objects will convert those objects to String during marshaling
through YAML. I believe this only affects NameError and its
descendants, since users can't set this field directly on their
own exception types.
Fixes #103 .
2020-09-25 13:11:32 +09:00
Koichi Sasada
6081ba4a87
refactoring a test code.
...
make a test more clear.
2020-09-25 13:07:07 +09:00
Koichi Sasada
d247dedade
Ractor.yield should raise if out-port is closed
...
Ractor.yield should raise Ractor::ClosedError if current Ractor's
outgoing-port is closed.
2020-09-25 12:53:58 +09:00
Koichi Sasada
5286526346
frozen T_OBJECT can be shareable.
...
If an T_OBJECT object is frozen and all ivars are shareable,
the object should be shareable.
2020-09-25 12:52:53 +09:00
Koichi Sasada
fde136152e
should not check taint flag on rubyspec.
...
Now taint flag is obsolete and it is used fro shareaable flag.
So we should not check this flag.
2020-09-25 12:52:53 +09:00
卜部昌平
c6c241e49c
enrich comment
...
Added description and URL about nested flexible array member.
2020-09-25 11:38:33 +09:00
卜部昌平
4cc501bcfd
ext/-test-/RUBY_ALIGNOF: skip C++ when no compiler
...
C++ compilers are optional. Skip C++ tests when they are absent.
2020-09-25 11:38:33 +09:00
卜部昌平
e75aed7abb
RBIMPL_ALIGNOF: do not use constexpr
...
Was definitely a bad idea to use constexpr. It is not ubiquitous.
2020-09-25 11:38:33 +09:00
卜部昌平
0b77a86d1e
ext/-test-/RUBY_ALIGNOF: add minimalistic test
...
Check if RUBY_ALIGNOF(double) is the alignment to store a double inside
of a struct.
2020-09-25 11:38:33 +09:00
卜部昌平
873fb1aa4c
ALLOCA_N: do not use RUBY_ALIGNOF
...
Now that RUBY_ALIGNOF behaves like C11's _Alignof. This is not
necessarily the best stack arrangement. We can just give up using
__builtin_alloca_with_align(), and let alloca choose what is optimal.
2020-09-25 11:38:33 +09:00
卜部昌平
e9fb2bc873
RBIMPL_ALIGNOF: do not use __alignof__
...
It is reported that on a system of i386 System V ABI, GCC returns 8 for
__alignof__(double). OTOH the ABI defines alignments of double to be 4,
and ISO/IEC 9899:2011 reads that _Alignof(double) shall return 4 on such
machine. What we want in ruby is 4 instead of 8 there. We cannot use
__alignof__.
Additionally, both old GCC / old clang return 8 for _Alignof(double) on
such platforms. They are their bugs, and already fixed in recent
versions. But we have to support older compilers for a while. Shall
check sanity of _Alignof.
2020-09-25 11:38:33 +09:00
卜部昌平
fe875be01a
rb_cv_have_alignas: not used any longer
...
Availability of `alignas` is checked in include/ruby/internal/stdalign.h
now. That does not need this configure check. Also as commented in the
header, we see `_Alignas` being inadequate for our purpose.
2020-09-25 11:38:33 +09:00
Nobuyoshi Nakada
996af2ce08
Disable deprecation warning by the default [Feature #16345 ]
...
And `-w` option turns it on.
2020-09-25 09:50:33 +09:00
Burdette Lamar
83ff0f74bf
Enhanced RDoc for String#match? ( #3576 )
...
* Enhanced RDoc for String#match?
2020-09-24 18:38:11 -05:00
Hiroshi SHIBATA
53acf6686a
Revert "[ruby/webrick] Add test for shutdown_pipe"
...
This reverts commit c06eab13290757fc326bb2a6e3ac25cd53e00894.
2020-09-25 07:54:01 +09:00
Hiroshi SHIBATA
c5960d51d1
Revert "[ruby/webrick] Fix shutdown_pipe test issue"
...
This reverts commit b8fdd38b2e01abcfd4cc8d007a3b3afb285f5ddb.
2020-09-25 07:33:25 +09:00
Burdette Lamar
38385d28df
Enhanced RDoc for String ( #3574 )
...
Methods:
=~
match
2020-09-24 13:23:26 -05:00
Burdette Lamar
6fe2a9fcda
Enhanced RDoc for String ( #3569 )
...
Makes some methods doc compliant with https://github.com/ruby/ruby/blob/master/doc/method_documentation.rdoc . Also, other minor revisions to make more consistent.
Methods:
==
===
eql?
<=>
casecmp
casecmp?
index
rindex
2020-09-24 10:55:43 -05:00
git
b30af31c37
* 2020-09-25 [ci skip]
2020-09-25 00:26:03 +09:00
Koichi Sasada
7ad3aff48d
Ractor#close_outgoping cancel Ractor.yield
...
Ractor#close_outgoing should cancel waiting Ractor.yield. However,
yield a value by the Ractor's block should not cancel (to recognize
terminating Ractor, introduce rb_ractor_t::yield_atexit flag).
2020-09-25 00:25:38 +09:00
Hiroshi SHIBATA
757e185cee
Revert "[ruby/webrick] Allow empty POST and PUT requests without content length"
...
This reverts commit ed12019ce6abe87aac87ec77ac081d37b25180a2.
https://github.com/ruby/ruby/runs/1160423667?check_suite_focus=true#step:14:752
2020-09-24 22:20:02 +09:00
Hiroshi SHIBATA
588ac990ff
[ruby/webrick] Manually pick commit from upstream repo
...
Fix test when run with US-ASCII encoding
f402aafb36
2020-09-24 21:41:11 +09:00