--
-$Id: ChangeLog 70 2005-07-15 20:31:58Z tilman $
+$Id: ChangeLog 71 2005-07-16 12:28:17Z tilman $
++
+2005-07-16 Tilman Sauerbeck (tilman at code-monkey de)
+ * ext/ext.c, test/test_stream.rb: Don't raise BadElementError if
+ Stream#serialize is called on a stream that includes non-Chunk
+ elements
+
2005-07-15 Tilman Sauerbeck (tilman at code-monkey de)
* ext/ext.c: Code cleanup
/*
- * $Id: ext.c 70 2005-07-15 20:31:58Z tilman $
+ * $Id: ext.c 71 2005-07-16 12:28:17Z tilman $
*
* Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
*
static VALUE c_close (VALUE self);
static VALUE cStream, cChunk,
- eEetError, eNameError, ePropError, eStreamError,
- eBadElementError,
+ eEetError, eNameError, ePropError,
sym_lossy, sym_level, sym_quality, sym_char, sym_short,
sym_long_long, sym_double;
static ID id_include, id_serialize, id_keys, id_pack,
for (i = 0; i < stream->len; i++) {
VALUE str;
- if (rb_obj_is_kind_of (stream->ptr[i], cChunk) == Qfalse)
- rb_raise (eBadElementError, "stream member is not a Chunk");
-
str = rb_funcall (stream->ptr[i], id_serialize, 0, NULL);
rb_ary_push (ret, str);
eEetError = rb_define_class_under (m, "EetError", rb_eStandardError);
eNameError = rb_define_class_under (m, "NameError", eEetError);
ePropError = rb_define_class_under (m, "PropertyError", eEetError);
- eStreamError = rb_define_class_under (m, "StreamError", eEetError);
- eBadElementError = rb_define_class_under (m, "BadElementError",
- eStreamError);
id_include = rb_intern ("include?");
id_serialize = rb_intern ("serialize");