68141 Commits

Author SHA1 Message Date
Nobuyoshi Nakada
dfa67db62b
Show failed environment variables 2021-09-27 20:47:44 +09:00
rm155
0a38212e57 [ruby/timeout] Freeze VERSION
https://github.com/ruby/timeout/commit/ac7b010c41
2021-09-27 19:36:20 +09:00
Nobuyoshi Nakada
efa0c31ce5
Add printf-style format attribute to oniguruma functions
Also make the format string compatible with literal strings which
are const arrays of "plain" chars.
2021-09-27 19:02:45 +09:00
Joao Fernandes
f8000e2931 [ruby/base64] Avoid unnecessary string duplication
String#ljust returns a new string, so whenever we need to add
padding, we can replace "-/" in place with String#tr! and avoid creating
yet another copy of the string.

https://github.com/ruby/base64/commit/6401ef5824
2021-09-27 15:23:25 +09:00
Joao Fernandes
1b004ba0db [ruby/base64] Simplify
Thanks @nobu!

https://github.com/ruby/base64/commit/39e22efa2b
2021-09-27 15:23:12 +09:00
Joao Fernandes
05a28ce5b1 [ruby/base64] Improve Base64.urlsafe_encode64 performance
Improves the method's performance when asked to remove padding.

str.delete!("=") iterates over the entire string looking for the equals
character, but we know that we will, at most, find two at the end of the
string.

https://github.com/ruby/base64/commit/544e0c2cf7
2021-09-27 15:23:04 +09:00
Nobuyoshi Nakada
f7ffe9dbde
Introduce RBIMPL_NONNULL_ARG macro
Runtime assertion for the argument declared as non-null.
This macro does nothing if `RBIMPL_ATTR_NONNULL` is effective,
otherwise asserts that the argument is non-null.
2021-09-27 14:47:52 +09:00
John Bachir
582602d142 [ruby/timeout] test for basic functionality
https://github.com/ruby/timeout/commit/1c6bb90aea
2021-09-27 13:22:46 +09:00
aycabta
00cfafc0f5 [ruby/irb] Add doc about "echo on assignment"
https://github.com/ruby/irb/commit/5af637b3c1
2021-09-27 03:23:48 +09:00
aycabta
51773bed10 [ruby/irb] Add blank lines to sample code in doc for readability
https://github.com/ruby/irb/commit/123b7e53ee
2021-09-27 03:23:41 +09:00
aycabta
2ae64bf6b9 [ruby/irb] Fix sample code in doc
https://github.com/ruby/irb/commit/642adbe968
2021-09-27 03:23:37 +09:00
aycabta
5c0636bda4 [ruby/irb] Add a space before left paren
https://github.com/ruby/irb/commit/973bac83ff
2021-09-27 03:23:31 +09:00
git
7ba16939bb * 2021-09-27 [ci skip] 2021-09-27 01:16:29 +09:00
aycabta
a230ff0f83 [ruby/reline] ^K is kill-line and ^U is unix-line-discard for inputrc
https://github.com/ruby/reline/commit/5936071940
2021-09-27 01:16:15 +09:00
Jake Zimmerman
3f7b08d2cb [ruby/reline] Implement vi_kill_line_prev
This operation is mentioned and bound to `^U` in both `vi_command.rb`
and `vi_insert.rb`, but there is no definition of it.

Both Vi and Emacs use the same keystroke to do the same behavior, so
I've chosen to use `alias_method` to make the implementation small,
rather than duplicating the method and re-implementing it.

