aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/rdoc] Normalization of comment should check languageaycabta2019-07-267-40/+53
| | | | | | | | | RDoc::Text#normalize_comment that is included RDoc::Comment always remove Ruby style comment indicator "#" and C style comment indicator "/**/", but should check language and remove only the language's comment indicator. https://github.com/ruby/rdoc/commit/ca68ba1e73
* [ruby/rdoc] ClassModule#add_comment should receive RDoc::Commentaycabta2019-07-261-9/+12
| | | | https://github.com/ruby/rdoc/commit/3fb03bf399
* Separated tool/test/runner.rb and test/runner.rbNobuyoshi Nakada2019-07-251-0/+11
| | | | | | As `make test-tool` does not use gems, and no Rubygems stuffs is needed, so moved such things to test/runner.rb. Also no longer nees `--test-target-dir` option.
* [ruby/psych] Suppress uninitialized instance variable warningsNobuyoshi Nakada2019-07-251-1/+1
| | | | | | | | | | | | | In verbose mode, `test_delegator` in `test/psych/visitors/test_yaml_tree.rb` shows following warning. https://travis-ci.org/ruby/psych/jobs/562435717#L268 ``` /home/travis/build/ruby/psych/test/psych/visitors/test_yaml_tree.rb:10: warning: instance variable @obj not initialized ``` This is because `Psych.load` bypasses #initialize with the #init_with method. https://github.com/ruby/psych/commit/f99523388f
* [ruby/psych] Deduplicate hash keys if they're stringsJean Boussier2019-07-251-0/+14
| | | | https://github.com/ruby/psych/commit/0414982ffd
* Fix errno at seeking socket/pipe on WindowsNobuyoshi Nakada2019-07-251-0/+3
| | | | [Bug #12230]
* Suppress deflateParams() warningsNobuyoshi Nakada2019-07-241-4/+4
|
* [rubygems/rubygems] Make `@@project_dir` constants per filesNobuyoshi Nakada2019-07-242-14/+14
| | | | https://github.com/rubygems/rubygems/commit/955174658f
* [rubygems/rubygems] Resolve `@@project_dir` from test file pathsNobuyoshi Nakada2019-07-242-0/+4
| | | | | | | `Dir.pwd` may differ from the source path. Test directories and files should be resolved from test file paths. https://github.com/rubygems/rubygems/commit/e18e7c81b4
* should not free local hook_list here.Koichi Sasada2019-07-241-0/+17
| | | | | | | | | | | exec_hooks_postcheck() clean executed hook_list if it is needed. list_exec is freed if there are no events and this list is local event (connected to specific iseq). However, iseq keeps to point this local hook_list, freed list. To prevent this situation, do not free hook_list here even if it has no events. This issue is reported by @joker1007. https://twitter.com/joker1007/status/1153649170797830144
* Make Object#singleton_methods work correctly for singleton classes of objectsJeremy Evans2019-07-231-0/+23
| | | | Fixes [Bug #10901]
* Test missing Content-Type warningsNobuyoshi Nakada2019-07-241-4/+11
|
* Test invalid offset warningsNobuyoshi Nakada2019-07-241-3/+6
|
* Show the caller's locationNobuyoshi Nakada2019-07-241-1/+13
| | | | | * lib/net/http/header.rb: show the caller's location instead of the current lines.
* Split test/ripper/test_files.rb to run in parallelNobuyoshi Nakada2019-07-237-18/+56
|
* tool/test/runner.rb: support --test-target-dir optionYusuke Endoh2019-07-211-39/+0
| | | | | | | | | | | tool/test/runner.rb had been copied from test/runner.rb. test/runner.rb was for `make test-all`, and tool/test/runner.rb was for `make test-testframework` and `make test-tool`. But I want to avoid the code clones. This change makes tool/test/runner.rb support --test-target-dir option which allows tool/test/runner.rb to run `make test-all`. Now we can remove test/runner.rb.
* Allow mday in Date.iso8601 to be omittedNobuyoshi Nakada2019-07-161-0/+3
| | | | [Bug #12285]
* Removed duplicate highlightingNobuyoshi Nakada2019-07-151-0/+3
|
* Move helper file of logger to under the test/logger.Hiroshi SHIBATA2019-07-155-5/+4
|
* [ruby/logger] Add option to set the binary mode of the log deviceRafael Mendonça França2019-07-152-0/+26
| | | | | | | | | | | | Without binmode strings with incompatible encoding can't be written in the file. This is very common in applications that log user provided parameters. We need to allow changing the binnary mode because right now it is impossible to use the built-in log rotation feature when you provide a File object to the LogDevice, and if you provide a filename you can't have binmode. https://github.com/ruby/logger/commit/9114b3ac7e
* [ruby/logger] Set filename when initializing logger with a File objectJeremy Evans2019-07-151-0/+15
| | | | | | This should allow reopen to work. Requested in ruby issue #14595. https://github.com/ruby/logger/commit/bd367aff12
* [ruby/logger] Fix to use logger and test-unit in this repo withsonots2019-07-154-9/+11
| | | | | | `ruby test/logger/test_xxx.rb` https://github.com/ruby/logger/commit/d3c2402340
* [ruby/logger] Add support for changing severity using bang methods.Samuel Williams2019-07-151-0/+11
| | | | https://github.com/ruby/logger/commit/ae4c6dfcbb
* add tests for orphan/not-orphan proc/lambda.Tanaka Akira2019-07-152-0/+54
|
* add tests for "break" in lambda.Tanaka Akira2019-07-151-0/+15
|
* Move a test file of Reline to test/reline/aycabta2019-07-151-0/+0
|
* The default charset of text/* media type is UTF-8.Tanaka Akira2019-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks for the patch gareth (Gareth Adams). [Bug #15933] ------- Combines two small, but very related changes 1: Treat HTTPS the same as HTTP Previously, OpenURI followed guidance in RFC2616/3.7.1: > When no explicit charset parameter is provided by the sender, media > subtypes of the "text" type are defined to have a default charset > value of "ISO-8859-1" when received via HTTP. However this RFC was written before TLS was established and OpenURI was never updated to treat HTTPS traffic the same way. So, HTTPS documents received a different default to HTTP documents. This commit removes the scheme check so that all text/* documents processed by OpenURI are treated the same way. In theory this processing gets applied to FTP URIs too, but there's no mechanism in OpenURI for FTP documents to have Content-Type metadata appended to them, so this ends up being a no-op. 2: Change default charset for text/* to UTF-8 Replaces the default ISO-8859-1 charset previously defined in RFC2616 (now obsoleted) with a UTF-8 charset as defined in RFC6838. Fixes: https://bugs.ruby-lang.org/issues/15933
* Remove unused method.manga_osyo2019-07-151-1/+1
|
* Rename to Reline::History::Test.manga_osyo2019-07-151-1/+1
|
* Add `class Reline::History` and test.manga_osyo2019-07-151-0/+273
|
* [ruby/csv] Fix a bug that strip: true removes newlinesKouhei Sutou2019-07-141-0/+30
| | | | https://github.com/ruby/csv/commit/5540d35a30
* [ruby/csv] Don't raise on eof?Kouhei Sutou2019-07-141-0/+3
| | | | | | | | GitHub: fix #86 Reported by krororo. Thanks!!! https://github.com/ruby/csv/commit/5a8d9d9297
* Check the result of String#-@Nobuyoshi Nakada2019-07-141-3/+5
|
* MJIT Support for getblockparamproxyTakashi Kokubun2019-07-141-2/+12
|
* Fix links to headingsMaxime Lapointe2019-07-141-4/+4
| | | | | A previous change made the header's id be fully referenced (for the sidebar I believe) but this broke links to them. This fixes the issue.
* Delegates 3 arguments for Pathname.glob.Tanaka Akira2019-07-141-0/+11
| | | | Thanks for the patch by pocke (Masataka Kuwabara) [Feature #14405].
* Warn open-uri's "open" method at Kernel.Tanaka Akira2019-07-142-55/+67
| | | | | | Use URI.open instead. Thanks for the patch by jeremyevans0 (Jeremy Evans) [Misc #15893].
* Method#inspect with source location.Koichi Sasada2019-07-142-9/+9
| | | | | Method#inspect shows with source location. [Feature #14145]
* add encoding conversion from/to CESU-8Martin Dürst2019-07-141-0/+22
| | | | | | | | | | | | | | | Add encoding conversion (transcoding) from UTF-8 to CESU-8 and back. CESU-8 is an encoding similar to UTF-8, but encodes codepoints above U+FFFF as two surrogates, these surrogates again being encoded as if they were UTF-8 codepoints. This preserves the same binary sorting order as in UTF-16. It is also somewhat similar (although not exactly identical) to an encoding used internally by Java. This completes issue #15995. enc/trans/cesu_8.trans: Add encoding conversion from/to CESU-8 test/ruby/test_transcode.rb: Add tests for above
* Relaxed delta of nanosec from Float timeNobuyoshi Nakada2019-07-131-1/+1
|
* Fixed duplicate test nameNobuyoshi Nakada2019-07-121-1/+1
|
* Check exception flag as a bool [Bug #15987]Nobuyoshi Nakada2019-07-115-0/+36
|
* Revert "parse.y: Deprecate flip-flops"Nobuyoshi Nakada2019-07-111-2/+0
| | | | | | This reverts commit bae638ad5b782c44c80efe33834cb9039279af46. [Feature #5400]
* $LOAD_PATH.resolve_feature_pathNobuyoshi Nakada2019-07-111-3/+3
| | | | Moved from RubyVM. [Feature #15903]
* remove an unused variable.Tanaka Akira2019-07-111-1/+0
|
* WEBrick::HTTPResponse create tempfile if required.Tanaka Akira2019-07-111-0/+40
| | | | | | | | | | | | | | | | | | | | | WEBrick::HTTPProxyServer implementes HTTP proxy using WEBrick and Net::HTTP. WEBrick accepts HTTP/1.0 clients and Net::HTTP uses always HTTP/1.1. However HTTP/1.1 supports chunked transfer coding HTTP/1.0 doesn't. Chunked transfer coding doesn't require that content-length before the content is sent. But non-chunked transfer coding require content-length before the content is sent. So, when HTTP/1.0 clients connects WEBrick::HTTPProxyServer and origin server returns chunked response, WEBrick::HTTPProxyServer needs to store whole content to know the length of it. This patch do it using tempfile.
* Restore support library for only test files that are digest and csv.Hiroshi SHIBATA2019-07-093-2/+24
|
* Restore support library for only test files.Hiroshi SHIBATA2019-07-095-4/+72
|
* Check indent of `end` against `else` if presentNobuyoshi Nakada2019-07-081-5/+6
|
* Get rid of toplevel methodsNobuyoshi Nakada2019-07-081-22/+8
|