Takashi Kokubun
f84d94b803
YJIT: Show definedivar exit reasons ( #7755 )
2023-04-24 12:20:18 -07:00
Carl Brasic
8a132358d7
[ruby/reline] Revert #335 (Trap TSTP to handle C-z)
...
(https://github.com/ruby/reline/pull/535 )
This PR was an effort to address #321 (ed_quoted_insert doesn't work
properly) but per the reporter it did not work correctly.
Moreover, it introduced a major regression: Shell job control stopped
working in all applications that use reline, notably IRB.
Bash and other shells send SIGTSTP in response to C-z to implement job
suspension. Handling SIGSTP opts out of this functionality. For a
line oriented terminal program this should be avoided (not to mention,
this behavior diverges from readline's)
https://github.com/ruby/reline/commit/26383d25b8
Co-authored-by: Carl Brasic <cbrasic@drwholdings.com>
2023-04-24 16:31:13 +00:00
Jeremy Evans
f8e7048348
Allow anonymous memberless Struct
...
Previously, named memberless Structs were allowed, but anonymous
memberless Structs were not.
Fixes [Bug #19416 ]
2023-04-24 07:37:20 -07:00
Stan Lo
73fc81199d
[ruby/irb] Simplify the help command's implementation
...
(https://github.com/ruby/irb/pull/564 )
The current method-redefining approach brings little benefit, makes it
harder to understand the code, and causes warnings like:
> warning: method redefined; discarding old execute
This patch simplifies it while displaying more helpful message when rdoc
couldn't be loaded.
2023-04-24 14:10:36 +00:00
Stan Lo
805899dda2
[ruby/irb] Filter out top-level methods when using `ls
...
<Class/Module>`
(https://github.com/ruby/irb/pull/562 )
Instead of always printing methods inherited from Class or Module, IRB by
default should filter them out unless `<Class/Module>` is specified to be
either of those.
2023-04-24 14:05:16 +00:00
dependabot[bot]
886986b3ef
Bump github/codeql-action from 2.2.11 to 2.3.0
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2.2.11 to 2.3.0.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](d186a2a36c...b2c19fb9a2
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 12:48:15 +09:00
Jeremy Evans
a8ba1ddd78
Use UTF-8 encoding for literal extended regexps with UTF-8 characters in comments
...
Fixes [Bug #19455 ]
2023-04-23 19:27:58 -07:00
Yusuf Daniju
ec211ad54d
[ruby/irb] fix typo in tracer ( https://github.com/ruby/irb/pull/565 )
...
https://github.com/ruby/irb/commit/2f567f3d3e
2023-04-23 18:41:40 +00:00
Nobuyoshi Nakada
dafbaabc04
Check the precision of `getrusage` at runtime
2023-04-23 12:01:13 +09:00
Nobuyoshi Nakada
c5529aa5fc
Fix a guard of `Process.times`
...
`GETRUSAGE_BASED_CLOCK_PROCESS_CPUTIME_ID` clock uses `getrusage`
always if available as the name states. That is if it is implemented
`getrusage` is available, regardless microseconds in its results.
2023-04-22 21:21:35 +09:00
Nobuyoshi Nakada
4cff7a92b8
Fix an example of `Process.times`
...
Prior to commit 5806c54447
, it was "at
least one result with precision beyond milliseconds (with none-zero
microseconds) should exist"; after this commit, "at least one result
should have zero microseconds". This chance is lower than the
previous condition.
2023-04-22 21:21:35 +09:00
Takashi Kokubun
1702b0f438
Remove unused opt_call_c_function insn ( #7750 )
2023-04-21 23:58:07 -07:00
Nobuyoshi Nakada
de5cd5a635
Use shorter path as `SPEC_TEMP_DIR`
...
The temporary directory under the build directory may be too long as a
UNIX socket path. On macOS, the default `TMPDIR` per user is also
very long.
2023-04-21 22:24:55 +09:00
Nobuyoshi Nakada
e956052fa9
Skip when unix socket path is too long
...
Eventually the path directly under "/tmp" is complained by `rm_r` in
spec/mspec/lib/mspec/helpers/fs.rb.
2023-04-21 22:17:18 +09:00
Nobuyoshi Nakada
39bbbd767d
Add rubyspec-capiext on mswin
2023-04-21 21:28:08 +09:00
Hiroshi SHIBATA
94a418d0bb
[ruby/rinda] Expose Rinda::VERSION
...
https://github.com/ruby/rinda/commit/fa3865ac48
2023-04-21 06:22:52 +00:00
Hiroshi SHIBATA
b9b43a1020
[ruby/win32ole] Reuse WIN32OLE_VERSION for gem version
...
https://github.com/ruby/win32ole/commit/bff3ea8b0b
2023-04-21 04:46:10 +00:00
Hiroshi SHIBATA
9702a8142b
[ruby/fcntl] Expose Fcntl::VERSION
...
https://github.com/ruby/fcntl/commit/cb8e414e9f
2023-04-21 04:21:05 +00:00
John Hawthorn
072ef7a1aa
YJIT: invokesuper: Remove cme mid matching check
...
This check was introduced to match an assertion in the C YJIT when this
was originally introduced. I don't believe it's necessary for
correctness of the generated code.
Co-authored-by: Adam Hess <HParker@github.com>
Co-authored-by: Daniel Colson <danieljamescolson@gmail.com>
Co-authored-by: Luan Vieira <luanzeba@github.com>
2023-04-20 16:09:16 -07:00
Takashi Kokubun
a42c36c0f1
YJIT: Merge lower_stack into the split pass ( #7748 )
2023-04-20 15:35:27 -07:00
Peter Zhu
ae90fa981a
[DOC] Documentation for flags of RClass
2023-04-20 16:53:13 -04:00
Maxime Chevalier-Boisvert
277098bde2
Fix inaccurate comment
2023-04-20 16:31:34 -04:00
Takashi Kokubun
64a25977ed
YJIT: Merge csel and mov on arm64 ( #7747 )
...
* YJIT: Refactor arm64_split with &mut insn
* YJIT: Merge csel and mov on arm64
2023-04-20 13:08:42 -07:00
Takashi Kokubun
995b960c70
YJIT: Avoid splitting mov for small values on arm64 ( #7745 )
...
* YJIT: Avoid splitting mov for small values on arm64
* Fix a comment
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
* YJIT: Test the 0xffff boundary
---------
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
2023-04-20 10:05:30 -07:00
Hiroshi SHIBATA
ce38ad6963
[rubygems/rubygems] util/rubocop -A
...
https://github.com/rubygems/rubygems/commit/784e5e2fe5
2023-04-20 01:57:17 +00:00
Hiroshi SHIBATA
b42f0094ce
[rubygems/rubygems] Support Symbol and URL keys
...
https://github.com/rubygems/rubygems/commit/3bda049c73
2023-04-20 01:57:17 +00:00
Hiroshi SHIBATA
4bb0e01da2
[rubygems/rubygems] warn message when RubyGems handle invalid yaml like 'invalid: foo: bar'
...
https://github.com/rubygems/rubygems/commit/b8d0c25b7e
2023-04-20 01:57:17 +00:00
Hiroshi SHIBATA
dbcdac00e6
[rubygems/rubygems] Revert "Bundler::YAMLSerializer.load couldn't raise error when invalid yaml was provided"
...
This reverts commit https://github.com/rubygems/rubygems/commit/cfcfde04c783 .
https://github.com/rubygems/rubygems/commit/ac21ae7083
2023-04-20 01:57:16 +00:00
Nobuyoshi Nakada
5579cbe2dd
Ignore ASCII-incompatible scripts under spec/ruby [ci skip]
2023-04-20 10:29:16 +09:00
Nobuyoshi Nakada
ad4a160220
Exit explicitly instead of !
2023-04-20 10:28:29 +09:00
Nobuyoshi Nakada
2d301945f6
Run source file checks on all branches
2023-04-20 10:25:44 +09:00
Nobuyoshi Nakada
7821708c84
Use ASCII-compatible encoding for tests
...
Since these files are written in a wide character encoding, stop at
first NUL byte and are actually empty. ASCII-incompatible encodings
have never been supported as source encoding.
2023-04-20 09:57:49 +09:00
Takashi Kokubun
d2d0954c16
YJIT: Replace Mov with LoadInto on arm64 ( #7744 )
...
* YJIT: Replace Mov with LoadInto on arm64
* YJIT: Add a test for the new pass
2023-04-19 17:25:24 -07:00
Takashi Kokubun
5fc11f306c
YJIT: Tweak asm comments ( #7743 )
2023-04-19 19:30:43 -04:00
Takashi Kokubun
2531bb0b66
YJIT: Remove Insn::RegTemps ( #7741 )
...
* YJIT: Remove Insn::RegTemps
* Update a comment
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
---------
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
2023-04-19 13:08:35 -07:00
Hiroshi SHIBATA
7477284043
Hide Gem::MockGemUi. It's only used by tests
2023-04-19 15:59:59 +09:00
Hiroshi SHIBATA
d1c42da7a1
[rubygems/rubygems] To use Gem::YAMLSerializer in Bundler
...
https://github.com/rubygems/rubygems/commit/5351e01b32
2023-04-19 06:56:24 +00:00
Hiroshi SHIBATA
40d1a00040
[rubygems/rubygems] Copy YAMLSerializer from Bundler
...
https://github.com/rubygems/rubygems/commit/6a97346708
2023-04-19 06:56:23 +00:00
Hiroshi SHIBATA
62e5ba537a
[rubygems/rubygems] Added tests for load_with_rubygems_config_hash and dump_with_rubygems_yaml
...
https://github.com/rubygems/rubygems/commit/0393f24119
2023-04-19 06:56:23 +00:00
Hiroshi SHIBATA
8b95b33a9d
[rubygems/rubygems] Bundler::YAMLSerializer.load couldn't raise error when invalid yaml was provided
...
https://github.com/rubygems/rubygems/commit/cfcfde04c7
2023-04-19 06:56:22 +00:00
Hiroshi SHIBATA
92ab4e41dd
[rubygems/rubygems] Replaced Gem::ConfigFile.dump_with_rubygems_yaml for saveing configuration
...
https://github.com/rubygems/rubygems/commit/46438e61cd
2023-04-19 06:56:22 +00:00
Hiroshi SHIBATA
ef54a9aeb6
[rubygems/rubygems] Introduce self.load_with_rubygems_config_hash
...
https://github.com/rubygems/rubygems/commit/9175b8cf2a
2023-04-19 06:56:21 +00:00
Hiroshi SHIBATA
644d7df021
[rubygems/rubygems] Introduce self.dump_with_rubygems_yaml
...
https://github.com/rubygems/rubygems/commit/3d3b0d80a1
2023-04-19 06:56:21 +00:00
Hiroshi SHIBATA
45655089da
[rubygems/rubygems] Removed trailing-slash for domain
...
https://github.com/rubygems/rubygems/commit/81ba58f445
2023-04-19 06:56:20 +00:00
Hiroshi SHIBATA
cdc2e3de10
[rubygems/rubygems] Wrap self.convert_rubygems_config_hash from Bundler::YAMLSerializer.load
...
https://github.com/rubygems/rubygems/commit/080880ac23
2023-04-19 06:56:20 +00:00
Hiroshi SHIBATA
7b959f6288
[rubygems/rubygems] Move all changes only in RubyGems
...
https://github.com/rubygems/rubygems/commit/d842e2092f
2023-04-19 06:56:20 +00:00
Hiroshi SHIBATA
30b3290f26
[rubygems/rubygems] Added guard condition for replacing __ variable in YAML keys
...
https://github.com/rubygems/rubygems/commit/e7d31405ea
2023-04-19 06:56:19 +00:00
Hiroshi SHIBATA
d0dc617917
[rubygems/rubygems] Replaced load_yaml_file with Bundler::YAMLSerializer
...
https://github.com/rubygems/rubygems/commit/1ed5fc018e
2023-04-19 06:56:19 +00:00
Hiroshi SHIBATA
3988b1d471
[rubygems/rubygems] api_key is always contained string
...
https://github.com/rubygems/rubygems/commit/925f7f6717
2023-04-19 06:56:18 +00:00
Hiroshi SHIBATA
bf8d8ce1ee
[rubygems/rubygems] Keep compatiblity of Bundler specs
...
https://github.com/rubygems/rubygems/commit/b211eeacba
2023-04-19 06:56:18 +00:00