ruby-vorbistagger.git
17 years agoSplit MainTest#test_modify_key into two smaller tests.
Tilman Sauerbeck [Fri, 11 Aug 2006 14:50:16 +0000 (16:50 +0200)]
Split MainTest#test_modify_key into two smaller tests.

17 years agoFreeze the key in newly added entries in Ogg::Vorbis::Comments#[]=.
Tilman Sauerbeck [Fri, 11 Aug 2006 14:47:55 +0000 (16:47 +0200)]
Freeze the key in newly added entries in Ogg::Vorbis::Comments#[]=.

This makes MainTest#test_modify_key pass.

17 years agoAdded MainTest#test_modify_key.
Tilman Sauerbeck [Fri, 11 Aug 2006 14:41:02 +0000 (16:41 +0200)]
Added MainTest#test_modify_key.

This test asserts that it's not possible to change the keys in the
key-value pair arrays.

17 years agoFreeze the key-value pair arrays in Ogg::Vorbis::Comments.
Tilman Sauerbeck [Fri, 11 Aug 2006 14:28:58 +0000 (16:28 +0200)]
Freeze the key-value pair arrays in Ogg::Vorbis::Comments.

This protects them from being modified, which should never be necessary.

17 years agoTweaked Ogg::Vorbis::Comments#inspect.
Tilman Sauerbeck [Fri, 11 Aug 2006 14:09:24 +0000 (16:09 +0200)]
Tweaked Ogg::Vorbis::Comments#inspect.

17 years agoChanged the initialize size of the IO buffer to 0.
Tilman Sauerbeck [Fri, 11 Aug 2006 13:42:30 +0000 (15:42 +0200)]
Changed the initialize size of the IO buffer to 0.

It will be resized at every access anyway. It would be nice if we
could have a static buffer, but Ruby's API doesn't allow it atm.

17 years agoMade the IO buffer global.
Tilman Sauerbeck [Fri, 11 Aug 2006 13:40:05 +0000 (15:40 +0200)]
Made the IO buffer global.

There's no need to give each Ogg::Vorbis::Tagger instance its own
buffer. This should help memory consumption when there's more than
one Ogg::Vorbis::Tagger object around. The downside is that the buffer
object will be kept alive forever.

17 years agoMade sure that all comments are well-formed before they are parsed.
Tilman Sauerbeck [Fri, 11 Aug 2006 13:34:19 +0000 (15:34 +0200)]
Made sure that all comments are well-formed before they are parsed.

ie, check that every comment has a '=' sign somewhere, but not at
position 0.

17 years agoInitial commit.
Tilman Sauerbeck [Thu, 10 Aug 2006 16:05:32 +0000 (18:05 +0200)]
Initial commit.