aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Removed trailing spaces [ci skip]Nobuyoshi Nakada2020-05-143-5/+5
|
* Thread scheduler for light weight concurrency.Samuel Williams2020-05-1428-305/+1014
|
* extlibs.rb: fixed Downloader.cache_file call and return valueNobuyoshi Nakada2020-05-141-1/+1
| | | | | `cache_dir` is an optinal argument but not a keyword argument, and the return value is a `Pathname`.
* Constified code_loc_genNobuyoshi Nakada2020-05-141-1/+1
|
* Restore class variable setting for testsaycabta2020-05-142-0/+44
|
* Initialize Reline callbacks when test suit startsaycabta2020-05-141-0/+6
|
* Reline callbacks can take nilaycabta2020-05-141-5/+5
|
* Delete inner text buffer after testsaycabta2020-05-141-0/+1
|
* Restore Readline.completion_case_fold in testaycabta2020-05-141-0/+3
|
* clean-up .bundle directory in bundled_appHiroshi SHIBATA2020-05-141-2/+2
|
* Use the gemspec in build_dir directlyHiroshi SHIBATA2020-05-142-5/+6
|
* * 2020-05-14 [ci skip]git2020-05-141-1/+1
|
* ext/json/parser/prereq.mk: remove type-limit warning if char is unsignedYusuke Endoh2020-05-142-2/+3
| | | | | | | | | | | | | | | | | | | Ragel generates a code `0 <= (*p)` where `*p` is char. As char is unsigned by default on arm and RISC-V, it is warned by gcc: ``` compiling parser.c parser.c: In function ‘JSON_parse_string’: parser.c:1566:2: warning: comparison is always true due to limited range of data type [-Wtype-limits] if ( 0 <= (*p) && (*p) <= 31 ) ^ parser.c:1596:2: warning: comparison is always true due to limited range of data type [-Wtype-limits] if ( 0 <= (*p) && (*p) <= 31 ) ^ ``` This change removes the warning by substituting the condition with `0 <= (signed char)(*p)`.
* [ruby/openssl] Ruby/OpenSSL 2.2.0Kazuki Yamaguchi2020-05-131-1/+1
| | | | https://github.com/ruby/openssl/commit/41587f69e1
* [ruby/openssl] ssl: temporarily remove SSLContext#add_certificate_chain_fileKazuki Yamaguchi2020-05-132-44/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Let's revert the changes for now, as it cannot be included in the 2.2.0 release. My comment on #257: > A blocker is OpenSSL::SSL::SSLContext#add_certificate_chain_file. It > has a pending change and I don't want to include it in an incomplete > state. > > The initial implementation in commit 46e4bdba40c5 was not really > useful. The issue is described in #305. #309 extended it > to take the corresponding private key together. However, the new > implementation was incompatible on Windows and was reverted by #320 to > the initial one. > > (The prerequisite to implement it in) an alternative way is #288, and > it's still cooking. This effectively reverts the following commits: - dacd08937ccd ("ssl: suppress test failure with SSLContext#add_certificate_chain_file", 2020-03-09) - 46e4bdba40c5 ("Add support for SSL_CTX_use_certificate_chain_file. Fixes #254.", 2019-06-13) https://github.com/ruby/openssl/commit/ea925619a9
* [ruby/openssl] pkey: add PKey#inspect and #oidKazuki Yamaguchi2020-05-132-0/+66
| | | | | | | | | | | | | Implement OpenSSL::PKey::PKey#oid as a wrapper around EVP_PKEY_id(). This allows user code to check the type of a PKey object. EVP_PKEY can have a pkey type for which we do not provide a dedicated subclass. In other words, an EVP_PKEY that is not any of {RSA,DSA,DH,EC} can exist. It is currently not possible to distinguish such a pkey. Also, implement PKey#inspect to include the key type for convenience. https://github.com/ruby/openssl/commit/dafbb1b3e6
* [ruby/openssl] Fix signing example to not use Digest instanceBart de Water2020-05-131-4/+2
| | | | https://github.com/ruby/openssl/commit/033fb4fbe4
* [ruby/openssl] Look up cipher by name instead of constantBart de Water2020-05-132-24/+8
| | | | https://github.com/ruby/openssl/commit/b08ae7e73d
* [ruby/openssl] Remove 'mapping between Digest class and sn/ln'Bart de Water2020-05-131-37/+0
| | | | | | This is not present in the referenced files anymore, and not useful to most users https://github.com/ruby/openssl/commit/eae30d2b96
* [ruby/openssl] Look up digest by name instead of constantBart de Water2020-05-1331-171/+161
| | | | https://github.com/ruby/openssl/commit/b28fb2f05c
* [ruby/openssl] Add Marshal support to PKey objectsBart de Water2020-05-138-23/+85
| | | | https://github.com/ruby/openssl/commit/c4374ff041
* Stop always inlining not-optimized get/setivarTakashi Kokubun2020-05-121-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As we have the optimization in _mjit_compile_ivar.erb, we don't use these functions if we successfully optimize ivars. Therefore it's consuming code size where we can't optimize it well. To decrease code size, we'd better avoid inlining them. ``` $ benchmark-driver -v --rbenv 'before --jit;after --jit' benchmark.yml --repeat-count=12 --output=all before --jit: ruby 2.8.0dev (2020-05-13T04:49:21Z master 61d451d6ce) +JIT [x86_64-linux] after --jit: ruby 2.8.0dev (2020-05-13T05:46:59Z master a072d323db) +JIT [x86_64-linux] Calculating ------------------------------------- before --jit after --jit Optcarrot Lan_Master.nes 69.8567095356444 73.0360609399857 fps 70.3283101279035 74.6106251902062 72.9135395729567 75.2797344839106 76.6944690546044 77.5705757485036 77.0027971817715 78.2269524040059 78.5069033659736 78.4457471014131 80.1873218604913 80.1273811685818 81.3079566400696 81.7148593303302 81.7285827817226 81.7637234555871 81.7657097839637 82.4520295422720 81.8310114206406 82.7532354379759 81.9886488857863 82.8358739858206 ```
* ext/bigdecimal/bigdecimal.c, ext/date/date_core.c: undef NDEBUGYusuke Endoh2020-05-132-0/+2
| | | | | `#define NDEBUG` produces "macro redefined" warnings when it is already defined via cppflags
* ext/openssl/ossl.h: Remove a variable that is used only in assertYusuke Endoh2020-05-131-2/+1
| | | | It produces "unused variable" warnings in NDEBUG mode
* ext/fiddle/extconf.rb: Fix the condition of libffi <= 3.1Yusuke Endoh2020-05-131-1/+1
| | | | ver is [3, 1, 0] which is not less then or equal to [3, 1]
* Document that #hash is not called for certain core classes [ci skip]Jeremy Evans2020-05-121-0/+3
| | | | Fixes [Bug #16850]
* Do not try ffi_closure_alloc if libffi is <= 3.1Yusuke Endoh2020-05-131-0/+1
| | | | | | | | | | Maybe due to e1855100e46040e73630b378974c17764e0cccee, CentOS, RHEL, and Fedora CIs have started failing with SEGV. Try to avoid ffi_closure_alloc on those environments. https://rubyci.org/logs/rubyci.s3.amazonaws.com/centos8/ruby-master/log/20200512T183004Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/fedora32/ruby-master/log/20200512T183004Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/rhel8/ruby-master/log/20200512T183003Z.fail.html.gz
* Bump version to use RSpec 3.8+Hiroshi SHIBATA2020-05-131-1/+1
|
* Skip the examples for bundle exec with gem installationHiroshi SHIBATA2020-05-132-7/+7
|
* Marked the some examples that are not working with the ruby repositoryHiroshi SHIBATA2020-05-131-3/+3
|
* Use relative path in ruby core repositoryHiroshi SHIBATA2020-05-131-1/+1
|
* Unmask the some of examples with ruby_repo labelHiroshi SHIBATA2020-05-132-2/+2
|
* Skip the example to use rake commandHiroshi SHIBATA2020-05-131-1/+1
|
* skip lockfile_spec.rb:33 because it cleanup the .bundle repoHiroshi SHIBATA2020-05-131-1/+1
|
* Resolved the file path of gemspec for ruby core repositoryHiroshi SHIBATA2020-05-132-1/+5
|
* Bump version to use Rake 13 in bundler examplesHiroshi SHIBATA2020-05-131-1/+1
|
* Added test_gems.rb for setup dependenciesHiroshi SHIBATA2020-05-133-1/+57
|
* Partly reverted bundler.gemspec for ruby core testingHiroshi SHIBATA2020-05-131-6/+3
|
* Update the bundler version with master branchHiroshi SHIBATA2020-05-13226-3747/+4601
|
* * 2020-05-13 [ci skip]git2020-05-131-1/+1
|
* ext/fiddle/extconf.rb: check if ffi_closure_alloc is availableYusuke Endoh2020-05-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to define HAVE_FFI_CLOSURE_ALLOC. The macro is used in closure.c, so have_func check is needed. If pkg-config is not installed, extconf.rb fails to detect the version of libffi, and does not add "-DUSE_FFI_CLOSURE_ALLOC=1" even when system libffi version is >= 3.2. If USE_FFI_CLOSURE_ALLOC is not defined, closure.c attempts to check if HAVE_FFI_CLOSURE_ALLOC is defined or not, but have_func was removed with 528a3a17977aa1843a26630c96635c3cb161e729, so the macro is always not defined. This resulted in this deprecation warning: https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20200512T123003Z.log.html.gz ``` compiling closure.c closure.c: In function 'initialize': closure.c:265:5: warning: 'ffi_prep_closure' is deprecated: use ffi_prep_closure_loc instead [-Wdeprecated-declarations] 265 | result = ffi_prep_closure(pcl, cif, callback, (void *)self); | ^~~~~~ In file included from ./fiddle.h:42, from closure.c:1: /usr/include/x86_64-linux-gnu/ffi.h:334:1: note: declared here 334 | ffi_prep_closure (ffi_closure*, | ^~~~~~~~~~~~~~~~ ```
* Build auxiliary program files earlyNobuyoshi Nakada2020-05-122-5/+5
|
* builtin_binary.inc: should be updated even if no changes [ci skip]Nobuyoshi Nakada2020-05-121-1/+1
| | | | | As this rule does not use a separate timestamp file, the target will be rebuilt every time once it is outdated.
* Added String#split benchmark for empty regexpNobuyoshi Nakada2020-05-121-0/+4
| | | | | | | | | | | | | | |compare-ruby|built-ruby| |:--------------|-----------:|---------:| |re_chars-1 | 169.230k| 973.855k| | | -| 5.75x| |re_chars-10 | 25.536k| 107.598k| | | -| 4.21x| |re_chars-100 | 2.621k| 11.207k| | | -| 4.28x| |re_chars-1000 | 259.098| 1.133k| | | -| 4.37x|
* Optimize String#splitNobuyoshi Nakada2020-05-122-31/+68
| | | | | | | | | | | | | | | | | | Optimized `String#split` with `/ /` (single space regexp) as simple string splitting. [ruby-core:98272] | |compare-ruby|built-ruby| |:--------------|-----------:|---------:| |re_space-1 | 432.786k| 1.539M| | | -| 3.56x| |re_space-10 | 76.231k| 191.547k| | | -| 2.51x| |re_space-100 | 8.152k| 19.557k| | | -| 2.40x| |re_space-1000 | 837.405| 2.022k| | | -| 2.41x| ruby-core:98272: https://bugs.ruby-lang.org/issues/15771#change-85511
* test/lib/jit_support.rb: Let JIT tests skip on centos8Yusuke Endoh2020-05-121-0/+2
| | | | It has the same issue as RHEL 8. k0kubun said he will fix later
* .github: use actions/checkout@v2 again卜部昌平2020-05-125-58/+20
|
* Revert "Sync did_you_mean"Nobuyoshi Nakada2020-05-126-80/+2
| | | | | This reverts commit 946dadd3f479198e87873a863d15c7660a8e2b56, which broke `TestGemRequire` and others.
* fiddle: share the same config toolsNobuyoshi Nakada2020-05-121-0/+3
|
* extlibs.rb: links in extracted directoryNobuyoshi Nakada2020-05-121-0/+36
| | | | | Allow to create symbolic links (if available) to share same or updated files.