aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/error_highlight] Support nodes in `spot`eileencodes2022-10-311-2/+1
| | | | | | | | | | | | | | | Fixes a bug where `spot` was using the wrong local variable. We want to use error highlight with code that has been eval'd, specifically ERB templates. We can recover the compiled source code of the ERB template but we need an API to pass the node into error highlight's `spot`. Required Ruby PR: https://github.com/ruby/ruby/pull/6593 https://github.com/ruby/error_highlight/commit/0b1b650a59 Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
* [ruby/optparse] #load() into hashWhyme Lyu2022-10-291-4/+7
| | | | | | | | | (https://github.com/ruby/optparse/pull/42) OptionParser#load learns .load(into: Hash) https://github.com/ruby/optparse/commit/2ea626fcff Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* [ruby/irb] Do not make non-existent XDG directory on startNobuyoshi Nakada2022-10-281-4/+2
| | | | | | | (https://github.com/ruby/irb/pull/357) https://github.com/ruby/irb/commit/298b134792
* [ruby/irb] Update regarding NO_COLOR valueNobuyoshi Nakada2022-10-281-1/+1
| | | | | | | | | | | | https://no-color.org has been updated (jcs/no_color#83): > Command-line software which adds ANSI color to its output by default should check for a `NO_COLOR` environment variable that, when present and **not an empty string** (regardless of its value), prevents the addition of ANSI color. https://github.com/ruby/irb/commit/46e0f7e370 Co-authored-by: Stan Lo <stan001212@gmail.com>
* [ruby/rdoc] Delay `require "readline"` in case the terminal is in raw mode Shugo Maeda2022-10-271-5/+4
|
* [ruby/erb] Version 3.0.0 Takashi Kokubun2022-10-251-1/+1
|
* Bundler: update docs for gemfile(5) manpageTakuya Noguchi2022-10-252-22/+43
| | | | | | | | - Add mswin/mswin64 to platforms - Use TruffleRuby as example instead of Rubinius Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com> Co-authored-by: André Arko <andre@arko.net>
* [ruby/erb] url_encode: use CGI.escapeURIComponentJean Boussier2022-10-252-4/+4
| | | | | | | | | | | (https://github.com/ruby/erb/pull/23) Ref: https://github.com/ruby/cgi/pull/26 This native implementation is much faster and available in `cgi 0.3.3`. https://github.com/ruby/erb/commit/2d90e9b010
* [ruby/tmpdir] Ignore empty environment variablesNobuyoshi Nakada2022-10-251-2/+4
| | | | | | Fixes https://github.com/ruby/tmpdir/pull/17 https://github.com/ruby/tmpdir/commit/a79c727a5d
* [ruby/tmpdir] Found or raise Nobuyoshi Nakada2022-10-251-4/+2
|
* [ruby/tmpdir] Update supported and testing ruby versions Nobuyoshi Nakada2022-10-251-1/+1
|
* [ruby/tmpdir] Make `Dir.tmpdir` more idiomatic and functionalPeter Vandenberk2022-10-251-4/+2
| | | | | | | | | | Use `Enumerable#find` to iterate over the candidates, not `Enumerable.each`. (this makes the code more functional, and - IMO - slightly more idiomatic, as it avoids setting the "global" (by which I mean: non-local) `tmp` variable from inside the block) https://github.com/ruby/tmpdir/commit/d1f20ad694
* [ruby/tmpdir] Fix typo Nobuyoshi Nakada2022-10-251-1/+1
|
* [ruby/tmpdir] [DOC] Improve documentationNobuyoshi Nakada2022-10-251-1/+9
| | | | https://github.com/ruby/tmpdir/commit/b9c880f2b6
* [ruby/irb] Move require out of repeated execution pathst00122022-10-241-6/+6
| | | | | | | | | | | | SHOW_DOC_DIALOG will be called repeatedly whenever the corresponding key is pressed, but we only need to require rdoc once. So ideally the require can be put outside of the proc. And because when rdoc is not available the entire proc will be nonfunctional, we can stop registering the SHOW_DOC_DIALOG if we failed to require rdoc. https://github.com/ruby/irb/commit/b1278b7320
* Set timestamp path for the target path to TARGET_SO_DIR_TIMESTAMPNobuyoshi Nakada2022-10-241-3/+6
|
* [ruby/net-http] Bump version to 0.3.0 Hiroshi SHIBATA2022-10-241-1/+1
|
* [rubygems/rubygems] Allow upcoming JRuby to pass keywords for Kernel#warnThomas E. Enebo2022-10-221-1/+1
| | | | | | | | | jruby-head (which will be JRuby 9.4.0.0) can now properly process the keywords to Kernel#warn. I cannot think of any capability based test for this so I constrained it using a version guard. Only JRuby will ever hit the version guard. https://github.com/rubygems/rubygems/commit/cd468c7e0f
* [ruby/net-http] Revert "Replace Timeout.timeout in Net:HTTP#connect"Hiroshi SHIBATA2022-10-211-7/+8
| | | | | | This reverts commit https://github.com/ruby/net-http/commit/753cae3bbccc. https://github.com/ruby/net-http/commit/98caa38204
* [rubygems/rubygems] Bundler: github DSL has used https protocol over gitTakuya Noguchi2022-10-1830-31/+31
| | | | | | | | | | This behavior change was done in Bundler 2.2.0. https://github.com/rubygems/bundler/pull/7142 Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com> https://github.com/rubygems/rubygems/commit/9510190be1
* Merge RubyGems/Bundler masterHiroshi SHIBATA2022-10-1810-164/+54
| | | | https://github.com/rubygems/rubygems/commit/6214d00b2315ed37c76b1fbc1c72f61f92ba5a65
* [rubygems/rubygems] Materialize platforms strictly on Windows tooDavid Rodríguez2022-10-181-2/+5
| | | | https://github.com/rubygems/rubygems/commit/ab11545f80
* [rubygems/rubygems] Remove unnecessary receiverDavid Rodríguez2022-10-181-1/+1
| | | | https://github.com/rubygems/rubygems/commit/ba9d9b1890
* [rubygems/rubygems] Remove unnecessary genericDavid Rodríguez2022-10-181-1/+0
| | | | | | | I didn't realize how the `Bundler::GemHelpers.generic` method works when I added this. It already matches this and other java platforms properly. https://github.com/rubygems/rubygems/commit/5f0f0c678c
* [rubygems/rubygems] Simplify fetching spec group dependenciesDavid Rodríguez2022-10-181-4/+1
| | | | https://github.com/rubygems/rubygems/commit/62c2edd255
* [rubygems/rubygems] Simplify SpecGroup creationDavid Rodríguez2022-10-182-13/+10
| | | | https://github.com/rubygems/rubygems/commit/788e46e152
* [rubygems/rubygems] Inline helper methodDavid Rodríguez2022-10-181-8/+3
| | | | https://github.com/rubygems/rubygems/commit/e60459d6b6
* [rubygems/rubygems] Use `flat_map`David Rodríguez2022-10-181-4/+2
| | | | https://github.com/rubygems/rubygems/commit/b31308fb4c
* [rubygems/rubygems] Remove one more `expand_dependencies` callDavid Rodríguez2022-10-181-2/+2
| | | | https://github.com/rubygems/rubygems/commit/996fd81871
* [rubygems/rubygems] Remove now unnecessary parameter to `expand_dependencies`David Rodríguez2022-10-181-4/+3
| | | | | | We just call it once for resolution, so we can simplify things. https://github.com/rubygems/rubygems/commit/99c144fbe3
* [rubygems/rubygems] Remove another `expand_dependencies` instanceDavid Rodríguez2022-10-181-3/+2
| | | | https://github.com/rubygems/rubygems/commit/33769ddb07
* [rubygems/rubygems] Remove another unnecessary dependency expansionDavid Rodríguez2022-10-181-1/+1
| | | | https://github.com/rubygems/rubygems/commit/b4a0fcd2d2
* [rubygems/rubygems] Avoid unnecessary dependency expansionDavid Rodríguez2022-10-181-2/+1
| | | | https://github.com/rubygems/rubygems/commit/426748ed06
* [rubygems/rubygems] Remove unused parameter to `SharedHelpers.pretty_dependency`David Rodríguez2022-10-183-5/+4
| | | | https://github.com/rubygems/rubygems/commit/665051d085
* [rubygems/rubygems] Remove dead codeDavid Rodríguez2022-10-181-12/+1
| | | | https://github.com/rubygems/rubygems/commit/999b644708
* [ruby/irb] Assert lvars_code doesn't include \nTakashi Kokubun2022-10-181-3/+3
| | | | | | | | | Removing /\A.+\n/ could have an unexpected impact, depending on how RubyLex.generate_local_variables_assign_code is implemented. It feels like a too much assumption and the intention isn't immediately clear, so I added these changes. https://github.com/ruby/irb/commit/ccc07a35ce
* [ruby/irb] Always use local variables in current context to parse code ↵tomoya ishida2022-10-185-24/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/397) * Use local_variables for colorize, code_block_open check, nesting_level and assignment_expression check * Check if expression is an assignment BEFORE evaluating it. evaluate might define new localvars and change result of assignment_expression? * Add local_variables dependent code test * pend local variable dependent test on truffleruby code_block_open is not working on truffleruby * Always pass context to RubyLex#lex * Rename local_variable_assign_code generator method name * Add assignment expression truncate test * Add Context#local_variables and make generate_local_variables_assign_code more simple * Update lib/irb/input-method.rb Co-authored-by: Stan Lo <stan001212@gmail.com> * Add a comment why assignment expression check should be done before evaluate https://github.com/ruby/irb/commit/c8b3877281 Co-authored-by: Stan Lo <stan001212@gmail.com> Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
* [ruby/irb] Fix code terminated check with heredoc and backtick ↵tomoya ishida2022-10-181-6/+16
| | | | | | | | | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/390) * Fix backtick method def method call handled as backtick open * Fix handling heredoc in check_string_literal * Sort result of lexer.parse by pos in ruby<2.7. It's not sorted when the given code includes heredoc. * Update lib/irb/ruby-lex.rb Co-authored-by: Stan Lo <stan001212@gmail.com> * Update lib/irb/ruby-lex.rb Co-authored-by: Stan Lo <stan001212@gmail.com> * Add check_string_literal test for heredoc code that does not end with newline https://github.com/ruby/irb/commit/44bc712460 Co-authored-by: Stan Lo <stan001212@gmail.com>
* [ruby/delegate] Fix DelegateClass block "method redefined" warningJonathan Hefner2022-10-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | This commit prevents "method redefined" warnings when overriding methods within a `DelegateClass` block, such as in the following example: ```ruby Base = Class.new do def foo "foo" end end Overridden = DelegateClass(Base) do def foo super + "!" end end ``` Fixes https://bugs.ruby-lang.org/issues/19047. https://github.com/ruby/delegate/commit/214fae86de
* [ruby/pp] [Feature #19045] Add support Data#pretty_printmanga_osyo2022-10-141-0/+20
| | | | https://github.com/ruby/pp/commit/343a20d721
* Only expose Ruby Shape API if VM_CHECK_MODE is enabledAaron Patterson2022-10-131-1/+1
|
* [ruby/uri] Fix splitting relative URINobuyoshi Nakada2022-10-131-1/+1
| | | | https://github.com/ruby/uri/commit/ffbab83de6
* Raise ArgumentError with empty host url again.Hiroshi SHIBATA2022-10-131-1/+2
| | | | | | Fixup dd5118f8524c425894d4716b787837ad7380bb0d Co-authored-by: Koichi Sasada <ko1@atdot.net>
* URI.parse should set empty string in host instead of nilNARUSE, Yui2022-10-131-2/+1
|
* [DOC] Replace the external URIs to docs with rdoc-refNobuyoshi Nakada2022-10-121-1/+1
|
* [DOC] Replace the external URIs to docs with rdoc-refNobuyoshi Nakada2022-10-126-38/+38
|
* Add :ssl_min_version and :ssl_max_version optionsKazuki Yamaguchi2022-10-121-3/+18
| | | | | | Replace :ssl_version option with these two new options. These provide access to OpenSSL::SSL::SSLContext#{min,max}_version=, which is the recommended way to specify SSL/TLS protocol versions.
* Make inline cache reads / writes atomic with object shapesJemma Issroff2022-10-111-9/+21
| | | | | | | | | | | | | | Prior to this commit, we were reading and writing ivar index and shape ID in inline caches in two separate instructions when getting and setting ivars. This meant there was a race condition with ractors and these caches where one ractor could change a value in the cache while another was still reading from it. This commit instead reads and writes shape ID and ivar index to inline caches atomically so there is no longer a race condition. Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org> Co-Authored-By: John Hawthorn <john@hawthorn.email>
* Revert "Revert "This commit implements the Object Shapes technique in CRuby.""Jemma Issroff2022-10-111-81/+36
| | | | This reverts commit 9a6803c90b817f70389cae10d60b50ad752da48f.
* [ruby/open-uri] Remove unused files from the packagesNobuyoshi Nakada2022-10-111-1/+1
| | | | https://github.com/ruby/open-uri/commit/b2d9efbaf8