summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2021-10-13[rubygems/rubygems] Use correct way to detect default gemsDavid Rodríguez
The other way, in particular matching a substring in the gemspec summary, is brittle and no longer used since Ruby 2.0. This needed rewriting the specs that depended on that way. https://github.com/rubygems/rubygems/commit/059dbfa971
2021-10-13[rubygems/rubygems] Remove unnecessary codeDavid Rodríguez
All supported rubygems versions implement this. https://github.com/rubygems/rubygems/commit/2130782ef6
2021-10-13[ruby/irb] Ignore parenthesis during completionKaíque Kandy Koga
Rename method https://github.com/ruby/irb/commit/619aecb412
2021-10-12Fix libraries under digestNobuyoshi Nakada
2021-10-12[ruby/digest] Avoid the constant redefinition warningAkinori MUSHA
The gem and bundle commands first load digest via openssl, so loading the digest gem would cause this warning every time one of these commands is run: ``` .../lib/ruby/gems/3.0.0/gems/digest-3.1.0/lib/digest.rb:11: warning: already initialized constant Digest::REQUIRE_MUTEX .../lib/ruby/3.0.0/digest.rb:7: warning: previous definition of REQUIRE_MUTEX was here ``` https://github.com/ruby/digest/commit/16172612d5
2021-10-12[ruby/digest] Place common parts in lib and engine specific parts under ↵Akinori MUSHA
ext/**/lib https://github.com/ruby/digest/commit/8d7496c3be
2021-10-12[ruby/reline] Check the result of GetConsoleScreenBufferInfoNobuyoshi Nakada
https://github.com/ruby/reline/commit/42edf7b3aa
2021-10-12[ruby/reline] Revert "Fix zero division when the screen width is not available"Nobuyoshi Nakada
This reverts commit 0dce9da083541f42c31822a91c72f339934c3986. https://github.com/ruby/reline/commit/f71471cdde
2021-10-12[ruby/reline] Fix zero division when the screen width is not availableNobuyoshi Nakada
https://github.com/ruby/reline/commit/0dce9da083
2021-10-11[ruby/reline] Rescue LoadError to require 'fiddle'aycabta
https://github.com/ruby/reline/commit/fe504bb6b9
2021-10-11[ruby/reline] Remove a comment for debugaycabta
https://github.com/ruby/reline/commit/5f3ccda3d5
2021-10-11[ruby/rdoc] Update SourceCodePro font filesaycabta
https://github.com/ruby/rdoc/commit/d3201d0d47
2021-10-11[ruby/irb] Add help about extra doc dir optionaycabta
https://github.com/ruby/irb/commit/5018f2cb99
2021-10-11[ruby/irb] Add --extra-doc-dir option to show doc dialogaycabta
https://github.com/ruby/irb/commit/3f79cb506f
2021-10-11[ruby/irb] Add periods to docaycabta
https://github.com/ruby/irb/commit/6330601629
2021-10-11[rubygems/rubygems] Show a warning in `bundle info` if gem has been deletedDavid Rodriguez
https://github.com/rubygems/rubygems/commit/ff86cd7dd2
2021-10-11[rubygems/rubygems] Show the exact name of the gem that was deletedDavid Rodriguez
If a non exact name (matched as a regexp) is passed to `bundle info`, these strings might not match. https://github.com/rubygems/rubygems/commit/831edf1edf
2021-10-11[ruby/reline] Suppress warning, "instance variable @ambiguous_width not ↵aycabta
initialized" https://github.com/ruby/reline/commit/368f7e2f78
2021-10-11[ruby/irb] Set default return_formataycabta
https://github.com/ruby/irb/commit/7ee15bc668
2021-10-10[ruby/irb] Revert "Optimize show_source command further"Takashi Kokubun
This reverts commit 27dd2867cda5c789efaa5078214ad2fd82adcebf. This is to fix the test I added. (I separated commits to test a new behavior of ruby-commit-hook) https://github.com/ruby/irb/commit/fe055d521a
2021-10-11[ruby/ipaddr] Fix include? and ipv4_mapped to allow drb tests to passJeremy Evans
include? should return false if comparing an IPv4 address to an IPv6 address. ipv4_mapped needs to set the correct netmask on the mapped addresses. https://github.com/ruby/ipaddr/commit/da22ef8e6c
2021-10-11[ruby/ipaddr] Make IPAddr#include? consider range of argumentJeremy Evans
It would be nice to use Range#cover? here, but it doesn't work correctly before Ruby 2.6. Switch to manual checks of the beginning of end of the ranges. Fixes Ruby Bug 14119 https://github.com/ruby/ipaddr/commit/f45630da31
2021-10-11[ruby/rubygems] Prefer `require_relative` for internal requiresDavid Rodriguez
https://github.com/rubygems/rubygems/commit/51796f257a
2021-10-10[ruby/rubygems] We no longer need to check realpathsDavid Rodríguez
Since symlinks and absolute paths are already checked. https://github.com/rubygems/rubygems/commit/de19bc4c7e
2021-10-10[ruby/rubygems] Check safety of packaged symlinksDavid Rodríguez
If we explicitly disallow the creation of symlinks that point to files outside of the destination directory, we can avoid any other safety checks while creating directories, because we can be sure they will always fall under the destination directory as well. https://github.com/rubygems/rubygems/commit/555692b8de
2021-10-10[ruby/rubygems] Install location safety should consider casingDavid Rodríguez
https://github.com/rubygems/rubygems/commit/0a0ad34af3
2021-10-10[ruby/rubygems] Remove redundant `File.expand_path`David Rodríguez
`File.realpath` already expands paths. https://github.com/rubygems/rubygems/commit/25524ebbeb
2021-10-10[ruby/rubygems] Simplify `File.expand_path` usageDavid Rodríguez
https://github.com/rubygems/rubygems/commit/02e3cf44bf
2021-10-10[ruby/rubygems] Don't make duplicated checks on directory safetyDavid Rodríguez
This seems to speed up `gem install` on Windows by more than 50%. https://github.com/rubygems/rubygems/commit/1970b1296d
2021-10-10Needs time.rb for `Time#iso8601`Nobuyoshi Nakada
`Gem::Request.verify_certificate_message` used this method without "time" which defines it.
2021-10-09[ruby/irb] Version 1.3.8.pre.11aycabta
https://github.com/ruby/irb/commit/49b9f644c2
2021-10-09[ruby/irb] Update dependency, reline >= 0.2.8.pre.11aycabta
https://github.com/ruby/irb/commit/4f686afbca
2021-10-09[ruby/reline] Version 0.2.8.pre.11aycabta
https://github.com/ruby/reline/commit/de858ee1ac
2021-10-09[ruby/reline] Add RELINE_ALT_SCROLLBAR env to use alternative text for scrollbaraycabta
The setting to use '::' instead of block elements. https://github.com/ruby/reline/commit/4afbc98e2c
2021-10-09[ruby/reline] Fix calculating dialog width with full-width scrollbaraycabta
https://github.com/ruby/reline/commit/93bc9b5277
2021-10-09Newly generated gems require Ruby 2.6.0OKURA Masafumi
In 2021, Ruby 2.5 and older are EOL. We can set the default required Ruby version to 2.6.0 to encourage people to use newer Ruby. If the command is executed with old Ruby, it falls back to 2.3.0. It's still possible to create a gem for older Ruby just by changing two lines of code (one in gemspec and another is in rubocop.yml).
2021-10-09[rubygems/rubygems] Improve performance of Specification#missing_extensions?Masataka Pocke Kuwabara
https://github.com/rubygems/rubygems/commit/90c1919f94
2021-10-09[rubygems/rubygems] Add glob infomation to Bundler::Source::Git#to_sgabriele renzi
The glob information was not specified in the string representation for a source, which led to non-deterministic behaviour when generating the lockfile, since sources are sorted by this value. https://github.com/rubygems/rubygems/commit/493b880abc
2021-10-08[ruby/reline] Use alternate text for scrollbar in non-UTF-8 envaycabta
https://github.com/ruby/reline/commit/69e365edcc
2021-10-08[ruby/reline] Better fix for non-UTF-8 default external encodingJeremy Evans
Previous fix didn't show the cursor or dialogs. This allows the dialogs to continue to work. https://github.com/ruby/reline/commit/651c5f63cc
2021-10-08[ruby/reline] Only show dialogs if default external encoding is UTF-8Jeremy Evans
Fixes a crash in IRB if a dialog is displayed and the default external encoding is not UTF-8: /home/jeremy/tmp/reline/lib/reline/line_editor.rb:731:in `write': U+2588 from UTF-8 to US-ASCII (Encoding::UndefinedConversionError) https://github.com/ruby/reline/commit/f570525ecd
2021-10-08[ruby/irb] Determine left and right when the width of either side is zero ↵aycabta
correctly https://github.com/ruby/irb/commit/5df6e1f027
2021-10-08[ruby/irb] Calculate right side doc dialog width correctlyaycabta
https://github.com/ruby/irb/commit/f34da7fa04
2021-10-08[ruby/irb] Specify whether to show the doc dialog on the left or right side ↵aycabta
by using variable names https://github.com/ruby/irb/commit/a23a88b8c9
2021-10-08[ruby/irb] Display doc dialog in gaps on narrow screenaycabta
https://github.com/ruby/irb/commit/4d7cefcaa4
2021-10-08[ruby/reline] Cut off the excess on narrow screenaycabta
https://github.com/ruby/reline/commit/972cc993ca
2021-10-08[ruby/reline] Rename DIALOG_HEIGHT with DIALOG_DEFAULT_HEIGHTaycabta
https://github.com/ruby/reline/commit/996bfec64b
2021-10-07[ruby/irb] Update descriptions of methodsKaíque Kandy Koga
From Reidline to Reline Update description used in take_corresponding_syntax_to_kw_do and is_the_in_correspond_to_a_for methods Use possessive noun correctly Second element https://github.com/ruby/irb/commit/4fa9714d6f
2021-10-07[ruby/irb] Make IRB::Context#exit call super if UncaughtThrowErrorJeremy Evans
Fixes calling exit after binding.irb. Fixes [Bug #18234] https://github.com/ruby/irb/commit/4ea8d376f2
2021-10-07[ruby/ipaddr] Support zone identifiers in IPv6 addressesJeremy Evans
These are supported by Ruby's socket library if the operating system supports zone indentifiers, so they should be supported by ipaddr. See RFCs 4007 and 6874 for additional information. Implements Ruby Feature #10911 https://github.com/ruby/ipaddr/commit/09a6408fb2