aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * time.c (Init_Time): Improve Time documentation. Patch by Shanedrbrain2011-10-063-48/+206
| | | | | | | | | Emmons. [Ruby 1.9 - Bug #5404] * lib/time.rb: Improve time.rb documentation including Time.strptime. Patch by Shane Emmons. [Ruby 1.9 - Bug #5402] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c: Improve documentation of Random. Patch by Gregorydrbrain2011-10-052-72/+134
| | | | | | | Parkhurst. [Ruby 1.9 - Bug #5410] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fix ML link.nagachika2011-10-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-10-06svn2011-10-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (cont_mark): mark original Thread object from saved_thread.nagachika2011-10-052-0/+6
| | | | | | [ruby-dev:44567] [Bug #5386] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert r33407; half-baked patch.naruse2011-10-053-63/+4
| | | | | | "* numeric.c (ruby_float_step): improve floating point calculations." git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_call_cfunc): remove useless hack.naruse2011-10-052-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (ruby_float_step): improve floating point calculations.naruse2011-10-053-4/+63
| | | | | | | | | | | | | | [ruby-core:35753] [Bug #4576] * numeric.c (ruby_float_step): correct the error of floating point numbers on the excluding case. patched by Masahiro Tanaka [ruby-core:39608] * numeric.c (ruby_float_step): use the end value when the current value is greater than or equal to the end value. patched by Akira Tanaka [ruby-core:39612] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (Init_Hash): Improve Hash documentation. Patch by Alvarodrbrain2011-10-042-6/+67
| | | | | | | Pereyra Rabanal. [Ruby 1.9 - Bug #5405] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (Init_Random): Add a top-level comment for Random. Patchdrbrain2011-10-042-0/+12
| | | | | | | by Brett Bim. [Ruby 1.9 - Bug #5403] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/syntax_error.rb: Add file, line, offset, andtenderlove2011-10-044-6/+62
| | | | | | | | | message attributes during parse failure. * ext/psych/parser.c: Update parser to raise exception with correct values. * test/psych/test_exception.rb: corresponding tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/parser.c (parse): Use context_mark for indicating errortenderlove2011-10-042-2/+7
| | | | | | line and column. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-10-05svn2011-10-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/scalar_scanner.rb: use normal begin / rescuetenderlove2011-10-042-2/+14
| | | | | | | since postfix rescue cannot receive the exception class. Thanks nagachika! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (class_alloc): allocate extra memory after containingnobu2011-10-043-2/+10
| | | | | | | | object setup to get rid of rare-but-potential memory leak. * gc.c (gc_mark_children): skip marking extended members if ptr is NULL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert r33397 because it cause segv.naruse2011-10-042-6/+2
| | | | | | "* class.c (class_alloc): allocate extra memory after containing" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time.strptime): use Time.at if d[:seconds] is set.naruse2011-10-043-3/+13
| | | | | | Reported by Christopher Eberz. [ruby-core:39903] Bug #5399 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (class_alloc): allocate extra memory after containingnobu2011-10-042-2/+6
| | | | | | object setup to get rid of rare-but-potential memory leak. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2011-10-041-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_gc_set_params): ruby_verbose can be Qnil, so use RTEST.naruse2011-10-043-3/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix test of gc introduced in r33379.naruse2011-10-041-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/etc/etc.c: Document Etc, Etc.sysconfdir, Etc.systmpdir. Patchdrbrain2011-10-032-4/+27
| | | | | | | by mathew murphy. [Ruby 1.9 - Bug #5396] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb: Update toplevel comment with an example. Patchdrbrain2011-10-032-9/+20
| | | | | | | by Samnang Chhun. [Ruby 1.9 - Bug #5388] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (proc_call): Update documentation to match argument handlingdrbrain2011-10-032-8/+14
| | | | | | | of proc/Proc.new/lambda/->() git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (proc_call): Fix documentation of Proc#call vs Proc#===.drbrain2011-10-032-12/+19
| | | | | | | [Ruby 1.9 - Bug #5349] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_initalize): Make Array.new description matchdrbrain2011-10-032-3/+8
| | | | | | | call-seq. Patch by Henry Maddocks. [Ruby 1.9 - Bug #5344] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_initialize): Add output for examples. Patch bydrbrain2011-10-032-10/+16
| | | | | | | Jonathan Mukai. [Ruby 1.9 - Bug #5216] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_s_create): Add example results for Array::[]. Patchdrbrain2011-10-032-7/+11
| | | | | | | by Jonathan Mukai. [Ruby 1.9 - Bug #5215] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Update to RubyGems 1.8.11. Move Deprecate into thedrbrain2011-10-0321-100/+107
| | | | | | | Gem namespace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych.rb: update psych version.tenderlove2011-10-033-19/+21
| | | | | | * ext/psych/psych.gemspec: generate new gemspec for new version. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych.rb: calling `yaml` rather than `to_yaml`.tenderlove2011-10-036-17/+27
| | | | | | | | | | * ext/psych/lib/psych/nodes/node.rb: Rename `to_yaml` to just `yaml` in order to avoid YAML::ENGINE switching from replacing this method. * test/psych/helper.rb: fix tests for method name change. * test/psych/test_document.rb: ditto * test/psych/visitors/test_emitter.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/scalar_scanner.rb: Match values against thetenderlove2011-10-033-1/+31
| | | | | | | floating point spec defined in YAML to avoid erronious parses. * test/psych/test_numeric.rb: corresponding test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/to_ruby.rb: ToRuby visitor can betenderlove2011-10-033-5/+12
| | | | | | | | constructed with a ScalarScanner. * ext/psych/lib/psych/visitors/yaml_tree.rb: ScalarScanner can be passed to the YAMLTree visitor. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/to_ruby.rb: Define Regexp::NOENCODINGtenderlove2011-10-033-5/+32
| | | | | | | | for 1.9.2 backwards compatibility. * ext/psych/lib/psych/visitors/yaml_tree.rb: Fix Date string generation for 1.9.2 backwards compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-10-04svn2011-10-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_gc_set_params): output GC parameter change messages onlynagachika2011-10-033-4/+23
| | | | | | | | | if -w/-v options are specified. these messages are output to stderr, not to stdout. [ruby-core:39795] [Bug #5380] * test/ruby/test_gc.rb (test_gc_parameter): add test for it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (rb_thread_mark), cont.c (cont_mark): revert r33369 and r33371ktsj2011-10-022-1/+6
| | | | | | that may cause SEGV in certain environments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/psych/test_yamldbm.rb: add test case.ayumin2011-10-023-0/+63
| | | | | | * test/syck/test_yamldbm.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/store.rb: make initialize method signature match thetenderlove2011-10-022-10/+10
| | | | | | superclass signature. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c: fix documentation of ARGF.lineno=.ktsj2011-10-022-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/mkmf/test_framework.rb: forgot to set property.nobu2011-10-020-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/mkmf/test_framework.rb: test for r33372.nobu2011-10-021-0/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (have_framework): try as Objective-C.nobu2011-10-022-1/+6
| | | | | | https://twitter.com/nagachika/status/120294447660539904 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (rb_thread_mark), cont.c (cont_mark): self pointer should notktsj2011-10-013-2/+7
| | | | | | | be marked by itself. Patch by Koichi Sasada. [ruby-dev:44567] [Bug #5386] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-10-02svn2011-10-011-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (rb_thread_mark): rb_thread_t needs self to be marked.ktsj2011-10-012-0/+6
| | | | | | [ruby-dev:44566] [Bug #5386] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (add_heap_slots, init_heap): reset heaps_inc zero whennagachika2011-10-014-2/+29
| | | | | | | | | | | | heap slots are expanded by environment variable RUBY_HEAP_MIN_SLOTS. [ruby-core:39777] [Bug #5380] * test/ruby/test_gc.rb (test_gc_parameter): add test for it. * test/ruby/envutil.rb (assert_normal_exit): add :child_env option to enable pass environemnt variables to child process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_bignum.rb: use more descriptive assertions.nobu2011-09-301-16/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-10-01svn2011-09-301-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_bignum.rb (TestBignum#test_interrupt): fix fornobu2011-09-301-4/+6
| | | | | | faster CPU. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e