Commit graph

14659 commits

Author SHA1 Message Date
Hiroshi SHIBATA
e2c143abf4 [ruby/getoptlong] Fixup 39faa7b390
c8b3c0c00d
2022-05-09 07:26:29 +09:00
Dominik Bauernfeind
d79e0832a5 [rubygems/rubygems] Fix typo in documentation
800a973e00
2022-05-06 18:03:00 +09:00
nobuyo
7d6de74abe [rubygems/rubygems] Update man page for require option in bundle add command
08a0a5b7d1
2022-05-06 18:02:35 +09:00
Akira Matsuda
0b62535219 [ruby/logger] Prefer String#[0, 1] over [0..0]
[0..0] internally creates an extra Array object, and so is slower and much more memory consuming

20616ad34a
2022-05-05 19:09:49 +09:00
David Rodríguez
9d61c4519c [rubygems/rubygems] Also speed up the case when nothing changed
fa0ac74883
2022-05-04 06:45:16 +09:00
David Rodríguez
2cf4318645 [rubygems/rubygems] Make looping more concise with select
c43d5f979a
2022-05-04 06:45:15 +09:00
David Rodríguez
ba4ec45cf1 [rubygems/rubygems] Don't converge specs in frozen mode
ea09bc4680
2022-05-04 06:45:15 +09:00
Burdette Lamar
51ac3c9e80 [ruby/getoptlong] Enhanced RDoc for GetoptLong (https://github.com/ruby/getoptlong/pull/4)
Detailed introductory material.

1544f2fb7b
2022-05-03 01:09:33 +09:00
Matthias Viehweger
5741ae379b [rubygems/rubygems] Generalize description to account for different push servers
cbf13edd3a
2022-04-29 17:19:19 +09:00
Matthias Viehweger
3cf107fde2 [rubygems/rubygems] Clarify description of owner-flags
28864b1057
2022-04-29 17:19:18 +09:00
Hiroshi SHIBATA
1056489ea3 Merge 3f7d0352e8 2022-04-28 19:08:49 +09:00
Hiroshi SHIBATA
678d58c850 Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5 2022-04-28 19:08:49 +09:00
David Rodríguez
479ba9a44b [rubygems/rubygems] All supported rubies have File.realpath
c60ed4878c
2022-04-28 19:08:49 +09:00
David Rodríguez
f4009566af [rubygems/rubygems] Add missing open3 requires
06ad654120
2022-04-28 19:08:49 +09:00
Hiroshi SHIBATA
6dc314ac6d Merge RubyGems/Bundler master
fe96fb6e2a
2022-04-28 19:08:49 +09:00
David Rodríguez
5250210aa9 [rubygems/rubygems] Fix missing required rubygems version when using old APIs
A while ago, we fixed resolution when using old dependency endpoints to
also consider metadata dependencies, by requesting the full gemspec from
the marsahaled index, which includes this information as opposed to
these old APIs. This has made resolution slower, but correct, but also
introduced the issue that some old marshaled gemspecs don't include the
`required_rubygems_version` field because they were created with a
RubyGems version that predates its addition.

Use a default value in this case.

5dc94afcc0

Co-authored-by: Ilya Dudarenko <i.dudarenko@tinkoff.ru>
2022-04-28 15:44:02 +09:00
Charles Oliver Nutter
cd2613b6a4 [ruby/net-http] Bump version to 0.2.1.pre1
0017cc64c0
2022-04-28 05:56:26 +09:00
Kazuhiro NISHIYAMA
0bab4c4add
[DOC] Change URLs from git.io
see https://github.blog/changelog/2022-04-25-git-io-deprecation/
2022-04-27 10:13:23 +09:00
Kaíque Kandy Koga
bdb7345ce9 Use compiled instead of complied
Capitalize creates
2022-04-26 12:38:51 -07:00
Kazuhiro NISHIYAMA
392c952ab2 [ruby/rdoc] Fix a typo [ci skip]
b42c4a2fe2
2022-04-25 10:14:55 +09:00
Kazuhiro NISHIYAMA
e142bea799 Remove unnecessary sort
Because `Dir.[]` returns the sorted results since Ruby 3.0.
2022-04-23 11:59:20 +09:00
Peter Zhu
eab354e17b [ruby/uri] Include RFC2396_REGEXP module directly
REGEXP is defined as RFC2396_REGEXP in lib/uri/common.rb. If we include
REGEXP then a broken URL is generated in rdoc for URI and URI::MailTo.

ed6ded9c80
2022-04-22 12:00:14 +09:00
OKURA Masafumi
c94f964e3f [ruby/uri] Feat: Support WSS
There was a file for WSS so I added one line of `require_relative`
to make it work.
Now `URI.parse('wss://example.com')` returns `URI::WS`.

ff8a103564
2022-04-22 11:59:54 +09:00
Karol Bucek
cf73cf5981 [ruby/net-http] Feature detect to make net/http usable with JRuby
Handle missing session_new_cb= and do not call
session_cache_mode=, as JRuby SSL does not support
these methods.

3237ef4d8c
2022-04-20 13:01:08 +09:00
Jeremy Evans
90ccc5674a [ruby/net-http] Add ignore_eof access to HTTP and HTTPResponse
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]

