aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* * remove trailing spaces.nobu2013-09-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c: [DOC] arguments of Regexp::union receive #to_regexp [Bug #8205]zzak2013-09-261-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * struct.c: [DOC] grammar of ArgumentError in Struct.new [Bug #8936]zzak2013-09-261-0/+5
| | | | | | | Patch by Prathamesh Sonpatki git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c: [DOC] several fixes by @chastellzzak2013-09-261-0/+7
| | | | | | | | | This includes fixing the capitalization of Infinity, return value of example "BigDecimal.new('NaN') == 0.0", and code style in example. [Fixes GH-398] https://github.com/ruby/ruby/pull/398 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/observer.rb: [DOC] syntax improvement in example by @chastellzzak2013-09-261-0/+5
| | | | | | | [Fixes GH-400] https://github.com/ruby/ruby/pull/400 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c: [DOC] typo in overview by @chastellzzak2013-09-261-0/+5
| | | | | | | [Fixes GH-399] https://github.com/ruby/ruby/pull/399 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl.c: [DOC] typo in example by @zoranzariczzak2013-09-261-0/+5
| | | | | | | [Fixes GH-401] https://github.com/ruby/ruby/pull/401 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-electric.el (ruby-electric-delete-backward-char): Addknu2013-09-261-0/+11
| | | | | | | | | | | | support for smartparen-mode. * misc/ruby-electric.el (ruby-electric-cua-replace-region-maybe) (ruby-electric-cua-delete-region-maybe): New functions that combine `ruby-electric-cua-*-region` with `ruby-electric-cua-*-region-p`, using a slightly better way to detect if it is in cua-mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_regexpmatch2): Check String#=~ hasn't overriddensorah2013-09-261-0/+11
| | | | | | | | | | | | before calling rb_reg_match(). * test/ruby/test_string.rb: Test for above. * vm.c (vm_init_redefined_flag): Add BOP flag for String#=~ [ruby-core:57385] [Bug #8953] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-electric.el: Avoid use of the interactive functionknu2013-09-261-0/+9
| | | | | | | | | | `self-insert-command` which fires `post-self-insert-hook` and `post-command-hook`, to make the ruby-electric commands work nicely with those minor modes that make use of them to do similar input assistance, such as electric-pair-mode, autopair-mode and smartparens-mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_regexpmatch1): check Regexp#=~ is not defined beforecharliesome2013-09-261-0/+18
| | | | | | | | | | | | | | | | | | | calling rb_reg_match() * test/ruby/test_regexp.rb: add test * vm.c (ruby_vm_redefined_flag): change type to short[] * vm.c (vm_redefinition_check_flag): return REGEXP_REDEFINED_OP_FLAG if klass == rb_cRegexp * vm.c (vm_init_redefined_flag): setup BOP flag for Regexp#=~ * vm_insnhelper.h: add REGEXP_REDEFINED_OP_FLAG [ruby-core:57385] [Bug #8953] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c: disable AddressSanitizernobu2013-09-261-0/+6
| | | | | | | | * gc.c (mark_locations_array): disable AddressSanitizer. based on a patch by halfie (Ruby Guy) at [ruby-core:57372]. [ruby-core:56155] [Bug #8680] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * README.EXT, README.EXT.ja: remove description of RARRAY_PTR()ko12013-09-251-0/+7
| | | | | | | | | | and add a caution of accessing internal data structure directly. Also add a description of rb_ary_store(). [Bug #8399] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: rename RARRAY_RAWPTR() to RARRAY_CONST_PTR().ko12013-09-251-0/+13
| | | | | | | | | | | | | | | RARRAY_RAWPTR(ary) returns (const VALUE *) type pointer and usecase of this macro is not acquire raw pointer, but acquire read-only pointer. So we rename to better name. RSTRUCT_RAWPTR() is also renamed to RSTRUCT_CONST_PTR() (I expect that nobody use it). * array.c, compile.c, cont.c, enumerator.c, gc.c, proc.c, random.c, string.c, struct.c, thread.c, vm_eval.c, vm_insnhelper.c: catch up this change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* internal.h: move inline functionsnobu2013-09-251-0/+8
| | | | | | | | | * internal.h (rb_float_value, rb_float_new): move inline functions from ruby/ruby.h. * numeric.c (rb_float_value, rb_float_new): define external functions for extension libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rdoc/test_rdoc_generator_darkfish.rb: add a guard for windows.ko12013-09-251-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Fix CVE-2013-4363. Miscellaneous minor improvements.drbrain2013-09-251-0/+6
| | | | | | | * test/rubygems: Tests for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tabify indentkazu2013-09-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: fix for UTF-16/32nobu2013-09-241-0/+7
| | | | | | | | * string.c (rb_str_inspect): get rid of out-of-bound access. * string.c (rb_str_inspect): when a UTF-16/32 string doesn't have a BOM, inspect as a dummy encoding string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* encdb.c, encoding.c: make BOM-encodings dummynobu2013-09-241-0/+6
| | | | | | | * enc/encdb.c (ENC_DUMMY_UNICODE): make BOM-encodings dummy. * encoding.c (enc_autoload): keep dummy encodings dummy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/registry.rb: size in bytesnobu2013-09-241-0/+5
| | | | | | | * ext/win32/lib/win32/registry.rb (Win32::Registry#write): data size is in bytes, not chars. terminators should be placed automatically. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/registry.rb: encode namenobu2013-09-241-0/+10
| | | | | | | | | | * ext/win32/lib/win32/registry.rb (Win32::Registry#each_value): encode name. * ext/win32/lib/win32/registry.rb (Win32::Registry#each_key): ditto. * ext/win32/lib/win32/registry.rb (Win32::Registry#export_string): encode to locale encoding if default internal is not set. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/registry.rb: fix runtime errorsnobu2013-09-241-1/+6
| | | | | | | * ext/win32/lib/win32/registry.rb (Win32::Registry::API#EnumKey): size of the name is in WCHARs, not in bytes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (free_method_cache_entry_i): unused functioncharliesome2013-09-241-0/+12
| | | | | | | | | | | | * gc.c (rb_free_mc_table): ditto * internal.h (method_cache_entry_t): unused struct * vm_method.c (verify_method_cache): remove unused variable * vm_method.c (rb_method_entry): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (class_alloc): remove mc_tblcharliesome2013-09-241-0/+15
| | | | | | | | | | | | | | | * gc.c (obj_free): ditto * internal.h (struct rb_classext_struct): ditto * method.h (rb_method_entry): remove ent param * vm_method.c: restore the global method cache. Per class cache tables turned out to be far too slow. [ruby-core:57289] [Bug #8930] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/registry.rb: fix runtime errorsnobu2013-09-241-0/+8
| | | | | | | | | * ext/win32/lib/win32/registry.rb (Win32::Registry::API): need Constants. * ext/win32/lib/win32/registry.rb (Win32::Registry::API#EnumValue): size of the name is in WCHARs, not in bytes git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* encdb.c, utf_16_32.h: Unicode with BOMnobu2013-09-231-0/+6
| | | | | | | | * enc/encdb.c, enc/utf_16_32.h (ENC_DUMMY_UNICODE): Unicode with BOM must be based on big endian variants, so that actual encodings would work. [ruby-core:57318] [Bug #8940] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (env_each_pair): do not call rb_assoc_new() ifglass2013-09-231-0/+5
| | | | | | it isn't needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_module.rb: toplevel includenobu2013-09-231-0/+6
| | | | | | | | * test/ruby/test_module.rb (TestModule#test_include_toplevel): test for top level main.include. based on a part of the patch by kyrylo at [GH-395]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* intern.h: move rb_ary_cat from internal.hnobu2013-09-221-0/+5
| | | | | | | * include/ruby/intern.h (rb_ary_cat): move from internal.h, since it is described in README.EXT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_make_proc_with_iseq): fix bug message.ktsj2013-09-221-0/+5
| | | | | | This is follow up to changes in r42637. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/-test-/tracepoint/tracepoint.c (Init_tracepoint): prevent from GC.ktsj2013-09-221-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/bm_app_answer.rb: revert r42990, benchmark scripts shoulderegon2013-09-221-0/+6
| | | | | | | be self-contained and avoid dependencies, especially such small one. See https://github.com/ruby/ruby/pull/393#issuecomment-24861301. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* process.c: remove cloexec settingnobu2013-09-211-0/+6
| | | | | | | | * process.c (rb_fork_internal): remove cloexec setting on pipes created by rb_cloexec_pipe. patch by normalperson (Eric Wong) at [ruby-core:56523]. [Bug #8769] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/benchmark.rb: [DOC] grammar of Benchmark#bm [Bug #8888]zzak2013-09-201-0/+5
| | | | | | | Patch by Prathamesh Sonpatki git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c: [DOC] Enumerator#each arguments documentation [GH-388]zzak2013-09-201-0/+5
| | | | | | | Patch by @kachick https://github.com/ruby/ruby/pull/388 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c: [DOC] Enumerable#to_a accepts arguments [GH-388]zzak2013-09-201-0/+5
| | | | | | | Patch by @kachick https://github.com/ruby/ruby/pull/388 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: scan coderangenobu2013-09-201-0/+5
| | | | | | | * string.c (rb_str_conv_enc_opts): make sure to scan coderange to get rid of unnecessary conversion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* commit miss on issue number from r42995zzak2013-09-201-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/openssl/ssl.rb: [DOC] Document OpenSSL::SSLServerzzak2013-09-201-0/+5
| | | | | | | Based on a patch by Rafal Lisowski [Bug #7348] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/gserver.rb: [DOC] correct gserver.rb license [Bug #8913]zzak2013-09-201-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/yaml/yaml.h: [DOC] merge upstream typo fix by @GreenGeorgezzak2013-09-201-0/+5
| | | | | | | https://github.com/tenderlove/psych/pull/161 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add author from r42990zzak2013-09-201-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/securerandom.rb: [DOC] SecureRandom.hex length argumentzzak2013-09-201-0/+5
| | | | | | | [Fixes GH-394] Patch by @avdi https://github.com/ruby/ruby/pull/394 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/bm_app_answer.rb: removed duplicate code [Fixes GH-393]zzak2013-09-201-0/+5
| | | | | | | https://github.com/ruby/ruby/pull/393 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: RUN_OPTS to testsnobu2013-09-201-0/+10
| | | | | | | | | | * common.mk (btest, btest-ruby, test-knownbug): add $(RUN_OPTS) to ruby to be run, so that tests are runnable before making exts. * common.mk (test-sample): ditto, and use $(MINIRUBY) as rubytest.rb does not need extension libraries. * tool/rubytest.rb: pass $(RUN_OPTS) to testing ruby using --run-opt. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: junk sigil only namesnobu2013-09-201-0/+7
| | | | | | | | * parse.y (intern_str): sigil only names are junk, at least one identifier character is needed. [ruby-dev:47723] [Bug #8928] * parse.y (rb_enc_symname_type): fix out of bound access. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/-test-/printf/printf.c (printf_test_call): Fix an end of bufferakr2013-09-201-0/+5
| | | | | | | | argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: adjust position of lambdanobu2013-09-191-0/+4
| | | | | | * parse.y (lambda): adjust position to the beginning of the block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vsnprintf.c: initialize cpnobu2013-09-191-0/+5
| | | | | | | * vsnprintf.c (BSD_vfprintf): initialize cp so that size is 0 in the commented case. fix an accidental bug at r16716. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e