aboutsummaryrefslogtreecommitdiffstats
path: root/test/zlib
Commit message (Collapse)AuthorAgeFilesLines
* * ext/zlib/zlib.c (gzfile_reader_get_unused): no need to dupnobu2011-02-031-2/+2
| | | | | | before rb_str_resurrect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* e ext/zlib/zlib.c (gzfile_reader_get_unused): use rb_str_resurrectnaruse2011-02-031-2/+30
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (gzreader_gets): support optional lengthnobu2010-12-251-0/+34
| | | | | | parameter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/zlib/test_zlib.rb (test_readline): renamed from test_gets.nobu2010-12-251-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/zlib/test_zlib.rb (test_to_io): forgotten to fix with r30201.usa2010-12-151-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/zlib/test_zlib.rb (*): should close files associated with zlib.usa2010-12-141-129/+151
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (gzfile_raise): add invalid header tonobu2010-07-071-0/+18
| | | | | | | exceptions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/zlib/test_zlib.rb (test_adler32_combine, test_crc32_combine): skip ifusa2010-05-191-2/+10
| | | | | | | they are not implemented. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid method redefinition.akr2010-02-141-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c: added Zlib.crc32_combine and Zlib.adler32_combinetenderlove2010-01-191-0/+12
| | | | | | * test/zlib/test_zlib.rb: corresponding tests [ruby-core:27551] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (gzfile_read_all): use gzfile_newstr;naruse2009-08-291-2/+4
| | | | | | set and convert its encoding. [ruby-dev:38304] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (Zlib::GzipFile#path): New method.knu2009-04-221-0/+28
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/zlib/test_zlib.rb(test_readchar): compare in same type.takano322008-11-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_write): should convert writingmatz2008-10-211-1/+1
| | | | | | | | | | | string to the encoding of the buffer. * hash.c (rb_any_hash): typo fixed. * ext/zlib/zlib.c (rb_gzwriter_write): oops, IO string conversion need to be done by to_s. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (rb_gzwriter_write): conversion should be donematz2008-10-211-1/+1
| | | | | | | | | | | | using to_str, not to_s. * ext/zlib/zlib.c (rb_gzwriter_write): need proper conversion according to gz encoding. * ext/zlib/zlib.c (rb_gzreader_ungetc): convert string encoding before unget. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c: remove obsolete prototype macros.matz2008-10-211-1/+11
| | | | | | | | | | | | | | | | | | | | * ext/zlib/zlib.c (struct gzfile): add encoding field to gzfile structure. * ext/zlib/zlib.c (rb_gzreader_getc): now works on characters. * ext/zlib/zlib.c (rb_gzreader_getbyte): new method to retrieve single byte. * ext/zlib/zlib.c (rb_gzreader_readbyte): ditto. * ext/zlib/zlib.c (rb_gzreader_each_byte): renamed from each_char * ext/zlib/zlib.c (rb_gzreader_ungetc): allow unget strings. * ext/zlib/zlib.c (rb_gzreader_ungetbyte): renamed from ungetc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/zlib/test_zlib.rb (TestZlibDeflate#test_params): suppress a finalizer ↵kazu2008-07-231-0/+1
| | | | | | warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/zlib/test_zlib.rb: add a test for Zlib::Deflate#params.mame2008-07-111-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/zlib/test_zlib.rb: add tests to achieve over 90% test coveragemame2008-06-081-2/+576
| | | | | | | of zlib. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use ML ref. for assertion message.akr2007-11-181-10/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't modify $/akr2004-09-071-12/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_ungetc_paragraph: restore $/.akr2004-09-071-7/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:24060], [ruby-dev:24065], [ruby-dev:24103],akr2004-09-071-4/+34
| | | | | | | | [ruby-dev:24190], [ruby-dev:24191], [ruby-dev:24194], [ruby-dev:24197], [ruby-dev:24202], [ruby-dev:24213], [ruby-dev:24223] and [ruby-dev:24228]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c: Zlib::GzipReader#read(0) returns "" instead of nil.akr2004-08-061-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:23344].akr2004-04-071-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check zlib existence.akr2004-04-061-4/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update test_new_nil.akr2004-04-051-7/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/zlib/test_zlib.rb: new file.akr2004-04-051-0/+16
(TestZlibGzipWriter#test_new_nil): test for [ruby-dev:23228]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e