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

60256 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 0742585e7e
Consitified `rb_scan_args_set` 2020-02-14 15:56:37 +09:00
Kazuhiro NISHIYAMA 36b7e95744
Fix typos and add a space [ci skip] 2020-02-14 14:26:19 +09:00
Burdette Lamar b9129dac21
Enhanced doc for ENV
* More on ENV examples
2020-02-14 14:18:48 +09:00
git c0ebf64ae7 * 2020-02-14 [ci skip] 2020-02-14 00:08:12 +09:00
Yusuke Endoh fad98c6c61 test/irb/test_completion.rb: suppress a warning: unused literal ignored 2020-02-14 00:07:28 +09:00
Yusuke Endoh 6bfc576271 spec/ruby/library/socket/constants/constants_spec.rb: skip on Android
IP_MAX_MEMBERSHIPS seems not to be defined on Android
2020-02-13 23:16:10 +09:00
Yusuke Endoh bbc6799334 spec/ruby/library/socket/addrinfo/getnameinfo_spec.rb: skip on Android
FreeBSD's GETNAMEINFO(3) says:

> If a link-layer address or UNIX-domain address is passed to
> getnameinfo(), its ASCII representation will be stored in host.  The
> string pointed to by serv will be set to the empty string if non-NULL;
> flags will always be ignored.

