aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* [ruby/rexml] xpath: fix a bug for equality or relational expressionsKouhei Sutou2019-08-042-4/+92
| | | | | | | | | | | GitHub: fix #17 There is a bug when they are used against node set. They should return boolean value but they returned node set. Reported by Mirko Budszuhn. Thanks!!! https://github.com/ruby/rexml/commit/a02bf38440
* [ruby/rexml] Message less confusing error to human (#16)ujihisa2019-08-041-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | * Message less confusing error to human * Problem: Following error message is not helpful, because you have to reason that '' actually means it's in the top-level, and the 'div' (not '</div>') is an end tag require "rexml/parsers/lightparser" REXML::Parsers::LightParser.new('</div>').parse #=> Missing end tag for '' (got 'div') * Solution: add a special case in error handling just to change the error message require "rexml/parsers/lightparser" REXML::Parsers::LightParser.new('</div>').parse #=> Unexpected top-level end tag (got 'div') * Refactor by removing unnecessary `md` check * Thanks @a_matsuda to review this at asakusa.rb! https://github.com/ruby/rexml/commit/f6528d4477
* [ruby/rexml] test: compare with real elementKouhei Sutou2019-08-041-2/+5
| | | | https://github.com/ruby/rexml/commit/9f2908de2e
* [ruby/rexml] Fix crash with nil XPath variables (#13)Alyssa Ross2019-08-041-0/+19
| | | | | Patch by Alyssa Ross. Thanks!!! https://github.com/ruby/rexml/commit/2a53c54f58
* [ruby/rexml] Fix attribute's default namespace behaviorKouhei Sutou2019-08-041-1/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | NOTE: It's a backward incompatible change. If we have any serious problems with this change, we may revert this change. The XML namespace specification says the default namespace doesn't apply to attribute names but it does in REXML without this change: https://www.w3.org/TR/xml-names/#uniqAttrs > the default namespace does not apply to attribute names REXML reports a parse error for the following XML that is described as a valid XML in the XML nsmaspace specification without this change: <!-- http://www.w3.org is bound to n1 and is the default --> <x xmlns:n1="http://www.w3.org" xmlns="http://www.w3.org" > <good a="1" b="2" /> <good a="1" n1:a="2" /> </x> If attribute doesn't have prefix, the attribute should return "" for both #prefix and #namespace. https://github.com/ruby/rexml/commit/9e4fd552bc
* [ruby/rexml] xpath: fix a bug that no namespace attribute isn't matched with ↵Kouhei Sutou2019-08-041-1/+9
| | | | | | | | | | prefix [ruby-list:50733] Reported by Yasuhiro KIMURA. Thanks!!! https://github.com/ruby/rexml/commit/8f3c5c176a
* Defer skip to avoid errors on ensureTakashi Kokubun2019-08-041-1/+1
|
* Skip test_race_exception on MJIT for nowTakashi Kokubun2019-08-041-0/+1
| | | | | somehow the test fails only on Wercker in CIs triggered by GitHub. Actually rubyci and ci.rvm.jp also have issues too, though.
* change call CGI methods from :: to .Semyon Pupkov2019-08-041-31/+31
| | | | Closes: https://github.com/ruby/ruby/pull/1749
* Fix dangling path name from fstringNobuyoshi Nakada2019-08-031-0/+11
| | | | | | | | * parse.y (yycompile): make sure in advance that the `__FILE__` object shares a fstring, to get rid of dangling path name. Fixed up 53e9908d8afc7f03109b0aafd1698ab35f512b05. [Bug #16041] * vm_eval.c (eval_make_iseq): ditto.
* Revert "Remove opt_nil_p test to remove warning for now"Yusuke Endoh2019-08-021-0/+7
| | | | This reverts commit a1727e43af18c122c4d7adfa603f895fdc8f3df1.
* Remove opt_nil_p test to remove warning for nowTakashi Kokubun2019-08-021-7/+0
|
* Fix uplevelNobuyoshi Nakada2019-08-021-4/+4
|
* Make attr* methods define public methods if self in caller is not same as ↵Jeremy Evans2019-08-011-0/+26
| | | | | | | | | | | | receiver Previously, attr* methods could be private even if not in the private section of a class/module block. This uses the same approach that ruby started using for define_method in 1fc33199736f316dd71d0c551edbf514528ddde6. Fixes [Bug #4537]
* Extend sleep before sending USR1 in TestProcessTakashi Kokubun2019-08-011-1/+1
| | | | | because the test seems to hang there forever: https://travis-ci.org/ruby/ruby/jobs/566409880
* Add a test for opt_nil_pTakashi Kokubun2019-08-011-1/+8
|
* fix tracepoint + backtrace SEGV卜部昌平2019-08-011-0/+12
| | | | | | | | | | | | PC modification in gc_event_hook_body was careless. There are (so to say) abnormal iseqs stored in the cfp. We have to check sanity before we touch the PC. This has not been fixed because there was no way to (ab)use the setup from pure-Ruby. However by using our official C APIs it is possible to touch such frame(s), resulting in SEGV. Fixes [Bug #14834].
* Compact ensure clause and rename variables to fix alignmentKazuhiro NISHIYAMA2019-08-011-23/+19
|
* check hash_hint is different.Koichi Sasada2019-08-011-1/+10
|
* test/ruby/test_hash.rb: remove a unused vribleYusuke Endoh2019-07-311-1/+1
| | | | to suppress a warning
* Fix `Leaked thread`Kazuhiro NISHIYAMA2019-07-311-1/+1
| | | | | Sometimes `Leaked thread: Rinda::TestRingServer#test_ring_server_ipv6_multicast` happens because `Rinda::TupleSpace#start_keeper` runs after stopping `@keeper`.
* check SystemStackErrorKoichi Sasada2019-07-311-6/+10
| | | | | This recursive iteration test can cause SystemStackError so check it correctly.
* test/ruby/test_float.rb: suppress an overflow warningYusuke Endoh2019-07-311-1/+6
| | | | | | ``` warning: Float 0xf.fp10000000000000... out of range ```
* test/ruby/test_io.rb (test_binmode_pipe): close all pipes explicitlyYusuke Endoh2019-07-311-41/+56
| | | | to suppress the leak checker.
* test/rdoc/test_rdoc_rubygems_hook.rb: suppress deprecation warningYusuke Endoh2019-07-311-2/+4
|
* test/ruby/test_file_exhaustive.rb: suppress method-redefined warningYusuke Endoh2019-07-311-0/+1
|
* test/rubygems/test_gem_remote_fetcher.rb: suppress deprecation warningsYusuke Endoh2019-07-311-3/+9
|
* remove RHash::iter_lev.Koichi Sasada2019-07-311-0/+25
| | | | | | | | | | | | | | | iter_lev is used to detect the hash is iterating or not. Usually, iter_lev should be very small number (1 or 2) so `int` is overkill. This patch introduce iter_lev in flags (7 bits, FL13 to FL19) and if iter_lev exceeds this range, save it in hidden attribute. We can get 1 word in RHash. We can't modify frozen objects. Therefore I added new internal API `rb_ivar_set_internal()` which allows us to set an attribute even if the target object is frozen if the name is hidden ivar (the name without `@` prefix).
* File.exists? is deprecated.Hiroshi SHIBATA2019-07-311-1/+1
|
* [rubygems/rubygems] Skip integration test for rake package task.Hiroshi SHIBATA2019-07-311-0/+2
| | | | https://github.com/rubygems/rubygems/commit/ca8afc01a3
* [rubygems/rubygems] Drop support for 'gem env packageversion'bronzdoc2019-07-311-11/+0
| | | | https://github.com/rubygems/rubygems/commit/be962ca0c4
* [rubygems/rubygems] Improve `rake package` test error messageDavid Rodríguez2019-07-311-1/+9
| | | | https://github.com/rubygems/rubygems/commit/be962ca0c4
* [rubygems/rubygems] Get `rake package` testedDavid Rodríguez2019-07-311-0/+14
| | | | https://github.com/rubygems/rubygems/commit/006cdd4084
* [rubygems/rubygems] Enable `Layout/AlignArray` copDavid Rodríguez2019-07-312-5/+5
| | | | https://github.com/rubygems/rubygems/commit/1ea674d8f7
* [rubygems/rubygems] Remove warning: shadowing outer local variable - specbronzdoc2019-07-311-2/+2
| | | | https://github.com/rubygems/rubygems/commit/70c5c17a5f
* [rubygems/rubygems] Move default specifications dir definition out of ↵Vít Ondruch2019-07-312-6/+6
| | | | | | | | | | | | BasicSpecification. This was never the right place. The method got there just by evolution, not by design. Move it within default methods, where it suits better. Since this method is presumably used just internally, it should be safe to deprecate it and remove later. https://github.com/rubygems/rubygems/commit/0c0dd9458a
* [rubygems/rubygems] Autorequire was used by old RubyGems, it is neither ↵bronzdoc2019-07-311-18/+0
| | | | | | supported nor functional. https://github.com/rubygems/rubygems/commit/cadb66037d
* [rubygems/rubygems] Simplify #to_ruby codeNobuyoshi Nakada2019-07-311-19/+11
| | | | | | | | | | Separate #add_runtime_dependency and #add_development_dependency availability condition from #specification_version availability, which is not related to directly. Also check if the former method is available, instead of comparing the version. https://github.com/rubygems/rubygems/commit/5cccc2b836
* [rubygems/rubygems] Missing dependencyAlexander Pakulov2019-07-311-0/+1
| | | | https://github.com/rubygems/rubygems/commit/79b62c233a
* [rubygems/rubygems] Making Gem::S3URISigner.sign method smaller with helper ↵Alexander Pakulov2019-07-311-2/+2
| | | | | | methods https://github.com/rubygems/rubygems/commit/2a96494d91
* [rubygems/rubygems] Extracting sign_s3_url & s3_source_auth into a separate ↵Alexander Pakulov2019-07-311-6/+9
| | | | | | S3URISigner class https://github.com/rubygems/rubygems/commit/c30d21ec7a
* [rubygems/rubygems] Addressing PR commentsAlexander Pakulov2019-07-311-11/+11
| | | | https://github.com/rubygems/rubygems/commit/fb62d3043c
* [rubygems/rubygems] Rename Gem::Package.metadata to Gem::Package.raw_specbronzdoc2019-07-311-2/+2
| | | | https://github.com/rubygems/rubygems/commit/a76f25dff0
* [rubygems/rubygems] Upgrading S3 source signature to AWS SigV4Alexander Pakulov2019-07-311-9/+129
| | | | https://github.com/rubygems/rubygems/commit/f289788ca5
* [rubygems/rubygems] Move metadata method to Gem::Packagebronzdoc2019-07-311-0/+27
| | | | https://github.com/rubygems/rubygems/commit/2c9cfcb666
* [rubygems/rubygems] Add a package attr_reader to Gem::Installer.Daniel Berger2019-07-311-0/+10
| | | | | | Add some basic specs for the package attr_reader. https://github.com/rubygems/rubygems/commit/68af2a0ee3
* [rubygems/rubygems] Remove conflict.rb code that was supposed to be removed ↵bronzdoc2019-07-311-4/+0
| | | | | | in Rubygems 3 https://github.com/rubygems/rubygems/commit/6d5f743a89
* [rubygems/rubygems] Silence deprecations when gemdeps is used in testsDavid Rodríguez2019-07-311-2/+4
| | | | | | | Because we can't control 3rd party gems using deprecated rubygems behavior, and thus outputting warnings to the screen. https://github.com/rubygems/rubygems/commit/6912ebf20a
* [rubygems/rubygems] Return early if filename is emptybronzdoc2019-07-311-1/+1
| | | | https://github.com/rubygems/rubygems/commit/1b9ab33083
* [rubygems/rubygems] Set config_file_name to the value of ENV["GEMRC"] if ↵bronzdoc2019-07-311-1/+7
| | | | | | available https://github.com/rubygems/rubygems/commit/471239f1fa