summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2022-04-20[ruby/net-http] Feature detect to make net/http usable with JRubyKarol Bucek
Handle missing session_new_cb= and do not call session_cache_mode=, as JRuby SSL does not support these methods. https://github.com/ruby/net-http/commit/3237ef4d8c
2022-04-20[ruby/net-http] Add ignore_eof access to HTTP and HTTPResponseJeremy Evans
The ignore_eof setting on HTTPResponse makes it so an EOFError is raised when reading bodies with a defined Content-Length, if the body read was truncated due to the socket be closed. The ignore_eof setting on HTTP sets the values used in responses that are created by the object. For backwards compatibility, the default is for both settings is true. However, unless you are specifically tested for and handling truncated responses, it's a good idea to set ignore_eof to false so that errors are raised for truncated responses, instead of those errors silently being ignored. Fixes [Bug #14972] https://github.com/ruby/net-http/commit/4d47e34995
2022-04-18[ruby/tsort] Small tweaks for easier vendoringDavid Rodríguez
Bundler vendors this file and we have some tools to automatically prepend the `Bundler::` namespace so that the vendored version does not collide with the stdlib version. However, due to how methods are defined, it's hard for our vendoring tool to do the right thing. I think this makes the code simpler and things easier for us too. https://github.com/ruby/tsort/commit/7088a7c814
2022-04-16[rubygems/rubygems] I don't think this is necessaryDavid Rodríguez
https://github.com/rubygems/rubygems/commit/836f3e5aa5
2022-04-16[ruby/set] Repair format for What's HereBurdetteLamar
https://github.com/ruby/set/commit/292baacb60
2022-04-16[rubygems/rubygems] Add modern rubies to the platformsBobby McDonald
https://github.com/rubygems/rubygems/commit/5462322f8f
2022-04-15[ruby/rdoc] Fix links in docsPeter Zhu
www.ruby-lang.org without the leading https:// will generate an incorrect link because it will be treated as a relative link. https://github.com/ruby/rdoc/commit/28f32149b6
2022-04-14[ruby/rdoc] Apply matching word pairs to underscore-methodsNobuyoshi Nakada
Protected characters with `PROTECT_ATTR` should not have special roles. https://github.com/ruby/rdoc/commit/c318af0ea2
2022-04-14[rubygems/rubygems] Fix formatting in docsPeter Zhu
rdoc uses + for typewriter font rather than backticks. https://github.com/rubygems/rubygems/commit/be320f1e0c
2022-04-14[ruby/rdoc] Allow cross references to methods including underscoresNobuyoshi Nakada
As underscores are masked to "protect" from the conversion, consider also `PROTECT_ATTR` as a word character. https://github.com/ruby/rdoc/commit/db58bb5170
2022-04-14[ruby/net-http] Update the content-length heading when decoding bodiesJeremy Evans
Previously, the content-encoding header was removed and the body was modified, but the content-length header was not modified, resulting in the content-length header not matching the body length. Don't delete content-length before yielding inflate body, as that causes a switch to read the entire body instead of reading in chunks. Fixes [Bug #16672] https://github.com/ruby/net-http/commit/58284e9710 Co-authored-by: st0012 <stan001212@gmail.com>
2022-04-13[ruby/rdoc] Only parse valid URLsPeter Zhu
Only valid characters for URLs should be used for generating URLs. A list of valid characters can be found in sections 2.2 and 2.3 of IETF RFC 3986 (https://www.ietf.org/rfc/rfc3986.txt). https://github.com/ruby/rdoc/commit/2bd8fcdd4f
2022-04-12[ruby/net-http] Add HTTP#response_body_encoding for setting response body ↵Jeremy Evans
encoding This allows for the ability to opt-in to a method to set the encoding of response bodies. By setting the accessor to a String or Encoding instance, it will use the specified encoding. Setting the value of true will try to detect the encoding of the response body, either using the Content-Type header (assuming it specifies charset) or by scanning for a <meta> tag in the document that specifies the encoding. The default is false in which case no forcing of encoding will be done (same as before the patch). Implements [Feature #2567] Implements [Feature #15517] https://github.com/ruby/net-http/commit/6233e6b7c1 Co-authored-by: Yui Naruse <naruse@ruby-lang.org>
2022-04-06[rubygems/rubygems] Use `ask_yes_no`Ashley Ellis Pierce
https://github.com/rubygems/rubygems/commit/1d38e167fa
2022-04-06[rubygems/rubygems] Extract default_host methodAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/6e10e75574
2022-04-06[rubygems/rubygems] Use YAMLAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/6122e8cac5
2022-04-06[rubygems/rubygems] Accomodate gem hosts without profile/me endpointAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/31b6dcf5d3
2022-04-06[rubygems/rubygems] Update endpointAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/a5a7b3ec96
2022-04-06[rubygems/rubygems] Remove whitespaceAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/08c2d88137
2022-04-06[rubygems/rubygems] Make changes <2.6 compatibleAshley Ellis Pierce
Multiple params to merge was not introduced until Ruby 2.6, so this merges the two additional params together first and then merges that with the request body https://github.com/rubygems/rubygems/commit/870f7e9a1c
2022-04-06[rubygems/rubygems] Make mfa the defaultAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/0b636f6902
2022-04-06[rubygems/rubygems] Correct mfa level nameAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/a002e351ae
2022-04-06[rubygems/rubygems] Enable mfa on specific keys during gem signinAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/e787f7f655
2022-04-05Document MakeMakefile#append_cflagsAlan Wu
This method is at least 7 years old and is widely used in the wild. Since we need to support it, let's document it to make it discoverable. Add docs and move it out of the `# :stopdoc:` zone. Notes: Merged: https://github.com/ruby/ruby/pull/5760
2022-04-04[ruby/optparse] Define `inspect` and `pretty_inspect`Nobuyoshi Nakada
https://github.com/ruby/optparse/commit/a3f0ec21b1
2022-04-04[rubygems/rubygems] bump actions/checkout to 3 in bundler gem templateHartley McGuire
Dependabot bumped the repo's configuration in 0c996fa but it did not bump the version in the template for `bundler gem` https://github.com/rubygems/rubygems/commit/e14980e169
2022-04-03[ruby/net-http] Revert "Update the content-length heading when decoding bodies"Jeremy Evans
This reverts commit https://github.com/ruby/net-http/commit/a7cb30124cf1. This is causing errors in Ruby's CI, will revert for now and try again after testing a fix with Ruby's CI. https://github.com/ruby/net-http/commit/7b852b1feb
2022-04-02[ruby/net-http] Update the content-length heading when decoding bodiesJeremy Evans
Previously, the content-encoding header was removed and the body was modified, but the content-length header was not modified, resulting in the content-length header not matching the body length. Fixes [Bug #16672] https://github.com/ruby/net-http/commit/a7cb30124c
2022-04-01[ruby/net-protocol] Bump version to 0.1.3Hiroshi SHIBATA
https://github.com/ruby/net-protocol/commit/9cf40af499
2022-04-01[ruby/ostruct] v0.5.5Marc-André Lafortune
https://github.com/ruby/ostruct/commit/ce879e56cf
2022-04-01[ruby/ostruct] Avoid using block_given in the presence of aliasesCharles Oliver Nutter
defined?(yield) bypasses the block_given? method (or any aliases to it) and always does the right thing. https://github.com/ruby/ostruct/commit/4c38fe612e
2022-03-31[rubygems/rubygems] Update bundler documentation to reflect bundle config ↵James Hill
scope changes In https://github.com/rubygems/rubygems/pull/4152 `bundle config` was changed to default to local scope (instead of global) if the command was executed from inside an application directory. Updated documentation reflects this change. https://github.com/rubygems/rubygems/commit/d92d42cae5
2022-03-24[ruby/ostruct] v0.5.4Marc-André Lafortune
https://github.com/ruby/ostruct/commit/fe19de4644
2022-03-24[ruby/ostruct] Avoid aliasing `block_given?` for JRuby [Fixes #40]Marc-André Lafortune
https://github.com/ruby/ostruct/commit/14d04ff694
2022-03-23[rubygems/rubygems] Make `rescue` clause more specificDavid Rodríguez
This is hiding a real bundler issue as a "network error". It's more helpful to get a proper bug report, with stack trace and so on. So stop re-raising errors when evaluating unmarshaled responses as network errors, and only raise Marshal errors when the Marshal format is invalid, not whenever marshalled gemspecs can't be loaded because that may hide actual client errors, like missing `YAML` constants. https://github.com/rubygems/rubygems/commit/05ea907e1c
2022-03-22[ruby/rdoc] Expand the enclosing tree of the current fileNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/f9f90ef2ff
2022-03-22[ruby/rdoc] Fold files in the page directoryNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/b7b4cdab6c
2022-03-20[ruby/rdoc] Allow method source code to scroll [ci skip]Nobuyoshi Nakada
https://github.com/ruby/rdoc/commit/1bb0496c53
2022-03-20[ruby/rdoc] Use the custom style `details summary` only in `nav-section`Nobuyoshi Nakada
https://github.com/ruby/rdoc/commit/7736d3a89c
2022-03-20[DOC] make internally used classes/methods nodocNobuyoshi Nakada
Empty class documents are generated even with `:stopdoc:`.
2022-03-17[ruby/logger] bump version to 1.5.1Hiroshi SHIBATA
https://github.com/ruby/logger/commit/c4a4155ab7
2022-03-17Make implicit function declaration error [Feature #18615]Nobuyoshi Nakada
Enable `-Werror=implicit-function-declaration` by default for building C extensions for early failures.
2022-03-17Fix broken links of rdocKazuhiro NISHIYAMA
- `www.ruby-lang.org` links to `./www.ruby-lang.org` - `cgi['field_name']` links to `./'field_name'`
2022-03-16[ruby/rdoc] Fix full name of known classNobuyoshi Nakada
Properly set the name of `File::Constants`, which is the only name with a namespace in `RDoc::KNOWN_CLASSES`, and fixes longstanding bug that `File::Constants` becomes `File::File::Constants`. When it is generated by `rb_file_const` in dir.c, `name` is set to the qualified name as same as `full_name`, and generated in the normal way in file.c later, already set `full_name` is cleared and `name` will be constructed from the enclosing namespace and the `name`. It will results in duplicated namespace, `File::File::Constants`. https://github.com/ruby/rdoc/commit/3a8d6df562
2022-03-15[rubygems/rubygems] Fix a typoKazuhiro NISHIYAMA
https://github.com/rubygems/rubygems/commit/3e06a91435
2022-03-15[rubygems/rubygems] [DOC] Enable Gem::Package exampleNobuyoshi Nakada
Other code must not be between the doc and class definition. https://github.com/rubygems/rubygems/commit/366784aae5
2022-03-15[rubygems/rubygems] Report Github Actions CI provider within user agent stringDavid Rodríguez
See https://docs.github.com/es/actions/learn-github-actions/environment-variables#default-environment-variables. So that we can show stats about it at https://ecosystem.rubytogether.org https://github.com/rubygems/rubygems/commit/48d6dc68f8
2022-03-15[rubygems/rubygems] Move `:stopdoc:` directiveNobuyoshi Nakada
If this is at the top level, it stops the documentation of the entire module, but not only the part in this file. https://github.com/rubygems/rubygems/commit/34e8c1ee06
2022-03-14[DOC] Remove outdated note from WeakRef#initializeIvo Anjo
The note > Raises an ArgumentError if the given +orig+ is immutable, such as Symbol, > Integer, or Float. has not been true since #2313 (GH-2313, Feature #16035) when @casperisfine enabled storing non-finalizable objects in the underlying `ObjectSpace::WeakMap`. On Ruby 2.7+, `WeakRef.new(1) + 1` works fine and the result is the expected 2. Notes: Merged: https://github.com/ruby/ruby/pull/5657
2022-03-14[DOC] hide `UnicodeNormalize` in module indexNobuyoshi Nakada