Android seems to behave like FreeBSD.
2020-02-13 23:13:17 +09:00
Yusuke Endoh 09a042ae04 spec/ruby/library/etc/: skip the specs related to group on Android
User/group system on Android seems different from normal Linux.
2020-02-13 23:11:28 +09:00
Yusuke Endoh db8c8c0916 spec/ruby/library/socket/addrinfo: skip the specs that uses SOCK_SEQPACKET on Android
SOCK_SEQPACKET seems not to be supported on Android
2020-02-13 23:10:03 +09:00
Yusuke Endoh 89bfad17d5 spec/ruby/library/syslog: skip the specs that use LOG_PERROR on Android
LOG_PERROR is defined on Android, but not implemented yet.
See also f3c4e620ac.
2020-02-13 23:08:31 +09:00
Yusuke Endoh c6ebbbd38b spec/ruby: skip the specs that use /etc/passwd on Android
There is no /etc/passwd on Android
2020-02-13 23:06:33 +09:00
Yusuke Endoh ca53ab581b spec/ruby/library/etc/confstr_spec.rb: skip on Android
There seems to be no _CS_PATH on Android.
2020-02-13 23:04:15 +09:00
Yusuke Endoh 02233e171c spec/ruby/core/process/spawn_spec.rb: Use / instead of /tmp
because there is no /tmp on Android.
2020-02-13 23:03:07 +09:00
Yusuke Endoh ed549f80b6 spec/ruby/core/process/clock_getres_spec.rb: skip on Android
in the same way as FreeBSD and OpenBSD.
I guess that the spec makes too strong assumption.
2020-02-13 23:00:30 +09:00
Yusuke Endoh 022268ae00 spec/ruby/core/encoding/locale_charmap_spec.rb: locale_charmap is UTF-8 on Android
nl_langinfo(CODESET) always returns UTF-8 on Android, regardless to
LC_ALL=C.
2020-02-13 23:00:03 +09:00
Yusuke Endoh a11fa7d8cd spec/ruby/core/dir/home_spec.rb: exclude Android
I couldn't find a robust way to get the home path except ENV["HOME"] on
Android Termux.
2020-02-13 22:56:42 +09:00
Hiroshi SHIBATA 4a2b99795a
Move the English entries to the default gems at docs 2020-02-13 20:36:44 +09:00
Hiroshi SHIBATA 2c5764ec22
Promote English to the default gems. 2020-02-13 20:35:34 +09:00
Kazuhiro NISHIYAMA aeddffafc8 Add "test-all TESTS=--repeat-count=2" to test_task 2020-02-13 13:54:24 +09:00
Nobuyoshi Nakada fce667ed08
Get rid of warnings/exceptions at cleanup
After the encoding index instance variable is removed when all
instance variables are removed in `obj_free`, then `rb_str_free`
causes uninitialized instance variable warning and nil-to-integer
conversion exception.  Both cases result in object allocation
during GC, and crashes.
2020-02-13 12:46:48 +09:00
S-H-GAMELINKS b1b155ff03 support multi-run test for test/did_you_mean/test_verbose_formatter.rb 2020-02-13 11:07:38 +09:00
S-H-GAMELINKS 778c397310 Fix remove warning & support multi-run test for test/psych/visitors/test_to_ruby.rb 2020-02-13 11:01:15 +09:00
S-H-GAMELINKS 572d9b93bb support multi-run test for test/webrick/test_filehandler.rb 2020-02-13 10:37:40 +09:00
Yusuke Endoh 377c63366f test/rubygems/test_gem_commands_setup_command.rb: Allow /bin/env
Follow up of 65201c054a
2020-02-13 10:16:04 +09:00
Koichi Sasada 53a8b1486b skip SEGV test if RUBY_ON_BUG is specified 2020-02-13 04:20:22 +09:00
Koichi Sasada 99a8742067 should be compared with called_id
me->called_id and me->def->original_id can be different sometimes
so we should compare with called_id, which is mtbl's key.
(fix GH-PR #2869)
2020-02-13 03:30:22 +09:00
git bc1dbed16c * 2020-02-13 [ci skip] 2020-02-13 00:15:22 +09:00
John Hawthorn ed7b46b66b Use inline cache for super calls 2020-02-13 00:14:55 +09:00
Hiroshi SHIBATA a91ce05046
Move the entries of tempfile on docs 2020-02-12 20:34:19 +09:00
Hiroshi SHIBATA bbd1ed626f
Promote tmpdir to the default gems 2020-02-12 20:34:19 +09:00
Nobuyoshi Nakada 160d3165eb
Copy non-inlined encoding index 2020-02-12 20:09:57 +09:00
Nobuyoshi Nakada bdf3032e35
Make temporary lock string encoding free
As a temporary lock string is hidden, it can not have instance
variables, including non-inlined encoding index.
2020-02-12 19:58:22 +09:00
Hiroshi SHIBATA 1b219f1fb2
Move the entries of tempfile on docs 2020-02-12 19:47:31 +09:00
Hiroshi SHIBATA b8e7bd9f44
Promote tempfile to the default gems. 2020-02-12 19:46:34 +09:00
aycabta 15cacf1f55 Add test_complete_symbol
The previous version of the test method used a symbol, ":abcdefg" to complete
but longer symbols that can be completed are defined by other test methods of
other libs.
2020-02-12 19:40:10 +09:00
S-H-GAMELINKS 775e31c801 Add array.rb to .document 2020-02-12 17:46:58 +09:00
Yusuke Endoh 65201c054a test/rubygems: Try not only /usr/bin/env but also /bin/env
RubyGems chooses available one from the two

20b0d60948/lib/rubygems/installer.rb (L38)

So, it is good not to hard-code /usr/bin/env in tests.
2020-02-12 17:33:41 +09:00
Yusuke Endoh 2090011dbd test/etc/test_etc.rb: skip some tests on Android
Android user management seems different from normal Unix system.
2020-02-12 17:28:29 +09:00
Nobuyoshi Nakada 52cdf400ef
Workaround of instance variable on hidden object
Since 9d9aea7fe5, generic instance
variables need `iv_index_tbl` in the object's class.  As hidden
objects, however, have no class, access to the variables causes a
segfault.  Get rid of that segfault by raising an exception, for
the time being.
2020-02-12 15:05:29 +09:00
Nobuyoshi Nakada 921916ff9e
Isolate the test for Encoding#replicate
It has global side effect which cannot be reverted.
2020-02-12 14:50:46 +09:00
Hiroshi SHIBATA 166c4a6a28
Revert "[ruby/irb] Add test_complete_symbol"
This reverts commit 3af3431c2c.
2020-02-12 14:38:40 +09:00
aycabta 16f5d63bad [ruby/irb] Use 0.step instead of (..0).each for Ruby 2.5
https://github.com/ruby/irb/commit/5d628ca40e
2020-02-12 13:14:28 +09:00
aycabta 8b8cc01229 [ruby/irb] Fix auto indent with closed brace
A closed brace in auto-indent shouldn't affect the next brace in the same line,
but it behaves like below:

  p() {
    }

It's a bug.

https://github.com/ruby/irb/commit/fbe59e344f
2020-02-12 13:14:28 +09:00
aycabta 0719e1be11 [ruby/irb] Check doc namespace correctly
IRB::InputCompletor::PerfectMatchedProc crashes when doc not found because a
variable name was incorrect.

https://github.com/ruby/irb/commit/889fd4928f
2020-02-12 13:14:28 +09:00
aycabta 3af3431c2c [ruby/irb] Add test_complete_symbol
https://github.com/ruby/irb/commit/dbbf086c1f
2020-02-12 13:14:28 +09:00
Nobuyoshi Nakada 985d1b9ec4
Fixed a potential memory leak
`rb_str_new_cstr` can raise a `NoMemoryError`.
2020-02-12 11:58:56 +09:00
Nobuyoshi Nakada 155ab9caa6
Removed unnecessary conversion
Paths in `rb_execarg_t` should have been converted already.
2020-02-12 11:58:34 +09:00
Jeremy Evans 7a288df7b8 Make yield in singleton class definitions in methods a SyntaxError
This behavior was deprecated in 2.7 and scheduled to be removed
in 3.0.

Calling yield in a class definition outside a method is now a
SyntaxError instead of a LocalJumpError, as well.
2020-02-11 12:44:23 -08:00
Jeremy Evans ea32715e00 Add backwards compatibility example macro for rb_eval_cmd_kwd [ci skip] 2020-02-11 08:52:14 -08:00
git 28bff9dd98 * 2020-02-12 [ci skip] 2020-02-12 01:47:02 +09:00