aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use Test::Unit::TestCase instead of MiniTest::Unit::TestCase. Becausehsbt2017-07-138-15/+9
| | | | | | | | | | | tests of fiddle already used customized assertions of ruby core. * test/fiddle/helper.rb: Use Test::Unit::TestCase for base class of testcase. * test/fiddle/test_*.rb: Use assert_raise instead of assert_raises. Remove needless includes for Test::Unit::Assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: flush debug outputnobu2017-07-131-0/+1
| | | | | | | * parse.y (parser_compile_error): flush debug output before compile error message, to keep the order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* doc/extension.rdoc: update wikipedia link to HTTPSnormal2017-07-121-1/+1
| | | | | | | | Avoid the latency for HTTP -> HTTPS redirect * doc/extension.rdoc: update wikipedia link to HTTPS git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2017-07-13svn2017-07-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix indent [ci skip]kazu2017-07-121-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* disable r59314 on mswinnobu2017-07-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c: restrict RGENGC_DEBUGnobu2017-07-121-4/+5
| | | | | | | | * gc.c (RGENGC_DEBUG_ENABLED): restrict runtime ruby_rgengc_debug level up to -RGENGC_DEBUG, to reduce runtime branches in inner loops. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2017-07-12svn2017-07-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* optparse.rb: get rid of evalnobu2017-07-122-7/+16
| | | | | | | * lib/optparse.rb: try Float() and Integer() instead of eval, which does too much things. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2017-07-11svn2017-07-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tainted string should be tainted.ko12017-07-112-9/+34
| | | | | | | | * hash.c (hash_aset_str): create frozen string for tainted objects. (should not use fsting table on this case). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* compile.c: simplify defined_expr0nobu2017-07-101-18/+14
| | | | | | | | * compile.c (defined_expr0): exapnd defined_expr macro. * compile.c (defined_expr0): reduce duplicate code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rubyoptions.rb: assert -00nobu2017-07-101-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* a64: fix crash on register stack mark/sweep passtakano322017-07-101-6/+6
| | | | | | | | | | * thread_pthread.c: move 'register_stack_start' earlier. [ruby-core:79928] [Bug #13284] [Fix GH-1625] Author: Sergei Trofimovich <slyfox@gentoo.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* hash.c: prefer value cast to pointer castnobu2017-07-101-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2017-07-10svn2017-07-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Hash#[]= deduplicates string keys if (and only if) fstring existsnormal2017-07-091-2/+16
| | | | | | | | | | | | | | | | | | | | | | In typical applications, hash entries are read after being written to. Blindly writing to hashes which are never read makes little sense. So, for any hash which is read from, an fstring entry for the key should already exist for the key. We no longer blindly create fstrings if the code is blindly setting random hash keys, preventing the performance regression in the reverted r43870. Regarding <https://bugs.ruby-lang.org/issues/9188>, this has a minimum impact on the bm_so_k_nucleotide where hash keys are set and not reused, performance is within 1-2% of existing cases. * hash.c: #include gc.h for rb_objspace_garbage_object_p (hash_aset_str): do read-only check of fstring table and reuse fstring if it exists and is still alive (not garbage) [ruby-core:81942] [Feature #13725] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* downloader.rb: get rid of symlinks in dist filesnobu2017-07-091-1/+1
| | | | | | | | * tool/downloader.rb: download to the target file directly if CACHE_SAVE=no, to get rid of symlinks in dist files. [ruby-core:81887] [Bug #13709] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make-snapshot: generate ChangeLog iff not existnobu2017-07-091-7/+9
| | | | | | | * tool/make-snapshot (package): ChangeLog had existed in pre-2.4 revisions, but not doc/ChangeLog-YYYY. fix for 2..3. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2017-07-09svn2017-07-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make-snapshot: touch-unicode-files for 2.4nobu2017-07-091-2/+5
| | | | | | | | * tool/make-snapshot (package): fallback touch-unicode-files for 2.4, which has been introduced to reduce downloads on CI. [ruby-core:81972] [Bug #13734] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * template/exts.mk.tmpl: extract SUBMAKEOPTS from sub exts.mk files too. ↵nobu2017-07-081-6/+1
| | | | | | [Bug #13730] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* assertions.rb: syntax_check for other implnobu2017-07-081-3/+19
| | | | | | | | | * test/lib/test/unit/assertions.rb (syntax_check): use eval instead of RubyVM::InstructionSequence.compile so that other implementations can share the tests. [ruby-core:81935] [Bug #13723] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .travis.yml: update dist to trustynobu2017-07-081-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* NEWS: note [Feature #13517] is Linux-only (no side-effects on _*nonblock)normal2017-07-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* NEWS: entry for WEBRick SNI support [Feature #13729]normal2017-07-071-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.svn2017-07-070-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* webrick: add Server Name Indication (SNI)normal2017-07-073-0/+143
| | | | | | | | | | * lib/webrick/https.rb: servername_cb implementation. * lib/webrick/ssl.rb: abstract servername_cb. * test/webrick/test_https.rb: test. [ruby-dev:50165] [Feature #13729] Author: Tietew <tietew@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2017-07-08svn2017-07-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* webrick: become maintainernormal2017-07-071-1/+2
| | | | | | <CAK6HhsrshX7s3qai4usbXknTQnA4GoRThJcQ_Ea=WgTG2Gu0QA@mail.gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Run single downloadernobu2017-07-071-2/+4
| | | | | | | | * common.mk (update-unicode-property-files, update-unicode-files): download in single process for each targets, not for each files in parallel, to get rid of conflicts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2017-07-07svn2017-07-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/redmine-backporter.rb (show): just report and ignore if a feature ticketusa2017-07-071-0/+5
| | | | | | | is specified instead of aborting. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix DecimalInteger converting to octal bugnobu2017-07-062-7/+7
| | | | | | | | | | | Previously if the input started with a '0' then it will be converted as octal even though it has been specified as a decimal. This commit forces the number to be interpreted as a decimal. [ruby-core:81927] [Bug #13722] [Fix GH-1665] Author: william <william.mccumstie@outlook.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: preserve coderange in String#setbyterhe2017-07-061-2/+2
| | | | | | | Fix a wrong jump so replacing a byte in an ASCII-only string with an ASCII character won't clear the coderange. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: remove dead code in str_fill_term()rhe2017-07-061-8/+1
| | | | | | The length of a string never exceeds the capacity. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2017-07-06svn2017-07-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lexer.rb: ignore dedented spacenobu2017-07-062-0/+24
| | | | | | | | * ext/ripper/lib/ripper/lexer.rb (on_heredoc_dedent): replace an empty string content because of dedentation with :on_ignored_sp. an empty token makes the sorted order unstable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* un.rb: use OpenSSL::PKey.read instead of OpenSSL::PKey::RSA.newrhe2017-07-051-3/+4
| | | | | | | Also, error out if --ssl-private-key option is not given, since specifying only the certificate makes no sense. [Feature #13714] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* debug.c: add FMODE constantsnobu2017-07-051-0/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* un.rb: support httpsnobu2017-07-051-1/+12
| | | | | | | | * lib/un.rb: add https support. based on the patch by Flavio Castelli <flavio@castelli.name> in [ruby-core:81901]. [Feature #13714] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/mk_call_iseq_optimized.rb: fix generated commentnormal2017-07-041-1/+1
| | | | | | | | "tool/mkcall_iseq.rb" never existed in our repo. * tool/mk_call_iseq_optimized.rb: fix generated comment git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.svn2017-07-040-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use lcov visualizer for gcov statisticsmame2017-07-043-0/+47
| | | | | | | | This experimental feature is only for Ruby-core team, not for casual users. Usage: `./configure --enable-gcov && make && make exam && make lcov` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2017-07-05svn2017-07-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/run-gcov.rb: ignore rubyspec_temp directorymame2017-07-041-0/+2
| | | | | | | | | | rubyspec compiles the extension libraries for capi specs in a temporary directory, and after that, deletes the directory. gcov resurrects the directory to save coverage statistics (.gcda files). However, the source and profiling artifacts (.gcno files) have been deleted. So, we need to ignore the .gcda files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_args.c: improve keyword argument errorsnobu2017-07-042-1/+33
| | | | | | | | * vm_args.c (argument_arity_error): improve required keyword argument errors when non-keyword arguments given. [ruby-core:79439] [Bug #13196] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time.c: preserve marshalled timezonenobu2017-07-042-8/+16
| | | | | | | | | * time.c (time_add): preserve timezone name restored by Marshal. [ruby-core:81892] [Bug #13710] * time.c (time_mload): reset localtime if having timezone. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2017-07-04svn2017-07-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: restrict cursor movenobu2017-07-031-10/+16
| | | | | | | * win32/win32.c (constat_apply): restrict cursor move in visible screen only. [ruby-core:81883] [Bug #13707] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e