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:
commit
c15ae6bfcf
@ -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)
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@ body_id: home
|
|||||||
names. It’s a new way of thinking about stylesheets that must be seen
|
names. It’s 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&server=vimeo.com&show_title=1&show_byline=0&show_portrait=0&color=00ADEF&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=11671458&server=vimeo.com&show_title=1&show_byline=0&show_portrait=0&color=00ADEF&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.
|
||||||
|
@ -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}"
|
||||||
|
29
lib/compass/commands/imports.rb
Normal file
29
lib/compass/commands/imports.rb
Normal 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
|
@ -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
|
Loading…
Reference in New Issue
Block a user