tilo / ID3

A native ID3 tag library for Ruby, which does not depend on architecture-dependent C-libraries. It supports reading and writing ID3-tag versions 1.0, 1.1, and 2.2.x, 2,3.x, 2,4.x
http://www.unixgods.org/~tilo/Ruby/ID3
Other
39 stars 9 forks source link

require 'id3' LoadError! #6

Open TomohiroHsu opened 10 years ago

TomohiroHsu commented 10 years ago

Thx for this ID3 lib. it's cool But there is something I think you need to change. In the "id3.rb" file    require 'md5'  #It's didn't work at ruby1.9.3 and ruby2.1.2 (as far as I know)    require 'digest/md5'  #this works


Note: If don't install ftools LoadError too! $  gem install ftools

chocolateboy commented 9 years ago

@TomohiroHsu

require 'md5'

It looks like this was fixed in 2011...

chocolateboy commented 9 years ago

... but the latest gem release is 0.5.0 from 2008 :-(

tilo commented 9 years ago

sorry guys, this gem has not gotten a lot of love for a while.

changing 'md5' to 'digest/md5' should be simple.

Regarding maintaining this gem ...

the problem is that with the switch to Ruby 1.9 the semantics and methods of accessing/modifying raw strings changed (e.g. was taken away), because now Ruby tries to always figure out the encoding of the string. If you try to access a sequence of raw bytes as a string, it will puke. :-/

It would have been great if they had provided a backwards-compatible way to access strings the way it was done in versions < 1.9

ant0nm commented 1 year ago

Running into the same issue here: LoadError: cannot load such file -- md5. Is there a stable version of this gem I could use?