chriseppstein-compass 0.3.4 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -109,6 +109,7 @@ frameworks/yui/templates/project/screen.sass
109
109
  lib/compass/commands/base.rb
110
110
  lib/compass/commands/create_project.rb
111
111
  lib/compass/commands/install_rails.rb
112
+ lib/compass/commands/list_frameworks.rb
112
113
  lib/compass/commands/print_version.rb
113
114
  lib/compass/commands/update_project.rb
114
115
  lib/compass/commands/watch_project.rb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.3.5
data/compass.gemspec CHANGED
@@ -1,23 +1,21 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
1
  Gem::Specification.new do |s|
4
2
  s.name = %q{compass}
5
- s.version = "0.3.4"
3
+ s.version = "0.3.6"
6
4
 
7
5
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
6
  s.authors = ["Chris Eppstein"]
9
- s.date = %q{2008-12-17}
7
+ s.date = %q{2009-01-02}
10
8
  s.default_executable = %q{compass}
11
9
  s.description = %q{Sass-Based CSS Meta-Framework. Semantic, Maintainable CSS.}
12
10
  s.email = %q{chris@eppsteins.net}
13
11
  s.executables = ["compass"]
14
12
  s.extra_rdoc_files = ["bin/compass", "lib/compass/commands/base.rb", "lib/compass/commands/create_project.rb", "lib/compass/commands/install_rails.rb", "lib/compass/commands/print_version.rb", "lib/compass/commands/update_project.rb", "lib/compass/commands/watch_project.rb", "lib/compass/core_ext.rb", "lib/compass/exec.rb", "lib/compass/frameworks/blueprint.rb", "lib/compass/frameworks/compass.rb", "lib/compass/frameworks/yui.rb", "lib/compass/frameworks.rb", "lib/compass/merb.rb", "lib/compass/test_case.rb", "lib/compass/validate/COPYRIGHT.html", "lib/compass/validate/css-validator-javadoc.jar", "lib/compass/validate/css-validator.jar", "lib/compass/validate/jigsaw.jar", "lib/compass/validate/JIGSAW_COPYRIGHT", "lib/compass/validate/README.html", "lib/compass/validate/xerces.jar", "lib/compass/validate/XERCES_COPYING.txt", "lib/compass/validate.rb", "lib/compass/validator.rb", "lib/compass/version.rb", "lib/compass.rb", "lib/sass_extensions.rb", "README.markdown"]
