summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/bigdecimal] Move RB_GC_GUARD() at the end, like in BigMath_s_exp()Benoit Daloze2023-02-211-6/+7
| | | | https://github.com/ruby/bigdecimal/commit/b66ef9fbb5
* [ruby/bigdecimal] Avoid RB_GC_GUARD(a) = b in bigdecimalBenoit Daloze2023-02-211-6/+12
| | | | | | | | * This is not supported on TruffleRuby, which requires the value to be set before RB_GC_GUARD() is called. * See https://github.com/oracle/truffleruby/pull/2879 https://github.com/ruby/bigdecimal/commit/7b2957922f
* Add marking and sweeping time to GC.statPeter Zhu2023-02-213-50/+94
| | | | | | | | | | | | There is a `time` key in GC.stat that gives us the total time spent in GC. However, we don't know what proportion of the time is spent between marking and sweeping. This makes it difficult to tune the GC as we're not sure where to focus our efforts on. This PR adds keys `marking_time` and `sweeping_time` to GC.stat for the time spent marking and sweeping, in milliseconds. [Feature #19437]
* Refactor to separate marking and sweeping phasesPeter Zhu2023-02-212-49/+50
| | | | | This commit separates the marking and sweeping phases so that marking functions do not directly call sweeping functions.
* Marshal.load: restore instance variables on RegexpJean Boussier2023-02-212-2/+29
| | | | | | | | | | | | | | | | | | | [Bug #19439] The instance variables were restore on the Regexp source, not the regexp itself. Unfortunately we have a bit of a chicken and egg problem. The source holds the encoding, and the encoding need to be set on the source to be able to instantiate the Regexp. So the instance variables have to be read on the `source`. To correct this we transfert the instance variables after instantiating the Regexp. The only way to avoid this would be to read the instance variable twice and rewind.
* Update default gems list at b572f2436c70bef75126fe4e30910a [ci skip]git2023-02-211-1/+1
|
* [ruby/openssl] Stub gemspec for JRubyCharles Oliver Nutter2023-02-211-3/+9
| | | | | | | | | | | | | JRuby has its own implementation of the `openssl` library in jruby-openssl. The simplest way for us to allow users to set openssl as a gem dependency is to ship a stub gem that just depends on jruby-openssl. This patch adds that to the gemspec. Additional work may be required to fit this stub gem into the test and release process. See #20 for more details. https://github.com/ruby/openssl/commit/74ccaa5e18
* [ruby/rdoc] Fix RDoc::Parser::Ruby not being documentedÉtienne Barrié2023-02-211-3/+3
| | | | | | The calls to require prevent the class from being documented. https://github.com/ruby/rdoc/commit/76283fc42e
* [ruby/strscan] Mask out this test on JRuby/WindowsCharles Oliver Nutter2023-02-211-1/+4
| | | | | | | | See https://github.com/jruby/jruby/issues/7644 for the root issue, which will require fixes to JRuby's regular expression engine, JOni. https://github.com/ruby/strscan/commit/29a65abff2
* [ruby/strscan] test: Run test more with fixed anchor modeSutou Kouhei2023-02-211-19/+25
| | | | | | (https://github.com/ruby/strscan/pull/60) fix https://github.com/ruby/strscan/pull/56
* [ruby/strscan] Add test case to `test_string`OKURA Masafumi2023-02-211-2/+4
| | | | | | | (https://github.com/ruby/strscan/pull/58) `string` returns the original string after `scan` is called. Current test doesn't check this behavior and now it's covered.
* [ruby/strscan] Bump versionSutou Kouhei2023-02-211-1/+1
| | | | https://github.com/ruby/strscan/commit/681cde0f27
* [ruby/strscan] Mention return value of `rest?` in the docOKURA Masafumi2023-02-211-2/+3
| | | | | | | (https://github.com/ruby/strscan/pull/49) The doc of `rest?` was unclear about return value. This commit adds the return value to the doc.
* [ruby/csv] test: use mailing list ID instead of unavailable URLSutou Kouhei2023-02-211-1/+1
| | | | https://github.com/ruby/csv/commit/04862ccf87
* [ruby/csv] Use https links instead of httpVivek Bharath Akupatni2023-02-212-3/+3
| | | | | | (https://github.com/ruby/csv/pull/274) https://github.com/ruby/csv/commit/e2a06929a8
* [ruby/csv] Remove unused @double_quote_character from ParserMau Magnaguagno2023-02-211-1/+0
| | | | | | (https://github.com/ruby/csv/pull/273) https://github.com/ruby/csv/commit/e5622c53ae
* Merge rubygems/bundler masterHiroshi SHIBATA2023-02-2145-67/+208
| | | | Pick from https://github.com/rubygems/rubygems/commit/e9304aed7e43308b99e70c2f7b92028315fee8a5
* [rubygems/rubygems] Give a better message when Gemfile branch does not existDavid Rodríguez2023-02-213-8/+33
| | | | https://github.com/rubygems/rubygems/commit/cb4fc41cbc
* [rubygems/rubygems] Fix crash in pub grub involving empty rangesDavid Rodríguez2023-02-212-1/+67
| | | | https://github.com/rubygems/rubygems/commit/0f168516f7
* [rubygems/rubygems] Update pub_grubJohn Hawthorn2023-02-216-10/+16
| | | | | | | | | * Replaces the wording of "is forbidden" with "cannot be used" * Fixes the method signature of VersionRange::Empty#eql? https://github.com/rubygems/rubygems/commit/8c6b3f130b Co-authored-by: Daniel Colson <danieljamescolson@gmail.com>
* [rubygems/rubygems] Sync with pub_grub main branchDavid Rodríguez2023-02-214-7/+18
| | | | | | We became a bit out of sync lately. https://github.com/rubygems/rubygems/commit/6161a2610a
* [rubygems/rubygems] Restore better error message when locked ref does not existDavid Rodríguez2023-02-212-4/+33
| | | | https://github.com/rubygems/rubygems/commit/c8e024359f
* [rubygems/rubygems] [DOC] Update the link to OpenSource.orgNobuyoshi Nakada2023-02-211-1/+1
| | | | | | The static list in alphabetical order seems no longer provided. https://github.com/rubygems/rubygems/commit/a37dff7736
* [rubygems/rubygems] Bump rb-sysdependabot[bot]2023-02-212-7/+21
| | | | | | | | | | | | | | | Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.64 to 0.9.65. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.64...v0.9.65) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* [ruby/bigdecimal] Read version from bigdecimal.cNobuyoshi Nakada2023-02-214-32/+15
| | | | | | | | | The dependency of extconf.h on bigdecimal.gemspec does not make sense as far as no rule is defined for it. Also, the relationship between extension library and gemspec file is various in default gems, and does not work well. https://github.com/ruby/bigdecimal/commit/7f99b28552
* Use `ERROR_ARGS_AT`Nobuyoshi Nakada2023-02-211-1/+1
|
* Prevent "warning: ambiguity between regexp and two divisions"Yusuke Endoh2023-02-211-1/+1
| | | | | | | http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20230221T031004Z.log.html.gz ``` /home/chkbuild/chkbuild/tmp/build/20230221T031004Z/ruby/test/rubygems/test_gem_ext_cargo_builder.rb:90: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator ```
* [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar2023-02-201-22/+96
| | | | | | (https://github.com/ruby/net-http/pull/123) https://github.com/ruby/net-http/commit/220ff3f741
* compile.c: eliminate getinstancevariable -> pop sequencesJean Boussier2023-02-201-1/+1
| | | | | | This case wasn't eliminated before because `getinstancevariable` could emit a warning, but that's no longer the case since Ruby 3.0.
* YJIT: Fix assertion for partially mapped last pages (#7337)Takashi Kokubun2023-02-203-6/+33
| | | Follows up [Bug #19400]
* Adjust indent [ci skip]Nobuyoshi Nakada2023-02-201-11/+11
|
* error.c: Use "undefined local variable or method `...' for main"Yusuke Endoh2023-02-201-2/+7
| | | | ... for the toplevel.
* Update some ruby specs for the new message format of NoMethodErrorYusuke Endoh2023-02-201-17/+40
|
* Update some tests for the new message format of NoMethodErrorYusuke Endoh2023-02-202-2/+2
|
* error.c: Update the message format for NoMethodErrorYusuke Endoh2023-02-201-3/+5
| | | | | | | | | | | | | | | | | | | | | | * If the receiver is a Class, use "... for class <class name>". * If the receiver is a Module, use "... for module <module name>". * If the receiver is an extended object (i.e., has a singleton class), use "... for <rb_any_to_s(receiver)>". * Otherwise, use "... for an instance of <class name>". Examples: ``` 42.time #=> undefined method `time' for an instance of Integer (NoMethodError) class Foo privatee #=> undefined local variable or method 'privatee' for class Foo (NoMethodError) end def (o=Object.new).foo end o.bar #=> undefined method `bar' for #<Object: 0xdeadbeef(any_to_s)> (NoMethodError) ```
* Stop using receiver#inspect for "undefined method" errorsYusuke Endoh2023-02-202-24/+57
| | | | | | | | | | | | | | | | ``` 42.time #=> undefined method `time' for object Integer (NoMethodError) class Foo privatee #=> undefined local variable or method 'privatee' for class Foo (NoMethodError) end s = "" def s.foo = nil s.bar #=> undefined method `bar' for extended object String (NoMethodError) ``` [Feature #18285]
* [ruby/pstore] Remove (newly unneeded) remarks about aliasesBurdette Lamar2023-02-191-4/+0
| | | | | | (https://github.com/ruby/pstore/pull/8) https://github.com/ruby/pstore/commit/01c4ccc7aa
* [ruby/fileutils] Remove (newly unneeded) remarks about aliasesBurdette Lamar2023-02-191-18/+0
| | | | | | (https://github.com/ruby/fileutils/pull/108) https://github.com/ruby/fileutils/commit/bbe595cfa5
* test/readline/test_readline.rb: skip a test x86_64-linux-(x32|i[3-6]86)Eric Wong2023-02-191-0/+3
| | | | | | | | I run a 32-bit (x86) userspace on a 64-bit kernel to save memory and this test fails for the same reason it does on pure 32-bit platforms. Followup-to: 6cf7c0a48fb07a76 (test/readline/test_readline.rb: skip a test on i686-linux, 2021-11-09)
* Remove (newly unneeded) remarks about aliasesBurdetteLamar2023-02-1915-149/+2
|
* [ruby/date] Removed (newly unneeded) alias remarksBurdette Lamar2023-02-191-19/+0
| | | | | | (https://github.com/ruby/date/pull/88) https://github.com/ruby/date/commit/cfa7e9868b
* [DOC] Return *args to Enumerable method definitionszverok2023-02-191-3/+3
|
* [DOC] Update pattern matching docs for 3.2zverok2023-02-191-23/+5
| | | | | * Remove section about experimental status * Add references to core objects that can deconstruct
* [DOC] Document IO::Timeoutzverok2023-02-191-1/+5
|
* [DOC] Improve ObjectSpace#dump_XXX method docszverok2023-02-191-21/+14
| | | | | | * remove false call-seq (output from Ruby parsing is cleaner) * explain output: argument in plain words * change parameter name in docs of #dump_shapes (typo)
* [DOC] Improve Kernel#binding docszverok2023-02-191-7/+35
| | | | | | * Add links to Binding class * Make examples practical * Extend possible usages description
* [DOC] Small adjustment for String method docszverok2023-02-191-1/+13
| | | | | * Hide freeze method (no useful docs, same as Object#freeze) * Add dedup to call-seq of str_uminus
* [DOC] Update TracePoint#binding docs for 3.2 behaviorzverok2023-02-191-3/+2
|
* [DOC] Restore Process module doc lost due to RDoc updatezverok2023-02-191-20/+15
|
* Mention when it is appropriate to document aliases in call-seqJeremy Evans2023-02-191-1/+5
|