Make regular expression compatible with Ruby 1.8
now supporting ruby 1.8
Use https for gems instead of http