Commit graph

14659 commits

Author SHA1 Message Date
Jeremy Evans
58adb1636b [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.

Fixes [Bug #16672]

a7cb30124c
2022-04-02 02:49:21 +09:00
Hiroshi SHIBATA
06f94d1784 [ruby/net-protocol] Bump version to 0.1.3
9cf40af499
2022-04-01 13:56:47 +09:00
Marc-André Lafortune
8a38419b73 [ruby/ostruct] v0.5.5
ce879e56cf
2022-04-01 00:18:36 +09:00
Charles Oliver Nutter
8751769637 [ruby/ostruct] Avoid using block_given in the presence of aliases
defined?(yield) bypasses the block_given? method (or any aliases
to it) and always does the right thing.

4c38fe612e
2022-04-01 00:16:49 +09:00
James Hill
834c3b3545 [rubygems/rubygems] Update bundler documentation to reflect bundle config 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.

d92d42cae5
2022-03-31 20:00:10 +09:00
Marc-André Lafortune
4c4a1e2035 [ruby/ostruct] v0.5.4
fe19de4644
2022-03-24 21:38:26 +09:00
Marc-André Lafortune
ad5754162b [ruby/ostruct] Avoid aliasing block_given? for JRuby [Fixes #40]
14d04ff694
2022-03-24 21:37:14 +09:00
David Rodríguez
d32fa986c3 [rubygems/rubygems] Make rescue clause more specific
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.

05ea907e1c
2022-03-23 23:31:05 +09:00
Nobuyoshi Nakada
92ef73a918 [ruby/rdoc] Expand the enclosing tree of the current file
f9f90ef2ff
2022-03-22 01:32:13 +09:00
Nobuyoshi Nakada
dafe5c1323 [ruby/rdoc] Fold files in the page directory
b7b4cdab6c
2022-03-22 01:32:12 +09:00
Nobuyoshi Nakada
73541cdc2f
[ruby/rdoc] Allow method source code to scroll [ci skip]
1bb0496c53
2022-03-20 15:42:56 +09:00
Nobuyoshi Nakada
20ad09e560 [ruby/rdoc] Use the custom style details summary only in nav-section
7736d3a89c
2022-03-20 15:38:28 +09:00
Nobuyoshi Nakada
6946263a29
[DOC] make internally used classes/methods nodoc
Empty class documents are generated even with `:stopdoc:`.
2022-03-20 14:26:20 +09:00
Hiroshi SHIBATA
fadc7a150c [ruby/logger] bump version to 1.5.1
c4a4155ab7
2022-03-17 17:28:33 +09:00
Nobuyoshi Nakada
329c89bb42
Make implicit function declaration error [Feature #18615]
Enable `-Werror=implicit-function-declaration` by default for
building C extensions for early failures.
2022-03-17 14:37:34 +09:00
Kazuhiro NISHIYAMA
d06f787e9f
Fix broken links of rdoc
- `www.ruby-lang.org` links to `./www.ruby-lang.org`
- `cgi['field_name']` links to `./'field_name'`
2022-03-17 10:11:38 +09:00
Nobuyoshi Nakada
ebcbca96fb [ruby/rdoc] Fix full name of known class
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`.

3a8d6df562
2022-03-16 15:05:41 +09:00
Kazuhiro NISHIYAMA
7aabdbe837 [rubygems/rubygems] Fix a typo
3e06a91435
2022-03-15 11:37:43 +09:00
Nobuyoshi Nakada
b85457c710 [rubygems/rubygems] [DOC] Enable Gem::Package example
Other code must not be between the doc and class definition.

366784aae5
2022-03-15 08:40:35 +09:00
David Rodríguez
6a8bc90278 [rubygems/rubygems] Report Github Actions CI provider within user agent string
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

48d6dc68f8
2022-03-15 04:44:33 +09:00
Nobuyoshi Nakada
41d63d3130 [rubygems/rubygems] Move :stopdoc: directive
If this is at the top level, it stops the documentation of the
entire module, but not only the part in this file.

34e8c1ee06
2022-03-15 01:18:03 +09:00
Ivo Anjo
7348db866a [DOC] Remove outdated note from WeakRef#initialize
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.
2022-03-14 10:50:52 +01:00
Nobuyoshi Nakada
e859a218fd
[DOC] hide UnicodeNormalize in module index 2022-03-14 15:01:20 +09:00
Nobuyoshi Nakada
0bf194fb33 [ruby/rdoc] Start with open when only one visible class/module
6bb93001db
2022-03-14 14:48:13 +09:00
Nobuyoshi Nakada
976431d9ed [ruby/rdoc] Fold class and module index
4c7c46fcc4
2022-03-14 14:48:12 +09:00
Nobuyoshi Nakada
a884431624 [ruby/forwardable] Move :stopdoc: directive
If this is at the top level, it stops the documentation of the
entire module, but not only the part in this file.

34cd2ac4a1
2022-03-14 14:44:46 +09:00
Nobuyoshi Nakada
8760b270ed [ruby/irb] Move :stopdoc: directive
If this is at the top level, it stops the documentation of the
entire module, but not only the part in this file.

86c41b06ad
2022-03-14 14:40:28 +09:00
Nobuyoshi Nakada
416c63c118 [ruby/rdoc] Refine pretty_print
acb91ea74a
2022-03-13 21:15:08 +09:00
Nobuyoshi Nakada
0bcc3bd6ab [ruby/rdoc] Clean documents for backwards compatibility
23e61a208e
2022-03-13 19:56:42 +09:00
Martin Dürst
45e0711f29 update Unicode Version to 14.0.0 and Emoji version to 14.0 2022-03-13 09:19:52 +09:00
Masafumi Koba
2e4516be26 [ruby/rdoc] Scrollable sidebar
This change makes the sidebar scrollable via `position: sticky` and `overflow: auto`;
See also <https://caniuse.com/?search=sticky>

4d52e24840
2022-03-11 17:38:13 +09:00
Peter Zhu
f62f913132 [ruby/rdoc] Support crossref of methods with multiple arguments
For example, consider the following markup:

  C1#m(a, b)

Before this patch, it generated this HTML:

  <p><a href=\"C1.html#method-i-m\"><code>C1#m</code></a>(a, b)</p>

Which places the method arguments outside of the link.

Now it generates this HTML:

  <a href=\"C1.html#method-i-m\"><code>C1#m(a, b)</code></a>

05a2b2222b
2022-03-09 23:38:45 +09:00
Alex Gittemeier
943efa8ca6 [rubygems/rubygems] Add newline to validate_platforms! message when platform is missing
When I run bundle install with BUNDLE_DEPLOYMENT=true in the environment
on a different platform than I usually do development, I get the
following output to the console (wrapped exactly as shown):

Your bundle only supports platforms ["x86_64-darwin-19"] but your local platform
is x86_64-linux. Add the current platform to the lockfile with `bundle lock
--add-platform x86_64-linux` and try again.

Because the way the message wraps, its not as simple as copying the
suggested command to the clipboard because it contains a newline:

    $ bundle lock
    Writing lockfile to [...]/Gemfile.lock
    $ --add-platform x86_64-linux

Adding a newline right before the command forces the command in the
error message to be on the same line, which facilitates copy-pasting the
command in the message.

4cf6989b11
2022-03-08 03:40:30 +09:00
Olle Jonsson
9c531ca524 [ruby/ostruct] Drop unused directives from gemspec (https://github.com/ruby/ostruct/pull/39)
This gem exposes no executables.

a1242f7ebe
2022-03-07 20:08:29 +09:00
Marc-André Lafortune
0adabdc53d [ruby/ostruct] v0.5.3
322efd0e61
2022-03-07 20:08:26 +09:00
Ladislav Gallay
e1391bf96f [ruby/ostruct] Fix class and method as attribute names
7258535073
2022-03-07 20:08:22 +09:00
Brad Gessler
8ae09706f3 [rubygems/rubygems] Update README.md.tt
Reduce the number of steps required to install a gem from two steps to one by using `bundle add`

2c968420cd
2022-03-07 07:03:35 +09:00
David Rodríguez
156079a85d [rubygems/rubygems] Make --strict flag of update and outdated commands consistent
Previously they had slightly different behavior when combined with
conservative updating flags.

The correct behavior is the `--update-strict` option, so `--script` now
does that, The `--update-strict` option is left there for now but I will
deprecate it later.

ab42046229
2022-03-06 22:17:00 +09:00
Hiroshi SHIBATA
7f7db124ee [ruby/cgi] Bump up v0.3.2
734dfdf1b4
2022-03-03 17:55:45 +09:00
Kazuhiro NISHIYAMA
fd2e1d3c4a [ruby/rdoc] Use Marshal.load io instead of Marshal.load io.read
135198a31c
2022-03-02 14:01:31 +09:00
Hiroshi SHIBATA
eb40ff73bf [ruby/securerandom] Bump up v0.2.0
62ca2828f3
2022-02-28 20:08:58 +09:00
Hiroshi SHIBATA
ff3d7b720e Merge RubyGems and Bundler master 2022-02-28 11:39:20 +09:00
Tim Pope
37d5890e49 [ruby/reline] Fix support for emacs-ctlx and emacs-meta keymaps
The existing implementation, given the below .inputrc, erroneously
creates a "C-v" key binding:

	set keymap emacs-ctlx
	"\C-v": "[C-x C-v was pressed]"

This fixes it to instead create a "C-x C-v" keybinding.

719f52d231
2022-02-22 18:52:52 +09:00
Yusuke Endoh
ae8a8b184e [ruby/rdoc] Prefer require 'cgi/util' instead of require 'cgi'
RDoc is using only CGI.escape, escapeHTML, and unescape.
We don't have to load the whole source code of cgi gem.

d096222cc2
2022-02-22 17:08:52 +09:00
Hiroshi SHIBATA
c53bdb8ff6
Removed dependency of net-protocol. There is no plan to remove from stdlib 2022-02-21 17:10:56 +09:00
Hiroshi SHIBATA
79b04790e8
Removed dependency of io-wait. There is no plan to remove from stdlib 2022-02-21 17:10:22 +09:00
Akinori MUSHA
dd3501bb95 Make Set a builtin feature [Feature #16989] 2022-02-18 11:56:24 +09:00
Yusuke Endoh
b9851c7e1b lib/securerandom.rb: Fix the check of availability of Random.urandom
Random.urandom raises a RuntimeError if it is unavailable.
[Bug #13885]
2022-02-16 16:32:28 +09:00
Nobuyoshi Nakada
3b3fb73d61 [ruby/rdoc] Dump plain objects as RDoc::Options
So that the generated `.rdoc_options` file is loadable.

6cf6e1647b
2022-02-12 16:15:08 +09:00
Nobuyoshi Nakada
e95ad70079
[ruby/rdoc] Update generated files 2022-02-12 15:22:47 +09:00