From 7fabdf1ffecdf83bdba925a2dd7fc659d8db7bab Mon Sep 17 00:00:00 2001 From: Leon Guan Date: Wed, 7 Sep 2011 01:06:25 +0800 Subject: [PATCH] Fixed the issues on compiling examples Getting errors when running "rake examples", making following updates: * Use https instead http for github access * Set use SSL flag for http client * Fix the link for compass-960-plugin --- examples/downloader.rb | 5 +++-- examples/ninesixty/bootstrap.rb | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/downloader.rb b/examples/downloader.rb index c8e841dc..8921dd23 100644 --- a/examples/downloader.rb +++ b/examples/downloader.rb @@ -9,8 +9,9 @@ def fetch(uri_str, limit = 10) url = URI.parse(uri_str) http = Net::HTTP.new(url.host, url.port) - http.open_timeout = 2 + http.open_timeout = 10 http.read_timeout = 30 + http.use_ssl = true response = http.start do |http| puts "getting #{url.path}" http.request_get(url.path) @@ -25,7 +26,7 @@ def fetch(uri_str, limit = 10) end def install_from_github(user, project, ext_name, branch = "master", working_directory = Dir.pwd) - download_link = "http://github.com/#{user}/#{project}/zipball/#{branch}" + download_link = "https://github.com/#{user}/#{project}/zipball/#{branch}" extdir = File.join(working_directory,'extensions') if !File.exists?("#{extdir}/#{ext_name}") diff --git a/examples/ninesixty/bootstrap.rb b/examples/ninesixty/bootstrap.rb index b2b52d70..0a976dfe 100644 --- a/examples/ninesixty/bootstrap.rb +++ b/examples/ninesixty/bootstrap.rb @@ -1,4 +1,4 @@ require File.join(File.dirname(__FILE__), '..', 'downloader') -install_from_github('chriseppstein', 'compass-960-plugin', 'ninesixty') +install_from_github('nextmat', 'compass-960-plugin', 'ninesixty')