summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-04-16[ruby/stringio] bump up to 3.0.2.pre1Sutou Kouhei
https://github.com/ruby/stringio/commit/14ec9bc193
2022-04-16* 2022-04-16 [ci skip]git
2022-04-15[DOC] Enhanced RDoc for Regexp (#5807)Burdette Lamar
Treats: #source #inspect #to_s #casefold? #options #names #named_captures Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-15Return `false` where sticky-bit is not provided [Bug #18734]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5804
2022-04-15Compare predicate methods as a boolean valueNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5803
2022-04-15[Win32] Fix mode of character/pipe device stat [Bug #18732]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5803
2022-04-15[ruby/nkf] Fix docsPeter Zhu
rdoc parses "Z[0-3]" as a link to "0-3", this commit escapes these so that they don't become links. https://github.com/ruby/nkf/commit/269c10061b
2022-04-15[ruby/optparse] Fix broken links in docsPeter Zhu
https://github.com/ruby/optparse/commit/2bea3b38c3
2022-04-15[ruby/rdoc] Fix links in docsPeter Zhu
www.ruby-lang.org without the leading https:// will generate an incorrect link because it will be treated as a relative link. https://github.com/ruby/rdoc/commit/28f32149b6
2022-04-14Fix build errors with development version of ClangAlan Wu
Maybe not the best idea for CI stability to use development versions of Clang, but that does give us a preview of what's coming and gives us a chance to make suggestions upstream. Notes: Merged: https://github.com/ruby/ruby/pull/5799
2022-04-15* 2022-04-15 [ci skip]git
2022-04-14More details for regexp literals (#5800)Burdette Lamar
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-14[DOC] Enhance documentation for `Module#<` & `Module#>`Akshay Birajdar
Notes: Merged: https://github.com/ruby/ruby/pull/5784
2022-04-14fix to use `node.gvl` instead of `node.ubf`Koichi Sasada
The last parameter of `ccan_list_top()` is to acquire the pointer of the top of element, so `node.ubf` is no problem. But this context it accesses gvl list, so `node.gvl` is better. Notes: Merged: https://github.com/ruby/ruby/pull/5798
2022-04-14[ruby/rdoc] Apply matching word pairs to underscore-methodsNobuyoshi Nakada
Protected characters with `PROTECT_ATTR` should not have special roles. https://github.com/ruby/rdoc/commit/c318af0ea2
2022-04-14[rubygems/rubygems] Fix formatting in docsPeter Zhu
rdoc uses + for typewriter font rather than backticks. https://github.com/rubygems/rubygems/commit/be320f1e0c
2022-04-14[DOC] Prefer RDOCLINK to the method nameNobuyoshi Nakada
2022-04-14[DOC] Now underscore methods can cross-referenceNobuyoshi Nakada
2022-04-14[ruby/rdoc] Allow cross references to methods including underscoresNobuyoshi Nakada
As underscores are masked to "protect" from the conversion, consider also `PROTECT_ATTR` as a word character. https://github.com/ruby/rdoc/commit/db58bb5170
2022-04-14[DOC] Move the documentations of moved Symbol methodsNobuyoshi Nakada
2022-04-14[DOC] Fix SymbolVariantsRelNotes linkS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/5682
2022-04-13Use correct capitalization of "NaN" in docsGrant Hutchins
Notes: Merged: https://github.com/ruby/ruby/pull/5797
2022-04-13Update PTY.spawn's documentStan Lo
Passing the optional env hash to PTY.spawn has been supported for years, but it's never documented. More info: https://bugs.ruby-lang.org/issues/12312 Notes: Merged: https://github.com/ruby/ruby/pull/5786
2022-04-14[DOC] add missing size params in fiber scheduler.h (#5441)Alex Matchneer
Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2022-04-13[DOC] Enhanced RDoc for Symbol (#5796)Burdette Lamar
Treats: #[] #length #empty? #upcase #downcase #capitalize #swapcase #start_with? #end_with? #encoding ::all_symbols Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-14* 2022-04-14 [ci skip]git
2022-04-14[ruby/net-http] Update the content-length heading when decoding bodiesJeremy Evans
Previously, the content-encoding header was removed and the body was modified, but the content-length header was not modified, resulting in the content-length header not matching the body length. Don't delete content-length before yielding inflate body, as that causes a switch to read the entire body instead of reading in chunks. Fixes [Bug #16672] https://github.com/ruby/net-http/commit/58284e9710 Co-authored-by: st0012 <stan001212@gmail.com>
2022-04-13[ci skip] Fix docsPeter Zhu
2022-04-13Parenthize macro argumentsNobuyoshi Nakada
2022-04-13[ruby/rdoc] Only parse valid URLsPeter Zhu
Only valid characters for URLs should be used for generating URLs. A list of valid characters can be found in sections 2.2 and 2.3 of IETF RFC 3986 (https://www.ietf.org/rfc/rfc3986.txt). https://github.com/ruby/rdoc/commit/2bd8fcdd4f
2022-04-13Enforce literals on the second argumentsNobuyoshi Nakada
2022-04-13Skip build extensions again on cross compiling tooKazuhiro NISHIYAMA
2022-04-13Skip build extensions again on mswin and mingwKazuhiro NISHIYAMA
2022-04-13Enabled to build extensions with the bundled gems againKazuhiro NISHIYAMA
https://github.com/ruby/ruby/commit/cbb115213c42f15638ef119eb20c4d3106eb8b1a https://github.com/ruby/ruby/commit/5c1b76a3a55afeb07116bbd3492303c6b6cd890d
2022-04-13* 2022-04-13 [ci skip]git
2022-04-12Enhanced RDoc for Symbol (#5795)Burdette Lamar
Treats: #== #inspect #name #to_s #to_sym #to_proc #succ #<=> #casecmp #casecmp? #=~ #match #match? Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-12Use an empty string when building File.expand_pathPeter Zhu
Allocating a string of length MAXPATHLEN and then shrinking the string is inefficient when the resulting path is short. Preallocating a large string is also a problem for Variable Width Allocation since we can't easily downsize the capacity. I ran the following benchmark: ```ruby Benchmark.ips do |x| { "empty" => "", "short" => "a/" * 10, "medium" => "a/" * 100, "long" => "a/" * 500 }.each do |name, path| x.report(name) do |times| i = 0 while i < times File.expand_path(path) i += 1 end end end end ``` On this commit: ``` empty 97.486k (± 0.7%) i/s - 492.915k in 5.056507s short 96.026k (± 2.4%) i/s - 486.489k in 5.068966s medium 86.304k (± 1.3%) i/s - 435.336k in 5.045112s long 59.395k (± 1.7%) i/s - 302.175k in 5.089026s ``` On master: ``` empty 94.138k (± 1.4%) i/s - 472.158k in 5.016590s short 92.043k (± 1.4%) i/s - 468.180k in 5.087496s medium 84.910k (± 2.3%) i/s - 425.750k in 5.017007s long 61.503k (± 2.7%) i/s - 309.723k in 5.039429s ``` Notes: Merged: https://github.com/ruby/ruby/pull/5789
2022-04-12Fix dtoa buffer overrunNobuyoshi Nakada
https://hackerone.com/reports/1248108 Notes: Merged: https://github.com/ruby/ruby/pull/5794
2022-04-12Just free compiled pattern if no space is usedNobuyoshi Nakada
https://hackerone.com/reports/1220911 Notes: Merged: https://github.com/ruby/ruby/pull/5793
2022-04-12Fix a typo [ci skip]Kazuhiro NISHIYAMA
2022-04-11Correct whitespace in array.c (#5791)Burdette Lamar
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-11Specify which core classes are convertible (#5790)Burdette Lamar
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-11Fix fake.rb RUBY_DESCRIPTION faking for JITsAlan Wu
Previously, `make test-spec` was not printing the description with +YJIT even when YJIT was indeed enabled. It was confusing on CI. `fake.rb` was changing the `RUBY_DESCRIPTION` constant incorrectly. I suppose `make test-spec` mostly needs the `mkmf` faking and not the faking of `RUBY_.*` constants, so maybe there is an opportunity to simplify in the future. Notes: Merged: https://github.com/ruby/ruby/pull/5782 Merged-By: XrXr
2022-04-12* 2022-04-12 [ci skip]git
2022-04-12[ruby/net-http] Add HTTP#response_body_encoding for setting response body ↵Jeremy Evans
encoding This allows for the ability to opt-in to a method to set the encoding of response bodies. By setting the accessor to a String or Encoding instance, it will use the specified encoding. Setting the value of true will try to detect the encoding of the response body, either using the Content-Type header (assuming it specifies charset) or by scanning for a <meta> tag in the document that specifies the encoding. The default is false in which case no forcing of encoding will be done (same as before the patch). Implements [Feature #2567] Implements [Feature #15517] https://github.com/ruby/net-http/commit/6233e6b7c1 Co-authored-by: Yui Naruse <naruse@ruby-lang.org>
2022-04-11* 2022-04-11 [ci skip]git
2022-04-11test/ruby/test_keyword.rb: Prevent warning: assigned but unused variableYusuke Endoh
2022-04-10* 2022-04-10 [ci skip]git
2022-04-10[DOC] Enhanced RDoc for Array intro (#5781)Burdette Lamar
This covers the first few sections of the class doc for Array. Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-09[DOC]Some link prefix replaceS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/5783