summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-12-07[ruby/irb] Revert "Reidline mode needs Reline what needs ↵aycabta
String#grapheme_clusters" This reverts commit 2b0b19b87c60d2cdb329979acbb96e12a1f940e7. New IRB parser needs new Ripper what has lex_state too. The new Ripper is adopted by Ruby 2.5 or later. https://github.com/ruby/irb/commit/9ab6e35a2c
2019-12-07[ruby/irb] Reidline mode needs Reline what needs String#grapheme_clustersaycabta
https://github.com/ruby/irb/commit/2b0b19b87c
2019-12-07[ruby/reline] Support Ruby 2.5 or later for String#grapheme_clustersaycabta
https://github.com/ruby/reline/commit/33e8c8f15b
2019-12-07test/ruby/test_file_exhaustive.rb: shorten the name of temporary dirYusuke Endoh
``` 1) Error: TestFileExhaustive#test_socket_p: ArgumentError: too long unix socket path (109bytes given but 108bytes max) /export/home/users/chkbuild/cb-sunc/tmp/build/20191207T024036Z/ruby/test/ruby/test_file_exhaustive.rb:155:in `initialize' ```
2019-12-07* 2019-12-07 [ci skip]git
2019-12-07Adding s390x support (#2727)Namrata Bhave
2019-12-06Test interfaces include localhostKazuhiro NISHIYAMA
When interfaces do not include localhost, some other tests may fail.
2019-12-05Introduce an "Inline IVAR cache" structAaron Patterson
This commit introduces an "inline ivar cache" struct. The reason we need this is so compaction can differentiate from an ivar cache and a regular inline cache. Regular inline caches contain references to `VALUE` and ivar caches just contain references to the ivar index. With this new struct we can easily update references for inline caches (but not inline var caches as they just contain an int)
2019-12-06* 2019-12-06 [ci skip]git
2019-12-06Detect started threads when require onlyKazuhiro NISHIYAMA
2019-12-06Do not start thread when `require 'drb/drb'` onlyKazuhiro NISHIYAMA
2019-12-05test/lib/jit_support.rb: Update the regexp for iccYusuke Endoh
MJIT_CC is always an absolute path.
2019-12-05lib/drb/drb.rb: suppress warning: instance variable @pool_proxy not initializedYusuke Endoh
2019-12-05coroutine/ucontext/Context.c: define __EXTENSIONS__ explicitlyYusuke Endoh
instead of ruby/config.h, per samuel's request. https://github.com/ruby/ruby/commit/dbfd4b780e3914a3f27e92c2248254452bf0fd6b#diff-7fd78c3cc8a19b7e0637502983ec26ff
2019-12-05ext/openssl/extconf.rb: check with -Werror=deprecated-declarationsNobuyoshi Nakada
This reverts commit 0d7d8b2989e1738dd902d354cc41186899e6b71e, but restore `$warnflags` without the flag, to get rid of using deprecated functions.
2019-12-05Fix `warning: already initialized constant DidYouMean::VERSION`Kazuhiro NISHIYAMA
``` .../gems/did_you_mean-1.3.1/lib/did_you_mean/version.rb:2: warning: already initialized constant DidYouMean::VERSION .../lib/did_you_mean/version.rb:2: warning: previous definition of VERSION was here ```
2019-12-05ext/psych/extconf.rb: braced VPATH is for nmake onlyNobuyoshi Nakada
2019-12-05test/io/console/test_io_console.rb: add a memo for the mysterious hackYusuke Endoh
2019-12-05Change encoding of completion list...for more testsaycabta
2019-12-05move an interrupt point.Koichi Sasada
`args_ptr` can be corrupted by interrupt handlers. Pointed by nagachika <https://ruby-trunk-changes.hatenablog.com/entry/ruby_trunk_changes_20191204>.
2019-12-05test/io/console/test_io_console.rb: Try the hack for SolarisYusuke Endoh
I'm not entirely sure why, but test_set_winsize_console gets stuck on Solaris (and if I recall, macOS). I found a hack for FreeBSD, so I want to give it a try on Solaris too.
2019-12-04Add missing dependencyTakashi Kokubun
https://travis-ci.org/ruby/ruby/jobs/620972117
2019-12-04MJIT_CC and MJIT_SUPPORT are not a prefixTakashi Kokubun
0b19e15a1239bff9ae854f522f954206ec910cf8 was also for "MJIT_SUPPORT" too.
2019-12-04Prefer using MJIT_CC for JIT support checkTakashi Kokubun
because Solaris might have CC=cc and we'd like to check full path MJIT_CC=/opt/developerstudio12.5/bin/cc instead.
2019-12-05parse.y: suppress "set but not used" warnings on ripper.yYusuke Endoh
2019-12-05add additional CF info for CI envKoichi Sasada
Introduce new RUBY_DEBUG option 'ci' to inform Ruby interpreter that an interpreter is running on CI environment. With this option, `rb_bug()` shows more information includes method entry information, local variables information for each control frame.
2019-12-05fix parameterKoichi Sasada
2019-12-05ext/openssl/extconf.rb: do not use -Werror=deprecated-declarationsYusuke Endoh
It fails to build on Solaris: ``` ossl_cipher.c: 関数 ‘ossl_cipher_init’ 内: ossl_cipher.c:228:2: エラー: ‘EVP_md5’ is deprecated [-Werror=deprecated-declarations] 228 | EVP_BytesToKey(EVP_CIPHER_CTX_cipher(ctx), EVP_md5(), iv, | ^~~~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:73, from /usr/include/openssl/x509v3.h:63, from ossl.h:23, from ossl_cipher.c:10: /usr/include/openssl/evp.h:732:26: 備考: ここで宣言されています 732 | DEPRECATED const EVP_MD *EVP_md5(void); | ^~~~~~~ ``` I agree that `-Werror=` is a good habit, but adding it by default is too aggressive.
2019-12-05Fix "cannot find the function: strcpy()" error on arm32 on Travis CI. (#2686)Jun Aruga
This issue happened when `libc.so` and `libm.so` path were not found and `ldd ruby` command also failed to print the shared dependencies in `test/fiddle/helper.rb`. See https://travis-ci.org/ruby/ruby/jobs/611483288#L3018 /home/travis/build/ruby/ruby/build/.ext/common/fiddle/import.rb:299:in `import_function': cannot find the function: strcpy() (Fiddle::DLError) * Set libc6:armhf as a installing dependency explicitly. * Remove arm32 from allow_failures.
2019-12-05debug.rb: expand filenames in breakpointsAntonio Terceiro
When debugging some local code, specifying a breakpoint to a local filename does not work, i.e. break lib/foo.rb:10 Expanding the filename makes it work. FWIW byebug has the same behavior. Notes: Merged: https://github.com/ruby/ruby/pull/2694
2019-12-05Change encoding of completion listaycabta
2019-12-04Make TracePoint.stat a singleton method again (#2726)Alan Wu
[Bug #16399] Notes: Merged-By: XrXr
2019-12-05Make rb_eval_string_wrap specify a cref so constant setting works correctlyJeremy Evans
Fixes [Bug #10466] Notes: Merged: https://github.com/ruby/ruby/pull/2722
2019-12-04Do not attempt to call methods on the receiver if it is a basic objectYuki Nishijima
2019-12-05Revert "Add debug option to check ci failures on solaris"Kazuhiro NISHIYAMA
This reverts commit f289e3994bbc6560e2e4e5905b52c35c829c972d.
2019-12-05* 2019-12-05 [ci skip]git
2019-12-05Support disable-completionaycabta
2019-12-05Fix variable catchaycabta
2019-12-04[DOC] Added File::FNM_SYSCASE example [Bug #16391] [ci skip]Nobuyoshi Nakada
2019-12-04coroutine/ucontext/Context.c: Include "ruby/config.h" for SolarisYusuke Endoh
getcontext, makecontext, and swapcontext seem to be available only when `__EXTENSION__` is defined on Solaris.
2019-12-04Fix thread leak in drbKazuhiro NISHIYAMA
Notes: Merged: https://github.com/ruby/ruby/pull/2724
2019-12-04implement Range#count卜部昌平
As matz requested in [Bug #16366].
2019-12-04new_cond before mon_initializeKoichi Sasada
MonitorMixin#new_cond can be called before mon_initialize, so we need to initialize `@monitor` before it. https://bugs.ruby-lang.org/issues/16255#note-4
2019-12-04compile.c: stop wrong peephole optimization when covearge is enabledYusuke Endoh
jump-jump optimization ignores the event flags of the jump instruction being skipped, which leads to overlook of line events. This changeset stops the wrong optimization when coverage measurement is neabled and when the jump instruction has any event flag. Note that this issue is not only for coverage but also for TracePoint, and this change does not fix TracePoint. However, fixing it fundamentally is tough (which requires revamp of the compiler). This issue is critical in terms of coverage measurement, but minor for TracePoint (ko1 said), so we here choose a stopgap measurement. [Bug #15980] [Bug #16397] Note for backporters: this changeset can be viewed by `git diff -w`.
2019-12-04[ruby/io-console] Fixed `intr: false` mode on WindowsNobuyoshi Nakada
https://github.com/ruby/io-console/commit/4c172c01aa
2019-12-04Silence incorrect assigned but unused variable warnings in ripperJeremy Evans
To only emit the warnings in correct cases would require tracking local variable usage in ripper, which ripper currently does not do. Fixes [Bug #15188] Notes: Merged: https://github.com/ruby/ruby/pull/2719
2019-12-04Make {Method,UnboundMethod}#super_method handle clone/bind/unbindJeremy Evans
This wasn't working previously because the iclass entry wasn't being copied, and without an iclass entry, super_method returns nil. Fixes [Bug #15629] Notes: Merged: https://github.com/ruby/ruby/pull/2723
2019-12-04compile.c: trivial refactoringYusuke Endoh
Use `for` instead of `while` to make it explicit that it is a traverse of bytecode.
2019-12-04Revert "Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)"NARUSE, Yui
This reverts commit 2a22a6b2d8465934e75520a7fdcf522d50890caf. Revert [Feature #13083]
2019-12-04Revert "Revert nil error and adding deprecation message"NARUSE, Yui
This reverts commit 452bee3ee8d68059fabd9b1c7a75661b14e3933e.