Commit graph

16449 commits

Author SHA1 Message Date
aycabta
fee19da230 [ruby/reline] Autowrap correctly when inserting chars in the middle of a line
ebaf37255f
2021-02-07 05:12:07 +09:00
aycabta
7b354cf67b [ruby/irb] Enable to reassign a new block with "measure" command
b444573aa2
2021-02-06 21:09:31 +09:00
aycabta
5704b5fe5e [ruby/irb] Allow "measure" command to take block
20f1ca23e9
2021-02-06 20:45:08 +09:00
Nobuyoshi Nakada
7baedeffe9
Added tests for MakeMakefile#test_egrep_cpp 2021-02-05 13:59:27 +09:00
Charles Oliver Nutter
abf71864a5
[ruby/io-console] Mark all tests that use run_pty as pend on JRuby
JRuby's PTY.spawn does not produce a process with its own
controlling terminal, which is necessary for testing these raw
escape sequences. This commit marks those tests as pending.

The functionality tested appears to work at a command line, but
due to this PTY bug in JRuby we cannot test it this way.

See https://github.com/jruby/jruby/issues/6552

a486b72e5e
b5c8e7bfd8
2021-02-05 12:29:33 +09:00
Charles Oliver Nutter
a1cc044ea1
[ruby/io-console] Use omit instead of skip
This test runs with test/unit now, which defines omit instead of
skip.

bd731d0b8d
2021-02-05 12:01:38 +09:00
Charles Oliver Nutter
2a764fe764
[ruby/io-console] Skip test on JRuby
The subprocess script here works fine at a command line, but when
run as a pty subprocess during the tests the master side hangs
waiting for output.

4a21610ece
2021-02-05 12:01:38 +09:00
Charles Oliver Nutter
8960d6b5bd
[ruby/io-console] Add console.rb to search for paths
74567376c4
2021-02-05 12:01:38 +09:00
Nobuyoshi Nakada
9ef7780b09
[ruby/io-console] Run subprocesses without test libraries
Now io/console is loaded from test-unit indirectly, test-unit
requires power_assert which requires io/console.

