summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-11vm_insnhelper.c: CHECK_CFP_CONSISTENCYnobu
* vm_insnhelper.c (CHECK_CFP_CONSISTENCY): make [BUG] messages consistent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-11time.c: rename div as divvnobu
* time.c (divv): add suffix to get rid of the name in C standard library, and others together. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-11configure.in: need GIT to check if using gitnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-11enc/unicode/data: no files under version control nownobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10time.c: use predefined IDsnormal
This reduces rb_intern calls during startup and shortens code. * time.c: include id.h for predefined IDs (id_mul, id_eq, id_ne, id_cmp): remove static variables (eq): replace id_eq with idEq (cmp, wcmp): replace id_cmp with idCmp (weq): replace id_eq with idEq (time_timespec): replace id_mul with '*' (Init_Time): remove rb_intern calls for removed variables * common.mk (time.$(OBJEXT)): add depend on id.h git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10time.c: Improve Time#to_i performancenormal
Time#to_i will be faster around 80% (on 64-bit platforms). * Before user system total real 2.840000 0.000000 2.840000 ( 2.847238) * After user system total real 1.600000 0.000000 1.600000 ( 1.598911) * Test code require 'benchmark' Benchmark.bmbm do |x| x.report do t = Time.now 20000000.times do t.to_i end end end * time.c (_div): new function avoid rb_funcall (div): replace with new _div function [ruby-core:80636] [Bug #13418] Thanks to Watson <watson1978@gmail.com> for the patch. From: Watson <watson1978@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10doc/extension.rdoc: rb_str_append grammar fixstomar
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10extension.rdoc: rb_str_append [ci skip]nobu
* doc/extension.rdoc: add rb_str_append and fix equivalent for rb_str_catf and rb_str_vcatf from rb_str_cat2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10* 2017-04-11svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10Make .gemspec slimmer.nobu
This is the same code that RubyGems are using: https://github.com/rubygems/rubygems/commit/a1a5ab55cb1501cbfeee29131a56cfa2e763174f [ci skip] [Fix GH-1578] Author: Vít Ondruch <vondruch@redhat.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10extension.rdoc: fix rb_enc_str_new_literalnobu
* doc/extension.rdoc: Add missing enc arg to rb_enc_str_new_literal. [ci skip] [Fix GH-1577] Author: Dylan Thacker-Smith <Dylan.Smith@shopify.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10svn:ignore: ignore ruby-runnernobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10svn:ignore: fix handling exts.mk.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10svn:ignoreusa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10Makefile.sub: fix HAVE_GITnobu
* win32/Makefile.sub (HAVE_GIT): fix missing `do`, excape `$`, and fix a typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10configure.in: detect baseruby by defaultnobu
* configure.in: default HAVE_BASERUBY to yes, for auto detection. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10vcs.rb: remove git stuffnobu
* tool/vcs.rb (VCS::GIT#after_export): remove git stuff not to distribute. [ruby-core:80629] [Feature #13415] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10Allow --without-baseruby optionnobu
* configure.in, win32/configure.bat: allow --without-baseruby option to use already generated files without baseruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-10Add --with-git optionnobu
* configure.in, win32/configure.bat: add --with-git option to tell git command to use, or not to use git. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09* 2017-04-10svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09Get rid of inifinity retry loop in Socket.udp_server_socketsusa
* ext/socket/lib/socket.rb (Socket.udp_server_sockets): remove duplicated addresses before passing it to ip_sockets_port0 because it causes Errno::EADDRINUSE and retry forever. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09math.c: improve docs for Math.sqrtstomar
* math.c: [DOC] mention possibly surprising behavior of Math.sqrt due to floating point arithmetic; also refer to BigDecimal#sqrt. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09numeric.c: improve docs for Floatstomar
* numeric.c: [DOC] mention possibly surprising behavior of Float#{floor,ceil,to_i,truncate} due to floating point arithmetic. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09io.c: ARGF.file returns $stdin instead of STDIN [ci skip]kazu
For example: `ruby -e '$stdin=open(IO::NULL);p [STDIN,$stdin,ARGF.file]'` prints `[#<IO:<STDIN>>, #<File:/dev/null>, #<File:/dev/null>]` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09configure.in: rpath with OPTDIRnobu
* configure.in: add rpath flags which is needed for OPTDIR as well as -L options, when it is given. [ruby-dev:50065] [Bug #13411] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09thread.c: refine stream closed messagenobu
* thread.c (Init_Thread): [EXPERIMENTAL] refine the "stream closed" special exception message, by explicating that it is caused by threading. [ruby-core:80583] [Bug #13405] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09special exception messages are staticnobu
* vm_core.h (rb_vm_register_special_exception): make the contents of special exception messages static. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09vm_core.h: ruby_error_stream_closednobu
* vm_core.h (ruby_special_exceptions): renamed ruby_error_closed_stream as ruby_error_stream_closed, like the message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09no mark of u3 in NODE_BLOCK_PASSnobu
* node.c (rb_gc_mark_node): u3 in NODE_BLOCK_PASS is not used and does not need to be marked. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09default.mspec: defer job tokensnobu
* spec/default.mspec (MSpecScript::JobServer#cores): defer getting job tokens until required. when running only one spec file, `-j` option has no effect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09* 2017-04-09svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-09test/unit.rb: no jobserver in workersnobu
* test/lib/test/unit.rb (Test::Unit::Parallel#process_args): worker processes do not access job server. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-08Show logs after PR mergernobu
* .travis.yml (before_script): show logs of merged pull requests to rubyspec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-08Split commandsnobu
* .travis.yml (before_script): split commands to prepare variables for pull request URLs to rubyspec, to stop when each commands failed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-08basicsocket.c: proper system call namenobu
* ext/socket/basicsocket.c (rsock_bsock_send): show proper system call name in the exception message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-08ext/win32ole/win32ole_variant.c (ole_val2variant_err): use FIXNUM_P, RB_TYPE_Psuke
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-07* 2017-04-08svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-07.travis.yml: split long command [ci skip]nobu
* .travis.yml (before_script): split long command to merge pull requests to rubyspec from github. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-07.travis.yml: multiple rubyspec PRs [ci skip]nobu
* .travis.yml (before_script): merge multiple pull requests rubyspec to from github. pull request numbers are given by RUBYSPEC_PULL_REQUEST, as a comma or space separated list. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-07use dedicated assertionsnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-07Use \A and \z to match whole stringnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-07Classify extlibs toolusa
* tool/extlibs.rb (ExtLibs): classify the tool to make it able to reuse it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-07insert assertions for THROW_DATA_* macros.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-07introduce imemo_type_p(v, imemo_type)ko1
* internal.h: introduce imemo_type_p() which checks the given value is T_IMEMO and imemo_type() == given imemo_type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-07fix condition of assert_not_respond_tonobu
* test/lib/test/unit/assertions.rb (assert_not_respond_to): fix condition to assert. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-07assert_not_respond_to private methodnobu
* test/lib/test/unit/assertions.rb (assert_not_respond_to): allow private flag as well as assert_respond_to. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-07* 2017-04-07svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-07assert_respond_to non-private methodnobu
* test/lib/test/unit/assertions.rb (assert_respond_to): do not call super class assert_respond_to when false priv is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-06internal.h: parenthesize macro argumentnobu
* internal.h (THROW_DATA_P): parenthesize the argument which is casted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-06fix TracePoint#return_value with non-local exitsko1
* vm.c: get return_value from imemo_throw_data object (THROW_DATA_VAL()). imemo_throw_data (TAG_BREAK) contains returned value. However, imemo_throw_data (TAG_BREAK) can skip several frames so that we need to use it only once (at most internal frame). To record it, we introduced THROW_DATA_CONSUMED and check it. * internal.h: define THROW_DATA_CONSUMED flag. * test/ruby/test_settracefunc.rb: add tests for [Bug #13369] * vm_insnhelper.h: add THROW_DATA_CONSUMED_P() and THROW_DATA_CONSUMED_SET(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e