https://github.com/ruby/reline/commit/fdbfc8669f
2021-09-26 23:47:11 +09:00
git
389de6f052 * 2021-09-26 [ci skip] 2021-09-26 09:56:39 +09:00
Nobuyoshi Nakada
18f0b7c2f7
Fix dependency of verconf.h
template/verconf.h.tmpl reads rbconfig.rb.
2021-09-26 09:48:53 +09:00
Nobuyoshi Nakada
806a27f98b
Dot-prefix appveyor.yml 2021-09-25 15:44:14 +09:00
Nobuyoshi Nakada
69ce154d6e
FL_USER flags on ohter than T_DATA are reserved [Misc #18059] 2021-09-25 15:38:38 +09:00
Samuel Williams
9151ed2fb2 Return fstrings from build_const_pathname.
It's possible for `build_const_pathname` to be called when `rb_cString` is
still NULL. There is a fix-up step when `rb_cString` is initialized, but
it only applies to `fstring` instances.
2021-09-25 18:19:20 +12:00
S-H-GAMELINKS
13b17cb8fc Refactor rb_call_super function 2021-09-25 17:03:36 +12:00
Burdette Lamar
39a6bf5513
Enhanced RDoc for Struct (#4891)
Treats:

    #values_at
    #select
    #==
    #hash
    #eql?
    #size
    #dig
2021-09-24 18:41:02 -05:00
Burdette Lamar
bbdfce96a2
Enhanced RDoc for Struct (#4890)
Treated:

    #each
    #each_pair
    #inspect
    #to_a
    #to_h
    #[]
    #[]=
2021-09-24 10:35:19 -05:00
git
7adfb14f60 * 2021-09-25 [ci skip] 2021-09-25 00:12:00 +09:00
aycabta
f726c79d74 [ruby/reline] Add aliases {prev,next}_history to ed_{prev,next}_history
https://github.com/ruby/reline/commit/d740e18cff
2021-09-25 00:11:44 +09:00
aycabta
ff26c60bc1 [ruby/irb] Revert "Show original string byte sequence to debug"
This reverts commit b42fe5937ab2a605a198ffb866db5ccda541568d.

https://github.com/ruby/irb/commit/b22094a16f
2021-09-24 23:50:32 +09:00
aycabta
93291005a0 [ruby/irb] Show original string byte sequence to debug
https://github.com/ruby/irb/commit/7a97bb0e56
2021-09-24 23:50:26 +09:00
aycabta
40a65030e5 Pend test_complete_require_library_name_first 2021-09-24 22:56:38 +09:00
Nobuyoshi Nakada
225a29b9bc
FL_USER flags on ohter than T_DATA are reserved [Misc #18059] 2021-09-24 19:23:15 +09:00
Nobuyoshi Nakada
845c017e08
Reminders of the Windows versions each API is available [ci skip] 2021-09-24 12:31:20 +09:00
Nobuyoshi Nakada
0eb679f70c
HCRYPTPROV is not a HANDLE
Even though it is called "handle" and prefixed with "H", and its
value looks like a handle.
2021-09-24 12:12:38 +09:00
Lucas Kanashiro
61aedb28ef [rubygems/rubygems] Use pend instead of skip in the absence of git in test helper
https://github.com/rubygems/rubygems/commit/798a93a98c
2021-09-24 10:57:27 +09:00
David Rodríguez
4e7f085cf7 [rubygems/rubygems] Revert "Fix an issue causing nested Gem::Uri instances"
This reverts commit 6589f7bcc7a63a47cb73f58a290c1e1ac42bba99.

https://github.com/rubygems/rubygems/commit/9d0ce31f08
2021-09-24 10:57:15 +09:00
huangduirong
b1ab1ee046 [rubygems/rubygems] Fix error message building changing password of source
Do not change the password of the input parameter source during
anonymization, by using the proper helper instead of changing the
original uri directly.

https://github.com/rubygems/rubygems/commit/eaa2dd8a97
2021-09-24 10:57:03 +09:00
Nobuyoshi Nakada
63297c2ca4
Align the implementation precedences with rb_atomic_t definition
On MinGW, where both of Win32 API and GCC built-ins are available,
the mismatch of implementations to the definition caused lots of
warnings.
2021-09-24 10:11:32 +09:00
Nobuyoshi Nakada
b929af430c Use the flag for uninitialized module [Bug #18185]
Make `Module#ancestors` not to include `BasicObject`.
2021-09-24 08:29:00 +09:00
Nobuyoshi Nakada
65285bf673 Consider modified modules initialized [Bug #18185] 2021-09-24 08:29:00 +09:00
Burdette Lamar
854fe9d1c1
Correct two errors in Range RDoc (#4889) 2021-09-23 18:08:49 -05:00
Burdette Lamar
b38d2bf118
Enhance RDoc for Struct (#4885)
Treats #members and ::new.
2021-09-23 17:21:40 -05:00
Alan Wu
edb34e3563
Fix typo in insns.def [ci skip] 2021-09-23 17:14:04 -04:00
xtkoba
5d756118af Use the correct address size 2021-09-23 12:29:07 -07:00
xtkoba
77e6715d67 Interpret DW_RLE_start_length
Fixes [Bug #17823]
2021-09-23 12:29:07 -07:00
xtkoba
f140965b97 Fix return value when base != 0 2021-09-23 12:29:07 -07:00
git
3531c859a6 * 2021-09-24 [ci skip] 2021-09-24 03:08:48 +09:00
aycabta
63aba76893 [ruby/reline] Use SGR 0 instead of SGR 39 and 49 to reset font settings
https://github.com/ruby/reline/commit/cbacb4c1cf
2021-09-24 03:08:33 +09:00
aycabta
3b5923bca3 [ruby/reline] Reset all font settings at left end of dialog
https://github.com/ruby/reline/commit/5f293b5127
2021-09-23 23:41:55 +09:00
Nobuyoshi Nakada
8226c33bb5
Add symname_equal_lit for comparison with a string literal 2021-09-23 22:07:52 +09:00
Nobuyoshi Nakada
96c8964e0e
Revive the test using US-ASCII incompatible symbol 2021-09-23 22:04:19 +09:00
aycabta
4704bc0976 Revert "Show original string byte sequence to debug"
This reverts commit b42fe5937ab2a605a198ffb866db5ccda541568d.
2021-09-23 18:02:21 +09:00
Nobuyoshi Nakada
ede95f541b [ruby/irb] Ignore any encoding errors while symbol completion
https://github.com/ruby/irb/commit/daa65cded1
2021-09-23 18:01:36 +09:00