8817d07951
639cce89de
2021-02-05 11:45:04 +09:00
Jean Boussier
3a888398a6 objspace_dump.c: tag singleton classes and reference the superclass 2021-02-04 09:53:31 -08:00
Nobuyoshi Nakada
b4eba8dfee
Prefer block forms to close opened files 2021-02-03 17:34:41 +09:00
Nobuyoshi Nakada
d05a268adc
Open gzip file in binary mode 2021-02-03 17:32:41 +09:00
Nobuhiro IMAI
b0fb208218 [ruby/irb] follow up the actual line number
7aed8fe3b1
2021-02-03 00:09:32 +09:00
Nobuyoshi Nakada
1cdae49d39 Implement NameError::message#clone for Ractor 2021-02-01 19:54:21 +09:00
Nobuyoshi Nakada
9241211538 Forward keyword arguments for Pathname#each_line [Bug #17589] 2021-01-29 14:27:53 +09:00
aycabta
80fb4758a9 In test, need to pass a context to IRB::WorkSpace.new explicitly 2021-01-27 18:33:36 +09:00
Nobuhiro IMAI
69b42ae02d [ruby/irb] specify the VERBOSE to false and fix tests to fit
502c590925
2021-01-27 15:02:13 +09:00
Nobuhiro IMAI
e80e5a2f89 [ruby/irb] use RubyLex::TerminateLineInput appropriately [Bug #17564]
* using the appropriciate exception instead of `break` so that the session
  can be continue after the `irb_source` and `irb_load` commands
* suppress extra new line due to one more `#prompt` call

bdefaa7cfd
2021-01-27 15:02:05 +09:00
Nobuyoshi Nakada
19e6d27126 [ruby/rdoc] Support iso-strict format in git-log
2a6c22da63
2021-01-25 18:33:33 +09:00
Nobuyoshi Nakada
7fe22152fc [ruby/rdoc] Support other date formats in git-log
ad8cf37d72
2021-01-25 18:33:31 +09:00
Nobuyoshi Nakada
52ebaf718e [ruby/rdoc] Skip non-date logs by git-log
`RDoc::Parser::ChangeLog` mis-parses ChangeLog generated by
git-log, because of too heuristic `Time.parse`.

For instance, "commit 8187228de0"
results in "8187-08-16", that is, day 228 in the year 8187.

9711e6f6d9
2021-01-24 16:46:27 +09:00
Nobuyoshi Nakada
d5d1c41728 [ruby/rdoc] Sort by CommitDate if available
455715e930
2021-01-24 16:46:25 +09:00
Nobuyoshi Nakada
fa048a0f85 [ruby/rdoc] Add links to the commits
1821628076
2021-01-24 16:46:23 +09:00
Nobuyoshi Nakada
f3f1a666c7 [ruby/rdoc] Shorten commit hashes
5d3e153963
2021-01-24 16:46:21 +09:00
Nobuyoshi Nakada
127f735c1e [ruby/rdoc] Tweak log entry markdown
* add 3 levels to headings
* prefix commit log to labels to make unique IDs

5074c13209
2021-01-24 16:46:19 +09:00
Nobuyoshi Nakada
b88d1e6b44 [ruby/rdoc] Make each commit entries h3
11eefb2ae9
2021-01-24 16:46:17 +09:00
Nobuyoshi Nakada
bb570ce6d8 [ruby/rdoc] Support ChangeLog generated by git log
5e0a123ca1
2021-01-24 16:46:15 +09:00
NARUSE, Yui
1bd27a7882 Add test for String#casecmp?
String#casecmp? also normalize upper case characters in legacy encodings.
2021-01-24 15:57:13 +09:00
aycabta
743c44ee21 [ruby/irb] Indent correctly with method calling with receiver
e7c68e74a0
2021-01-24 14:35:34 +09:00
aycabta
fc54af8aa1 [ruby/irb] Indent correctly with keyword "for" and "in"
47c83ea724
2021-01-24 14:35:26 +09:00
Nobuyoshi Nakada
8dfae85adb
Warn the defined location as deprecation as well as the main message
[Bug #17575]
2021-01-23 19:58:39 +09:00
Kazuhiro NISHIYAMA
9de68a5221
Fix a warning
```
.../ruby/test/net/http/test_httpresponse.rb:81: warning: constant RubyVM::MJIT is deprecated
```
2021-01-23 10:52:17 +09:00
Nobuyoshi Nakada
a55eb9a2af
Make reciprocal properly of non-integral rational [Bug #17572] 2021-01-23 10:30:59 +09:00
Felix Wolfsteller
e34f51fe60 [ruby/matrix] Add Matrix#rotate_entries [#19]
Co-authored-by: Marc-André Lafortune <github@marc-andre.ca>
2021-01-21 13:22:25 -05:00
Nobuyoshi Nakada
d961f14df3 [ruby/net-http] RubyVM::MJIT is deprecated, prefer RubyVM::JIT now
abc6ea1877
2021-01-21 20:50:23 +09:00
Takashi Kokubun
922989fa0f [ruby/erb] Warn safe_level and later args even without -w
because, when Ruby 3.1 is released, Ruby 2.5, the last version with the
old method signature, will have been EOL. Therefore we can safely warn
the old interface from Ruby 3.1.

c3a753f49f
2021-01-21 13:52:02 +09:00
Takashi Kokubun
47b43807a8 [ruby/erb] Make sure erb.rb in this repository is tested
012faba2e5
2021-01-21 13:12:03 +09:00
Nobuyoshi Nakada
565aeb81e0 Skip freezing check on setting temporary class path [Bug #17563]
Co-authored-by: ryannevell (Ryan Nevell) <ryan.nevell@gmail.com>
2021-01-20 19:24:16 +09:00
Takashi Kokubun
f4a556f4f1 [ruby/irb] Remove pp-specific stub from TestColor
because it was for TestColorPrinter

7569206fd4
2021-01-20 18:10:20 +09:00
Takashi Kokubun
cea6814c2c [ruby/irb] Undefine unused constants
eea9c16804
2021-01-20 18:07:40 +09:00
Takashi Kokubun
328df00712 [ruby/irb] Split test files for IRB::Color and IRB::ColorPrinter
d95e8daab3
2021-01-20 18:03:37 +09:00
Takashi Kokubun
10d12afa41 [ruby/erb] Prefer __dir__ to reduce ../
cb59f11ec8
2021-01-20 17:46:50 +09:00
Takashi Kokubun
718890aa04 Pend erb command tests for Ruby 2.5 for now 2021-01-20 17:21:09 +09:00
Nobuyoshi Nakada
eeacdcb9a0 Fixed premature return
After setting ruby2_keywords for bmethod, the rest of arguments
had been ignored. [Bug #17558]
2021-01-19 17:59:37 +09:00
Takashi Kokubun
e6af81bde1 [ruby/irb] Stub a screen size for test_context
http://ci.rvm.jp/logfiles/brlog.trunk-random1.20210119-074232

ea87592d4a
2021-01-19 00:14:48 -08:00
Takashi Kokubun
4da4ad69bb [ruby/irb] Support GitHub Actions
8e9e6c4037
2021-01-18 23:55:51 -08:00
Takashi Kokubun
b2159f7c38 [ruby/irb] Stub a screen size for tests
6663057083
2021-01-18 23:35:50 -08:00
Takashi Kokubun
4886535ab2
Avoid suppressing unrelated warnings 2021-01-18 20:44:48 -08:00
Yusuke Endoh
f12320cd57 test/ruby/test_jit.rb: Avoid a warning
20210119T033003Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20210119T033003Z/ruby/test/ruby/test_jit.rb:781:
warning: -e:5: warning: possibly useless use of -@ in void context
```
2021-01-19 13:40:39 +09:00
Yusuke Endoh
ff8c92359a test/ruby/test_pattern_matching.rb: Avoid a warning
20210119T033003Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20210119T033003Z/ruby/test/ruby/test_pattern_matching.rb:798:
warning: assigned but unused variable - x
```
2021-01-19 13:34:07 +09:00