8543 Commits

Author SHA1 Message Date
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
Hiroshi SHIBATA
ab5e9516b7 [rubygems/rubygems] Added Ruby version for oldest supported version of rubygems
https://github.com/rubygems/rubygems/commit/dd87d70f51
2020-09-28 14:54:22 +09:00
David Rodríguez
c6bdf75049 Disallow downgrades to too old versions
Consider the version original included with each ruby as the minimum
supported version.
2020-09-28 14:54:22 +09:00
bronzdoc
828cefd629 [rubygems/rubygems] Add --dryrun to the deprecated options when showing the help message
https://github.com/rubygems/rubygems/commit/38230a77c1
2020-09-28 14:54:22 +09:00
bronzdoc
777840a16a [rubygems/rubygems] We don't need shortucts for a deprecated flag
https://github.com/rubygems/rubygems/commit/087a1f9720
2020-09-28 14:54:22 +09:00
bronzdoc
be980dd9fa [rubygems/rubygems] Deprecate --dryrun
https://github.com/rubygems/rubygems/commit/1715610648
2020-09-28 14:54:22 +09:00
bronzdoc
b83787b1ce [rubygems/rubygems] Make --dry-run flag consistent across rubygems commands
https://github.com/rubygems/rubygems/commit/addc644cad
2020-09-28 14:54:22 +09:00
Nobuyoshi Nakada
0629e695e3 Added --platform option to build command 2020-09-28 14:54:22 +09:00
Hiroshi SHIBATA
757e185cee
Revert "[ruby/webrick] Allow empty POST and PUT requests without content length"
This reverts commit ed12019ce6abe87aac87ec77ac081d37b25180a2.

  https://github.com/ruby/ruby/runs/1160423667?check_suite_focus=true#step:14:752
2020-09-24 22:20:02 +09:00
John W Higgins
f64bea6d66 [ruby/webrick] Allow shutdown_pipe to be passed in via @config
https://github.com/ruby/webrick/commit/30152b4bf9
2020-09-24 21:37:06 +09:00
Jeremy Evans
ed12019ce6 [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-09-24 21:34:07 +09:00
John W Higgins
4715a24dd2 [ruby/webrick] Ensure server port numbers are numeric and ensure they are stored as integers
https://github.com/ruby/webrick/commit/86ed621e11
2020-09-24 21:31:55 +09:00
John W Higgins
96da24f279 [ruby/webrick] Make readpartial limit chunk to appropriate size
https://github.com/ruby/webrick/commit/e693f501bd
2020-09-24 21:22:20 +09:00
Hiroshi SHIBATA
b717f73402
Revert "Manually merged from https://github.com/rubygems/rubygems/pull/2636"
31a6eaabc165d8a222e176f2c809d90622d88ec2 is obsoleted with
  https://github.com/rubygems/rubygems/pull/3820
2020-09-23 22:01:44 +09:00
Hiroshi SHIBATA
a46841612c
bump Bundler's version to 2.2.0.rc.1 2020-09-23 21:06:29 +09:00
Hiroshi SHIBATA
31a6eaabc1
Manually merged from https://github.com/rubygems/rubygems/pull/2636
Enable Style/EmptyLinesAroundClassBody rubocop cop.
2020-09-23 21:02:56 +09:00
aycabta
e193dd1e3d [ruby/irb] Version 1.2.7
https://github.com/ruby/irb/commit/0eaa06838b
2020-09-19 05:13:08 +09:00
aycabta
555ea83344 [ruby/irb] Drop OMIT_ON_ASSIGNMENT and add :truncate option for ECHO_ON_ASSIGNMENT
https://github.com/ruby/irb/commit/4c89b0775b
2020-09-19 05:13:08 +09:00
aycabta
305c430603 [ruby/rdoc] Add man/ri.1 for distribution files
https://github.com/ruby/rdoc/commit/7cb5c3611f
2020-09-18 14:57:58 +09:00
Dorian Marié
0d56aec1dd [ruby/rdoc] Fix spelling error in parser comment
https://github.com/ruby/rdoc/commit/f237c9e223
2020-09-18 14:57:58 +09:00
Nobuyoshi Nakada
e23f0f29da [ruby/rdoc] update all files if any file is newer
Cross references need parse all files which define the subject
names.  This commit makes `--force-update` option enforce to parse
all files if any file is newer than the previous parse, not only
updated files.

https://github.com/ruby/rdoc/commit/13e9a44896
2020-09-18 14:57:58 +09:00