fixed error caused by https

The plugin was causing an exception when https URLs were used.  I did my best to add SSL support with my limited ruby knowledge.