aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Respect BIGNUM_DEBUG defined by command line optionNobuyoshi Nakada2020-05-292-2/+5
| | | | And fixed typo in compilers.yml.
* Remove Ruby <2.2 support from tool/lib/vcs.rbJeremy Evans2020-05-281-93/+27
| | | | | BASERUBY now requires at least Ruby 2.2, so there is no point trying to support older ruby versions here.
* Check that BASERUBY is at least Ruby 2.2 in configureJeremy Evans2020-05-281-1/+1
| | | | | | | | | | | | | | BASERUBY needs to be at least Ruby 2.2 since 46acd0075d80c2f886498f089fde1e9d795d50c4. I think it's better to explicitly fail early as soon as BASERUBY is used in this case, versus trying to debug later failures. This modifies things to check both implicitly use of ruby in the PATH as BASERUBY, and explicitly specified older versions of ruby when using --with-baseruby. Fixes [Bug #16668]
* Enhanced Rdoc for Hash (#3151)Burdette Lamar2020-05-281-87/+180
|
* Explicitly loading with envutil.rbHiroshi SHIBATA2020-05-282-0/+2
|
* Use Module#name instead of #inspectYusuke Endoh2020-05-281-1/+1
| | | | | Coverage measurement had failed since 7d5da30c9e9c572f6ef0aaccc1ca0e724966e2ee https://github.com/ruby/actions/runs/708557030?check_suite_focus=true
* Improve documentation for Net::HTTPHeader#set_form [ci skip]Jeremy Evans2020-05-271-16/+36
| | | | Fixes [Misc #16916]
* * 2020-05-28 [ci skip]git2020-05-281-1/+1
|
* Remove platform directory when distclean or more [ci skip]Nobuyoshi Nakada2020-05-281-1/+1
| | | | | At the time of clean-platform, platform directory may not be empty because of parallel build.
* autoconf may not be availableNobuyoshi Nakada2020-05-271-1/+1
|
* [ci skip] Enhanced Rdoc for Hash (#3143)Burdette Lamar2020-05-271-50/+71
| | | | | | | | * Enhanced Rdoc for Hash * Respond to review * Nudge CI testing. Respond to review
* Carve out mjit_exec_slowpathTakashi Kokubun2020-05-271-31/+41
| | | | and mark it as COLDFUN on JIT, assuming enqueue usually happens on VM.
* Fix max, min, minmax documentation (#3131)Masataka Pocke Kuwabara2020-05-262-5/+5
| | | | They only need that all objects implement <=>, but the documentation said it needs Comparable.
* Update Enumerable::Yielder#to_proc document (#3142)Masataka Pocke Kuwabara2020-05-261-1/+1
|
* Fix non-existent method reference in Enumerator.produce document (#3141)Masataka Pocke Kuwabara2020-05-261-1/+1
|
* Mark vm_stackoverflow as NOINLINE COLDFUNC on JITTakashi Kokubun2020-05-261-0/+3
| | | | to reduce code size and improve locality of hot code.
* Eliminate a call instruction on JIT cancel pathTakashi Kokubun2020-05-263-11/+42
| | | | | | | by calling combined functions specialized for each cancel type. I'm hoping to improve locality of hot code, but this patch's impact should be insignificant.
* Removed a trailing space [ci skip]Nobuyoshi Nakada2020-05-271-1/+1
|
* Merged recipes for the same targetNobuyoshi Nakada2020-05-271-2/+0
|
* Removed obsolete forwarding DLL recipeNobuyoshi Nakada2020-05-271-6/+0
| | | | | | | | | | | | | | | | | | It has never been created by default, and no reason to keep binary compatibility against extension libraries for ruby 1.8. 1. `LIBRUBY_SO` on Cygwin was named originally. - 94089e82a12:: `$(RUBY_INSTALL_NAME)-cygwin.dll` - f0ba57341ac:: `$(RUBY_INSTALL_NAME).cygwin.dll` - c74a3b21f59:: `cygwin-$(RUBY_INSTALL_NAME)-$(MAJOR).$(MINOR).dll` 2. And then renamed to be net distribution compliant. - 6f059f33ef1:: `cyg$(RUBY_SO_NAME)$(MAJOR)$(MINOR).dll` 3. Next at 430eabfe139, forwarding DLL was added for binary compatibility against extension libraries.
* add static modifier for rb_str_ord funcS-H-GAMELINKS2020-05-271-1/+1
|
* Don't convert bundler man pages from mdoc to manJeremy Evans2020-05-271-2/+7
| | | | | | | These man pages are already in man format and assuming they are mdoc format breaks things. Fixes [Bug #16823]
* test/drb/test_drbssl.rb: skip LeakChecker as openssl keeps /dev/randomYusuke Endoh2020-05-272-1/+8
| | | | | | | | | | | | | | | | and /dev/urandom intentionally. OpenSSL::PKey::RSA.new opens the two random generators and keeps the file descriptors. https://github.com/openssl/openssl/blob/93f99b681ab5a1cf7062053323e09b0cad5ff854/crypto/rand/rand_unix.c#L674 They are detected by the LeakChecker as fd leak, but it is intentional. http://rubyci.s3.amazonaws.com/graviton2/ruby-master/log/20200526T160005Z.log.html.gz ``` [ 597/20199] DRbTests::TestDRbSSLAry#test_01 = 0.29 s Leaked file descriptor: DRbTests::TestDRbSSLAry#test_01: 8 #<File::Stat dev=0x6, ino=11, mode=020666, nlink=1, uid=0, gid=0, rdev=0x109, size=0, blksize=4096, blocks=0, atime=2020-05-23 14:45:13.751999995 +0000, mtime=2020-05-23 14:45:13.751999995 +0000, ctime=2020-05-23 14:45:13.751999995 +0000> Leaked file descriptor: DRbTests::TestDRbSSLAry#test_01: 9 #<File::Stat dev=0x6, ino=10, mode=020666, nlink=1, uid=0, gid=0, rdev=0x108, size=0, blksize=4096, blocks=0, atime=2020-05-23 14:45:13.755999995 +0000, mtime=2020-05-23 14:45:13.755999995 +0000, ctime=2020-05-23 14:45:13.755999995 +0000> ```
* fiddle: need to update configure after updating config toolsNobuyoshi Nakada2020-05-272-0/+18
|
* * 2020-05-27 [ci skip]git2020-05-271-1/+1
|
* lib/open3.rb: make sure that pipes are closedYusuke Endoh2020-05-271-0/+5
| | | | | | | | | | | | Attempting to invoke a non-existent command led to the leak of fds. http://rubyci.s3.amazonaws.com/graviton2/ruby-master/log/20200526T140004Z.log.html.gz ``` [ 9101/20195] TestGemExtCmakeBuilder#test_self_build = 0.01 sLeaked file descriptor: TestGemExtCmakeBuilder#test_self_build: 7 : #<IO:fd 7> Leaked file descriptor: TestGemExtCmakeBuilder#test_self_build: 10 : #<IO:fd 10> Leaked file descriptor: TestGemExtCmakeBuilder#test_self_build: 11 : #<IO:fd 11> Leaked file descriptor: TestGemExtCmakeBuilder#test_self_build: 12 : #<IO:fd 12> ```
* include debug option in slack notificationKoichi Sasada2020-05-261-1/+1
|
* remove duplication.Koichi Sasada2020-05-261-2/+0
|
* GH actions with RUBY_DEBUG (#3144)Koichi Sasada2020-05-261-1/+10
| | | Add GH actions with -DRUBY_DEBUG
* _GNU_SOURCE is needed for mkostemp on CygwinNobuyoshi Nakada2020-05-262-0/+12
|
* Get rid of redefinition of memcpy on mingwNobuyoshi Nakada2020-05-262-1/+3
|
* Prefer configured printf format for mingw gcc 10Nobuyoshi Nakada2020-05-261-1/+1
|
* [DOC] Use note-list to pretend original plain-text looks [ci skip]Nobuyoshi Nakada2020-05-261-51/+53
|
* Test for [Feature #16832]Nobuyoshi Nakada2020-05-261-0/+13
|
* Use receiver #name rather than #inspect to build NameError messageJean Boussier2020-05-262-1/+44
|
* Make Thread#thread_variable? similar to #thread_variable_getJeremy Evans2020-05-252-7/+4
| | | | | | | | | | | | Don't use rb_check_id, which only works for pinned symbols. Switch inadvertent creation test for thread_variable? to only check for pinned symbols, same as thread_variable_get and thread_variable_set. Make key variable name in thread_local_set match thread_local_get and thread_variable?. Fixes [Bug #16906]
* Fix documentation for Fiber#raise [ci skip]Jeremy Evans2020-05-251-2/+2
| | | | Fixes [Bug #16912]
* cause SEGV for the test.Koichi Sasada2020-05-261-1/+1
| | | | | | | | | | | | | | | | 21991e6ca5 enables `__builtin_assume()` for clang and it seems skip SEGV on rb_class_of() with unexpected value. This test expects a [BUG] output, so this patch causes [BUG] to show [BUG] message. https://github.com/ruby/ruby/runs/707088232?check_suite_focus=true#step:12:230 ``` 1) Failure: TestVMDump#test_darwin_invalid_access [/Users/runner/runners/2.262.1/work/ruby/ruby/src/test/ruby/test_vm_dump.rb:19]: pid 43128 exit 0. 1. [2/2] Assertion for "stderr" | Expected /^\[IMPORTANT\]/ to match "". ```
* * 2020-05-26 [ci skip]git2020-05-261-1/+1
|
* Update include/ruby/assert.hKoichi Sasada2020-05-261-1/+7
| | | Co-authored-by: 卜部昌平 <shyouhei@ruby-lang.org>
* Use RUBY_DEBUG instead of NDEBUGKoichi Sasada2020-05-2619-82/+82
| | | | | | | | | | | | | | Assertions in header files slows down an interpreter, so they should be turned off by default (simple `make`). To enable them, define a macro `RUBY_DEBUG=1` (e.g. `make cppflags=-DRUBY_DEBUG` or use `#define` at the very beggining of the file. Note that even if `NDEBUG=1` is defined, `RUBY_DEBUG=1` enables all assertions. [Feature #16837] related: https://github.com/ruby/ruby/pull/3120 `assert()` lines in MRI *.c is not disabled even if `RUBY_DEBUG=0` and it can be disabled with `NDEBUG=1`. So please consider to use `RUBY_ASSERT()` if you want to disable them when `RUBY_DEBUG=0`.
* Fix failures in ./spec/bundler/quality_spec.rbKazuhiro NISHIYAMA2020-05-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | ``` Failures: 1) The library itself does not contain any warnings Failure/Error: raise "Invoking #{method}!(#{args.map(&:inspect).join(", ")}) failed:\n#{last_command.stdboth}" RuntimeError: Invoking sys_exec!("ruby -w") failed: /home/user/snapshot-master/lib/bundler/cli/add.rb:4:in `<module:Bundler>': uninitialized constant Bundler::CLI (NameError) from /home/user/snapshot-master/lib/bundler/cli/add.rb:3:in `<top (required)>' from /home/user/snapshot-master/lib/rubygems/core_ext/kernel_require.rb:91:in `require' from /home/user/snapshot-master/lib/rubygems/core_ext/kernel_require.rb:91:in `require' from -:2:in `<main>' Commands: $ ruby -w /home/user/snapshot-master/lib/bundler/cli/add.rb:4:in `<module:Bundler>': uninitialized constant Bundler::CLI (NameError) from /home/user/snapshot-master/lib/bundler/cli/add.rb:3:in `<top (required)>' from /home/user/snapshot-master/lib/rubygems/core_ext/kernel_require.rb:91:in `require' from /home/user/snapshot-master/lib/rubygems/core_ext/kernel_require.rb:91:in `require' from -:2:in `<main>' # $? => 1 ```
* Fix a failure in bundle version with version outputs the version with build ↵Kazuhiro NISHIYAMA2020-05-251-1/+2
| | | | | | | | | | | | | | | | | | | | metadata ``` 1) bundle version with version outputs the version with build metadata Failure/Error: expect(out).to match(/\ABundler version #{Regexp.escape(Bundler::VERSION)} \(\d{4}-\d{2}-\d{2} commit #{COMMIT_HASH}\)\z/) expected "Bundler version 2.2.0.dev (2020-05-25 commit )" to match /\ABundler version 2\.2\.0\.dev \(\d{4}-\d{2}-\d{2} commit (?-mix:unknown|[a-fA-F0-9]{7,})\)\z/ Diff: @@ -1,2 +1,2 @@ -/\ABundler version 2\.2\.0\.dev \(\d{4}-\d{2}-\d{2} commit (?-mix:unknown|[a-fA-F0-9]{7,})\)\z/ +"Bundler version 2.2.0.dev (2020-05-25 commit )" Commands: $ /home/user/snapshot-master/ruby -I/home/user/snapshot-master/spec/bundler -r/home/user/snapshot-master/spec/bundler/support/artifice/fail.rb -r/home/user/snapshot-master/spec/bundler/support/hax.rb /home/user/snapshot-master/tmp/1/gems/system/bin/bundle version Bundler version 2.2.0.dev (2020-05-25 commit ) # $? => 0 ```
* Fix a error in a `before(:suite)` hookKazuhiro NISHIYAMA2020-05-251-0/+18
| | | | | | | | | | | https://github.com/ruby/actions/runs/703745101?check_suite_focus=true#step:16:27 ``` An error occurred in a `before(:suite)` hook. Failure/Error: contents = File.read(version_file) Errno::ENOENT: No such file or directory @ rb_sysopen - /home/runner/work/actions/actions/snapshot-master/tmp/1/bundler-2.2.0.dev/lib/bundler/version.rb ```
* Added entries about RubyGems and BundlerHiroshi SHIBATA2020-05-251-0/+8
|
* [DOC] Turned note-lists into label-lists [ci skip]Nobuyoshi Nakada2020-05-253-371/+371
|
* * 2020-05-25 [ci skip]git2020-05-251-1/+1
|
* RBIMPL_ATTR_DEPRECATED: disable for GCC10卜部昌平2020-05-251-0/+4
| | | | GCC 10.x seems buggy here. See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95302
* [ruby/rdoc] Check uninitialized instance variable in testaycabta2020-05-241-1/+1
| | | | https://github.com/ruby/rdoc/commit/3dcd5ddbb6
* [ruby/rdoc] Add frozen string literal supportDavid Rodríguez2020-05-241-1/+1
| | | | https://github.com/ruby/rdoc/commit/daac9d0471