15
- s.files = ["bin/compass", "compass.gemspec", "examples/blueprint_default/index.html", "examples/blueprint_default/parts/elements.html", "examples/blueprint_default/parts/forms.html", "examples/blueprint_default/parts/grid.html", "examples/blueprint_default/parts/test-small.jpg", "examples/blueprint_default/parts/test.jpg", "examples/blueprint_default/parts/valid.png", "examples/blueprint_default/stylesheets/ie.sass", "examples/blueprint_default/stylesheets/images/grid.png", "examples/blueprint_default/stylesheets/print.sass", "examples/blueprint_default/stylesheets/screen.sass", "examples/blueprint_plugins/index.html", "examples/blueprint_plugins/parts/fancy_type.html", "examples/blueprint_plugins/parts/test-small.jpg", "examples/blueprint_plugins/parts/test.jpg", "examples/blueprint_plugins/parts/valid.png", "examples/blueprint_plugins/stylesheets/ie.sass", "examples/blueprint_plugins/stylesheets/images/grid.png", "examples/blueprint_plugins/stylesheets/print.sass", "examples/blueprint_plugins/stylesheets/screen.sass", "examples/blueprint_scoped/stylesheets/ie.sass", "examples/blueprint_scoped/stylesheets/print.sass", "examples/blueprint_scoped/stylesheets/screen.sass", "examples/blueprint_scoped_form/stylesheets/ie.sass", "examples/blueprint_scoped_form/stylesheets/print.sass", "examples/blueprint_scoped_form/stylesheets/screen.sass", "examples/blueprint_semantic/index.html", "examples/blueprint_semantic/parts/fancy_type.html", "examples/blueprint_semantic/parts/liquid.html", "examples/blueprint_semantic/parts/test-small.jpg", "examples/blueprint_semantic/parts/test.jpg", "examples/blueprint_semantic/parts/valid.png", "examples/blueprint_semantic/stylesheets/ie.sass", "examples/blueprint_semantic/stylesheets/images/grid.png", "examples/blueprint_semantic/stylesheets/liquid.sass", "examples/blueprint_semantic/stylesheets/print.sass", "examples/blueprint_semantic/stylesheets/screen.sass", "examples/compass/compass.html", "examples/compass/sticky_footer.html.haml", "examples/compass/stylesheets/compass.sass", "examples/compass/stylesheets/images/blue_arrow.gif", "examples/compass/stylesheets/sticky_footer.sass", "examples/compass/stylesheets/utilities.sass", "examples/compass/utilities.html.haml", "examples/yui/divisions.html.haml", "examples/yui/index.html.haml", "examples/yui/stylesheets/screen.sass", "examples/yui/sub_divisions.html.haml", "examples/yui/templates.html.haml", "examples/yui/test.jpg", "examples/yui/typography.html.haml", "frameworks/blueprint/lib/blueprint/constants.rb", "frameworks/blueprint/lib/blueprint/grid_builder.rb", "frameworks/blueprint/stylesheets/_blueprint.sass", "frameworks/blueprint/stylesheets/blueprint/_ie.sass", "frameworks/blueprint/stylesheets/blueprint/_print.sass", "frameworks/blueprint/stylesheets/blueprint/_screen.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_form.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass", "frameworks/blueprint/templates/project/grid.png", "frameworks/blueprint/templates/project/ie.sass", "frameworks/blueprint/templates/project/print.sass", "frameworks/blueprint/templates/project/screen.sass", "frameworks/compass/stylesheets/_compass.sass", "frameworks/compass/stylesheets/compass/_layout.sass", "frameworks/compass/stylesheets/compass/_reset.sass", "frameworks/compass/stylesheets/compass/_utilities.sass", "frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass", "frameworks/compass/stylesheets/compass/utilities/_general.sass", "frameworks/compass/stylesheets/compass/utilities/_links.sass", "frameworks/compass/stylesheets/compass/utilities/_lists.sass", "frameworks/compass/stylesheets/compass/utilities/_print.sass", "frameworks/compass/stylesheets/compass/utilities/_tables.sass", "frameworks/compass/stylesheets/compass/utilities/_text.sass", "frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass", "frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass", "frameworks/compass/stylesheets/compass/utilities/general/_reset.sass", "frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass", "frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass", "frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass", "frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass", "frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass", "frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass", "frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass", "frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass", "frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass", "frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass", "frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass", "frameworks/compass/templates/project/grid.png", "frameworks/compass/templates/project/ie.sass", "frameworks/compass/templates/project/print.sass", "frameworks/compass/templates/project/screen.sass", "frameworks/yui/COPYRIGHT", "frameworks/yui/stylesheets/_yui.sass", "frameworks/yui/stylesheets/yui/modules/_base.sass", "frameworks/yui/stylesheets/yui/modules/_fonts.sass", "frameworks/yui/stylesheets/yui/modules/_grids.sass", "frameworks/yui/templates/project/screen.sass", "lib/compass/commands/base.rb", "lib/compass/commands/create_project.rb", "lib/compass/commands/install_rails.rb", "lib/compass/commands/print_version.rb", "lib/compass/commands/update_project.rb", "lib/compass/commands/watch_project.rb", "lib/compass/core_ext.rb", "lib/compass/exec.rb", "lib/compass/frameworks/blueprint.rb", "lib/compass/frameworks/compass.rb", "lib/compass/frameworks/yui.rb", "lib/compass/frameworks.rb", "lib/compass/merb.rb", "lib/compass/test_case.rb", "lib/compass/validate/COPYRIGHT.html", "lib/compass/validate/css-validator-javadoc.jar", "lib/compass/validate/css-validator.jar", "lib/compass/validate/jigsaw.jar", "lib/compass/validate/JIGSAW_COPYRIGHT", "lib/compass/validate/README.html", "lib/compass/validate/xerces.jar", "lib/compass/validate/XERCES_COPYING.txt", "lib/compass/validate.rb", "lib/compass/validator.rb", "lib/compass/version.rb", "lib/compass.rb", "lib/sass_extensions.rb", "Manifest", "Rakefile", "README.markdown", "test/compass_test.rb", "test/fixtures/stylesheets/blueprint/css/typography.css", "test/fixtures/stylesheets/blueprint/sass/ie.sass", "test/fixtures/stylesheets/blueprint/sass/print.sass", "test/fixtures/stylesheets/blueprint/sass/screen.sass", "test/fixtures/stylesheets/blueprint/sass/typography.sass", "test/fixtures/stylesheets/yui/css/mixins.css", "test/fixtures/stylesheets/yui/sass/base.sass", "test/fixtures/stylesheets/yui/sass/fonts.sass", "test/fixtures/stylesheets/yui/sass/grids.sass", "test/fixtures/stylesheets/yui/sass/mixins.sass", "test/sass_extensions_test.rb", "test/test_helper.rb", "VERSION"]
13
+ s.files = ["bin/compass", "compass.gemspec", "examples/blueprint_default/index.html", "examples/blueprint_default/parts/elements.html", "examples/blueprint_default/parts/forms.html", "examples/blueprint_default/parts/grid.html", "examples/blueprint_default/parts/test-small.jpg", "examples/blueprint_default/parts/test.jpg", "examples/blueprint_default/parts/valid.png", "examples/blueprint_default/stylesheets/ie.sass", "examples/blueprint_default/stylesheets/images/grid.png", "examples/blueprint_default/stylesheets/print.sass", "examples/blueprint_default/stylesheets/screen.sass", "examples/blueprint_plugins/index.html", "examples/blueprint_plugins/parts/fancy_type.html", "examples/blueprint_plugins/parts/test-small.jpg", "examples/blueprint_plugins/parts/test.jpg", "examples/blueprint_plugins/parts/valid.png", "examples/blueprint_plugins/stylesheets/ie.sass", "examples/blueprint_plugins/stylesheets/images/grid.png", "examples/blueprint_plugins/stylesheets/print.sass", "examples/blueprint_plugins/stylesheets/screen.sass", "examples/blueprint_scoped/stylesheets/ie.sass", "examples/blueprint_scoped/stylesheets/print.sass", "examples/blueprint_scoped/stylesheets/screen.sass", "examples/blueprint_scoped_form/stylesheets/ie.sass", "examples/blueprint_scoped_form/stylesheets/print.sass", "examples/blueprint_scoped_form/stylesheets/screen.sass", "examples/blueprint_semantic/index.html", "examples/blueprint_semantic/parts/fancy_type.html", "examples/blueprint_semantic/parts/liquid.html", "examples/blueprint_semantic/parts/test-small.jpg", "examples/blueprint_semantic/parts/test.jpg", "examples/blueprint_semantic/parts/valid.png", "examples/blueprint_semantic/stylesheets/ie.sass", "examples/blueprint_semantic/stylesheets/images/grid.png", "examples/blueprint_semantic/stylesheets/liquid.sass", "examples/blueprint_semantic/stylesheets/print.sass", "examples/blueprint_semantic/stylesheets/screen.sass", "examples/compass/compass.html", "examples/compass/sticky_footer.html.haml", "examples/compass/stylesheets/compass.sass", "examples/compass/stylesheets/images/blue_arrow.gif", "examples/compass/stylesheets/sticky_footer.sass", "examples/compass/stylesheets/utilities.sass", "examples/compass/utilities.html.haml", "examples/yui/divisions.html.haml", "examples/yui/index.html.haml", "examples/yui/stylesheets/screen.sass", "examples/yui/sub_divisions.html.haml", "examples/yui/templates.html.haml", "examples/yui/test.jpg", "examples/yui/typography.html.haml", "frameworks/blueprint/lib/blueprint/constants.rb", "frameworks/blueprint/lib/blueprint/grid_builder.rb", "frameworks/blueprint/stylesheets/_blueprint.sass", "frameworks/blueprint/stylesheets/blueprint/_ie.sass", "frameworks/blueprint/stylesheets/blueprint/_print.sass", "frameworks/blueprint/stylesheets/blueprint/_screen.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_form.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass", "frameworks/blueprint/templates/project/grid.png", "frameworks/blueprint/templates/project/ie.sass", "frameworks/blueprint/templates/project/print.sass", "frameworks/blueprint/templates/project/screen.sass", "frameworks/compass/stylesheets/_compass.sass", "frameworks/compass/stylesheets/compass/_layout.sass", "frameworks/compass/stylesheets/compass/_reset.sass", "frameworks/compass/stylesheets/compass/_utilities.sass", "frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass", "frameworks/compass/stylesheets/compass/utilities/_general.sass", "frameworks/compass/stylesheets/compass/utilities/_links.sass", "frameworks/compass/stylesheets/compass/utilities/_lists.sass", "frameworks/compass/stylesheets/compass/utilities/_print.sass", "frameworks/compass/stylesheets/compass/utilities/_tables.sass", "frameworks/compass/stylesheets/compass/utilities/_text.sass", "frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass", "frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass", "frameworks/compass/stylesheets/compass/utilities/general/_reset.sass", "frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass", "frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass", "frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass", "frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass", "frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass", "frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass", "frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass", "frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass", "frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass", "frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass", "frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass", "frameworks/compass/templates/project/grid.png", "frameworks/compass/templates/project/ie.sass", "frameworks/compass/templates/project/print.sass", "frameworks/compass/templates/project/screen.sass", "frameworks/yui/COPYRIGHT", "frameworks/yui/stylesheets/_yui.sass", "frameworks/yui/stylesheets/yui/modules/_base.sass", "frameworks/yui/stylesheets/yui/modules/_fonts.sass", "frameworks/yui/stylesheets/yui/modules/_grids.sass", "frameworks/yui/templates/project/screen.sass", "lib/compass/commands/base.rb", "lib/compass/commands/create_project.rb", "lib/compass/commands/install_rails.rb", "lib/compass/commands/print_version.rb", "lib/compass/commands/update_project.rb", "lib/compass/commands/watch_project.rb", "lib/compass/core_ext.rb", "lib/compass/exec.rb", "lib/compass/frameworks/blueprint.rb", "lib/compass/frameworks/compass.rb", "lib/compass/frameworks/yui.rb", "lib/compass/frameworks.rb", "lib/compass/merb.rb", "lib/compass/test_case.rb", "lib/compass/validate/COPYRIGHT.html", "lib/compass/validate/css-validator-javadoc.jar", "lib/compass/validate/css-validator.jar", "lib/compass/validate/jigsaw.jar", "lib/compass/validate/JIGSAW_COPYRIGHT", "lib/compass/validate/README.html", "lib/compass/validate/xerces.jar", "lib/compass/validate/XERCES_COPYING.txt", "lib/compass/validate.rb", "lib/compass/validator.rb", "lib/compass/version.rb", "lib/compass.rb", "lib/sass_extensions.rb", "Manifest", "Rakefile", "README.markdown", "test/compass_test.rb", "test/fixtures/stylesheets/blueprint/css/typography.css", "test/fixtures/stylesheets/blueprint/sass/ie.sass", "test/fixtures/stylesheets/blueprint/sass/print.sass", "test/fixtures/stylesheets/blueprint/sass/screen.sass", "test/fixtures/stylesheets/blueprint/sass/typography.sass", "test/fixtures/stylesheets/compass/css/layout.css", "test/fixtures/stylesheets/compass/css/print.css", "test/fixtures/stylesheets/compass/css/reset.css", "test/fixtures/stylesheets/compass/css/utilities.css", "test/fixtures/stylesheets/compass/sass/layout.sass", "test/fixtures/stylesheets/compass/sass/print.sass", "test/fixtures/stylesheets/compass/sass/reset.sass", "test/fixtures/stylesheets/compass/sass/utilities.sass", "test/fixtures/stylesheets/yui/css/mixins.css", "test/fixtures/stylesheets/yui/sass/base.sass", "test/fixtures/stylesheets/yui/sass/fonts.sass", "test/fixtures/stylesheets/yui/sass/grids.sass", "test/fixtures/stylesheets/yui/sass/mixins.sass", "test/sass_extensions_test.rb", "test/test_helper.rb", "VERSION"]
16
14
  s.homepage = %q{http://github.com/chriseppstein/compass}
17
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Compass", "--main", "README.markdown"]
18
16
  s.require_paths = ["lib"]
19
17
  s.rubyforge_project = %q{compass}
20
- s.rubygems_version = %q{1.3.1}
18
+ s.rubygems_version = %q{1.2.0}
21
19
  s.summary = %q{Sass-Based CSS Meta-Framework.}
22
20
  s.test_files = ["test/compass_test.rb", "test/sass_extensions_test.rb", "test/test_helper.rb"]
23
21
 
@@ -25,7 +23,7 @@ Gem::Specification.new do |s|
25
23
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
26
24
  s.specification_version = 2
27
25
 
28
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
26
+ if current_version >= 3 then
29
27
  s.add_runtime_dependency(%q<haml>, [">= 0"])
30
28
  s.add_development_dependency(%q<echoe>, [">= 0"])
31
29
  else
@@ -67,7 +67,7 @@ module Compass
67
67
 
68
68
  # returns the path to the templates directory and caches it
69
69
  def templates_directory
70
- @templates_directory ||= File.expand_path(File.join(File.dirname(__FILE__), separate("../../../frameworks/#{options[:framework]}/templates")))
70
+ @templates_directory ||= Compass::Frameworks[options[:framework]].templates_directory
71
71
  end
72
72
 
73
73
  # Write paths like we're on unix and then fix it
@@ -17,11 +17,17 @@ module Compass
17
17
  # all commands must implement perform
18
18
  def perform
19
19
  directory nil, options
20
- directory 'stylesheets', options.merge(:force => true)
21
- directory 'src', options.merge(:force => true)
22
- template 'project/screen.sass', 'src/screen.sass', options
23
- template 'project/print.sass', 'src/print.sass', options
24
- template 'project/ie.sass', 'src/ie.sass', options
20
+ src_dir = options[:src_dir] || "src"
21
+ css_dir = options[:css_dir] || "stylesheets"
22
+ directory src_dir, options.merge(:force => true)
23
+ directory css_dir, options.merge(:force => true)
24
+ project_dir = File.join(templates_directory, "project")
25
+ templates = Dir.chdir(project_dir) do
26
+ Dir.glob("*")
27
+ end
28
+ templates.each do |t|
29
+ template "project/#{t}", "#{src_dir}/#{t}", options
30
+ end
25
31
  UpdateProject.new(working_directory, options).perform
26
32
  end
27
33
 
@@ -11,7 +11,7 @@ module Compass
11
11
  Base::ACTIONS << :compile
12
12
  Base::ACTIONS << :overwrite
13
13
 
14
- attr_accessor :project_directory, :project_name, :options
14
+ attr_accessor :project_directory, :project_name, :options, :project_src_subdirectory, :project_css_subdirectory
15
15
 
16
16
  def initialize(working_directory, options = {})
17
17
  super(working_directory, options)
@@ -36,9 +36,9 @@ module Compass
36
36
  end
37
37
 
38
38
  def perform
39
- Dir.glob(separate("#{project_directory}/src/**/[^_]*.sass")).each do |sass_file|
40
- stylesheet_name = sass_file[("#{project_directory}/src/".length)..-6]
41
- compile "src/#{stylesheet_name}.sass", "stylesheets/#{stylesheet_name}.css", options
39
+ Dir.glob(separate("#{project_src_directory}/**/[^_]*.sass")).each do |sass_file|
40
+ stylesheet_name = sass_file[("#{project_src_directory}/".length)..-6]
41
+ compile "#{project_src_subdirectory}/#{stylesheet_name}.sass", "#{project_css_subdirectory}/#{stylesheet_name}.css", options
42
42
  end
43
43
  end
44
44
 
@@ -81,9 +81,19 @@ module Compass
81
81
  @sass_load_paths ||= [project_src_directory] + Compass::Frameworks::ALL.map{|f| f.stylesheets_directory}
82
82
  end
83
83
 
84
+ # The subdirectory where the sass source is kept.
85
+ def project_src_subdirectory
86
+ @project_src_subdirectory ||= options[:src_dir] || "src"
87
+ end
88
+
89
+ # The subdirectory where the css output is kept.
90
+ def project_css_subdirectory
91
+ @project_css_subdirectory ||= options[:css_dir] || "stylesheets"
92
+ end
93
+
84
94
  # The directory where the project source files are located.
85
95
  def project_src_directory
86
- @project_src_directory ||= separate("#{project_directory}/src")
96
+ @project_src_directory ||= separate("#{project_directory}/#{project_src_subdirectory}")
87
97
  end
88
98
 
89
99
  end
@@ -28,12 +28,12 @@ module Compass
28
28
  end
29
29
  end
30
30
  def most_recent_update_time
31
- Dir.glob(separate("#{project_directory}/src/**/*.sass")).map {|sass_file| File.stat(sass_file).mtime}.max
31
+ Dir.glob(separate("#{project_src_directory}/**/*.sass")).map {|sass_file| File.stat(sass_file).mtime}.max
32
32
  end
33
33
  def should_update?
34
34
  t = most_recent_update_time
35
35
  if t > last_update_time
36
- file = Dir.glob(separate("#{project_directory}/src/**/*.sass")).detect {|sass_file| File.stat(sass_file).mtime >= t}
36
+ file = Dir.glob(separate("#{project_src_directory}/**/*.sass")).detect {|sass_file| File.stat(sass_file).mtime >= t}
37
37
  [file, t]
38
38
  end
39
39
  end
data/lib/compass/exec.rb CHANGED
@@ -96,7 +96,19 @@ END
96
96
  self.options[:command] = :watch_project
97
97
  end
98
98
 
99
- opts.on('-f FRAMEWORK', '--framework FRAMEWORK', [:compass, :blueprint], 'Set up a new project using the selected framework. Legal values: compass (default), blueprint') do |framework|
99
+ opts.on('--source SRC_DIR', "The source directory (where you keep your sass stylesheets).") do |src_dir|
100
+ self.options[:src_dir] = src_dir
101
+ end
102
+
103
+ opts.on('--target CSS_DIR', "The target directory (where you keep your css stylesheets).") do |css_dir|
104
+ self.options[:css_dir] = css_dir
105
+ end
106
+
107
+ opts.on('--list-frameworks', "List compass frameworks available to use.") do
108
+ self.options[:command] = :list_frameworks
109
+ end
110
+
111
+ opts.on('-f FRAMEWORK', '--framework FRAMEWORK', 'Set up a new project using the selected framework. Legal values: compass (default), blueprint') do |framework|
100
112
  self.options[:framework] = framework
101
113
  end
102
114
 
@@ -107,6 +119,10 @@ END
107
119
  opts.on('-s STYLE', '--output-style STYLE', [:nested, :expanded, :compact, :compressed], 'Select a CSS output mode (nested, expanded, compact, compressed)') do |style|
108
120
  self.options[:style] = style
109
121
  end
122
+
123
+ opts.on('-r LIBRARY', '--require LIBRARY', "Require LIBRARY before running commands. This is used to access compass plugins.") do |library|
124
+ require library
125
+ end
110
126
 
111
127
  opts.on('--rails', "Install compass into your Ruby on Rails project found in the current directory.") do
112
128
  self.options[:command] = :install_rails
@@ -1,2 +1,2 @@
1
1
  blueprint_dir = File.join(Compass.base_directory, 'frameworks', 'blueprint')
2
- Compass::Frameworks.register('compass', blueprint_dir)
2
+ Compass::Frameworks.register('blueprint', blueprint_dir)
@@ -3,22 +3,22 @@ module Compass
3
3
  ALL = []
4
4
  class Framework
5
5
  attr_accessor :name
6
- attr_accessor :path
7
- def initialize(name, path)
8
- self.name = name
9
- self.path = path
10
- end
11
- def template_directory
12
- File.join(self.path, 'templates')
13
- end
14
- def stylesheets_directory
15
- File.join(self.path, 'stylesheets')
6
+ attr_accessor :templates_directory, :stylesheets_directory
7
+ def initialize(name, *arguments)
8
+ options = arguments.last.is_a?(Hash) ? arguments.pop : {}
9
+ path = options[:path] || arguments.shift
10
+ @name = name
11
+ @templates_directory = options[:templates_directory] || File.join(path, 'templates')
12
+ @stylesheets_directory = options[:stylesheets_directory] || File.join(path, 'stylesheets')
16
13
  end
17
14
  end
18
- def register(name, path)
19
- ALL << Framework.new(name, path)
15
+ def register(name, *arguments)
16
+ ALL << Framework.new(name, *arguments)
17
+ end
18
+ def [](name)
19
+ ALL.detect{|f| f.name == name}
20
20
  end
21
- module_function :register
21
+ module_function :register, :[]
22
22
  end
23
23
  end
24
24
 
@@ -0,0 +1,14 @@
1
+
2
+ html, body {
3
+ height: 100%; }
4
+
5
+ #layout {
6
+ min-height: 100%;
7
+ margin-bottom: -72px; }
8
+ #layout #layout_footer {
9
+ height: 72px; }
10
+
11
+ #footer {
12
+ clear: both;
13
+ position: relative;
14
+ height: 72px; }
@@ -0,0 +1,19 @@
1
+
2
+ .noprint,
3
+ .no-print {
4
+ display: none; }
5
+
6
+ address.print-only, blockquote.print-only, center.print-only, dir.print-only, div.print-only, dd.print-only, dl.print-only, dt.print-only,
7
+ fieldset.print-only, form.print-only, frameset.print-only, h1.print-only, h2.print-only, h3.print-only, h4.print-only, h5.print-only, h6.print-only, hr.print-only,
8
+ isindex.print-only, li.print-only, menu.print-only, noframes.print-only, noscript.print-only, ol.print-only, p.print-only, pre.print-only,
9
+ table.print-only, tbody.print-only, td.print-only, tfoot.print-only, th.print-only, thead.print-only, tr.print-only, ul.print-only {
10
+ display: block; }
11
+
12
+ a.print-only, abbr.print-only, acronym.print-only, b.print-only, basefont.print-only, bdo.print-only, big.print-only, br.print-only, cite.print-only,
13
+ code.print-only, dfn.print-only, em.print-only, font.print-only, i.print-only, img.print-only, input.print-only, kbd.print-only, label.print-only, q.print-only, s.print-only,
14
+ samp.print-only, select.print-only, small.print-only, span.print-only, strike.print-only, strong.print-only, sub.print-only, sup.print-only,
15
+ textarea.print-only, tt.print-only, u.print-only, var.print-only {
16
+ display: inline; }
17
+
18
+ .print-only {
19
+ display: none; }
@@ -0,0 +1,69 @@
1
+
2
+ html, body {
3
+ margin: 0;
4
+ padding: 0;
5
+ border: 0;
6
+ font-weight: inherit;
7
+ font-style: inherit;
8
+ font-size: 100%;
9
+ font-family: inherit;
10
+ vertical-align: baseline; }
11
+
12
+ div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
13
+ pre, a, abbr, acronym, address, code, del, dfn, em, img,
14
+ dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr {
15
+ margin: 0;
16
+ padding: 0;
17
+ border: 0;
18
+ font-weight: inherit;
19
+ font-style: inherit;
20
+ font-size: 100%;
21
+ font-family: inherit;
22
+ vertical-align: baseline; }
23
+
24
+ body {
25
+ line-height: 1.5; }
26
+
27
+ blockquote, q {
28
+ margin: 0;
29
+ padding: 0;
30
+ border: 0;
31
+ font-weight: inherit;
32
+ font-style: inherit;
33
+ font-size: 100%;
34
+ font-family: inherit;
35
+ vertical-align: baseline;
36
+ quotes: "" ""; }
37
+ blockquote:before,
38
+ blockquote:after, q:before,
39
+ q:after {
40
+ content: ""; }
41
+
42
+ th, td, caption {
43
+ margin: 0;
44
+ padding: 0;
45
+ border: 0;
46
+ font-weight: inherit;
47
+ font-style: inherit;
48
+ font-size: 100%;
49
+ font-family: inherit;
50
+ vertical-align: baseline;
51
+ text-align: left;
52
+ font-weight: normal;
53
+ vertical-align: middle; }
54
+
55
+ table {
56
+ margin: 0;
57
+ padding: 0;
58
+ border: 0;
59
+ font-weight: inherit;
60
+ font-style: inherit;
61
+ font-size: 100%;
62
+ font-family: inherit;
63
+ vertical-align: baseline;
64
+ border-collapse: separate;
65
+ border-spacing: 0;
66
+ vertical-align: middle; }
67
+
68
+ a img {
69
+ border: none; }
@@ -0,0 +1,21 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+ .clearfix {
17
+ overflow: auto;
18
+ overflow: -moz-scrollbars-none;
19
+ display: inline-block; }
20
+ .clearfix {
21
+ display: block; }
@@ -0,0 +1,3 @@
1
+ @import compass/layout.sass
2
+
3
+ +sticky-footer(72px, "#layout", "#layout_footer", "#footer")
@@ -0,0 +1,5 @@
1
+ @import compass/utilities/print.sass
2
+
3
+ +print-utilities
4
+
5
+ +print-utilities("screen")
@@ -0,0 +1 @@
1
+ @import compass/reset.sass
@@ -0,0 +1,5 @@
1
+ @import compass/utilities.sass
2
+
3
+
4
+ .clearfix
5
+ +clearfix
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chriseppstein-compass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Eppstein
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-17 00:00:00 -08:00
12
+ date: 2009-01-02 00:00:00 -08:00
13
13
  default_executable: compass
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -211,6 +211,14 @@ files:
211
211
  - test/fixtures/stylesheets/blueprint/sass/print.sass
212
212
  - test/fixtures/stylesheets/blueprint/sass/screen.sass
213
213
  - test/fixtures/stylesheets/blueprint/sass/typography.sass
214
+ - test/fixtures/stylesheets/compass/css/layout.css
215
+ - test/fixtures/stylesheets/compass/css/print.css
216
+ - test/fixtures/stylesheets/compass/css/reset.css
217
+ - test/fixtures/stylesheets/compass/css/utilities.css
218
+ - test/fixtures/stylesheets/compass/sass/layout.sass
219
+ - test/fixtures/stylesheets/compass/sass/print.sass
220
+ - test/fixtures/stylesheets/compass/sass/reset.sass
221
+ - test/fixtures/stylesheets/compass/sass/utilities.sass
214
222
  - test/fixtures/stylesheets/yui/css/mixins.css
215
223
  - test/fixtures/stylesheets/yui/sass/base.sass
216
224
  - test/fixtures/stylesheets/yui/sass/fonts.sass