4d47e34995
2022-04-20 10:22:06 +09:00
David Rodríguez
e5a852b912 [ruby/tsort] Small tweaks for easier vendoring
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.

7088a7c814
2022-04-18 09:40:07 +09:00
David Rodríguez
9a20bcd5c8 [rubygems/rubygems] I don't think this is necessary
836f3e5aa5
2022-04-16 22:58:34 +09:00
BurdetteLamar
723debc9a9 [ruby/set] Repair format for What's Here
292baacb60
2022-04-16 15:34:34 +09:00
Bobby McDonald
ccb0572ff9 [rubygems/rubygems] Add modern rubies to the platforms
5462322f8f
2022-04-16 08:23:21 +09:00
Peter Zhu
92614111c0 [ruby/rdoc] Fix links in docs
www.ruby-lang.org without the leading https:// will generate an
incorrect link because it will be treated as a relative link.

28f32149b6
2022-04-15 13:24:48 +09:00
Nobuyoshi Nakada
5397dd2e76 [ruby/rdoc] Apply matching word pairs to underscore-methods
Protected characters with `PROTECT_ATTR` should not have special
roles.

c318af0ea2
2022-04-14 16:37:14 +09:00
Peter Zhu
1a2490b564 [rubygems/rubygems] Fix formatting in docs
rdoc uses + for typewriter font rather than backticks.

be320f1e0c
2022-04-14 16:24:09 +09:00
Nobuyoshi Nakada
e06100d969 [ruby/rdoc] Allow cross references to methods including underscores
As underscores are masked to "protect" from the conversion, consider
also `PROTECT_ATTR` as a word character.

db58bb5170
2022-04-14 12:51:30 +09:00
Jeremy Evans
0579486f15 [ruby/net-http] Update the content-length heading when decoding bodies
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]

58284e9710

Co-authored-by: st0012 <stan001212@gmail.com>
2022-04-14 00:11:26 +09:00
Peter Zhu
aaac279de0 [ruby/rdoc] Only parse valid URLs
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).

2bd8fcdd4f
2022-04-13 22:25:33 +09:00
Jeremy Evans
ebb4378237 [ruby/net-http] Add HTTP#response_body_encoding for setting response body 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]

6233e6b7c1

Co-authored-by: Yui Naruse <naruse@ruby-lang.org>
2022-04-12 00:17:34 +09:00
Ashley Ellis Pierce
c59488a8e3 [rubygems/rubygems] Use ask_yes_no
1d38e167fa
2022-04-06 08:55:00 +09:00
Ashley Ellis Pierce
37a19f7f67 [rubygems/rubygems] Extract default_host method
6e10e75574
2022-04-06 08:54:59 +09:00
Ashley Ellis Pierce
b75b67f113 [rubygems/rubygems] Use YAML
6122e8cac5
2022-04-06 08:54:59 +09:00
Ashley Ellis Pierce
bb3ecdba6a [rubygems/rubygems] Accomodate gem hosts without profile/me endpoint
31b6dcf5d3
2022-04-06 08:54:58 +09:00
Ashley Ellis Pierce
75083704bf [rubygems/rubygems] Update endpoint
a5a7b3ec96
2022-04-06 08:54:58 +09:00
Ashley Ellis Pierce
ec09b2dba1 [rubygems/rubygems] Remove whitespace
08c2d88137
2022-04-06 08:54:57 +09:00
Ashley Ellis Pierce
925d73b3ee [rubygems/rubygems] Make changes <2.6 compatible
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

870f7e9a1c
2022-04-06 08:54:56 +09:00
Ashley Ellis Pierce
7bb6449fe5 [rubygems/rubygems] Make mfa the default
0b636f6902
2022-04-06 08:54:55 +09:00
Ashley Ellis Pierce
4ae3b78c95 [rubygems/rubygems] Correct mfa level name
a002e351ae
2022-04-06 08:54:55 +09:00
Ashley Ellis Pierce
b3f1b3ccef [rubygems/rubygems] Enable mfa on specific keys during gem signin
e787f7f655
2022-04-06 08:54:54 +09:00
Alan Wu
2304cfa4c0 Document MakeMakefile#append_cflags
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.
2022-04-05 12:57:55 -04:00
Nobuyoshi Nakada
de427c3ce0 [ruby/optparse] Define inspect and pretty_inspect
a3f0ec21b1
2022-04-04 15:05:44 +09:00
Hartley McGuire
4db75b6fe7 [rubygems/rubygems] bump actions/checkout to 3 in bundler gem template
Dependabot bumped the repo's configuration in 0c996fa but it did not
bump the version in the template for `bundler gem`

e14980e169
2022-04-04 14:14:40 +09:00
Jeremy Evans
7648bae4c8 [ruby/net-http] Revert "Update the content-length heading when decoding bodies"
This reverts commit a7cb30124c.

This is causing errors in Ruby's CI, will revert for now and
try again after testing a fix with Ruby's CI.

7b852b1feb
2022-04-03 06:51:07 +09:00