jnunemaker / scrobbler

[DEAD] Scrobbler is a wrapper for the audioscrobbler (last.fm) web services.
http://scrobbler.rubyforge.org/
MIT License
48 stars 53 forks source link

undefined method `blank?' #1

Open monomadic opened 13 years ago

monomadic commented 13 years ago

Getting the following error on ruby 1.9.2

.rvm/gems/ruby-1.9.2-p0/gems/scrobbler-0.2.3/lib/scrobbler/artist.rb:93:in initialize': undefined methodblank?' for "Nirvana":String (NoMethodError) from lastfm_tags.rb:17:in new' from lastfm_tags.rb:17:in

'

when executing:

require 'scrobbler' artist = Scrobbler::Artist.new('Nirvana')

I believe .blank? may be part of active_support, but require 'active_support' does not solve the issue.

mkaito commented 13 years ago

Active Support was updated a while ago to not load everything when you require 'active_support'. A workaround is requiring 'active_support/all', but the preferred way is requiring what you actually need.