lib/phantomjs/platform.rb in phantomjs-1.9.7.0 vs lib/phantomjs/platform.rb in phantomjs-1.9.7.1

- old
+ new

@@ -49,11 +49,11 @@ temp_dir = File.join(temp_path, 'phantomjs_install') FileUtils.rm_rf temp_dir FileUtils.mkdir_p temp_dir Dir.chdir temp_dir do - unless system "curl -O #{package_url}" or system "wget #{package_url}" + unless system "curl -L -O #{package_url}" or system "wget #{package_url}" raise "\n\nFailed to load phantomjs! :(\nYou need to have cURL or wget installed on your system.\nIf you have, the source of phantomjs might be unavailable: #{package_url}\n\n" end case package_url.split('.').last when 'bz2' @@ -96,11 +96,11 @@ def platform 'x86_64-linux' end def package_url - 'http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2' + 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2' end end end class Linux32 < Platform @@ -112,11 +112,11 @@ def platform 'x86_32-linux' end def package_url - 'http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-i686.tar.bz2' + 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-i686.tar.bz2' end end end class OsX < Platform @@ -128,11 +128,11 @@ def platform 'darwin' end def package_url - 'http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-macosx.zip' + 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-macosx.zip' end end end class Win32 < Platform @@ -152,10 +152,10 @@ File.expand_path File.join(Phantomjs.base_dir, platform, 'phantomjs.exe') end end def package_url - 'http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-windows.zip' + 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-windows.zip' end end end end end