summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-10-24[ruby/fiddle] Fix a failing test (#13)Kenta Murata
* Fix a failing test This commit fixes the following failure: ``` 1) Failure: Fiddle::TestImport#test_no_message_with_debug [/Users/mrkn/src/github.com/ruby/fiddle/test/fiddle/test_import.rb:152]: 1. [2/2] Assertion for "stderr" | <[]> expected but was | <["Exception `NameError' at /Users/mrkn/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fiddle/import.rb:157 - uninitialized constant Fiddle::Function::STDCALL"]>. ``` * Stop using Bundler.with_clean_env * Clear existing Ruby environment variables on test_no_message_with_debug https://github.com/ruby/fiddle/commit/13133ddec8
2019-10-24[ruby/fiddle] Fiddle::Function must maintain a reference to the closureAaron Patterson
If the first parameter to Fiddle::Function is a closure object (rather than an interger), `rb_Integer` will cast it to an integer but not maintain a reference to the closure. Then if the closure gets GC'd, we have a segv. This commit keeps a reference to the original parameter to initialize so that the object will not be GC'd. Fixes: https://bugs.ruby-lang.org/issues/13286 https://github.com/ruby/fiddle/commit/0fc697bbc5
2019-10-24Temporarily skipped with upstream changes of Date library.Hiroshi SHIBATA
2019-10-24[ruby/date] Use Gemfile instead of ↵Hiroshi SHIBATA
Gem::Specification#add_development_dependency. https://github.com/ruby/date/commit/13c94362c2
2019-10-24[ruby/date] Update docszverok
https://github.com/ruby/date/commit/8c02586a98
2019-10-24[ruby/date] Simplify #inspectzverok
https://github.com/ruby/date/commit/af01edd7d8
2019-10-24[ruby/date] Remove taint supportJeremy Evans
Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous versions. https://github.com/ruby/date/commit/519470dc3b
2019-10-24[ruby/date] Support -Float::INFINITY...date rangesJeremy Evans
Fixes Ruby Bug 12961 https://github.com/ruby/date/commit/7f533c2552
2019-10-24[ruby/date] Check for numeric arguments in constructorsJeremy Evans
Previously, the type of these arguments were not checked, leading to NoMethodErrors in some cases, and TypeErrors in other cases, but not showing what field was having the problems. This change makes it so the field with the problem is included in the error message. For the valid_*? methods, this changes them to return false if one of the arguments that should be numeric is not. Fixes Ruby Bug 11935 Fixes Ruby Misc 15298 https://github.com/ruby/date/commit/a2f4b665f8
2019-10-24[ruby/date] Make julian dates roundtrip through to_time.to_dateJeremy Evans
Previously, julian dates would not round trip through to_time.to_date, because Time is always considered gregorian. This converts the Date instance from julian to gregorian before converting to Time, ensuring that an equal date object will be returned if converting that Time back to Date. This does result in julian Date objects showing different day values if converting to Time. Fixes Ruby Bug 8428. https://github.com/ruby/date/commit/d8df64555e
2019-10-24Use CPDEBUG for debug codeAlan Wu
Notes: Merged: https://github.com/ruby/ruby/pull/2564
2019-10-24Combine call info and cache to speed up method invocationAlan Wu
To perform a regular method call, the VM needs two structs, `rb_call_info` and `rb_call_cache`. At the moment, we allocate these two structures in separate buffers. In the worst case, the CPU needs to read 4 cache lines to complete a method call. Putting the two structures together reduces the maximum number of cache line reads to 2. Combining the structures also saves 8 bytes per call site as the current layout uses separate two pointers for the call info and the call cache. This saves about 2 MiB on Discourse. This change improves the Optcarrot benchmark at least 3%. For more details, see attached bugs.ruby-lang.org ticket. Complications: - A new instruction attribute `comptime_sp_inc` is introduced to calculate SP increase at compile time without using call caches. At compile time, a `TS_CALLDATA` operand points to a call info struct, but at runtime, the same operand points to a call data struct. Instruction that explicitly define `sp_inc` also need to define `comptime_sp_inc`. - MJIT code for copying call cache becomes slightly more complicated. - This changes the bytecode format, which might break existing tools. [Misc #16258] Notes: Merged: https://github.com/ruby/ruby/pull/2564
2019-10-24show "transferred" attribute on Fiber#to_sKoichi Sasada
If a fiber is invoked with transfer method (such as "f.transfer"), then the invoked fiber ("f") is labeled as "transferred" and this fiber can not be invoked with Fiber#resume. This patch adds transferred attribute for "Fiber#to_s" (and inspect).
2019-10-24Revert "Fix Fiber#transfer"Koichi Sasada
This reverts commit fa8ac91e957a076f6df1adaecad7896817138009. Previous behavior is intentional.
2019-10-24Revert "Fixed the require path for e2mmap version file."Hiroshi SHIBATA
This reverts commit ff953a003e03f5f070112ececefab4c07ff4cb0e.
2019-10-24Fixed the require path for e2mmap version file.Hiroshi SHIBATA
2019-10-24Fixed sync path of e2mmap structure for gemspec.Hiroshi SHIBATA
2019-10-24include/ruby/backward/cxxanyargs.hpp: call `va_end` before returnYusuke Endoh
Coverity Scan complains it.
2019-10-24hash.c: Do not use Unicode double-quotesYusuke Endoh
It made rdoc fail. https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1804/ruby-master/log/20191023T183005Z.fail.html.gz ``` RDoc is not a full Ruby parser and will fail when fed invalid ruby programs. The internal error was: (ArgumentError) invalid byte sequence in US-ASCII uh-oh! RDoc had a problem: invalid byte sequence in US-ASCII ```
2019-10-23More rdoc for ENV#[] and ENV#fetchBurdetteLamar
Notes: Merged: https://github.com/ruby/ruby/pull/2579
2019-10-24Treat only left alt key as meta-key on Windowsaycabta
On German keyboard, right alt key acts as like shift key. Ex. right-alt-8 is just "[". This input doesn't have meta-key statement.
2019-10-24Added refresh-gemsNobuyoshi Nakada
Refreshes bundled gems to the latest version, and extracts them.
2019-10-24Updated minitest to 5.12.2Nobuyoshi Nakada
2019-10-24Support forced enter insertion by Ctrl+Enter on Windowsaycabta
2019-10-24* 2019-10-24 [ci skip]git
2019-10-23Suppress duplicated "require 'reline'"aycabta
2019-10-23Limit strict RUBY_METHOD_FUNC in C++Nobuyoshi Nakada
Limit strict function signature check with RUBY_METHOD_FUNC in C++ to bundled libraries only. [Bug #16271]
2019-10-23Fix indent...aycabta
2019-10-23name2ctype.h depends on also Emoji dataNobuyoshi Nakada
2019-10-23Add gem names [ci skip]Kazuhiro NISHIYAMA
2019-10-23Trivial fixes [ci skip]Kazuhiro NISHIYAMA
2019-10-23Fix typos [ci skip]Kazuhiro NISHIYAMA
2019-10-23Use cppflags to pass preprocessor optionsNobuyoshi Nakada
2019-10-23Use dedicated assertion methods for warning and syntax errorNobuyoshi Nakada
2019-10-23Catch syntax error even if fatalNobuyoshi Nakada
2019-10-23Fix the exception when CPDEBUGNobuyoshi Nakada
2019-10-23Relaxed tests for CPDEBUG modeNobuyoshi Nakada
2019-10-23* 2019-10-23 [ci skip]git
2019-10-23Provides ruby2_keywordsNobuyoshi Nakada
So that requiring it succeeds even if that forward compatibility gem is not installed.
2019-10-22Benchmark for [Feature #16155]Nobuyoshi Nakada
2019-10-22tool/release.sh uses ruby-actions' resultNARUSE, Yui
https://github.com/ruby/actions
2019-10-22Move format-release to tool and fix bugsNARUSE, Yui
2019-10-22Ignore timestamp file for the expected failure [ci skip]Nobuyoshi Nakada
2019-10-22Add a tool to generate a patch for www from logNARUSE, Yui
Receives an output of `tool/make-snapshot` and genarete * Markdown format for release note * a patch for branches.yml, downloads.yml, and releases.yml of w.r-l.o
2019-10-22make-snapshot: Regexp#match raises on nil nowNobuyoshi Nakada
2019-10-22NEWS: add a URL about the performance improvement of CGI.escapeHTMLYusuke Endoh
2019-10-22NEWS: Fix the example of Lazy#eagerv2_7_0_preview2Yusuke Endoh
2019-10-22NEWS: add an example for Lazy#eagerYusuke Endoh
2019-10-22NEWS: Make Net::FTP#features and #option more informativeYusuke Endoh
2019-10-22test/ruby/test_exception typo fixMSP-Greg