summaryrefslogtreecommitdiff
path: root/ext
AgeCommit message (Collapse)Author
2016-01-04stringio: binmode sets encoding to ASCII-8BITnormal
This should match the behavior of IO#binmode as far as treating content as ASCII-8BIT (binary). * ext/stringio/stringio.c (strio_binmode): implement to set encoding * test/stringio/test_stringio.rb (test_binmode): new test [ruby-core:72699] [Bug #11945] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-28:warning: key "accelerator" is duplicated and overwritten in Tk samplesa_matsuda
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-28Missing requirea_matsuda
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-28parsedate is no more available since 1.9a_matsuda
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-28Convert euc-jp resource file in Tk sample to utf-8a_matsuda
The sample program assumes the file to be encoded in utf-8 https://github.com/ruby/ruby/blob/02531898987693bd28879c78b3cb660006891186/ext/tk/sample/tkoptdb.rb#L15-L17 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-28Documentation typoa_matsuda
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27* remove trailing spaces.svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27* ext/win32ole/win32ole.c (ole_variant2val): refactoring.suke
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27Method name typo in a Tk samplea_matsuda
* ext/tk/sample/tkextlib/treectrl/help.rb: kength => length git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27ivar name typo in a Tk samplea_matsuda
* ext/tk/sample/tkextlib/treectrl/outlook-newgroup.rb: @Messge => @Message git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27Method name typo in a Tk samplea_matsuda
* ext/tk/sample/tktextio.rb: trancate => truncate git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27ivar name typo in a Tk samplea_matsuda
* ext/tk/sample/tktextio.rb: @opne => @open git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27Typo in Tk samplesa_matsuda
* ext/tk/sample/demos-en/goldberg.rb: miliseconds => milliseconds * ext/tk/sample/demos-jp/goldberg.rb: miliseconds => milliseconds git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27Method name typo in Tk samplesa_matsuda
* ext/tk/sample/demos-en/ctext.rb: seleect_adjust => select_adjust * ext/tk/sample/demos-jp/ctext.rb: seleect_adjust => select_adjust git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27Typo in a Tk samplea_matsuda
* ext/tk/sample/tkextlib/bwidget/tree.rb: allways => always git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27Typo in a Tk samplea_matsuda
* ext/tk/sample/demos-jp/mclist.rb: aquq => aqua git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27Typo in a gvar namea_matsuda
* ext/tk/sample/demos-jp/hscale.rb: $hscale_deom => $hscale_demo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27Typo in Tk samplesa_matsuda
* ext/tk/sample/demos-en/ttkbut.rb: happyness => happiness * ext/tk/sample/demos-jp/ttkbut.rb: happyness => happiness git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27Typos in messagesa_matsuda
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27Documentation typosa_matsuda
[ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27Typo: widget (?)a_matsuda
* ext/tk/lib/tk.rb: wiget => widget * ext/tk/sample/demos-en/{floor.rb,floor2.rb,puzzle.rb}: widet => widget * ext/tk/sample/demos-en/textpeer.rb: Wdget => widget * ext/tk/sample/demos-jp/puzzle.rb: widet => widget * ext/tk/sample/demos-jp/textpeer.rb: Wdget => widget * ext/tk/sample/tkextlib/bwidget/basic.rb: widtet => widget git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-27* ext/win32ole/win32ole.c (ole_vstr2wc, ole_variant2val): fix blanksuke
string conversion. [Bug #11880] Thanks Akio Tajima for the patch! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-25doc/CangeLog-2.3.0, ext/tk/lib/txextlib/SUPPORT_STATUS,duerst
include/ruby/version.h: minor grammar fixes [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-24fix common misspelling [ci skip]nobu
* compile.c, cont.c, doc, man: fix common misspelling. [ruby-core:72466] [Bug #11870] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-23io/console: fix gem build failure on Windowsnobu
* ext/io/console/extconf.rb: fix gem build failure on Windows. only win32_vk.inc is included in the gem and no dependencies for the header, so that gperf will not be mandatory. [ruby-core:72453] [Bug #11866] * ext/io/console/io-console.gemspec: include depend file and win32_vk header. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-23rb_readwrite_syserr_failnobu
* io.c (rb_readwrite_syserr_fail): works with the given errno than thread local errno. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-23prefer rb_syserr_failnobu
* file.c, io.c, util.c: prefer rb_syserr_fail with saved errno over setting errno then call rb_sys_fail, not to be clobbered potentially and to reduce thread local errno accesses. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-22ext/socket/init.c (rsock_init_sock): reject reserved FDsnormal
[ruby-core:72445] [Bug #11862] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-22io-console.gemspec: BSD-2-Clausenobu
* ext/io/console/io-console.gemspec: change the license to BSD-2-Clause since "ruby" is no longer valid license as gem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-22fix r53231: raise Errno::EBADF like other OSesnaruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-22io-console.gemspec: bump upnobu
* ext/io/console/io-console.gemspec: bump up to 0.4.4. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-22* ext/bigdecimal/bigdecimal.gemspec: bump version to 1.2.8.mrkn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-22* ext/psych/lib/psych.rb: bump version to 2.0.17hsbt
* ext/psych/psych.gemspec: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-22escape.c: should not freezenobu
* ext/cgi/escape/escape.c (optimized_escape_html): CGI.escapeHTML should return unfrozen new string. [ruby-core:72426] [Bug #11858] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-21escape.c: Preserve original statenobu
* ext/cgi/escape/escape.c (preserve_original_state): Preserve original state for tainted and frozen. [Fix GH-1166] [ruby-dev:49451] [Bug #11855] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-21avoid rb_bug on BasicSocket.for_fd(-1)normal
* ext/socket/init.c (rsock_init_sock): check FD after validating * test/socket/test_basicsocket.rb (test_for_fd): new [ruby-core:72418] [Bug #11854] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-21NotImplementedError typonobu
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLSocket): fix NotImplementedError typo. [Fix GH-1165] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-20cgi/escape: Optimize CGI.escapeHTMLnobu
* cgi/escape/escape.c: Optimize CGI.escapeHTML for ASCII-compatible encodings. [Fix GH-1164] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-19zlib.c: Fix typo [ci skip]nobu
* ext/zlib/zlib.c (Init_zlib): [DOC] Fix double-word typo and grammatical error. [Fix GH-1162] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-18stringio.c: separate encoding from buffernobu
* ext/stringio/stringio.c (strio_set_encoding): add StringIO's own encoding and separate it from the buffer string to override the encoding of string when reading. [ruby-core:72189] [Bug #11827] note that setting the encoding of its buffer string may cause unpredictable behavior. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-18stringio.c: strio_unget_bytesnobu
* ext/stringio/stringio.c (strio_unget_bytes): extract from strio_ungetbyte to share with strio_ungetc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-18stringio.c: padding in ungetbytenobu
* ext/stringio/stringio.c (strio_ungetbyte): pad with \000 when the current position is after the end. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-18* ext/pty/pty.c: fix double words typo.hsbt
[ci skip][fix GH-1157] Patch by @jwworth git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-18* ext/nkf/nkf-utf8/utf8tbl.c: fix a typo.hsbt
[ci skip][fix GH-1159] Patch by @akshay-vishnoi * ext/nkf/nkf-utf8/utf8tbl.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16* ext/fiddle/handle.c: check tainted string arguments.nagachika
Patch provided by tenderlove and nobu. * test/fiddle/test_handle.rb (class TestHandle): add test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16handle ext/ as r53141naruse
g -L frozen_string_literal ext/**/*.rb|xargs ruby -Ka -e'ARGV.each{|fn|puts fn;open(fn,"r+"){|f|s=f.read.sub(/\A(#!.*\n)?(#.*coding.*\n)?/,"\\&# frozen_string_literal: false\n");f.rewind;f.write s}}' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-15* ext/zlib/zlib.c: fix a typo.hsbt
[ci skip][fix GH-1149] Patch by @crismali git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-14* ext/socket/lib/socket.rb: use safe navigation operator.hsbt
[fix GH-1142] Patch by @mlarraz * lib/drb/extservm.rb: ditto. * lib/net/http.rb: ditto. * lib/net/http/response.rb: ditto. * lib/scanf.rb: ditto. * lib/uri/generic.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-13function.c: fix typonobu
* ext/fiddle/function.c (initialize): fix typo "ary" to "args", and adjust type of variables to suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-13* ext/fiddle/function.c: fix build error introduced at r53082.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e