8000 Merge pull request #37 from ruby/master · nobu/ruby@c3f1813 · GitHub
[go: up one dir, main page]

Skip to content

Commit c3f1813

Browse files
author
devkadirselcuk
authored
Merge pull request ruby#37 from ruby/master
[pull] master from ruby:master
2 parents 714787d + 717ab0b commit c3f1813

File tree

96 files changed

+1806
-493
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1806
-493
lines changed

.github/CODEOWNERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Lines starting with '#' are comments.
2+
# Each line is a file pattern followed by one or more owners.
3+
# Code owners will be automatically tagged as reviewers when a pull request is opened
4+
5+
# YJIT sources and tests
6+
yjit* @maximecb @xrxr
7+
doc/yjit/* @maximecb @xrxr
8+
bootstraptest/test_yjit* @maximecb @xrxr
9+
test/ruby/test_yjit* @maximecb @xrxr

.github/workflows/baseruby.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ jobs:
2323
with:
2424
ruby-version: ${{ matrix.ruby }}
2525
bundler: none
26-
- run: echo "make=make -sj$((1 + $(nproc --all)))" >> $GITHUB_ENV
26+
- run: echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
2727
- run: sudo apt-get install build-essential autoconf bison
2828
- run: ./autogen.sh
2929
- run: ./configure --disable-install-doc
30-
- run: $make common-srcs
31-
- run: $make incs
32-
- run: $make all
33-
- run: $make test
30+
- run: make common-srcs
31+
- run: make incs
32+
- run: make all
33+
- run: make test
3434
- uses: k0kubun/action-slack@v2.0.0
3535
with:
3636
payload: |

.github/workflows/bundled_gems.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
1818
- name: Set ENV
1919
run: |
20-
echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
20+
echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
2121
2222
- uses: actions/checkout@v2
2323

@@ -42,12 +42,12 @@ jobs:
4242
run: |
4343
./autogen.sh
4444
./configure -C --disable-install-doc
45-
make $JOBS
45+
make
4646
if: ${{ steps.diff.outcome == 'failure' }}
4747

4848
- name: Test bundled gems
4949
run: |
50-
make $JOBS -s test-bundled-gems
50+
make -s test-bundled-gems
5151
timeout-minutes: 30
5252
env:
5353
RUBY_TESTOPTS: "-q --tty=no"

.github/workflows/compilers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200
- run: make test
201201
- run: make install
202202
if: ${{ matrix.entry.check }}
203-
- run: /usr/local/bin/gem install --no-doc timezone tzinfo
203+
- run: make prepare-gems
204204
if: ${{ matrix.entry.check }}
205205
- run: make test-tool
206206
if: ${{ matrix.entry.check }}

.github/workflows/macos.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ jobs:
2727
working-directory: src
2828
- name: Set ENV
2929
run: |
30-
echo "JOBS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
30+
echo "MAKEFLAGS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
3131
- run: ./autogen.sh
3232
working-directory: src
3333
- name: Run configure
3434
run: ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline)
35-
- run: make $JOBS incs
36-
- run: make $JOBS
35+
- run: make incs
36+
- run: make
3737
- run: make leaked-globals
3838
if: ${{ matrix.test_task == 'check' }}
3939
- run: make prepare-gems
4040
if: ${{ matrix.test_task == 'check' }}
41-
- run: make $JOBS -s ${{ matrix.test_task }}
41+
- run: make -s ${{ matrix.test_task }}
4242
timeout-minutes: ${{ matrix.test_task == 'check' && 15 || 40 }}
4343
env:
4444
RUBY_TESTOPTS: "-q --tty=no"

.github/workflows/mjit.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,29 @@ jobs:
3434
sudo bash -c 'IFS=:; for d in '"$PATH"'; do chmod -v go-w $d; done' || :
3535
- name: Set ENV
3636
run: |
37-
echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
37+
echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
3838
- run: ./autogen.sh
3939
working-directory: src
4040
- name: Run configure
4141
run: ../src/configure -C --disable-install-doc cppflags=-DVM_CHECK_MODE
42-
- run: make $JOBS incs
43-
- run: make $JOBS
44-
- run: sudo make $JOBS -s install
42+
- run: make incs
43+
- run: make
44+
- run: sudo make -s install
4545
- run: sudo apt-get install gdb # used by test / test-all failure
4646
- name: Run test
4747
run: |
4848
ulimit -c unlimited
49-
make $JOBS -s test RUN_OPTS="$RUN_OPTS"
49+
make -s test RUN_OPTS="$RUN_OPTS"
5050
timeout-minutes: 60
5151
- name: Run test-all
5252
run: |
5353
ulimit -c unlimited
54-
make $JOBS -s test-all RUN_OPTS="$RUN_OPTS"
54+
make -s test-all RUN_OPTS="$RUN_OPTS"
5555
timeout-minutes: 60
5656
- name: Run test-spec
5757
run: |
5858
ulimit -c unlimited
59-
make $JOBS -s test-spec RUN_OPTS="$RUN_OPTS"
59+
make -s test-spec RUN_OPTS="$RUN_OPTS"
6060
timeout-minutes: 60
6161
- uses: k0kubun/action-slack@v2.0.0
6262
with:

.github/workflows/ubuntu.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ jobs:
4040
sudo bash -c 'IFS=:; for d in '"$PATH"'; do chmod -v go-w $d; done' || :
4141
- name: Set ENV
4242
run: |
43-
echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
43+
echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
4444
- run: ./autogen.sh
4545
working-directory: src
4646
- name: Run configure
4747
run: ../src/configure -C --disable-install-doc ${{ matrix.configure }}
48-
- run: make $JOBS incs
49-
- run: make $JOBS
48+
- run: make incs
49+
- run: make
5050
- run: make leaked-globals
5151
if: ${{ matrix.test_task == 'check' }}
5252
- run: make prepare-gems
@@ -55,7 +55,7 @@ jobs:
5555
run: |
5656
./miniruby -e '(("a".."z").to_a+("A".."Z").to_a+("0".."9").to_a+%w[foo bar test zzz]).each{|basename|File.write("#{basename}.rb", "raise %(do not load #{basename}.rb)")}'
5757
if: ${{ matrix.test_task == 'check' }}
58-
- run: make $JOBS -s ${{ matrix.test_task }}
58+
- run: make -s ${{ matrix.test_task }}
5959
timeout-minutes: 30
6060
env:
6161
RUBY_TESTOPTS: "-q --tty=no"

.github/workflows/yjit-macos.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ jobs:
3434
working-directory: src
3535
- name: Set ENV
3636
run: |
37-
echo "JOBS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
37+
echo "MAKEFLAGS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
3838
- run: ./autogen.sh
3939
working-directory: src
4040
- name: Run configure
4141
run: ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline)
42-
- run: make $JOBS incs
43-
- run: make $JOBS
42+
- run: make incs
43+
- run: make
4444
- run: make leaked-globals
4545
if: ${{ matrix.test_task == 'check' }}
4646
- run: make prepare-gems
4747
if: ${{ matrix.test_task == 'check' }}
48-
- run: make $JOBS -s ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS"
48+
- run: make -s ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS"
4949
timeout-minutes: 60
5050
env:
5151
RUBY_TESTOPTS: "-q --tty=no"

.github/workflows/yjit-ubuntu.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ jobs:
5252
sudo bash -c 'IFS=:; for d in '"$PATH"'; do chmod -v go-w $d; done' || :
5353
- name: Set ENV
5454
run: |
55-
echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
55+
echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
5656
- run: ./autogen.sh
5757
working-directory: src
5858
- name: Run configure
5959
run: ../src/configure -C --disable-install-doc ${{ matrix.configure }}
60-
- run: make $JOBS incs
61-
- run: make $JOBS
60+
- run: make incs
61+
- run: make
6262
- run: make leaked-globals
6363
if: ${{ matrix.test_task == 'check' }}
6464
- run: make prepare-gems
@@ -70,7 +70,7 @@ jobs:
7070
- < 10000 span class="pl-ent">name: Enable YJIT through ENV
7171
run: echo "RUBY_YJIT_ENABLE=1" >> $GITHUB_ENV
7272
if: ${{ matrix.yjit_enable_env }}
73-
- run: make $JOBS -s ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS"
73+
- run: make -s ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS"
7474
timeout-minutes: 60
7575
env:
7676
RUBY_TESTOPTS: "-q --tty=no"

NEWS.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@ Outstanding ones only.
9696
9797
* Array#intersect? is added. [[Feature #15198]]
9898
99+
* Class
100+
101+
* Class#descendants, which returns an array of classes
102+
directly or indirectly inheriting from the receiver, not
103+
including the receiver or singleton classes.
104+
[[Feature #14394]]
105+
106+
```ruby
107+
class A; end
108+
class B < A; end
109+
class C < B; end
110+
A.descendants #=> [B, C]
111+
B.descendants #=> [C]
112+
C.descendants #=> []
113+
```
114+
99115
* Enumerable
100116
101117
* Enumerable#compact is added. [[Feature #17312]]
@@ -358,6 +374,7 @@ See [the repository](https://github.com/ruby/error_highlight) in detail.
358374
[Bug #4443]: https://bugs.ruby-lang.org/issues/4443
359375
[Feature #12194]: https://bugs.ruby-lang.org/issues/12194
360376
[Feature #14256]: https://bugs.ruby-lang.org/issues/14256
377+
[Feature #14394]: https://bugs.ruby-lang.org/issues/14394
361378
[Feature #14579]: https://bugs.ruby-lang.org/issues/14579
362379
[Feature #15198]: https://bugs.ruby-lang.org/issues/15198
363380
[Feature #15211]: https://bugs.ruby-lang.org/issues/15211
@@ -376,6 +393,7 @@ See [the repository](https://github.com/ruby/error_highlight) in detail.
376393
[Feature #17798]: https://bugs.ruby-lang.org/issues/17798
377394
[Bug #18003]: https://bugs.ruby-lang.org/issues/18003
378395
[Feature #17370]: https://bugs.ruby-lang.org/issues/17370
396+
[Bug #17429]: https://bugs.ruby-lang.org/issues/17429
379397
[Feature #17470]: https://bugs.ruby-lang.org/issues/17470
380398
[Feature #17750]: https://bugs.ruby-lang.org/issues/17750
381399
[Feature #17853]: https://bugs.ruby-lang.org/issues/17853
@@ -384,4 +402,5 @@ See [the repository](https://github.com/ruby/error_highlight) in detail.
384402
[Feature #18015]: https://bugs.ruby-lang.org/issues/18015
385403
[Feature #18029]: https://bugs.ruby-lang.org/issues/18029
386404
[Feature #18172]: https://bugs.ruby-lang.org/issues/18172
405+
[Feature #18229]: https://bugs.ruby-lang.org/issues/18229
387406
[GH-4815]: https://github.com/ruby/ruby/pull/4815

0 commit comments

Comments
 (0)
0