ID3 icon indicating copy to clipboard operation
ID3 copied to clipboard

require 'id3' LoadError!

Open TomohiroHsu opened this issue 11 years ago • 4 comments

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

TomohiroHsu avatar Aug 18 '14 14:08 TomohiroHsu

@TomohiroHsu

require 'md5'

It looks like this was fixed in 2011...

chocolateboy avatar Jun 01 '15 00:06 chocolateboy

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

chocolateboy avatar Jun 01 '15 00:06 chocolateboy

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

tilo avatar Jul 31 '15 19:07 tilo

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

ant0nm avatar Jan 21 '23 06:01 ant0nm