summaryrefslogtreecommitdiffstats
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/ipaddr.rb (IPAddr#{eql?,hash}): Add IPAddr#{eql?,hash} soknu2009-08-041-0/+6
| | | | | | | | | that an IPAddr object can be used as a hash key, a set element, etc.; suggested by Nick Brown <nick@nick-brown.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Warn duplicated characters in character class of regexp. [ruby-core:24593]naruse2009-08-041-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | * include/ruby/oniguruma.h (ONIG_SYN_WARN_CC_DUP): defined. * regparse.h (ScanEnv): add warnings_flag. * regparse.c (CC_DUP_WARN): defined for warn duplicated characters in character class of regexp. [ruby-core:24593] (add_code_range_to_buf): add CC_DUP_WARN. (next_state_val): add CC_DUP_WARN. (OnigSyntaxRuby): add ONIG_SYN_WARN_CC_DUP. (SET_ALL_MULTI_BYTE_RANGE): add env to arguments. (add_code_range): ditto. (add_code_range_to_buf): ditto. (not_code_range_buf): ditto. (or_code_range_buf): ditto. (and_code_range1): ditto. (and_code_range_buf): ditto. (and_cclass): ditto. (or_cclass): ditto. (add_ctype_to_cc_by_range): ditto. (add_ctype_to_cc): ditto. (parse_char_class): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/encdb.c (ENC_SET_BASE): fix typo. patch by ujihisa [ruby-dev:39004]naruse2009-08-041-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* More strict for Big5 series.naruse2009-08-041-0/+12
| | | | | | | | | | | | | | * enc/big5.c (EncLen_Big5): back to original Big5 table. (EncLen_Big5_HKSCS): for Big5-HKSCS. (trans): add the lead byte table for Big5-HKSCS. (big5_mbc_enc_len): abstract function for Big5 series. (big5_mbc_enc_len): for Big5. (big5_hkscs_mbc_enc_len): for Big5-HKSCS. (BIG5_HKSCS_P): added. (BIG5_ISMB_FIRST): add routine for Big5-HKSCS. (big5_hkscs): add for Big5-HKSCS. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add functions and macros for second encoding definitions.naruse2009-08-041-0/+11
| | | | | | | | | | | | | * encoding.c (rb_enc_set_base): Add for setting base encoding with their names. this is internal function. * template/encdb.h.tmpl: specify ENC_SET_BASE for second encodings in each encoding files. * enc/encdb.c (rb_enc_set_base): add a declaration. (ENC_SET_BASE): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_replace): should copy compare_by_identity status as well.matz2009-08-031-0/+5
| | | | | | [ruby-core:24728] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (recursive_push): need to set UNTRUST. [ruby-dev:38997]matz2009-08-031-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tcltklib.c: fix trouble on old-style C functionnagai2009-08-031-0/+14
| | | | | | | | | | | | declarations [ruby-core:22871]. * ext/tk/lib/tcltklib.c: (ruby_1_8) fix warning about RUBY_RELEASE_DATE * ext/tk/lib/tk/multi-tk.rb: kill zombie threads. * ext/tk/lib/tk/fontchooser.rb: fix typo and support OptionObj. * ext/tk/lib/tk/canvas.rb, ext/tk/lib/tk/virtevent.rb, ext/tk/lib/tk/image.rb, , ext/tk/lib/tk/timer.rb: create unnecessary array. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_mod_include): fix document. [ruby-core:24675]mame2009-08-031-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/svr.rb: obsolete TCPserver renamed. [ruby-core:24712]matz2009-08-031-0/+8
| | | | | | | | * sample/tsvr.rb: ditto. * sample/dualstack-httpd.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (recursive_push): untrust internal hash to preventmatz2009-08-031-0/+6
| | | | | | | unexpected SecurityError. a patch from Kazuhiro NISHIYAMA. Fix: #1864 [ruby-dev:38982] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/README: updated. a patch from Daniel Bovensiepen.matz2009-08-031-0/+5
| | | | | | [ruby-core:24693] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_connect): return value was broken when someusa2009-08-031-0/+6
| | | | | | | | | error occurred. [ruby-core:24234] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (permute0): use chars for boolean array.nobu2009-08-031-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_{permutation,combination}): disallow reentrancenobu2009-08-031-1/+4
| | | | | | | with continuation since work-buffers cannot restore. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flo_hash): normalize -0.0 to 0.0. [ruby-core:24577]matz2009-08-031-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_{permutation,combination,product}): must not usenobu2009-08-031-0/+5
| | | | | | | ary_discard on strings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rb_random_int): arguments have to be converted tonobu2009-08-021-0/+5
| | | | | | | integer. [ruby-core:24679] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (literal_concat0): tail can be nil. [ruby-dev:38980]nobu2009-08-021-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_combination, rb_ary_product): prevent from GC.nobu2009-08-021-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rand.rb: add tests for Random#float's rejectionmame2009-08-021-0/+5
| | | | | | against Infinity and NaN. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rand_int): prevent from GC.nobu2009-08-021-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (tr_trans): change condition of singlebyte optimization.naruse2009-08-011-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (random_float): rejects Infinity and NaN.nobu2009-08-011-0/+5
| | | | | | | [ruby-core:24651] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/rbinstall.rb (gem): suppressed warnings.nobu2009-08-011-0/+5
| | | | | | | cf: [ruby-dev:38975] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Can't use singlebyte optimization when the replacement is multibyte. ↵naruse2009-07-311-0/+5
| | | | | | | | | [ruby-core:24612] * string.c (tr_trans): can't use singlebyte optimization when the replacement is multibyte. [ruby-core:24612] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/securerandom.rb (SecureRandom.random_bytes): return string shouldusa2009-07-311-0/+5
| | | | | | | | be ASCII-8BIT. [ruby-core:24640] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Set encodings of stdio after setting default internal and external.naruse2009-07-311-0/+7
| | | | | | | | | * io.c (rb_stdio_set_default_encoding): added. * ruby.c (process_options): call rb_stdio_set_default_encoding after setting defualt internal and external. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb: too long string literal causes compile errorusa2009-07-311-0/+5
| | | | | | | | on some platforms. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (str_encode_bang): C99ism.usa2009-07-311-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): used more appropriate construct.nobu2009-07-311-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (literal_concat_gen): reduced unnecessary node at stringnobu2009-07-311-0/+5
| | | | | | | literal concatenation with empty head dstr. [ruby-dev:38968] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (literal_concat_gen): NODE_DSTR was incorrectly handled asmame2009-07-301-0/+7
| | | | | | | | | | NODE_STR. [ruby-dev:38968] * bootstraptest/test_syntax.rb: add a test for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_module.rb (test_ancestors, test_included_modules):mame2009-07-301-2/+7
| | | | | | | ignore rake mixins. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_call_cfunc): let set_trace_func use called_idmame2009-07-301-0/+5
| | | | | | | instead of original_id. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gem_prelude.rb (Gem.path): uses Gem.default_path as a default valueyugui2009-07-301-0/+7
| | | | | | | | so that ruby finds gems in ~/.gem/. (Gem.user_home): reduced version of lib/rubygems.rb's. Gem.default_path needs it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb: replaces "require" with in-place evaluationyugui2009-07-301-0/+10
| | | | | | | | | | | so that copy & paste for lib/rubygems/default.rb is not necessary. * gem_prelude.rb: removes copied codes from lib/rubygems/defaults.rb. uses require instead. * common.mk (prelude.c): adds dependency for lib/rubygems/defaults.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rand.rb: add tests for Random class.mame2009-07-301-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (init_genrand): ensure invariant of mt->next and mt->left.mame2009-07-301-0/+6
| | | | | | | | mt->next should always equal mt->state + N + 1 - mt->left. In fact, 'r = Random.new(0); r == r.dup' has returned false. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (random_bytes): use NUM2LONG instead of FIX2LONG becausemame2009-07-301-0/+5
| | | | | | | Random#bytes may receive bignum. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): fix stack consistency error.mame2009-07-301-0/+7
| | | | | | | | | [ruby-core:24611] * bootstraptest/test_method.rb: add tests for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c: added check for frozen string for encode! (see Bug #1836)duerst2009-07-301-0/+6
| | | | | | | * test/ruby/test_transcode.rb: added tests for the above git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (defineclass): preserve encoding of class/modulenobu2009-07-301-0/+8
| | | | | | | | | | names. [ruby-core:24600] * variable.c (rb_set_class_path_string): set class path with a string value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (Init_var_tables): initializes __classid__ ID.nobu2009-07-301-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c: use st_data_t for st functions.nobu2009-07-301-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/util.rb (CGI::unescape): support encoding option.xibbar2009-07-301-0/+6
| | | | | | | * lib/cgi/cookie.rb (CGI::Cookie.parse): fix for the encoded value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (regexp): regexp literal at the top of dstr is still needed even ↵naruse2009-07-281-0/+5
| | | | | | if it is empty. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/lib/json/common.rb (JSON#recurse_proc): removematz2009-07-281-0/+5
| | | | | | unnecessary private specifier. [ruby-dev:38929] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h, vm_insnhelper.c (vm_call_method): reviveko12009-07-281-0/+5
| | | | | | | | VM_CALL_OPT_SEND_BIT and use it to recognize "send" method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (rb_method_entry_arity): support not_implemented method.ko12009-07-281-0/+5
| | | | | | | | (I have no idea to test it) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e