Merge branch 'stable'

* stable:
  [Command Line] Actually register the subcommand for listing frameworks
  [Command Line] Add a sub command for emitting sass CLI imports
  Every stable release is fine. no need to qualify it.
  [Docs] Put Lorin's video on the homepage.

Conflicts:
	doc-src/content/CHANGELOG.markdown
	lib/compass/version.rb
This commit is contained in:
Chris Eppstein 2010-05-13 01:14:12 -07:00
commit c15ae6bfcf
5 changed files with 44 additions and 1 deletions

View File

@ -12,6 +12,12 @@ COMPASS CHANGELOG
* Deprecated imports and APIs from v0.10 have been removed. * Deprecated imports and APIs from v0.10 have been removed.
0.10.1 (May 13, 2010)
---------------------
* 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) 0.10.0 (May 10, 2010)
--------------------- ---------------------

View File

@ -14,6 +14,8 @@ body_id: home
names. Its a new way of thinking about stylesheets that must be seen names. Its a new way of thinking about stylesheets that must be seen
in action! in action!
<object width="700" height="438"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=11671458&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=11671458&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="700" height="438"></embed></object><p><a href="http://vimeo.com/11671458">An introduction to Compass</a> from <a href="http://vimeo.com/ltackett">Lorin Tackett</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
## Installing ## Installing
Compass is a tool that runs on the command line. Compass is a tool that runs on the command line.

View File

@ -4,7 +4,7 @@ end
require 'compass/commands/registry' require 'compass/commands/registry'
%w(base generate_grid_background help list_frameworks project_base %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 print_version project_stats stamp_pattern validate_project
write_configuration interactive).each do |lib| write_configuration interactive).each do |lib|
require "compass/commands/#{lib}" require "compass/commands/#{lib}"

View File

@ -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

View File

@ -2,6 +2,7 @@ module Compass
module Commands module Commands
class ListFrameworks < ProjectBase class ListFrameworks < ProjectBase
attr_accessor :options attr_accessor :options
register :frameworks
def initialize(working_path, options) def initialize(working_path, options)
super super
end end
@ -11,6 +12,11 @@ module Compass
puts framework.name unless framework.name =~ /^_/ puts framework.name unless framework.name =~ /^_/
end end
end end
class << self
def description(command)
"List the available frameworks"
end
end
end end
end end
end end