Skip to content

Commit aaa956e

Browse files
committed
Now irb is a bundled gem and needs rubygems
1 parent 4eaa245 commit aaa956e

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/macos.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ jobs:
107107

108108
- run: make hello
109109

110+
- name: runirb
111+
run: |
112+
echo IRB::VERSION | make runirb RUNOPT="-- -f"
113+
110114
- name: Set test options for skipped tests
111115
run: |
112116
set -x

.github/workflows/ubuntu.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ jobs:
9999

100100
- run: $SETARCH make hello
101101

102+
- name: runirb
103+
run: |
104+
echo IRB::VERSION | $SETARCH make runirb RUNOPT="-- -f"
105+
102106
- name: Set test options for skipped tests
103107
run: |
104108
set -x

common.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,8 +1427,8 @@ run: yes-fake miniruby$(EXEEXT) PHONY
14271427
runruby: $(PROGRAM) PHONY
14281428
RUBY_ON_BUG='gdb -x $(srcdir)/.gdbinit -p' $(RUNRUBY) $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT)
14291429

1430-
runirb: $(PROGRAM) PHONY
1431-
RUBY_ON_BUG='gdb -x $(srcdir)/.gdbinit -p' $(RUNRUBY) $(RUNOPT0) -r irb -e 'IRB.start("make runirb")' $(RUNOPT)
1430+
runirb: $(PROGRAM) update-default-gemspecs
1431+
RUBY_ON_BUG='gdb -x $(srcdir)/.gdbinit -p' $(RUNRUBY) $(RUNOPT0) -rrubygems -r irb -e 'IRB.start("make runirb")' $(RUNOPT)
14321432

14331433
parse: yes-fake miniruby$(EXEEXT) PHONY
14341434
$(BTESTRUBY) --dump=parsetree_with_comment,insns $(TESTRUN_SCRIPT)

0 commit comments

Comments
 (0)