From 84cb455c8713b94b1b8cff4065f9a4d68f69ddf5 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Wed, 12 May 2010 10:00:45 -0700 Subject: [PATCH 1/4] [Docs] Put Lorin's video on the homepage. --- doc-src/content/index.haml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc-src/content/index.haml b/doc-src/content/index.haml index 7e471707..a396507e 100644 --- a/doc-src/content/index.haml +++ b/doc-src/content/index.haml @@ -14,6 +14,8 @@ body_id: home names. It’s a new way of thinking about stylesheets that must be seen in action! +

An introduction to Compass from Lorin Tackett on Vimeo.

+ ## Installing Compass is a tool that runs on the command line. From 211e99c90c5c2510e014c48ec6562f3ad9ebf882 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Wed, 12 May 2010 10:02:03 -0700 Subject: [PATCH 2/4] Every stable release is fine. no need to qualify it. --- lib/compass/version.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/compass/version.rb b/lib/compass/version.rb index 1edc400c..cd0c33db 100644 --- a/lib/compass/version.rb +++ b/lib/compass/version.rb @@ -26,9 +26,6 @@ module Compass @version[:teeny] = @version[:patch] @version[:string] = "#{@version[:major]}.#{@version[:minor]}.#{@version[:patch]}" @version[:string] << ".#{@version[:build]}" if @version[:build] - if !ENV['OFFICIAL'] && r = revision - @version[:string] << ".dev.#{r[0..6]}" - end @version end From cc08b1e5de1195319164393c9810505fdd739b21 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Thu, 13 May 2010 00:25:32 -0700 Subject: [PATCH 3/4] [Command Line] Add a sub command for emitting sass CLI imports --- doc-src/content/CHANGELOG.markdown | 5 +++++ lib/compass/commands.rb | 2 +- lib/compass/commands/imports.rb | 29 +++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 lib/compass/commands/imports.rb diff --git a/doc-src/content/CHANGELOG.markdown b/doc-src/content/CHANGELOG.markdown index 3e4cebe8..ab57d09b 100644 --- a/doc-src/content/CHANGELOG.markdown +++ b/doc-src/content/CHANGELOG.markdown @@ -7,6 +7,11 @@ layout: article COMPASS CHANGELOG ================= +0.10.1 (May 13, 2010) +--------------------- + +* Added a subcommand for emitting sass imports for the sass CLI. + 0.10.0 (May 10, 2010) --------------------- diff --git a/lib/compass/commands.rb b/lib/compass/commands.rb index ce22e296..1d59e60c 100644 --- a/lib/compass/commands.rb +++ b/lib/compass/commands.rb @@ -4,7 +4,7 @@ end require 'compass/commands/registry' %w(base generate_grid_background help list_frameworks project_base - update_project watch_project create_project installer_command + update_project watch_project create_project imports installer_command print_version project_stats stamp_pattern validate_project write_configuration interactive).each do |lib| require "compass/commands/#{lib}" diff --git a/lib/compass/commands/imports.rb b/lib/compass/commands/imports.rb new file mode 100644 index 00000000..24505258 --- /dev/null +++ b/lib/compass/commands/imports.rb @@ -0,0 +1,29 @@ +module Compass + module Commands + class Imports < ProjectBase + attr_accessor :options + register :imports + def initialize(working_path, options) + super + end + + def execute + print ::Compass::Frameworks::ALL.map{|f| + "-I #{f.stylesheets_directory}" + }.join(' ') + end + class << self + def description(command) + "Emit an imports suitable for passing to the sass command-line." + end + def parse!(arguments) + if arguments.join("").strip.size > 0 + raise OptionParser::ParseError, "This command takes no options or arguments." + else + {} + end + end + end + end + end +end From 83a876fbf7bb82ccb453960fe013336fc2e88b78 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Thu, 13 May 2010 00:27:38 -0700 Subject: [PATCH 4/4] [Command Line] Actually register the subcommand for listing frameworks --- doc-src/content/CHANGELOG.markdown | 1 + lib/compass/commands/list_frameworks.rb | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/doc-src/content/CHANGELOG.markdown b/doc-src/content/CHANGELOG.markdown index ab57d09b..ac616cbb 100644 --- a/doc-src/content/CHANGELOG.markdown +++ b/doc-src/content/CHANGELOG.markdown @@ -11,6 +11,7 @@ COMPASS CHANGELOG --------------------- * Added a subcommand for emitting sass imports for the sass CLI. +* Added a subcommand for listing the available frameworks. 0.10.0 (May 10, 2010) --------------------- diff --git a/lib/compass/commands/list_frameworks.rb b/lib/compass/commands/list_frameworks.rb index 4639ee5e..72da07d7 100644 --- a/lib/compass/commands/list_frameworks.rb +++ b/lib/compass/commands/list_frameworks.rb @@ -2,6 +2,7 @@ module Compass module Commands class ListFrameworks < ProjectBase attr_accessor :options + register :frameworks def initialize(working_path, options) super end @@ -11,6 +12,11 @@ module Compass puts framework.name unless framework.name =~ /^_/ end end + class << self + def description(command) + "List the available frameworks" + end + end end end end \ No newline at end of file