1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

74277 commits

Author SHA1 Message Date
Nobuyoshi Nakada
1de8a42869
sync_default_gems.rb: do not add extra empty lines [ci skip] 2022-10-28 19:04:53 +09:00
Nobuyoshi Nakada
4021c6565f [ruby/irb] Do not make non-existent XDG directory on start
(https://github.com/ruby/irb/pull/357)


https://github.com/ruby/irb/commit/298b134792
2022-10-28 09:36:28 +00:00
Nobuyoshi Nakada
56c97a6621 [ruby/irb] Update regarding NO_COLOR value
https://no-color.org has been updated ():

> Command-line software which adds ANSI color to its output by default
should check for a `NO_COLOR` environment variable that, when present
and **not an empty string** (regardless of its value), prevents the
addition of ANSI color.

https://github.com/ruby/irb/commit/46e0f7e370

Co-authored-by: Stan Lo <stan001212@gmail.com>
2022-10-28 09:30:24 +00:00
Nobuyoshi Nakada
13e968c1cd [ruby/irb] Suppress sequence to inspect asian ambiguous width
https://github.com/ruby/irb/commit/a7097c5b80
2022-10-28 08:29:38 +00:00
Nobuyoshi Nakada
7440fc3eb4 [ruby/irb] Suppress "switching inspect mode" messages
https://github.com/ruby/irb/commit/565eeb3c19
2022-10-28 08:29:37 +00:00
Nobuyoshi Nakada
e6e202234c
sync_default_gems.rb: append orignal commit URLs to subject only log 2022-10-28 13:15:14 +09:00
Alan Wu
9cf027f83a
YJIT: Use guard_known_class() for opt_aref on Arrays ()
This code used to roll its own heap object check before we made a better
version in guard_known_class(). The improved version uses one fewer
comparison, so let's use that.
2022-10-27 18:52:58 -04:00
Maxime Chevalier-Boisvert
2812a57b14
Update docs wrt YJIT limitations and building YJIT ()
* Update docs wrt YJIT limitations and building YJIT

* Update building_ruby.md

Fix relative link
2022-10-27 16:50:00 -04:00
Peter Zhu
ea5972572b [ruby/irb] Fix warnings in test_cmd.rb
Fixes this warning:

    warning: assigned but unused variable - err

https://github.com/ruby/irb/commit/298fcb57a3
2022-10-27 15:29:52 -04:00
Stan Lo
b260c1e8c8 [ruby/irb] Remove unnecessary test setup 2022-10-27 15:29:11 -04:00
Benoit Daloze
bb7067cbdf [ruby/irb] Suppress warning for test which uses a locale non-existing on GitHub Actions 2022-10-27 19:16:52 +00:00
Benoit Daloze
8d7844235c [ruby/irb] Remove unecesary and harmful pend for TruffleRuby in TestRaiseNoBacktraceException
* Specifically the second one causes `$HOME` to be unset, which breaks `File.expand_path('~')`.

https://github.com/ruby/irb/commit/61963305f5
2022-10-27 19:16:51 +00:00
S.H
c6f439a6a8
Improve performance some Integer and Float methods [Feature ] ()
* Improve some Integer and Float methods

* Using alias and Remove unnecessary code

* Remove commentout code
2022-10-27 09:13:16 -07:00
Stan Lo
7cf7e6c332 [ruby/irb] Add missing require 2022-10-27 15:36:18 +00:00
st0012
26b913c88b [ruby/irb] Add test for IRB::InputCompletor::PerfectMatchedProc
This proc displays rdoc document when the input matches certain symbols
perfectly, like "String". It's commonly triggered with autocompletion
but only has 1 test case. So this commit increases its test coverage.

https://github.com/ruby/irb/commit/d85d719313
2022-10-27 15:25:39 +00:00
Shugo Maeda
5129ca3e05 [ruby/rdoc] Delay require "readline" in case the terminal is in raw mode 2022-10-27 08:16:06 +00:00
Nobuyoshi Nakada
739ad81ff1 [ruby/date] Check month range as civil 2022-10-27 05:36:11 +00:00
Nobuyoshi Nakada
cb80ee7a4a [ruby/tmpdir] Warnings should contain the environment variable name 2022-10-27 03:12:00 +00:00
Takashi Kokubun
792dc553f1
YJIT: Test --yjit-verify-ctx on GitHub Actions as well () 2022-10-26 18:20:33 -04:00
Takashi Kokubun
a8e2d73628
Fix the url of Cirrus failure notifications [ci skip]
The previous one was the url of this notification action, but we want to
see a link to Cirrus CI.

This code follows https://cirrus-ci.org/guide/notifications/.

Also, head_branch was null only for pull requests from a fork, so we can
use it for branch-based filtering, which is good.
2022-10-26 13:52:07 -07:00
Matthew Draper
c746f380f2
YJIT: Support nil and blockparamproxy as blockarg in send ()
Co-authored-by: John Hawthorn <john@hawthorn.email>

Co-authored-by: John Hawthorn <john@hawthorn.email>
2022-10-26 15:27:59 -04:00
Takashi Kokubun
fa0adbad92
YJIT: Invalidate i-cache for the other cb on next_page ()
* YJIT: Invalidate i-cache for the other cb on next_page

* YJIT: Invalidate only what's written by jmp_ptr

* YJIT: Move the code to the arm64 backend
2022-10-26 11:29:12 -04:00
Stan Lo
0dc2e1a764 [ruby/irb] Remove unnecessary warning check on help command
It's not an intentional behavior of the command and it behaves
differently in different environments. So checking it actually brings
more problem than benefit.

https://github.com/ruby/irb/commit/b3203bc784
2022-10-26 15:15:30 +00:00
Peter Zhu
73a0223f95 [ruby/irb] Rename test_helper.rb to helper.rb
The name test_helper.rb conflicts with the test_helper.rb in JSON,
causing build failures. This commit renames test_helper.rb to helper.rb.

https://github.com/ruby/irb/commit/b6a92bf6b3

Co-Authored-By: Stan Lo <stan001212@gmail.com>
2022-10-26 15:13:44 +00:00
st0012
cb95d834cc [ruby/irb] Don't insert new methods to Test::Unit::TestCase
Ruby CI runs irb and other Ruby core/stdlib tests in the same process.
So adding irb-specific helper to Test::Unit::TestCase could potentially
pollute other components' tests and should be avoided.
2022-10-26 10:44:29 -04:00
Stan Lo
2022470a95 [ruby/irb] Suppress warnings
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-10-26 10:44:26 -04:00
st0012
d889e810f3 [ruby/irb] Add test for the help command 2022-10-26 10:44:23 -04:00
st0012
40f8a781a3 [ruby/irb] Extract without_rdoc helper 2022-10-26 10:44:03 -04:00
Takashi Kokubun
b795e66a2d
Add NEWS entries about YJIT [ci skip] () 2022-10-26 10:40:49 -04:00
Nobuyoshi Nakada
131c31a920
[Bug ] Show the caller location in warning for Ractor
The internal location in ractor.rb is not usefull at all.
```
$ ruby -e 'Ractor.new {}'
<internal:ractor>:267: warning: Ractor is experimental, ...
```
2022-10-26 19:43:14 +09:00
Nobuyoshi Nakada
a14611cd54 Fix -Wundef warnings 2022-10-26 18:57:26 +09:00
Nobuyoshi Nakada
287eac5e8e Fix format specifiers for size_t 2022-10-26 18:57:26 +09:00
Takashi Kokubun
94f3aa2126
Improve Cirrus notification metadata [ci skip] 2022-10-25 23:02:04 -07:00
Takashi Kokubun
df43611021
CI skip should not be notified [ci skip] 2022-10-25 22:49:35 -07:00
Takashi Kokubun
1161454806
Add NEWS entries about MJIT [ci skip] 2022-10-25 22:26:20 -07:00
Takashi Kokubun
923aed26ff
Start notifying Cirrus CI failures
It looks like Cirrus doesn't natively support notifications and they
recomment to use GitHub Actions for it.
https://cirrus-ci.org/guide/notifications/

Because I don't know what the payload looks like, I just added a basic
payload and dumped GitHub context so that we could improve it later.
2022-10-25 21:50:23 -07:00
Josh Cooper
1670e96c0d [win32] Only include base windows types
esent.h is the header for MS essential storage engine (JET) which is not
needed in ruby. basetsd.h has existed since _MSC_VER >= 1200 (VS 6.0)
and is the preferred header to use for WCHAR.
2022-10-26 10:42:03 +09:00
Takashi Kokubun
1dd9511b67
Use ruby/action-slack@v3.0.0 and ref_name ()
It's moved from k0kubun to ruby org.

Also, we don't need JavaScript eval to generate branch if we use
github.ref_name, so v3.0.0 is a version that doesn't use eval.

Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-10-25 17:53:08 -07:00
git
a733633c57 Update default gems list at d6d9b5130e [ci skip] 2022-10-25 23:14:50 +00:00
Takashi Kokubun
d6d9b5130e [ruby/erb] Version 3.0.0 2022-10-25 23:14:09 +00:00
Takuya Noguchi
ea989127eb Bundler: update docs for gemfile(5) manpage
- Add mswin/mswin64 to platforms
- Use TruffleRuby as example instead of Rubinius

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Co-authored-by: André Arko <andre@arko.net>
2022-10-25 21:19:39 +00:00
Stan Lo
48339d5c5b [ruby/irb] Make sure Encoding's defaults are restored 2022-10-25 20:50:07 +00:00
Jean Boussier
217fdbf9aa [ruby/erb] url_encode: use CGI.escapeURIComponent
(https://github.com/ruby/erb/pull/23)

Ref: https://github.com/ruby/cgi/pull/26

This native implementation is much faster
and available in `cgi 0.3.3`.

https://github.com/ruby/erb/commit/2d90e9b010
2022-10-25 16:40:05 +00:00
Takashi Kokubun
b7644a2311
YJIT: GC and recompile all code pages ()
when it fails to allocate a new page.

Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
2022-10-25 09:07:10 -07:00
Yusuke Endoh
1d2d25dcad Prevent potential buffer overrun in onigmo
A code pattern `p + enclen(enc, p, pend)` may lead to a buffer overrun
if incomplete bytes of a UTF-8 character is placed at the end of a
string. Because this pattern is used in several places in onigmo,
this change fixes the issue in the side of `enclen`: the function should
not return a number that is larger than `pend - p`.

Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-10-25 17:02:43 +09:00
Nobuyoshi Nakada
114e71d062 [ruby/tmpdir] Ignore empty environment variables
Fixes https://github.com/ruby/tmpdir/pull/17

https://github.com/ruby/tmpdir/commit/a79c727a5d
2022-10-25 07:54:40 +00:00
Nobuyoshi Nakada
883d9c305f [ruby/tmpdir] Found or raise 2022-10-25 07:16:36 +00:00
Nobuyoshi Nakada
d55f72bcdb [ruby/tmpdir] Update supported and testing ruby versions 2022-10-25 06:59:30 +00:00
Peter Vandenberk
287c5da4aa [ruby/tmpdir] Make Dir.tmpdir more idiomatic and functional
Use `Enumerable#find` to iterate over the candidates, not `Enumerable.each`.

(this makes the code more functional, and - IMO - slightly more idiomatic,
as it avoids setting the "global" (by which I mean: non-local) `tmp`
variable from inside the block)

https://github.com/ruby/tmpdir/commit/d1f20ad694
2022-10-25 06:59:16 +00:00
dependabot[bot]
ba15fb709b [rubygems/rubygems] Bump rb-sys in /test/rubygems/test_gem_ext_cargo_builder/custom_name
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.31 to 0.9.34.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.31...v0.9.34)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

https://github.com/rubygems/rubygems/commit/6af714b02c
2022-10-25 06:56:59 +00:00