aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [rubygems/rubygems] Revert cadb66037d9b58c80fc795f39384d533229a1f73bronzdoc2019-08-053-0/+29
| | | | https://github.com/rubygems/rubygems/commit/5c3158d975
* [rubygems/rubygems] Fixed to warn with shadowing outer local variable.Hiroshi SHIBATA2019-08-051-4/+4
| | | | https://github.com/rubygems/rubygems/commit/b0588a87b1
* [rubygems/rubygems] Remove FIXME commentbronzdoc2019-08-051-2/+0
| | | | https://github.com/rubygems/rubygems/commit/5a1d3d618d
* ext/psych/yaml/loader.c: Cast the difference of pointers to intYusuke Endoh2019-08-051-3/+3
| | | | | instead of casting a pointer to int. Follow up of 39622232c7542d062f79277a11f6b8b6b6cfd994.
* Expand the timeout of `test_pstore_files_are_accessed_as_binary_files`NAKAMURA Usaku2019-08-051-1/+1
| | | | Sometimes causes timeout error on mswin CI
* Check if signaledNobuyoshi Nakada2019-08-051-2/+4
|
* Refined assertion messagesNobuyoshi Nakada2019-08-051-11/+9
|
* Fixed assertionNobuyoshi Nakada2019-08-051-1/+1
| | | | The regexp should be expected to match the error message.
* Do not expect RSTRING_PTR valid after rb_fstringNobuyoshi Nakada2019-08-051-2/+2
|
* Moved FailDesc to EnvUtil.failure_descriptionNobuyoshi Nakada2019-08-052-31/+35
| | | | So EnvUtil does not depends on test/unit.
* Drop default leaf definition and obsoleted commentsTakashi Kokubun2019-08-051-6/+0
| | | | | leaf is true by default. Other insns are not specifying it explicitly. Also the comment describing why it was not leaf is outdated.
* n+1 to include n in rangeYaw Boakye2019-08-051-1/+1
| | | | | | Python's range stop right before n, which means factL never returns the correct result. Closes: https://github.com/ruby/ruby/pull/1982
* * 2019-08-05git2019-08-051-1/+1
|
* Revert "Always evaluate the expression RUBY_ASSERT_MESG_WHEN just once"Nobuyoshi Nakada2019-08-051-1/+1
| | | | | | | It caused a significant benchmark fall. Some assertions seem to use expressions with side-effects which cannot be inlined. This reverts commit b452c03a14f943ae25338547bd680fce67399d85.
* Extend sleep before sending USR1 in TestProcessTakashi Kokubun2019-08-041-1/+1
| | | | | | | just like 076f3fcf11a061394d3d5f8c671512df1e983023. This test also hanged on Travis osx https://travis-ci.org/ruby/ruby/jobs/567547060
* Revert "Skip test_race_exception on MJIT for now"Takashi Kokubun2019-08-041-1/+0
| | | | | | | | | | | This reverts commit 7a75baa6e294473f02da512c99f7ef1f76b2d83c. Revert "Defer skip to avoid errors on ensure" This reverts commit adfc8d6dbadbccef27d6ec78022650840c7604cc. because 76e2370f132f83c16c9de39a0a9356579f364527 is hoped to fix the problem.
* * expand tabs.git2019-08-041-1/+1
|
* Fix dangling path name from fstringNobuyoshi Nakada2019-08-041-1/+1
| | | | | | * load.c (rb_require_internal): make sure in advance that the path to be loaded shares a fstring, to get rid of dangling path name. Fixed up 5931857281ce45c1c277aa86d1588119ab00a955. [Bug #16041]
* Make opt_eq and opt_neq insns leafTakashi Kokubun2019-08-044-24/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Benchmark zero? ``` require 'benchmark/ips' Numeric.class_eval do def ruby_zero? self == 0 end end Benchmark.ips do |x| x.report('0.zero?') { 0.ruby_zero? } x.report('1.zero?') { 1.ruby_zero? } x.compare! end ``` ## VM No significant impact for VM. ### before ruby 2.7.0dev (2019-08-04T02:56:02Z master 2d8c037e97) [x86_64-linux] 0.zero?: 21855445.5 i/s 1.zero?: 21770817.3 i/s - same-ish: difference falls within error ### after ruby 2.7.0dev (2019-08-04T11:17:10Z opt-eq-leaf 6404bebd6a) [x86_64-linux] 1.zero?: 21958912.3 i/s 0.zero?: 21881625.9 i/s - same-ish: difference falls within error ## JIT The performance improves about 1.23x. ### before ruby 2.7.0dev (2019-08-04T02:56:02Z master 2d8c037e97) +JIT [x86_64-linux] 0.zero?: 36343111.6 i/s 1.zero?: 36295153.3 i/s - same-ish: difference falls within error ### after ruby 2.7.0dev (2019-08-04T11:17:10Z opt-eq-leaf 6404bebd6a) +JIT [x86_64-linux] 0.zero?: 44740467.2 i/s 1.zero?: 44363616.1 i/s - same-ish: difference falls within error # Benchmark str == str / str != str ``` # frozen_string_literal: true require 'benchmark/ips' Benchmark.ips do |x| x.report('a == a') { 'a' == 'a' } x.report('a == b') { 'a' == 'b' } x.report('a != a') { 'a' != 'a' } x.report('a != b') { 'a' != 'b' } x.compare! end ``` ## VM No significant impact for VM. ### before ruby 2.7.0dev (2019-08-04T02:56:02Z master 2d8c037e97) [x86_64-linux] a == a: 27286219.0 i/s a != a: 24892389.5 i/s - 1.10x slower a == b: 23623635.8 i/s - 1.16x slower a != b: 21800958.0 i/s - 1.25x slower ### after ruby 2.7.0dev (2019-08-04T11:17:10Z opt-eq-leaf 6404bebd6a) [x86_64-linux] a == a: 27224016.2 i/s a != a: 24490109.5 i/s - 1.11x slower a == b: 23391052.4 i/s - 1.16x slower a != b: 21811321.7 i/s - 1.25x slower ## JIT The performance improves on JIT a little. ### before ruby 2.7.0dev (2019-08-04T02:56:02Z master 2d8c037e97) +JIT [x86_64-linux] a == a: 42010674.7 i/s a != a: 38920311.2 i/s - same-ish: difference falls within error a == b: 32574262.2 i/s - 1.29x slower a != b: 32099790.3 i/s - 1.31x slower ### after ruby 2.7.0dev (2019-08-04T11:17:10Z opt-eq-leaf 6404bebd6a) +JIT [x86_64-linux] a == a: 46902738.8 i/s a != a: 43097258.6 i/s - 1.09x slower a == b: 35822018.4 i/s - 1.31x slower a != b: 33377257.8 i/s - 1.41x slower This is needed towards Bug#15589. Closes: https://github.com/ruby/ruby/pull/2318
* Suppress warnings of bundled libyaml.Hiroshi SHIBATA2019-08-042-4/+4
|
* [ruby/rexml] gemspec: updateSutou Kouhei2019-08-041-1/+0
| | | | https://github.com/ruby/rexml/commit/404bd99a7c
* [ruby/rexml] xpath: add missing value conversions for equality and ↵Kouhei Sutou2019-08-043-104/+295
| | | | | | | | | | relational expressions GitHub: fix #18 Reported by Mirko Budszuhn. Thanks!!! https://github.com/ruby/rexml/commit/0dca2a2ba0
* [ruby/rexml] xpath number: fix a bug that false is converted to NaNKouhei Sutou2019-08-042-35/+35
| | | | | | | | | | GitHub: fix #18 It must be 0. Reported by Mirko Budszuhn. Thanks!!! https://github.com/ruby/rexml/commit/b48f3afa3b
* [ruby/rexml] xpath local_name: fix a bug that nil is returned for ↵Kouhei Sutou2019-08-045-2/+48
| | | | | | | | nonexistent case It must be an empty string. https://github.com/ruby/rexml/commit/81bc7cd4f5
* [ruby/rexml] xpath boolean: implementKouhei Sutou2019-08-042-11/+91
| | | | https://github.com/ruby/rexml/commit/feb8ddb1ec
* [ruby/rexml] xpath: fix a bug for equality or relational expressionsKouhei Sutou2019-08-044-114/+178
| | | | | | | | | | | 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] Use PPKouhei Sutou2019-08-041-1/+6
| | | | https://github.com/ruby/rexml/commit/185062a4a4
* [ruby/rexml] xpath: add support for changing to debug mode by environment ↵Kouhei Sutou2019-08-041-16/+19
| | | | | | variable https://github.com/ruby/rexml/commit/59378a16ea
* [ruby/rexml] Bump versionKouhei Sutou2019-08-041-1/+1
| | | | https://github.com/ruby/rexml/commit/54452c103a
* [ruby/rexml] Message less confusing error to human (#16)ujihisa2019-08-042-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | * 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-042-4/+20
| | | | | Patch by Alyssa Ross. Thanks!!! https://github.com/ruby/rexml/commit/2a53c54f58
* [ruby/rexml] use #inspect to print meta-characters in error messagesFUJI Goro (gfx)2019-08-041-4/+4
| | | | https://github.com/ruby/rexml/commit/a124a19b9a
* [ruby/rexml] Bump versionKouhei Sutou2019-08-041-1/+1
| | | | https://github.com/ruby/rexml/commit/c0e3f14564
* [ruby/rexml] Fix attribute's default namespace behaviorKouhei Sutou2019-08-044-22/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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] FormatKouhei Sutou2019-08-041-10/+12
| | | | https://github.com/ruby/rexml/commit/2384586811
* [ruby/rexml] Revert "xpath: remove needless nil check"Kouhei Sutou2019-08-041-2/+6
| | | | | | | | This reverts commit 61b73c1bf8dc64d97fba7f0a8c503c24b11313f5. "*:local_name" becomes prefix=nil. https://github.com/ruby/rexml/commit/9e7dd4cd4e
* [ruby/rexml] xpath: remove needless nil checkKouhei Sutou2019-08-041-6/+2
| | | | | | It must not be nil. https://github.com/ruby/rexml/commit/61b73c1bf8
* [ruby/rexml] Add a TODO for Attribute#namespaceKouhei Sutou2019-08-041-0/+14
| | | | https://github.com/ruby/rexml/commit/70310a06e5
* [ruby/rexml] xpath: fix a bug that no namespace attribute isn't matched with ↵Kouhei Sutou2019-08-042-2/+14
| | | | | | | | | | prefix [ruby-list:50733] Reported by Yasuhiro KIMURA. Thanks!!! https://github.com/ruby/rexml/commit/8f3c5c176a
* [ruby/rexml] Bump versionKouhei Sutou2019-08-041-1/+1
| | | | https://github.com/ruby/rexml/commit/0f79e71210
* 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.
* Revert "Revert "Fix dangling path name from fstring""Takashi Kokubun2019-08-042-3/+4
| | | | | | | | | | | | This reverts commit 326c00b6f89e1c86e6fe29ab60da593eb6883a88. We also confirmed that test_gced_eval_location fails without the changes: https://travis-ci.org/ruby/ruby/builds/567417818 https://rubyci.org/logs/rubyci.s3.amazonaws.com/arch/ruby-master/log/20190804T000003Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1604/ruby-master/log/20190804T003005Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/icc-x64/ruby-master/log/20190804T000007Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10x/ruby-master/log/20190804T001806Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian9/ruby-master/log/20190804T003005Z.fail.html.gz
* yaml few build warning fixesDavid Carlier2019-08-041-5/+5
| | | | Closes: https://github.com/ruby/ruby/pull/2283
* Remove dependency on `openssl/conf_api.h`Dmitry Petrashko2019-08-041-1/+0
| | | | | | None of the functions defined in this header are actually used in Ruby. Fixes build against boringssl that does not have this file. Closes: https://github.com/ruby/ruby/pull/2210
* [Doc] Fix Array#to_h call-seqKenichi Kamiya2019-08-041-2/+2
| | | | Closes: https://github.com/ruby/ruby/pull/2254
* [Doc] Fix Array#difference call-seqKenichi Kamiya2019-08-041-1/+1
| | | | Closes: https://github.com/ruby/ruby/pull/2255
* change call CGI methods from :: to .Semyon Pupkov2019-08-047-62/+62
| | | | Closes: https://github.com/ruby/ruby/pull/1749
* Use the word heredocs in Here Documents docsOlivier Lacan2019-08-041-1/+1
| | | | | | | | | | | | | | | | Two advantages: - higher relevance of the extremely common word "heredocs" which may help people find this page when searching for "ruby heredocs" - the anchor link becomes `#label-Here+Documents+-28heredocs-29`, which is ugly due to the parentheses but includes the word "heredocs" in the URL to this section If anyone knows a way to prevent RDoc from turning invalid characters into ugly and meaningless ASCII codes, I'm listening. I don't want to break existing anchor links but RDoc should really ignore these characters or turn them into dashes. Closes: https://github.com/ruby/ruby/pull/2103