Commit graph

11330 commits

Author SHA1 Message Date
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
Ulysse Buonomo
5348a34504 [ruby/rdoc] Relative loading for easier development (https://github.com/ruby/rdoc/pull/821)
This patch makes sure we only load relative code. Hence when coding or
testing rdoc, we'll be sure to always be using the correct code.

Discussion started at https://github.com/ruby/rdoc/pull/817.

Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>

aa41bd48eb

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-02-12 15:06:06 +09:00
Yusuke Endoh
08137c5dd9 [ruby/rdoc] Optimize RawLine by using a regexp instead of negative look-ahead rule
This improves the performance in some cases.
`rdoc .../gems/sinatra-2.1.0/README.md` takes 10.5 sec. before this
change, and 7.1 sec. after this change.
`make rdoc` of ruby/ruby takes 19.3 sec. before this change, 18.1 sec.
after this change.

7cf8281e3e
2022-02-12 14:59:26 +09:00
Ilia Zenkevich
e92e87bf90 [rubygems/rubygems] Add clarification for bundle-config "with" option
666f3cc724
2022-02-11 18:49:57 +09:00
David Rodríguez
7b676b3ce3 [rubygems/rubygems] Fix corrupted lockfile when using gemspec and multiple sources
9712262d90
2022-02-11 18:20:20 +09:00
Hiroshi SHIBATA
f07a2613e3
Support directory layout of ruby/ruby repository 2022-02-10 17:18:05 +09:00
Hiroshi SHIBATA
52d3e31d27
[ruby/ipaddr] Bump version to 1.2.4
6edf6ee6c3
2022-02-10 17:18:05 +09:00
Espartaco Palma
9b768012f6
[ruby/ipaddr] Fix exception calling to_range' after freeze'
77fe1fca0a
2022-02-10 17:18:05 +09:00
Jean Boussier
100253c7f0
[ruby/ipaddr] Ipaddr#native must also coerce @mask_addr
Before it would be left as an IPv6 mask causing `to_range` to fail.

```
>> IPAddr.new("::2").native.to_range
/opt/rubies/3.0.3/lib/ruby/3.0.0/ipaddr.rb:479:in `set': invalid address (IPAddr::InvalidAddressError)
```

af485192f3
2022-02-10 17:18:05 +09:00
Jean Boussier
5221cb4468
[ruby/ipaddr] Expose IPAddr::VERSION
An almost universal convention for gems is to expose Namespace::VERSION
which makes it much easier when debugging etc.

587ae6996e
2022-02-10 17:18:03 +09:00
Sven Schwyn
a271acf822 [rubygems/rubygems] Fix typo in multiple gemfiles warning
bc69d19097
2022-02-10 08:38:09 +09:00
Nobuyoshi Nakada
8013250136 [ruby/rdoc] Simplify attribute exclusiveness conditions
45e33c4b85
2022-02-09 22:22:46 +09:00
Nobuyoshi Nakada
ec6d1cf28f [ruby/rdoc] Get rid of ruby-mode.el confusions
63fac51198
2022-02-09 22:22:45 +09:00
Nobuyoshi Nakada
994b3f1dc6 [ruby/rdoc] Allow cross references to negation operator method
69cafb213a
2022-02-09 19:41:12 +09:00
Nobuyoshi Nakada
8db06fe2c9 [ruby/rdoc] Allow cross references to logical operator methods
17c0da304d
2022-02-09 19:41:11 +09:00
Soutaro Matsumoto
cbd54cba03 [ruby/rdoc] Skip parentheses on singleton class declaration
b6c6d4f978
2022-02-09 18:45:05 +09:00
Nobuyoshi Nakada
88b1d21dbb [ruby/rdoc] Allow cross references to backtick method
52c33157f1
2022-02-09 18:44:41 +09:00
Nobuyoshi Nakada
202f690a5e [ruby/rdoc] Allow cross references to operator methods
Make operator methods, e.g., `Regexp#=~`, `Integer#<=>`, cross
reference targets.

5d332a4128
2022-02-09 18:44:40 +09:00
Nobuyoshi Nakada
dec96dd897 [ruby/rdoc] Support all struct definition functions
Currently only `rb_struct_define_without_accessor` is supported by
https://github.com/ruby/rdoc/pull/73.  We should support other
three functions too.

d42288f06c
2022-02-09 18:43:07 +09:00
nicholas a. evans
981a75db91 [rubygems/rubygems] Fix missing rdoc for Gem::Version
The rdoc for Gem::Version is available here:
* https://docs.ruby-lang.org/en/3.0/Gem/Version.html

However it is currently missing from:
* https://ruby-doc.org/stdlib-3.1.0/libdoc/rubygems/rdoc/Gem/Version.html
* https://docs.ruby-lang.org/en/3.1/Gem/Version.html
* https://docs.ruby-lang.org/en/master/Gem/Version.html
* `ri Gem::Version`
  with `ri --version` => 6.4.0 and `gem --version` => 3.3.5
* `yard ri Gem::Version` with `yard --version` => 0.9.27

c10e5dd884
2022-02-07 23:06:19 +09:00
Jeremy Evans
7529c53891 [ruby/net-http] Do not set SNI hostname if connecting to IP address
RFC 6066, section 3, explicitly disallows the use of an IP address
as an SNI server name.  So check if the connection is being made
to an IP address using the resolv regexps, and do not set an SNI
hostname in that case.

Recent changes to LibreSSL make it more strictly follow RFC 6066,
resulting an s.hostname= raising an error if passed an IP address.
When such verions of LibreSSL are used, this change not only fixes
the net/http tests, it also fixes tests for webrick and open-uri,
which both make SSL connections to 127.0.0.1 using net/http in
their tests.

Avoid warning in the openssl extension by unsetting
@ssl_context.verify_hostname if connecting to an IP address.
Make changes so that the post_connection_check still happens
when connecting to an IP address, which is necessary to keep
checking that the certificate returned includes the IP address,
which one of the tests depends on.

Revert the previous change that modified the regexp used for
checking the error message.

fa68e64bee
2022-02-03 05:10:21 +09:00
Olle Jonsson
d8c54bac4a [ruby/net-protocol] Fix typo in gem description [ci skip]
35d7b08a54
2022-02-02 21:21:47 +09:00
Olle Jonsson
94687a6826 [ruby/net-protocol] Drop unused gemspec directives
This gem exposes no executables.

3c4def2a64
2022-02-02 21:17:47 +09:00
Dan Jensen
0b2f6b942b [rubygems/rubygems] Skip "seller shipped" notification after delivery
If a Shipment has been delivered, there is no point in notifying the
buyer that the seller shipped. Instead, we should simply notify the
buyer that the shipment was delivered. This is relevant in cases where
the seller is late to mark a Shipment as shipped, so the first EasyPost
Tracker update marks it as delivered, or in cases where the seller
fails to mark as shipped and the buyer marks it as delivered.

This fixes a Shipment event handler so the buyer notification for
shipment is no longer invoked if the Shipment is already delivered.

09c2cadc86
2022-02-01 20:07:18 +09:00
David Rodríguez
517d7c3221 Sync latest Bundler & RubyGems 2022-02-01 08:09:23 +09:00
Josef Šimánek
d5c9710b07 [rubygems/rubygems] Remove encoding pragma from specification.rb
- it is not used since it is not at the top of the file
- it is not useful anymore

6aee05d923
2022-02-01 05:20:38 +09:00
Nobuyoshi Nakada
7672f6a423
mkmf: unify duplicate code in pkg_config 2022-01-29 15:29:46 +09:00
Mike Dalessio
b90e56e624 mkmf: pkg_config accepts multiple options 2022-01-29 15:22:52 +09:00
aycabta
d66e7ec77b [ruby/reline] Add a comment for VK_MENU
ee307c2b01
2022-01-27 20:54:09 +09:00
aycabta
f4ee60543a [ruby/reline] The AltGr behaves exactly the same as Ctrl+Alt
On European keyboards.

75fe9759a4
2022-01-27 20:54:09 +09:00