summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/irb] Print deprecation warning for `help` commandHEADmasterStan Lo2023-05-183-45/+65
| | | | | | | | (https://github.com/ruby/irb/pull/567) * Give show_doc its own command class * Print deprecation warning for `help` command
* [rubygems/rubygems] Bump up thor-1.2.2Hiroshi SHIBATA2023-05-1317-66/+76
| | | | https://github.com/rubygems/rubygems/commit/d9a003b4e7
* Merge https://github.com/rubygems/rubygems/pull/6655 manually.Hiroshi SHIBATA2023-05-102-11/+33
|
* Update SPDX license listSamuel Giddins2023-05-101-0/+40
|
* [rubygems/rubygems] Simplify code by Gem::Specification#runtime_dependenciesTakumasa Ochi2023-05-081-10/+5
| | | | https://github.com/rubygems/rubygems/commit/324139af8f
* [ruby/reline] Fix dialog corrupts rendering by pushing up input linetomoya ishida2023-05-071-2/+8
| | | | | | | | | | | | | | | | | | | too much (https://github.com/ruby/reline/pull/524) * Do not render dialog where it overflows screen * Dialog rendering should Scroll down only when needed * Refactor screen_y_range calculation Co-authored-by: Stan Lo <stan001212@gmail.com> --------- https://github.com/ruby/reline/commit/bc0e3d1310 Co-authored-by: Stan Lo <stan001212@gmail.com>
* [ruby/rdoc] Isolate root dir if specifiedzzak2023-05-062-3/+4
| | | | | | This ensures only files from the root directory are chosen, in order to allow a clean build from outside the source directory. https://github.com/ruby/rdoc/commit/f3b389aa9e
* [ruby/rdoc] Drop the support for 2.5 or earlier because of CVE-2021-31799Nobuyoshi Nakada2023-05-051-1/+1
| | | | https://github.com/ruby/rdoc/commit/26136138aa
* Redirect to `IO::NULL` for the portabilityNobuyoshi Nakada2023-05-0515-15/+15
|
* [ruby/rdoc] [DOC] stop documenting fallback `MatchData#match_length`Nobuyoshi Nakada2023-05-021-11/+11
| | | | | | Also empty document of `Object`. https://github.com/ruby/rdoc/commit/ce32a3102b
* [ruby/rdoc] Section may not have `label`Nobuyoshi Nakada2023-05-021-2/+3
| | | | https://github.com/ruby/rdoc/commit/945f0cb3e9
* [ruby/rdoc] Fix references to nested label in table_of_contentsNobuyoshi Nakada2023-05-021-1/+1
| | | | | | Fixes https://github.com/ruby/rdoc/pull/1000 https://github.com/ruby/rdoc/commit/291e2b7e8b
* [ruby/reline] Rewrite dialog renderingtomoya ishida2023-05-011-203/+141
| | | | | | | | | | | | (https://github.com/ruby/reline/pull/492) * Rewrite dialog rendering * Fix failing test of dialog with small screen * Add multiple-dialog rendering test * Add description comments for each part of render_dialog_changes
* Update generate_spdx_license_list.rbNobuyoshi Nakada2023-05-011-1/+1
| | | | | | | | - Follow up RegexpLiteral at 9264d834215aa7ce14b0273032a7686c20141db9. - Split the code to be generated so that `REGEXP` does not need escapes. - Use `REGEXP.match?` since support for Ruby 2.3 or earlier has been dropped.
* [ruby/rdoc] Fix polynominal backtrackingNobuyoshi Nakada2023-04-291-33/+17
| | | | | | Fix https://github.com/ruby/rdoc/pull/995 https://github.com/ruby/rdoc/commit/1311ca8c50
* [ruby/rdoc] Fix polynominal backtrackingNobuyoshi Nakada2023-04-291-1/+1
| | | | | | Fix https://github.com/ruby/rdoc/pull/995 https://github.com/ruby/rdoc/commit/adfa7db5b9
* [ruby/irb] Retire magic-file.rbStan Lo2023-04-283-42/+1
| | | | | | | | | | | | | (https://github.com/ruby/irb/pull/574) `MagicFile` was introduced around v0.9.6, which was like 14~15 years ago. It was needed because back then we needed to read a file's magic comment to determine the encoding of it, and read it with that encoding. Commit: 3ee79e89 But now we expect files to be encoded in UTF-8 and don't specify encoding through magic comments anymore, `MagicFile` can be retired.
* Update an Intel SDM link [ci skip]Takashi Kokubun2023-04-281-1/+1
|
* [ruby/resolv] Prefer `Array#concat` over `#+=` on `Array`Nobuyoshi Nakada2023-04-281-2/+2
| | | | | | Fix https://bugs.ruby-lang.org/issues/19621 https://github.com/ruby/resolv/commit/7faaa78847
* [ruby/irb] Simplify Locale#loadStan Lo2023-04-271-39/+2
| | | | | | | | | | | | | (https://github.com/ruby/irb/pull/571) * Simplify Locale#load Instead of loading file content with `MagicFile` and then evaluting it, we can just use `Kernel.load` to load the file. * Remove unused optional argument * Remove unused Locale#require and #toplevel_load
* [ruby/irb] Stop using MagicFile for printing help messagesStan Lo2023-04-271-1/+1
| | | | | | | | | | | | | (https://github.com/ruby/irb/pull/573) `MagicFile` was introduced around v0.9.6, which was like 14~15 years ago. It was needed because back then we needed to read a file's magic comment to determine the encoding of it, and read it with that encoding. Commit: https://github.com/ruby/irb/commit/3ee79e89adb8e21b63d796e53bcc86281685076d But now both EN and JA's help-message file are UTF-8 and have removed the encoding comment, we don't need to open them with `MagicFile` anymore.
* RJIT: Fix unspecified_bits with localsTakashi Kokubun2023-04-261-2/+2
|
* [ruby/irb] Remove encoding_aliases.rbStan Lo2023-04-262-16/+6
| | | | | | | | (https://github.com/ruby/irb/pull/569) We don't have to load another file to define the legacy encoding aliases map because there's only one definition of it. We can define it in locale.rb directly.
* [ruby/irb] Fix Locale's encoding lookup for Japanese encodingsStan Lo2023-04-261-1/+2
| | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/568) In https://github.com/ruby/irb/commit/3ee79e89adb8e21b63d796e53bcc86281685076d, `encoding_aliases.rb` was introduced to return the correct encoding object for `ujis` and `euc` encodings. However, the return value of `@@legacy_encoding_alias_map[@encoding_name]` is always overridden by a second look up with `Encoding.find(@encoding_name)`. So the logic didn't work as expected. This commit fixes the problem.
* [ruby/syntax_suggest] Clean up outputschneems2023-04-252-21/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I previously left a comment stating I didn't know why a certain method existed. In investigating the code in `CaptureCodeContext#capture_before_after_kws` I found that it was added as to give a slightly less noisy output. The docs for AroundBlockScan#capture_neighbor_context only describe keywords as being a primary concern. I modified that code to only include lines that are keywords or ends. This reduces the output noise even more. This allows me to remove that `start_at_next_line` method. One weird side effect of the prior logic is it would cause this code to produce this output: ``` class OH def hello def hai end end ``` ``` 1 class OH > 2 def hello 4 def hai 5 end 6 end ``` But this code to produce this output: ``` class OH def hello def hai end end ``` ``` 1 class OH > 2 def hello 4 end 5 end ``` Note the missing `def hai`. The only difference between them is that space. With this change, they're now both consistent. https://github.com/ruby/syntax_suggest/commit/4a54767a3e
* [ruby/set] Update lib/set.rbAkinori MUSHA2023-04-251-1/+0
| | | | https://github.com/ruby/set/commit/bc59f85f2f
* [ruby/set] Expose Set::VERSIONHiroshi SHIBATA2023-04-252-2/+12
| | | | https://github.com/ruby/set/commit/d39b33f463
* [ruby/abbrev] Update lib/abbrev.rbAkinori MUSHA2023-04-251-1/+0
| | | | https://github.com/ruby/abbrev/commit/6fa790eac1
* [ruby/abbrev] Expose Abbrev::VERSIONHiroshi SHIBATA2023-04-252-2/+11
| | | | https://github.com/ruby/abbrev/commit/255ca681c3
* [ruby/reline] Revert #335 (Trap TSTP to handle C-z)Carl Brasic2023-04-241-11/+0
| | | | | | | | | | | | | | | | | | | (https://github.com/ruby/reline/pull/535) This PR was an effort to address #321 (ed_quoted_insert doesn't work properly) but per the reporter it did not work correctly. Moreover, it introduced a major regression: Shell job control stopped working in all applications that use reline, notably IRB. Bash and other shells send SIGTSTP in response to C-z to implement job suspension. Handling SIGSTP opts out of this functionality. For a line oriented terminal program this should be avoided (not to mention, this behavior diverges from readline's) https://github.com/ruby/reline/commit/26383d25b8 Co-authored-by: Carl Brasic <cbrasic@drwholdings.com>
* [ruby/irb] Simplify the help command's implementationStan Lo2023-04-241-14/+12
| | | | | | | | | | | | (https://github.com/ruby/irb/pull/564) The current method-redefining approach brings little benefit, makes it harder to understand the code, and causes warnings like: > warning: method redefined; discarding old execute This patch simplifies it while displaying more helpful message when rdoc couldn't be loaded.
* [ruby/irb] Filter out top-level methods when using `lsStan Lo2023-04-241-2/+5
| | | | | | | | | <Class/Module>` (https://github.com/ruby/irb/pull/562) Instead of always printing methods inherited from Class or Module, IRB by default should filter them out unless `<Class/Module>` is specified to be either of those.
* [ruby/irb] fix typo in tracer (https://github.com/ruby/irb/pull/565)Yusuf Daniju2023-04-231-1/+1
| | | | https://github.com/ruby/irb/commit/2f567f3d3e
* [ruby/rinda] Expose Rinda::VERSIONHiroshi SHIBATA2023-04-212-2/+11
| | | | https://github.com/ruby/rinda/commit/fa3865ac48
* [rubygems/rubygems] util/rubocop -AHiroshi SHIBATA2023-04-201-1/+1
| | | | https://github.com/rubygems/rubygems/commit/784e5e2fe5
* [rubygems/rubygems] Support Symbol and URL keysHiroshi SHIBATA2023-04-201-1/+1
| | | | https://github.com/rubygems/rubygems/commit/3bda049c73
* [rubygems/rubygems] warn message when RubyGems handle invalid yaml like ↵Hiroshi SHIBATA2023-04-201-1/+7
| | | | | | 'invalid: foo: bar' https://github.com/rubygems/rubygems/commit/b8d0c25b7e
* Hide Gem::MockGemUi. It's only used by testsHiroshi SHIBATA2023-04-191-86/+0
|
* [rubygems/rubygems] To use Gem::YAMLSerializer in BundlerHiroshi SHIBATA2023-04-191-4/+11
| | | | https://github.com/rubygems/rubygems/commit/5351e01b32
* [rubygems/rubygems] Copy YAMLSerializer from BundlerHiroshi SHIBATA2023-04-192-4/+93
| | | | https://github.com/rubygems/rubygems/commit/6a97346708
* [rubygems/rubygems] Bundler::YAMLSerializer.load couldn't raise error when ↵Hiroshi SHIBATA2023-04-191-33/+28
| | | | | | invalid yaml was provided https://github.com/rubygems/rubygems/commit/cfcfde04c7
* [rubygems/rubygems] Introduce self.load_with_rubygems_config_hashHiroshi SHIBATA2023-04-192-39/+37
| | | | https://github.com/rubygems/rubygems/commit/9175b8cf2a
* [rubygems/rubygems] Introduce self.dump_with_rubygems_yamlHiroshi SHIBATA2023-04-191-13/+11
| | | | https://github.com/rubygems/rubygems/commit/3d3b0d80a1
* [rubygems/rubygems] Removed trailing-slash for domainHiroshi SHIBATA2023-04-191-3/+3
| | | | https://github.com/rubygems/rubygems/commit/81ba58f445
* [rubygems/rubygems] Wrap self.convert_rubygems_config_hash from ↵Hiroshi SHIBATA2023-04-192-34/+41
| | | | | | Bundler::YAMLSerializer.load https://github.com/rubygems/rubygems/commit/080880ac23
* [rubygems/rubygems] Move all changes only in RubyGemsHiroshi SHIBATA2023-04-193-25/+42
| | | | https://github.com/rubygems/rubygems/commit/d842e2092f
* [rubygems/rubygems] Added guard condition for replacing __ variable in YAML keysHiroshi SHIBATA2023-04-192-15/+3
| | | | https://github.com/rubygems/rubygems/commit/e7d31405ea
* [rubygems/rubygems] Keep compatiblity of Bundler specsHiroshi SHIBATA2023-04-193-20/+23
| | | | https://github.com/rubygems/rubygems/commit/b211eeacba
* [rubygems/rubygems] Replaced empty hash to nil value in YAMLHiroshi SHIBATA2023-04-191-0/+15
| | | | https://github.com/rubygems/rubygems/commit/8771fbf53d
* [rubygems/rubygems] Only convert old URL key name when it's contained double ↵Hiroshi SHIBATA2023-04-191-1/+1
| | | | | | underscore https://github.com/rubygems/rubygems/commit/a4bfa2ef94