summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2020-09-18[ruby/rdoc] Support full filename to make a link for a text fileaycabta
https://github.com/ruby/rdoc/commit/41db49c485
2020-09-17Fix typos [ci skip]Kazuhiro NISHIYAMA
s/overriden/overridden/
2020-09-15[ruby/uri] Remove deprecated URI.escape/URI.unescapeJeremy Evans
https://github.com/ruby/uri/commit/61c6a47ebf
2020-09-15[ruby/fileutils] Reduce iteration through list for `:mkdir_p`Ashwin Maroli
By calling the instruction to `list.map` within `list.each` itself. https://github.com/ruby/fileutils/commit/e690eec937
2020-09-14[ruby/ostruct] Fix dup/cloneMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3541
2020-09-14[ruby/ostruct] method_missing is privateMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3541
2020-09-14[ruby/ostruct] Avoid self calling our public methods.Marc-Andre Lafortune
Found because `json` has a bad example in its test suite. This implementation still offers better encapsulation. Notes: Merged: https://github.com/ruby/ruby/pull/3541
2020-09-14[ruby/ostruct] Reinstate recent changesMarc-Andre Lafortune
This reverts commit 28e60b0045b5732bca11012d81a5223001faa6b2. Notes: Merged: https://github.com/ruby/ruby/pull/3541
2020-09-14[ruby/ostruct] Revert recent changesMarc-Andre Lafortune
This reverts commit e026e186f4..12a2e32d43.
2020-09-14[ruby/rdoc] Prefer require_relativeMarc-Andre Lafortune
2020-09-14[ruby/ostruct] Add access to public instance methods in case they are overridenMarc-Andre Lafortune
2020-09-14[ruby/ostruct] Tweak docMarc-Andre Lafortune
2020-09-14[ruby/ostruct] Allow overriding public methodsMarc-Andre Lafortune
[Fixes https://bugs.ruby-lang.org/issues/15409]
2020-09-14[ruby/ostruct] Refactor handling of frozen OpenStruct. Simplify ↵Marc-Andre Lafortune
`new_ostruct_member!`
2020-09-14[ruby/ostruct] Revert "ostruct.rb: deferred accessors"Marc-Andre Lafortune
This reverts commits: dc38e99813 22c082fcfd b499e0f9ff 58e5876646 Add test for overriden private methods [Fixes https://bugs.ruby-lang.org/issues/12136]
2020-09-14[ruby/tmpdir] Warn when environment variables skipped (fixes #2)Nobuyoshi Nakada
https://github.com/ruby/tmpdir/commit/af7b020a89
2020-09-14[ruby/net-smtp] Add SNI support to net/smtpnicholas a. evans
https://github.com/ruby/net-smtp/commit/b706942392
2020-09-14[ruby/net-smtp] Net::SMTP.start arguments are keyword argumentsTOMITA Masahiro
The helo argument is not important, but the helo argument must be specified to specify the user and secret arguments. If helo, user, secret, and authtype arguments are keyword arguments, it is not necessary to specify the helo argument. https://github.com/ruby/net-smtp/commit/269774deac
2020-09-14[ruby/net-smtp] TLS should not check the host name by default.TOMITA Masahiro
In tlsconnect(), the host name is checked when @ssl_context.verify_mode is not OpenSSL::SSL::VERIFY_NONE, but the verify_mode of @ssl_context generated by default is nil. https://github.com/ruby/net-smtp/commit/bde75a15b5
2020-09-14[ruby/erb] Use libexec same as ruby core repositoryHiroshi SHIBATA
https://github.com/ruby/erb/commit/660255cf24
2020-09-14Manually picked ↵Hiroshi SHIBATA
https://github.com/ruby/open3/commit/724bdb8e1de939e71a6aa8a65ccf6980f53f4353
2020-09-14Fixup 8f71bb0e4f76ab12e469d33bc560bd76cc3aaf90Hiroshi SHIBATA
2020-09-14[ruby/irb] Version 1.2.6aycabta
https://github.com/ruby/irb/commit/5a7dd8c3bf
2020-09-14[ruby/irb] Need calculate_width and split_by_width of Reline::Unicode of ↵aycabta
reline 0.1.5 or later https://github.com/ruby/irb/commit/c05bc9e595
2020-09-14[ruby/irb] Omit output if first line of multiline is too longaycabta
https://github.com/ruby/irb/commit/0feeae38c5
2020-09-14[ruby/irb] Add OMIT_ON_ASSIGNMENTaycabta
Omit the results evaluated at assignment if they are too long. The behavior of ECHO_ON_ASSIGNMENT being on by default is hard to understand, so I change it to off by default. Instead, we turn OMIT_ON_ASSIGNMENT on by default. The result is displayed on assignment, but it will always be short and within one line of the screen. https://github.com/ruby/irb/commit/c5ea79d5ce
2020-09-14[ruby/irb] Version 1.2.5aycabta
https://github.com/ruby/irb/commit/07beb3964d
2020-09-14[ruby/reline] Version 0.1.5aycabta
https://github.com/ruby/reline/commit/c8a419beb5
2020-09-12Suppress "assigned but unused variable" warningaycabta
2020-09-12[ruby/reline] Support for word movement escape sequences in iTerm2aycabta
https://github.com/ruby/reline/commit/187235f88c
2020-09-12[ruby/reline] Treat prompt correctly when Reline.prompt_proc isn't setaycabta
https://github.com/ruby/reline/commit/9c9ba0eff3
2020-09-12[ruby/reline] Move cursor to currect vertical pos after rendering a logical lineaycabta
https://github.com/ruby/reline/commit/9b932df544
2020-09-12[ruby/reline] Stop using chomp option of lines methodaycabta
https://github.com/ruby/reline/commit/3e2f55c3e0
2020-09-12[ruby/reline] Stop erasing chars after the cursor at eolaycabta
When the cursor is at the end of the line and erases characters after the cursor, some terminals delete the character at the cursor position. https://github.com/ruby/reline/commit/e96ec97b02
2020-09-12[ruby/reline] Skip the nil obtained from getcaycabta
The nil means there is nothing in the buffer in some systems. Incidentally, Errno::EIO is raised if the I/O is closed. https://github.com/ruby/reline/commit/c698634e74
2020-09-12[ruby/reline] not clear scrollback bufferYoshinao Muramatu
https://github.com/ruby/reline/commit/ba800f1461
2020-09-12[ruby/reline] clear_screen use Windows APIYoshinao Muramatu
https://github.com/ruby/reline/commit/2c5ee54cb3
2020-09-12[ruby/reline] Use str.encoding by default for split_by_widthaycabta
https://github.com/ruby/reline/commit/2d32604c9e
2020-09-12Promote time.rb to default gemsHiroshi SHIBATA
2020-09-11Promote resolv-replace to default gemsHiroshi SHIBATA
2020-09-11Promote resolv to default gemsHiroshi SHIBATA
2020-09-11Promote securerandom to default gemsHiroshi SHIBATA
2020-09-11Promote open-uri to default gemsHiroshi SHIBATA
2020-09-11Removed DRb.default_safe_level and DRb#safe_levelHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/3531
2020-09-10Promote base64 to default gemsHiroshi SHIBATA
2020-09-10Promote shellwords to default gemsHiroshi SHIBATA
2020-09-10Promote abbrev to default gemsHiroshi SHIBATA
2020-09-09Make SecureRandom support RactorAaron Patterson
SecureRandom lazily defines `get_random`. Accessing the mutex to define the `get_random` method is not supported inside a Ractor. This commit defines `gen_random` when `securerandom` is required and makes it suppore Ractor (as well as thread safe). Here is a test program: ```ruby require "securerandom" r = Ractor.new do loop do Ractor.yield SecureRandom.hex end end p r.take ``` Before this commit: ``` $ make runruby ./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems ./test.rb <internal:ractor>:38: warning: Ractor is experimental, and the behavior may change in future versions of Ruby! Also there are many implementation issues. /Users/aaron/git/ruby/lib/securerandom.rb:94:in `gen_random': can not access instance variables of classes/modules from non-main Ractors (RuntimeError) <internal:ractor>:124:in `take': thrown by remote Ractor. (Ractor::RemoteError) from ./test.rb:9:in `<main>' /Users/aaron/git/ruby/lib/securerandom.rb:94:in `gen_random': can not access instance variables of classes/modules from non-main Ractors (RuntimeError) from /Users/aaron/git/ruby/lib/securerandom.rb:155:in `random_bytes' from /Users/aaron/git/ruby/lib/securerandom.rb:176:in `hex' from ./test.rb:5:in `block (2 levels) in <main>' from ./test.rb:4:in `loop' from ./test.rb:4:in `block in <main>' make: *** [runruby] Error ``` After this commit: ``` $ make runruby ./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems ./test.rb <internal:ractor>:38: warning: Ractor is experimental, and the behavior may change in future versions of Ruby! Also there are many implementation issues. "3fc8885157e3911bab4b5d7619bb0308" ``` Notes: Merged: https://github.com/ruby/ruby/pull/3518
2020-09-09Promote tsort to default gemsHiroshi SHIBATA
2020-09-09Revert the related commits about `Tempfile.open` change.Hiroshi SHIBATA
Start with https://github.com/ruby/ruby/commit/fa21985a7a2f8f52a8bd82bd12a724e9dca74934 to https://github.com/ruby/ruby/commit/d7492a0be885ea9f2b9f71e3e95582f9a859c439