lukeredpath / clickatell

NO LONGER SUPPORTED - Ruby interface to the Clickatell SMS Gateway API
http://clickatell.rubyforge.org
MIT License
138 stars 60 forks source link

ENV['HOME'] isn't everywhere #2

Open ripienaar opened 14 years ago

ripienaar commented 14 years ago

Not all shells and all environments sets ENV[HOME], line 90 of options.rb has:

      config_file = File.open(File.join(ENV['HOME'], '.clickatell'))

which raises an exception and dies without sending sms if HOME isn't set

ripienaar commented 14 years ago

btw the error is:

`join': can't convert nil into String (TypeError)

you could just catch that as well in your existing rescue block

lukeredpath commented 14 years ago

Thanks for reporting; patches are welcome. :)