From 694c04d0e116602ab2a22c4325f85326650d61af Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 27 Nov 2009 11:41:58 -0800 Subject: [PATCH] Make sure we have the external dependencies for building the susy and compass examples. --- examples/compass/bootstrap.rb | 3 +++ examples/downloader.rb | 4 ++-- examples/susy/bootstrap.rb | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 examples/compass/bootstrap.rb diff --git a/examples/compass/bootstrap.rb b/examples/compass/bootstrap.rb new file mode 100644 index 00000000..fcc0c7c4 --- /dev/null +++ b/examples/compass/bootstrap.rb @@ -0,0 +1,3 @@ +require File.join(File.dirname(__FILE__), '..', 'downloader') + +install_from_github('chriseppstein', 'yui-compass-plugin', 'yui') \ No newline at end of file diff --git a/examples/downloader.rb b/examples/downloader.rb index eef35e4e..1bc37f9f 100644 --- a/examples/downloader.rb +++ b/examples/downloader.rb @@ -24,8 +24,8 @@ def fetch(uri_str, limit = 10) end end -def install_from_github(user, project, ext_name, working_directory = Dir.pwd) - download_link = "http://github.com/#{user}/#{project}/zipball/master" +def install_from_github(user, project, ext_name, branch = "master", working_directory = Dir.pwd) + download_link = "http://github.com/#{user}/#{project}/zipball/#{branch}" extdir = File.join(working_directory,'extensions') if !File.exists?(extdir) diff --git a/examples/susy/bootstrap.rb b/examples/susy/bootstrap.rb index c7b7d181..4689ec3f 100644 --- a/examples/susy/bootstrap.rb +++ b/examples/susy/bootstrap.rb @@ -1,3 +1,3 @@ require File.join(File.dirname(__FILE__), '..', 'downloader') -install_from_github('ericam', 'compass-susy-plugin', 'susy') \ No newline at end of file +install_from_github('ericam', 'compass-susy-plugin', 'susy', 'edge')