Nobuyoshi Nakada
abe12d8b96
Freeze method reference operator object
...
[Feature #16103 ]
2019-08-29 16:58:21 +09:00
Nobuyoshi Nakada
2ed68d0ff9
Revert "Add pipeline operator [Feature #15799 ]"
...
This reverts commits:
* d365fd5a024254d7c105a62a015a7ea29ccf3e5d
* d780c3662484d6072b3a6945b840049de72c2096
* aa7211836b769231a2a8ef6b6ec2fd0ec882ef29
* 043f010c28e82ea38978bf8ed885416f133b5b75
* bb4dd7c6af05c7821d572e2592ea3d0cc748d81f
* 043f010c28e82ea38978bf8ed885416f133b5b75
* f169043d81524b5b529f2c1e9c35437ba5bc3a7a
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/94645
2019-08-29 15:27:59 +09:00
Nobuyoshi Nakada
761346a960
Show the previous definition location,
...
when reopened class/module redefinition mismatched the previous
definition. [Feature #11460 ]
2019-08-29 13:24:00 +09:00
Nobuyoshi Nakada
1cf5a31e7a
Aseert exception at negative step for non-endless range too
2019-08-29 11:16:17 +09:00
Nobuyoshi Nakada
d92289cd8d
Revert "Remove warnings of flip-flop deprecation from tests and specs"
...
This reverts commit bf7a32d22079cc44eb19794e41d82b886d5d17b3.
flip-flop is no longer deprecated.
[Feature #5400 ]
2019-08-29 11:10:45 +09:00
aycabta
3a4a58e2cc
Fix use_lib_reline for test/readline
2019-08-27 01:42:41 +09:00
manga_osyo
50d4a77041
Add test with encoding.
2019-08-27 01:23:46 +09:00
manga_osyo
0295bffc96
Change to test file path.
2019-08-27 01:23:39 +09:00
manga_osyo
1ee9299bca
Add support Windows in CI.
2019-08-27 01:23:34 +09:00
manga_osyo
f33117fbc6
Add test reline.
2019-08-27 01:23:29 +09:00
manga_osyo
298ac04710
Refactoring Reline.
2019-08-27 01:23:19 +09:00
manga_osyo
afed2668a6
Fix reference core method.
2019-08-27 01:23:15 +09:00
manga_osyo
f60e5a1f99
Remove test_mode in lib/reline.
2019-08-27 01:23:10 +09:00
manga_osyo
9c0cd6a09e
Refactoring Reline accessor.
2019-08-27 01:23:04 +09:00
Nobuyoshi Nakada
5decf66ab3
Inspect dynamic symbol as well as static symbol
2019-08-25 11:39:20 +09:00
Fernando Wolf Bona
8d804e41a0
Add abs to Matrix ( #2199 )
2019-08-21 16:36:39 -04:00
Jeremy Evans
81dfe3c47b
Enable more Time TZ tests on OpenBSD
2019-08-20 21:26:12 -07:00
Hiroshi SHIBATA
209ea85b54
Make portable for standalone test-unit gem.
...
* It can invoke test-unit with envutil.rb
* refute_match of test-unit couldn't handle String instance.
2019-08-19 18:37:22 +09:00
aycabta
50623f3df0
Remove commented out debug print
2019-08-18 08:05:14 +09:00
Alan Wu
e9f82585ee
Don't crash when deleting at the end of the line
...
To reproduce this bug, type one character into irb, then press the
delete key on your keyboard.
2019-08-18 07:43:19 +09:00
aycabta
15da2aad76
Remove Travis CI workaround
2019-08-17 20:20:04 +09:00
Hiroshi SHIBATA
79fe84edf5
Removed test_case files from lib directory.
2019-08-17 20:20:04 +09:00
Hiroshi SHIBATA
37d0e6e471
Skip teardown with JRuby
2019-08-17 18:20:50 +09:00
Hiroshi SHIBATA
06fcf88d69
Use the original require for test_race_exception
...
The extension for require method with rubygems affects this test
case. We need to keep this test for the original method.
2019-08-17 15:12:46 +09:00
Hiroshi SHIBATA
dd16f8524c
Revert "Revert "[rubygems/rubygems] [Require] Ensure -I beats a default gem""
...
This reverts commit 75d29db8f965893bb6ab38b9008abc80cdda246e.
2019-08-17 15:12:45 +09:00
Nobuyoshi Nakada
11a9f7ab94
Search refinement module along nested usings
...
[Bug #16107 ]
2019-08-17 12:30:38 +09:00
Hiroshi SHIBATA
75d29db8f9
Revert "[rubygems/rubygems] [Require] Ensure -I beats a default gem"
...
This reverts commit 00cd5d74cecb6aa4a184e57e2b8246ef6e45d458.
2019-08-17 08:52:39 +09:00
Hiroshi SHIBATA
f30d38bdd0
Move lib directory to the last of $LOAD_PATH on ruby repository.
...
https://github.com/rubygems/rubygems/pull/1868 changes the behavior
of require when it used with -I options. Therefore, the options of
ruby repository was different from rubygems/rubygems.
2019-08-17 07:47:19 +09:00
Alexander Pakulov
25a327d41b
[rubygems/rubygems] Do not mutate uri.query during s3 signature creation
...
https://github.com/rubygems/rubygems/commit/c0275ee537
2019-08-17 07:35:48 +09:00
David Rodríguez
5998012a0c
[rubygems/rubygems] Autoswitch to exact bundler version if present
...
https://github.com/rubygems/rubygems/commit/bb02953a97
2019-08-17 07:35:48 +09:00
David Rodríguez
1ac6890bd0
[rubygems/rubygems] Fix removing unresolved default spec files from map
...
https://github.com/rubygems/rubygems/commit/7964917bbc
2019-08-17 07:35:48 +09:00
bronzdoc
89ad5df979
[rubygems/rubygems] Replace domain parameter in Gem::Command#show_lookup_failure with a parameter to suppress suggestions
...
https://github.com/rubygems/rubygems/commit/760b7d834f
2019-08-17 07:35:48 +09:00
Samuel Giddins
00cd5d74ce
[rubygems/rubygems] [Require] Ensure -I beats a default gem
...
https://github.com/rubygems/rubygems/commit/6fbda98eb3
2019-08-17 07:35:48 +09:00
David Rodríguez
d4feeb1936
[rubygems/rubygems] Make test also assert the gems that it should load
...
https://github.com/rubygems/rubygems/commit/a6375920bf
2019-08-17 07:35:48 +09:00
David Rodríguez
bb2a65800d
[rubygems/rubygems] Use assert_require
...
For consistency with the other specs.
https://github.com/rubygems/rubygems/commit/44b93aec4c
2019-08-17 07:35:48 +09:00
Nobuyoshi Nakada
03f4a0b18e
[ruby/rdoc] Use assert_raise
...
https://github.com/ruby/rdoc/commit/f2c63549f7
2019-08-16 17:28:40 +09:00
aycabta
1b02f6c020
Set IRB::Context#return_format on test clarify
2019-08-16 07:10:45 +09:00
aycabta
a458317b91
Use assert_raise and skip for test/unit
2019-08-16 06:45:36 +09:00
Yusuke Endoh
f71bd7477e
RDoc::Parser::C: Integrate do_classes and do_modules by one regexp match
...
The full scan of the C source code (`@content.scan`) is very slow.
The old code invokes the scan six times in `do_classes` and
`do_modules`.
This change integrates the six scans into one by merging the regexps.
The integrated regexp is a bit hard to maintain, but the speed up is
significant: approx. 30 sec -> 20 sec in Ruby's `make rdoc`.
In addition, this change omits `do_boot_defclass` unless the file name
is `class.c`. `boot_defclass` is too specific to Ruby's source code, so
RDoc should handle it as a special case.
Before this change:
TOTAL (pct) SAMPLES (pct) FRAME
858 (13.6%) 858 (13.6%) (garbage collection)
292 (4.6%) 264 (4.2%) RDoc::Parser::C#do_define_class
263 (4.2%) 250 (3.9%) RDoc::Parser::C#do_define_module
275 (4.3%) 241 (3.8%) RDoc::Parser::C#do_define_class_under
248 (3.9%) 237 (3.7%) RDoc::Parser::C#do_define_module_under
234 (3.7%) 234 (3.7%) RDoc::Parser::C#gen_body_table
219 (3.5%) 219 (3.5%) Ripper::Lexer#state_obj
217 (3.4%) 216 (3.4%) RDoc::Parser::C#do_struct_define_without_accessor
205 (3.2%) 205 (3.2%) RDoc::Parser::C#do_boot_defclass
205 (3.2%) 205 (3.2%) RDoc::Parser::C#do_singleton_class
The six methods take approx. 22.2%.
`do_define_class` (4.2%) + `do_define_class_under` (3.8%) +
`do_define_module` (3,9$) + `do_define_module_under` (3.7%) +
`do_struct_define_without_accessor` (3.4%) + `do_singleton_class` (3.2%)
After this change, the methods are integrated to `do_classes_and_modules`
which takes only 5.8%.
TOTAL (pct) SAMPLES (pct) FRAME
812 (16.7%) 812 (16.7%) (garbage collection)
355 (7.3%) 284 (5.8%) RDoc::Parser::C#do_classes_and_modules
225 (4.6%) 225 (4.6%) RDoc::Parser::C#gen_body_table
429 (8.8%) 210 (4.3%) RDoc::Parser::RubyTools#get_tk
208 (4.3%) 208 (4.3%) RDoc::TokenStream#add_tokens
2019-08-16 06:07:11 +09:00
aycabta
b64911f4e2
Parser was replaced
2019-08-16 06:07:11 +09:00
Hiroshi SHIBATA
bad937b00b
Gem::TestCase is based on Minitest
2019-08-16 06:07:11 +09:00
Hiroshi SHIBATA
daf5ce3ba1
Use omit instead of skip for test-unit.
2019-08-16 06:07:11 +09:00
Hiroshi SHIBATA
e87e10e5e7
Use test/unit instead of test-unit. Because test-unit is only provided standalone gem.
2019-08-16 06:07:11 +09:00
Hiroshi SHIBATA
2066dae991
Cleanup commented-out code.
2019-08-16 06:07:11 +09:00
Hiroshi SHIBATA
9218655660
Removed needless alias for capture_io.
2019-08-16 06:07:11 +09:00
Nobuyoshi Nakada
71fd26b195
Fallback for older Rubygems
2019-08-16 06:07:11 +09:00
Nobuyoshi Nakada
787b437a2a
Use Gem.default_specifications_dir
...
Gem::Specification.default_specifications_dir is deprecated.
2019-08-16 06:07:11 +09:00
Nobuyoshi Nakada
5555e3ef57
Renamed minitest_helper.rb as helper.rb
2019-08-16 06:07:11 +09:00
Nobuyoshi Nakada
8045ebbf78
Use locale directory for the tests
2019-08-16 06:07:11 +09:00
Nobuyoshi Nakada
1a5304228a
Use test-unit instead of minitest
...
Minitest 6 will err `assert_equal` with `nil`.
https://github.com/seattlerb/minitest/issues/779
2019-08-16 06:07:11 +09:00