Граф коммитов

8563 Коммитов

Автор SHA1 Сообщение Дата
Hiroshi SHIBATA cada6d85d0
Import net-smtp-0.2.0 from https://github.com/ruby/net-smtp 2020-11-17 14:17:45 +09:00
Hiroshi SHIBATA e70a1d9b7f
Revert https://github.com/ruby/webrick/pull/44
Because the test for this change was still broken.
2020-11-13 12:06:42 +09:00
hisanori 37e5b367c1 [ruby/webrick] add mime type of extention .mjs
https://github.com/ruby/webrick/commit/45d68f9eba
2020-11-13 11:36:50 +09:00
Jeremy Evans 957efa95cc [ruby/webrick] Allow empty POST and PUT requests without content length
RFC 7230 section 3.3.3 allows for this.

Fixes #30

https://github.com/ruby/webrick/commit/069e9b1908
2020-11-13 11:35:10 +09:00
Hiroshi SHIBATA e8f8e63f0a
Backport cosmetic changes from upstream repo that is ruby/rdoc 2020-11-12 21:05:59 +09:00
Hiroshi SHIBATA 0b19f33480 [ruby/racc] Bump version to 1.5.1
https://github.com/ruby/racc/commit/2cb3055a73
2020-11-10 21:35:04 +09:00
Hiroshi SHIBATA 5a19b492da [ruby/racc] Use the Ruby license. Fix #134
https://github.com/ruby/racc/commit/7c881cd548
2020-11-10 21:20:31 +09:00
Yusuke Endoh 2fed5f0ad8 lib/racc/statetransitiontable.rb: Make the racc output stable
Racc calls `Array#sort!` to build a state transition table. As
`Array#sort!` is not a stable sort, the output may differ depending upon
the environment.

This changeset makes the sort stable manually, and updates all
expectation files.
2020-11-10 07:49:19 +09:00
Kazuhiro NISHIYAMA d14397bcc4
`fe80` should be case insensitive too 2020-11-09 16:16:30 +09:00
Hiroshi SHIBATA ba1472f43a
Removed needless require for 'enumerator' 2020-11-09 14:18:38 +09:00
Jeremy Evans 54ac1d7717 Support s390 IPv6 link local addresses 2020-11-07 23:42:02 -08:00
Jeremy Evans 2f12af42f7 Add support for IPv6 link local addresses to resolv
Now that it should work correctly, test that every address returned
by Socket.ip_address_list is resolvable.

Socket works with IPv6 link local addresses, and ipaddr now does
as well, so I think resolv should support them.

