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

70826 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada c613d79f9b Suppress unary minus operator to unsigned type warnings 2022-01-14 13:46:12 +09:00
Nobuyoshi Nakada 9fa9cf4006 Suppress possible loss of data warnings 2022-01-14 13:46:12 +09:00
Burdette Lamar 6dc4c942a3
File rdoc (#5438)
Treats:

    File introduction
    File.open
    File.new
2022-01-13 18:00:24 -06:00
Kazuhiro NISHIYAMA b9b6377401 [ruby/net-http] Fix unescaped `.` in Regexp
Use `include?` instead.

https://github.com/ruby/net-http/commit/05022744a9
2022-01-14 08:16:37 +09:00
David Rodríguez 40d9be51e8 [ruby/psych] Don't require `strscan` unnecessarily
It does not seem needed, and it's causing issues on Windows when
uninstalling `strscan`, because strscan's shared library being used when
RubyGems tries to remove it (because its loaded through Psych, which
RubyGems uses for loading configuration).

https://github.com/ruby/psych/commit/3911356ec1
2022-01-14 07:44:14 +09:00
git acd1f45a5c * 2022-01-14 [ci skip] 2022-01-14 00:00:14 +09:00
Justin Searls a485152660 [rubygems/rubygems] Lock standard.yml to the required ruby version
https://github.com/rubygems/rubygems/commit/1791b5b9e5
2022-01-13 23:59:55 +09:00
Vyacheslav Alexeev d0a0637948 [rubygems/rubygems] Use `Fiddle` in `bundle doctor` to check for dynamic library presence
https://github.com/rubygems/rubygems/commit/ecd495ce1b
2022-01-13 18:16:05 +09:00
Akira Matsuda 9828502570 [rubygems/rubygems] Let Version#spaceship accept a String
With this patch, handwriting version comparisons become a little bit easier.

before:
  SomeGem.version <=> Gem::Version.new('1.3')

after:
  SomeGem.version <=> '1.3'

https://github.com/rubygems/rubygems/commit/7e0dbb79f2
2022-01-13 18:15:14 +09:00
Koichi Sasada 9de380860d add a NEWS entry of `Proc#dup`. 2022-01-13 17:45:25 +09:00
Koichi Sasada 7e21b77dc6 T#dup (T < Proc) should return T's object
T#dup (T < Proc) returns Proc object (not T) from Ruby 1.9.
[Bug #17545]
2022-01-13 17:43:14 +09:00
Nobuyoshi Nakada 5a75151a01
[DOC] Mark up the code for Kernel#rand as the same as Random#rand 2022-01-13 11:34:09 +09:00
Nobuyoshi Nakada d1a55851e8
[DOC] Fix a typo in a doc 2022-01-13 11:32:35 +09:00
Burdette Lamar faf79d3a25
Enhanced RDoc for IO.popen (#5430)
* Enhanced RDoc for IO.popen
2022-01-12 17:08:30 -06:00
John Hawthorn 2f71f6bb82 Speed up and avoid kwarg hash alloc in Time.now
Previously Time.now was switched to use Time.new as it added support for
the in: argument. Unfortunately because Class#new is a cfunc this
requires always allocating a Hash.

This commit switches Time.now back to using a builtin time_s_now. This
avoids the extra Hash allocation and is about 3x faster.

    $ benchmark-driver -e './ruby;3.1::~/.rubies/ruby-3.1.0/bin/ruby;3.0::~/.rubies/ruby-3.0.2/bin/ruby' benchmark/time_now.yml
    Warming up --------------------------------------
                  Time.now     6.704M i/s -      6.710M times in 1.000814s (149.16ns/i, 328clocks/i)
    Time.now(in: "+09:00")     2.003M i/s -      2.112M times in 1.054330s (499.31ns/i)
    Calculating -------------------------------------
                               ./ruby         3.1         3.0
                  Time.now     7.693M      2.763M      6.394M i/s -     20.113M times in 2.614428s 7.278710s 3.145572s
    Time.now(in: "+09:00")     2.030M      1.260M      1.617M i/s -      6.008M times in 2.960132s 4.769378s 3.716537s

    Comparison:
                               Time.now
                    ./ruby:   7693129.7 i/s
                       3.0:   6394109.2 i/s - 1.20x  slower
                       3.1:   2763282.5 i/s - 2.78x  slower

                 Time.now(in: "+09:00")
                    ./ruby:   2029757.4 i/s
                       3.0:   1616652.3 i/s - 1.26x  slower
                       3.1:   1259776.2 i/s - 1.61x  slower
2022-01-12 12:55:14 -08:00
Yusuke Endoh ae5458f228 thread.c: Convert TAG_BREAK to a normal exception at thread top-level
[Bug #18475]
2022-01-13 03:21:45 +09:00
git 59eb02cd34 * 2022-01-13 [ci skip] 2022-01-13 02:01:22 +09:00
Peter Zhu 98fb0ab60e Enable Variable Width Allocation by default 2022-01-12 12:00:55 -05:00
Peter Zhu 2d81a718ec Make embedded string length a long for VWA
A short (2 bytes) will cause unaligned struct accesses when strings are
used as a buffer to directly store binary data.
2022-01-12 12:00:55 -05:00
Nobuyoshi Nakada e28dbd0f3d
[ruby/optparse] Fix for ruby 3.0 or earlier
https://github.com/ruby/optparse/commit/9e29d86c12
2022-01-12 21:16:02 +09:00
Nobuyoshi Nakada 743a41f7e3
[ruby/optparse] DidYouMean::PlainFormatter is deprecated
https://github.com/ruby/optparse/commit/0ac9957696
2022-01-12 21:16:02 +09:00
Nobuyoshi Nakada 92630e2346
[ruby/optparse] Fix links to the page directory files [Bug #18468]
https://github.com/ruby/optparse/commit/dab72c543d
2022-01-12 21:16:02 +09:00
Nobuyoshi Nakada 7d94df63c4
[ruby/optparse] Add rdoc options
Specify the main page and the page directory.  Also in Rakefile,
extract and use the same options from the gemspec file.

https://github.com/ruby/optparse/commit/d182cd60b5
2022-01-12 21:16:01 +09:00
Nobuyoshi Nakada 39bebd762d
[ruby/optparse] Add .document files
https://github.com/ruby/optparse/commit/ed283559d4
2022-01-12 21:16:01 +09:00
Nobuyoshi Nakada 26b4aa853f
Show JIT options only when supported 2022-01-12 17:51:14 +09:00
Hiroshi SHIBATA dcb02cb28a
[ruby/io-nonblock] Use omit instead of skip for test-unit
https://github.com/ruby/io-nonblock/commit/a7bfbfa049
2022-01-12 11:02:24 +09:00
Hiroshi SHIBATA 186fd89086 [ruby/rinda] Use omit instead of skip for test-unit
https://github.com/ruby/rinda/commit/1d3512aa26
2022-01-12 10:59:21 +09:00
Hiroshi SHIBATA bf2bd6dc22 [ruby/io-wait] Use omit instead of skip for test-unit
https://github.com/ruby/io-wait/commit/75543ab1bc
2022-01-12 10:53:57 +09:00
Hiroshi SHIBATA 7f5e06601b [ruby/date] Use omit instead of skip for test-unit
https://github.com/ruby/date/commit/537f3f681e
2022-01-12 10:53:34 +09:00
Hiroshi SHIBATA 236678b823 [ruby/open3] Use omit instead of skip for test-unit
https://github.com/ruby/open3/commit/f6ca124b56
2022-01-12 10:52:09 +09:00
Hiroshi SHIBATA 8ccbca2623 [ruby/win32ole] Use omit() for skip()
https://github.com/ruby/win32ole/commit/2d5dc47ed4
2022-01-12 10:50:43 +09:00
Hiroshi SHIBATA 5331615d54 [ruby/win32ole] Use omit instead of skip for test-unit
https://github.com/ruby/win32ole/commit/c0586b2f75
2022-01-12 10:50:41 +09:00
Hiroshi SHIBATA c02a9994ce [ruby/resolv] Use omit instead of skip for test-unit
https://github.com/ruby/resolv/commit/55e42221d4
2022-01-12 10:49:58 +09:00
Jeremy Evans d494a16ac5 [ruby/resolv] Support more characters in link local addresses
Implements [Feature #17524]

https://github.com/ruby/resolv/commit/993a1a374f
2022-01-12 10:49:57 +09:00
git 421bb589be * 2022-01-12 [ci skip] 2022-01-12 04:18:15 +09:00
Noah Gibbs 14967347b9
YJIT stats documentation additions and updates (#5427)
* YJIT documentation additions and updates

* Update yjit.md

Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
2022-01-11 14:17:59 -05:00
Hiroshi SHIBATA 34ebf82e83 [ruby/tmpdir] Use omit instead of skip for test-unit
https://github.com/ruby/tmpdir/commit/40107b59b3
2022-01-11 21:50:53 +09:00
Hiroshi SHIBATA 9b3dcf193c [ruby/net-http] Use omit instead of skip for test-unit
https://github.com/ruby/net-http/commit/843d4548de
2022-01-11 21:45:34 +09:00
Hiroshi SHIBATA 167121a9e7 [ruby/find] Use omit instead of skip for test-unit
https://github.com/ruby/find/commit/0ebbd5b852
2022-01-11 21:40:51 +09:00
Hiroshi SHIBATA 6b87d98011 [ruby/zlib] Use omit instead of skip for test-unit
https://github.com/ruby/zlib/commit/5f23cd3009
2022-01-11 21:35:22 +09:00
Hiroshi SHIBATA f95039af75
Use omit instead of skip without the default gems tests 2022-01-11 21:17:59 +09:00
Nobuyoshi Nakada 6d3ee418c2 [rubygems/rubygems] Markup code with RDoc notations
https://github.com/rubygems/rubygems/commit/c29cd23826
2022-01-11 20:20:51 +09:00
Vladimir Dementyev b633c9ac1c
Reduce p_args rules with p_rest 2022-01-11 19:58:57 +09:00
Kazuhiro NISHIYAMA b5310b8975
Fix compile errors
```
compiling ../ruby.c
../ruby.c:1547:17: error: implicit declaration of function 'setup_yjit_options' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                setup_yjit_options(s, &opt->yjit);
                ^
../ruby.c:1547:17: note: did you mean 'setup_mjit_options'?
../ruby.c:1122:1: note: 'setup_mjit_options' declared here
setup_mjit_options(const char *s, struct mjit_options *mjit_opt)
^
../ruby.c:1547:45: error: no member named 'yjit' in 'struct ruby_cmdline_options'; did you mean 'mjit'?
                setup_yjit_options(s, &opt->yjit);
                                            ^~~~
                                            mjit
../ruby.c:192:25: note: 'mjit' declared here
    struct mjit_options mjit;
                        ^
../ruby.c:1924:28: error: no member named 'yjit' in 'struct ruby_cmdline_options'; did you mean 'mjit'?
        rb_yjit_init(&opt->yjit);
                           ^~~~
                           mjit
../ruby.c:192:25: note: 'mjit' declared here
    struct mjit_options mjit;
                        ^
3 errors generated.
```
2022-01-11 17:33:01 +09:00
Nobuyoshi Nakada 3d675c72b9
Use `setup_yjit_options` only when supported 2022-01-11 17:26:21 +09:00
Nobuyoshi Nakada 1c9b5d452e
Reject command line option ending with `-` 2022-01-11 11:49:34 +09:00
Nobuyoshi Nakada 8b585f7460
Define YJIT options only when supported 2022-01-11 10:12:40 +09:00
Burdette Lamar d920535d1b
Enhanced RDoc for IO (#5425)
Treats:

    #pread
    #pwrite
    #binmode
    #binmode?
2022-01-10 17:02:48 -06:00
Burdette Lamar 6931d70e6e
Enhanced RDoc for IO (#5424)
Treats:

    #sysseek
    #syswrite
    #sysread
2022-01-10 15:14:36 -06:00
aycabta 9e79ae539b [ruby/reline] Clear dialog when just_move_cursor is called with dialog at last line
https://github.com/ruby/reline/commit/05024b968e
2022-01-11 06:10:37 +09:00