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

71943 Коммитов

Автор SHA1 Сообщение Дата
David Rodríguez e70e7f4ad3 [rubygems/rubygems] Fix test issues surfaced using a stricter behavior of `FileUtils`
We were trying to remove directories using `FileUtils.rm_f` which is
unexpected and does not remove anything. Changing to `FileUtils.rm_rf`
actually removes the directories properly. That itself showed other
issues:

* One test was actually removing the gem package it was about to
  install, since it was living in the cache folder. To fix that, avoid
  removing the cache folder, and only make sure the other directories
  are created automatically, which seems enough.

* Another test was actually removing an incorrect directory. Change it
  to remove the right one (the one that's asserted later to have been
  created).

https://github.com/rubygems/rubygems/commit/5538e7ff20
2022-04-16 22:58:34 +09:00
David Rodríguez 9a20bcd5c8 [rubygems/rubygems] I don't think this is necessary
https://github.com/rubygems/rubygems/commit/836f3e5aa5
2022-04-16 22:58:34 +09:00
Nobuyoshi Nakada a3ef0746ce
Extract `pipe_readlines` method which reads from the pipeline 2022-04-16 17:13:24 +09:00
Nobuyoshi Nakada b09e96341e
Simplify the condition expression to ignore commits 2022-04-16 16:45:46 +09:00
Nobuyoshi Nakada 492185e39c
Do not import any files under rakelib 2022-04-16 16:45:11 +09:00
BurdetteLamar 723debc9a9 [ruby/set] Repair format for What's Here
https://github.com/ruby/set/commit/292baacb60
2022-04-16 15:34:34 +09:00
Hiroshi SHIBATA 24d7ebfa7a
Revert "[ruby/stringio] Add push task to push built gems"
This reverts commit 22f79ae3f7.
2022-04-16 13:30:20 +09:00
Nobuyoshi Nakada 8a3663789c
Fix bundled gems installation when relative loading 2022-04-16 09:03:51 +09:00
Bobby McDonald ccb0572ff9 [rubygems/rubygems] Add modern rubies to the platforms
https://github.com/rubygems/rubygems/commit/5462322f8f
2022-04-16 08:23:21 +09:00
Sutou Kouhei 22f79ae3f7 [ruby/stringio] Add push task to push built gems
https://github.com/ruby/stringio/commit/4431eefbad
2022-04-16 07:08:41 +09:00
git 566fb7fa7d Update default gems list at 2aca566a10 [ci skip] 2022-04-15 21:35:19 +00:00
Sutou Kouhei 2aca566a10 [ruby/stringio] bump up to 3.0.2.pre1
https://github.com/ruby/stringio/commit/14ec9bc193
2022-04-16 06:34:31 +09:00
git 059e389ffc * 2022-04-16 [ci skip] 2022-04-16 03:31:37 +09:00
Burdette Lamar e021754db0
[DOC] Enhanced RDoc for Regexp (#5807)
Treats:

    #source
    #inspect
    #to_s
    #casefold?
    #options
    #names
    #named_captures
2022-04-15 13:31:15 -05:00
Nobuyoshi Nakada 7f81f33547 Return `false` where sticky-bit is not provided [Bug #18734] 2022-04-15 17:52:10 +09:00
Nobuyoshi Nakada 9db7d95968 Compare predicate methods as a boolean value 2022-04-15 17:14:29 +09:00
Nobuyoshi Nakada a0040af671 [Win32] Fix mode of character/pipe device stat [Bug #18732] 2022-04-15 17:14:29 +09:00
Peter Zhu a0eb4b14d6 [ruby/nkf] Fix docs
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 16:07:11 +09:00
Peter Zhu da1695b926 [ruby/optparse] Fix broken links in docs
https://github.com/ruby/optparse/commit/2bea3b38c3
2022-04-15 14:21:28 +09:00
Peter Zhu 92614111c0 [ruby/rdoc] Fix links in docs
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-15 13:24:48 +09:00
Alan Wu 307cb57ba6 Fix build errors with development version of Clang
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.
2022-04-14 15:47:27 -04:00
git b086116c0b * 2022-04-15 [ci skip] 2022-04-15 04:25:24 +09:00
Burdette Lamar 01395d84ab
More details for regexp literals (#5800) 2022-04-14 14:25:06 -05:00
Akshay Birajdar 8751c5c267 [DOC] Enhance documentation for `Module#<` & `Module#>` 2022-04-14 08:52:22 -04:00
Koichi Sasada 9b8ce6d34c fix to use `node.gvl` instead of `node.ubf`
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.
2022-04-14 21:22:47 +09:00
Nobuyoshi Nakada 5397dd2e76 [ruby/rdoc] Apply matching word pairs to underscore-methods
Protected characters with `PROTECT_ATTR` should not have special
roles.

https://github.com/ruby/rdoc/commit/c318af0ea2
2022-04-14 16:37:14 +09:00
Peter Zhu 1a2490b564 [rubygems/rubygems] Fix formatting in docs
rdoc uses + for typewriter font rather than backticks.

https://github.com/rubygems/rubygems/commit/be320f1e0c
2022-04-14 16:24:09 +09:00
Nobuyoshi Nakada 295030969c
[DOC] Prefer RDOCLINK to the method name 2022-04-14 14:57:39 +09:00
Nobuyoshi Nakada 2ff41e97fa
[DOC] Now underscore methods can cross-reference 2022-04-14 12:55:44 +09:00
Nobuyoshi Nakada e06100d969 [ruby/rdoc] Allow cross references to methods including underscores
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 12:51:30 +09:00
Nobuyoshi Nakada 5d45afdbbf
[DOC] Move the documentations of moved Symbol methods 2022-04-14 11:17:37 +09:00
S-H-GAMELINKS 3728f83b2d [DOC] Fix SymbolVariantsRelNotes link 2022-04-14 10:16:45 +09:00
Grant Hutchins 59c81274aa Use correct capitalization of "NaN" in docs 2022-04-13 15:44:36 -04:00
Stan Lo 629bad4aba Update PTY.spawn's document
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
2022-04-13 15:43:28 -04:00
Alex Matchneer dbb227d3b6
[DOC] add missing size params in fiber scheduler.h (#5441) 2022-04-14 07:34:49 +12:00
Burdette Lamar dfdc03248f
[DOC] Enhanced RDoc for Symbol (#5796)
Treats:
    #[]
    #length
    #empty?
    #upcase
    #downcase
    #capitalize
    #swapcase
    #start_with?
    #end_with?
    #encoding
    ::all_symbols
2022-04-13 13:45:18 -05:00
git fde7952489 * 2022-04-14 [ci skip] 2022-04-14 00:11:43 +09:00
Jeremy Evans 0579486f15 [ruby/net-http] Update the content-length heading when decoding bodies
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-14 00:11:26 +09:00
Peter Zhu 54b53e2c8f [ci skip] Fix docs 2022-04-13 10:43:23 -04:00
Nobuyoshi Nakada df1594e4b5
Parenthize macro arguments 2022-04-13 22:55:20 +09:00
Peter Zhu aaac279de0 [ruby/rdoc] Only parse valid URLs
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-13 22:25:33 +09:00
Nobuyoshi Nakada 7e97ebb6eb
Enforce literals on the second arguments 2022-04-13 18:33:34 +09:00
Kazuhiro NISHIYAMA 7e4ac434b9
Skip build extensions again on cross compiling too 2022-04-13 14:40:24 +09:00
Kazuhiro NISHIYAMA 3112475469
Skip build extensions again on mswin and mingw 2022-04-13 13:40:57 +09:00
Kazuhiro NISHIYAMA 4246e102d4
Enabled to build extensions with the bundled gems again
cbb115213c
5c1b76a3a5
2022-04-13 11:09:23 +09:00
git af85553886 * 2022-04-13 [ci skip] 2022-04-13 07:27:36 +09:00
Burdette Lamar b21026cb1a
Enhanced RDoc for Symbol (#5795)
Treats:

    #==
    #inspect
    #name
    #to_s
    #to_sym
    #to_proc
    #succ
    #<=>
    #casecmp
    #casecmp?
    #=~
    #match
    #match?
2022-04-12 17:27:18 -05:00
Peter Zhu 381475f02e Use an empty string when building File.expand_path
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
```
2022-04-12 09:54:57 -04:00
Nobuyoshi Nakada d0a822eec5 Fix dtoa buffer overrun
https://hackerone.com/reports/1248108
2022-04-12 21:30:49 +09:00
Nobuyoshi Nakada cf2bbcfff2
Just free compiled pattern if no space is used
https://hackerone.com/reports/1220911
2022-04-12 20:24:14 +09:00