Fixes [Bug #17112]
2020-11-07 13:47:45 -08:00
Jeremy Evans 9682db0651 Remove sender/message_id pair after response received in resolv
Once a response for a given DNS request has been received (which
requires a matching message id), the [sender, message_id] pair
should be removed from the list of valid senders.  This makes it
so duplicate responses from the same sender are ignored.

Fixes [Bug #12838]
2020-11-07 13:12:27 -08:00
Hiroshi SHIBATA 037803e092
Added dependency for net-protocol 2020-11-06 17:42:57 +09:00
NARUSE, Yui 3407b7d8a6 Revert "Prefer #send over #__send__ when it is clear there is no possible conflict"
This reverts commit 4dba0c1a8e.

Matz's comment is "send is not deprecated. __send__ is safer".
But "Prefer #send over #__send__" is not reasonable.
2020-11-05 20:54:34 +09:00
Hiroshi SHIBATA b2ca183cc9
Promote un.rb to the default gems. It's preparation for 3.0.0-preview2. 2020-11-05 20:21:31 +09:00
Benoit Daloze 4dba0c1a8e Prefer #send over #__send__ when it is clear there is no possible conflict
* Reverts part of 3198e7abd7.
* If the rule is #send should be deprecated, that should be ruled by matz,
  there is no such rule currently and gems seem to prefer #send
  overwhelmingly.
2020-11-05 11:23:27 +01:00
Marc-Andre Lafortune 2aa9a50dcc [ruby/ostruct] Update version 2020-11-04 17:52:03 -05:00
Marc-Andre Lafortune 015b023820 [ruby/ostruct] Restore `ostruct` doc 2020-11-04 17:52:03 -05:00
Marc-Andre Lafortune 6f24be8565 Revert "Make `marshal_load` public"
This reverts commit ee7cc6ac35.

I'm not sure I agree with the spec, but I just tweaked it.
2020-11-04 17:52:03 -05:00
Hiroshi SHIBATA 66bf743b93
Promote debug.rb to default gems.
It have no upstream repo yet. This change is experimental for 3.0.0-preview2.
2020-10-30 21:45:23 +09:00
Nobuyoshi Nakada 3198e7abd7
Separate `send` into `public_send` and `__send__` 2020-10-27 16:12:45 +09:00
Andrew Kerr ef3c25888e Fix small typo in comment in lib/irb.c 2020-10-22 10:56:35 -07:00
Hiroshi SHIBATA d386a58f6f Merge bundler-2.2.0.rc.2 2020-10-15 17:19:02 +09:00
Hiroshi SHIBATA ab6c4f8be3 Merge rubygems-3.2.0.rc.2 2020-10-15 14:12:02 +09:00
Hiroshi SHIBATA 1e316edf60
Promote drb to the default gems 2020-10-14 14:42:53 +09:00
Hiroshi SHIBATA 0f9edf2f48
Promote prettyprint to default gems 2020-10-08 16:40:46 +09:00
Hiroshi SHIBATA 2711e3bab9
Promote pp to default gems 2020-10-08 16:40:46 +09:00
Aaron Patterson ee7cc6ac35
Make `marshal_load` public
Ruby specs expected this method to be public
2020-10-06 15:13:49 -07:00
Marc-Andre Lafortune 1486785a57 [lib/ostruct] Fix Marshal loading 2020-10-06 17:11:08 -04:00
David Rodríguez 29c54b5e03
Add missing fileutils require
On my system, the error was being hidden by the presence of a YARD
rubygems plugin that was providing the require and making things work.
2020-10-06 10:10:42 +09:00
Benoit Daloze 7d8b43d2ed [ruby/tempfile] Improve the documentation for Tempfile.create and recommend Tempfile.open instead
https://github.com/ruby/tempfile/commit/8bac025065
2020-10-05 19:17:25 +02:00
Marc-Andre Lafortune bb2ba72c3b [ruby/ostruct] Tweak doc 2020-09-30 18:11:24 -04:00
Marc-Andre Lafortune 152ba86b6b [ruby/ostruct] Remove unused condition 2020-09-30 18:11:24 -04:00
Marc-Andre Lafortune b36a45c05c [ruby/ostruct] Improved YAML serialization.
Patch adapted from Pietro Monteiro [Fixes bug#8382]
2020-09-30 18:11:24 -04:00
Marc-Andre Lafortune 0977040133 [ruby/ostruct] Add test that frozen OpenStructs are Ractor-shareable 2020-09-30 18:11:24 -04:00
Marc-Andre Lafortune 083fa6e5d2 [ruby/ostruct] Protect subclass' methods and our bang methods.
Internally, use only bang methods
2020-09-30 18:11:24 -04:00
Marc-Andre Lafortune df4d08c44a [ruby/ostruct] Avoid calling initialize 2020-09-30 18:11:24 -04:00
Maciej Mensfeld 0fb1a67bda Reference process PID using the Process#pid
This change will allow formatter to run from Ractors other than main.
2020-09-29 11:50:46 -07:00
Yusuke Endoh d23d2f3f6f
[ruby/webrick] Make it more strict to interpret some headers
Some regexps were too tolerant.

https://github.com/ruby/webrick/commit/8946bb38b4
2020-09-29 16:40:33 +09:00
Marc-Andre Lafortune 245ed57ddc
[ruby/racc] Turn debugging off
https://github.com/ruby/racc/commit/872f75cfa7
2020-09-28 18:08:51 +09:00
Marc-Andre Lafortune 97d1a381e1
[Fixes #137] Improve reporting 2020-09-28 18:07:24 +09:00
Steven Peckins 8863bfb1f4 [rubygems/rubygems] Move comment below shebang in bin/console template
In an executable script, the shebang line should be the first line (the
file needs to start with the bytes 0x23 0x21).  Putting a comment above
it will break the script.

(Regression test included per @deivid-rodriguez)

https://github.com/rubygems/rubygems/commit/962e669feb
2020-09-28 14:54:22 +09:00
Nobuyoshi Nakada 18c642da86 [rubygems/rubygems] Fix ls-files matching regexp
As splitting by NUL means to allow the file names to contain
newlines, path names should match at beginning-of-string instead
of beginning-of-line.

https://github.com/rubygems/rubygems/commit/8a81183236
2020-09-28 14:54:22 +09:00
xndcn ac3f80a58e [rubygems/rubygems] Add writable check for cache dir
Sometimes "install_dir/cache" directory is not writable although "install_dir" is writable.

https://github.com/rubygems/rubygems/commit/665221cb69
2020-09-28 14:54:22 +09:00
Yusuke Endoh c55b5f1062 [rubygems/rubygems] Avoid duplicated generation of APISpecification objects
As far as I could see, `Gem::Resolver::APISpecification` objects are
supposed to be immutable.  If my guessing is correct, then we can cache
and reuse its instances for performance.
At least, `rake` passes on my machine.

Before this change:

```
$ time ruby -I lib bin/gem install --no-doc aws-sdk
Successfully installed aws-sdk-3.0.1
1 gem installed
real    0m37.104s
user    0m36.952s
sys     0m0.333s
```

After this change:

```
$ time ruby -I lib bin/gem install --no-doc aws-sdk
Successfully installed aws-sdk-3.0.1
1 gem installed
real    0m23.905s
user    0m23.740s
sys     0m0.365s
```

https://github.com/rubygems/rubygems/commit/7e8fbba85c
2020-09-28 14:54:22 +09:00
Jean Boussier 91865230cd [rubygems/rubygems] Eval defaults with frozen_string_literal: true
https://github.com/rubygems/rubygems/commit/d498ae3d62
2020-09-28 14:54:22 +09:00
Ellen Marie Dash 9bbca93aa8 [rubygems/rubygems] Remove last remaining line of output from `gem update --system --silent`
https://github.com/rubygems/rubygems/commit/038203aaf8
2020-09-28 14:54:22 +09:00
Ellen Marie Dash e8274a7683 [rubygems/rubygems] Add test for "gem update --system --silent"
https://github.com/rubygems/rubygems/commit/c3fb0db930
2020-09-28 14:54:22 +09:00
Ellen Marie Dash 7fc8f83edb [rubygems/rubygems] Have "gem update --system" pass through the --silent flag.
https://github.com/rubygems/rubygems/commit/5a1e56e892
2020-09-28 14:54:22 +09:00