chriseppstein-compass 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/CHANGELOG.markdown +14 -0
  2. data/Manifest +11 -4
  3. data/Rakefile +2 -2
  4. data/VERSION +1 -1
  5. data/compass.gemspec +12 -10
  6. data/examples/blueprint_default/config.rb +8 -0
  7. data/examples/blueprint_default/{src/images → images}/grid.png +0 -0
  8. data/examples/blueprint_plugins/{src/images → images}/grid.png +0 -0
  9. data/examples/blueprint_semantic/config.rb +8 -0
  10. data/examples/blueprint_semantic/{src/images → images}/grid.png +0 -0
  11. data/examples/blueprint_semantic/src/screen.sass +2 -0
  12. data/examples/compass/config.rb +8 -0
  13. data/examples/compass/{src/images → images}/blue_arrow.gif +0 -0
  14. data/examples/compass/src/utilities.sass +1 -1
  15. data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +1 -1
  16. data/lib/compass.rb +1 -2
  17. data/lib/compass/actions.rb +1 -1
  18. data/lib/compass/commands/project_base.rb +0 -2
  19. data/lib/compass/commands/update_project.rb +6 -4
  20. data/lib/compass/commands/watch_project.rb +0 -2
  21. data/lib/compass/commands/write_configuration.rb +4 -0
  22. data/lib/compass/configuration.rb +20 -11
  23. data/lib/compass/dependencies.rb +9 -0
  24. data/lib/compass/exec.rb +1 -6
  25. data/lib/compass/installers/base.rb +1 -1
  26. data/lib/compass/logger.rb +8 -0
  27. data/lib/compass/test_case.rb +1 -2
  28. data/lib/sass_extensions.rb +0 -1
  29. data/test/command_line_test.rb +10 -1
  30. data/test/compass_test.rb +48 -67
  31. data/test/configuration_test.rb +8 -1
  32. data/test/fixtures/stylesheets/blueprint/config.rb +9 -0
  33. data/test/fixtures/stylesheets/compass/config.rb +9 -0
  34. data/test/fixtures/stylesheets/yui/config.rb +9 -0
  35. data/test/sass_extensions_test.rb +7 -1
  36. data/test/test_helper.rb +1 -3
  37. metadata +17 -9
data/CHANGELOG.markdown CHANGED
@@ -1,6 +1,20 @@
1
1
  COMPASS CHANGELOG
2
2
  =================
3
3
 
4
+ 0.6.6
5
+ -----
6
+
7
+ The Haml project now releases a gem called haml-edge that is built from the haml master branch instead of stable. Compass now depends on this gem and will continue to do so until haml 2.2 is released. This should reduce the number of installation problems that have been encountered by new users.
8
+
9
+ ### Command Line
10
+
11
+ * Fixed a bug that had broken the --write-configuration (-c) option.
12
+ * The --force option will now force recompilation. Useful when the stylesheets don't appear to need a recompile according to the file timestamps.
13
+
14
+ ### Unit tests
15
+
16
+ * Some unit tests were cleaned up for clarity and to better take advantage of the compass project management facilities.
17
+
4
18
  0.6.5
5
19
  -----
6
20
 
data/Manifest CHANGED
@@ -1,6 +1,8 @@
1
1
  bin/compass
2
2
  CHANGELOG.markdown
3
3
  compass.gemspec
4
+ examples/blueprint_default/config.rb
5
+ examples/blueprint_default/images/grid.png
4
6
  examples/blueprint_default/index.html
5
7
  examples/blueprint_default/parts/elements.html
6
8
  examples/blueprint_default/parts/forms.html
@@ -9,13 +11,13 @@ examples/blueprint_default/parts/test-small.jpg
9
11
  examples/blueprint_default/parts/test.jpg
10
12
  examples/blueprint_default/parts/valid.png
11
13
  examples/blueprint_default/src/ie.sass
12
- examples/blueprint_default/src/images/grid.png
13
14
  examples/blueprint_default/src/print.sass
14
15
  examples/blueprint_default/src/screen.sass
15
16
  examples/blueprint_plugins/config.rb
16
17
  examples/blueprint_plugins/images/buttons/cross.png
17
18
  examples/blueprint_plugins/images/buttons/key.png
18
19
  examples/blueprint_plugins/images/buttons/tick.png
20
+ examples/blueprint_plugins/images/grid.png
19
21
  examples/blueprint_plugins/images/link_icons/doc.png
20
22
  examples/blueprint_plugins/images/link_icons/email.png
21
23
  examples/blueprint_plugins/images/link_icons/external.png
@@ -34,7 +36,6 @@ examples/blueprint_plugins/plugins/link_icons.html
34
36
  examples/blueprint_plugins/plugins/rtl.html
35
37
  examples/blueprint_plugins/src/buttons.sass
36
38
  examples/blueprint_plugins/src/ie.sass
37
- examples/blueprint_plugins/src/images/grid.png
38
39
  examples/blueprint_plugins/src/link_icons.sass
39
40
  examples/blueprint_plugins/src/print.sass
40
41
  examples/blueprint_plugins/src/rtl_screen.sass
@@ -45,6 +46,8 @@ examples/blueprint_scoped/src/screen.sass
45
46
  examples/blueprint_scoped_form/src/ie.sass
46
47
  examples/blueprint_scoped_form/src/print.sass
47
48
  examples/blueprint_scoped_form/src/screen.sass
49
+ examples/blueprint_semantic/config.rb
50
+ examples/blueprint_semantic/images/grid.png
48
51
  examples/blueprint_semantic/index.html
49
52
  examples/blueprint_semantic/parts/fancy_type.html
50
53
  examples/blueprint_semantic/parts/liquid.html
@@ -52,13 +55,13 @@ examples/blueprint_semantic/parts/test-small.jpg
52
55
  examples/blueprint_semantic/parts/test.jpg
53
56
  examples/blueprint_semantic/parts/valid.png
54
57
  examples/blueprint_semantic/src/ie.sass
55
- examples/blueprint_semantic/src/images/grid.png
56
58
  examples/blueprint_semantic/src/liquid.sass
57
59
  examples/blueprint_semantic/src/print.sass
58
60
  examples/blueprint_semantic/src/screen.sass
59
61
  examples/compass/compass.html
62
+ examples/compass/config.rb
63
+ examples/compass/images/blue_arrow.gif
60
64
  examples/compass/src/compass.sass
61
- examples/compass/src/images/blue_arrow.gif
62
65
  examples/compass/src/sticky_footer.sass
63
66
  examples/compass/src/utilities.sass
64
67
  examples/compass/sticky_footer.html.haml
@@ -172,6 +175,7 @@ lib/compass/commands/write_configuration.rb
172
175
  lib/compass/compiler.rb
173
176
  lib/compass/configuration.rb
174
177
  lib/compass/core_ext.rb
178
+ lib/compass/dependencies.rb
175
179
  lib/compass/errors.rb
176
180
  lib/compass/exec.rb
177
181
  lib/compass/frameworks.rb
@@ -202,11 +206,13 @@ README.markdown
202
206
  test/command_line_test.rb
203
207
  test/compass_test.rb
204
208
  test/configuration_test.rb
209
+ test/fixtures/stylesheets/blueprint/config.rb
205
210
  test/fixtures/stylesheets/blueprint/css/typography.css
206
211
  test/fixtures/stylesheets/blueprint/sass/ie.sass
207
212
  test/fixtures/stylesheets/blueprint/sass/print.sass
208
213
  test/fixtures/stylesheets/blueprint/sass/screen.sass
209
214
  test/fixtures/stylesheets/blueprint/sass/typography.sass
215
+ test/fixtures/stylesheets/compass/config.rb
210
216
  test/fixtures/stylesheets/compass/css/layout.css
211
217
  test/fixtures/stylesheets/compass/css/print.css
212
218
  test/fixtures/stylesheets/compass/css/reset.css
@@ -215,6 +221,7 @@ test/fixtures/stylesheets/compass/sass/layout.sass
215
221
  test/fixtures/stylesheets/compass/sass/print.sass
216
222
  test/fixtures/stylesheets/compass/sass/reset.sass
217
223
  test/fixtures/stylesheets/compass/sass/utilities.sass
224
+ test/fixtures/stylesheets/yui/config.rb
218
225
  test/fixtures/stylesheets/yui/css/mixins.css
219
226
  test/fixtures/stylesheets/yui/sass/base.sass
220
227
  test/fixtures/stylesheets/yui/sass/fonts.sass
data/Rakefile CHANGED
@@ -44,7 +44,7 @@ begin
44
44
  p.url = "http://github.com/chriseppstein/compass"
45
45
  p.author = ['Chris Eppstein']
46
46
  p.email = "chris@eppsteins.net"
47
- p.dependencies = ["haml"]
47
+ p.dependencies = ["haml-edge"]
48
48
  p.has_rdoc = false
49
49
  end
50
50
 
@@ -78,7 +78,7 @@ task :examples do
78
78
  output.close
79
79
  end
80
80
  Dir.chdir example do
81
- Compass::Exec::Compass.new([]).run!
81
+ Compass::Exec::Compass.new(["--force"]).run!
82
82
  end
83
83
  end
84
84
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.5
1
+ 0.6.6
data/compass.gemspec CHANGED
@@ -1,37 +1,39 @@
1
+ # -*- encoding: utf-8 -*-
2
+
1
3
  Gem::Specification.new do |s|
2
4
  s.name = %q{compass}
3
- s.version = "0.6.5"
5
+ s.version = "0.6.6"
4
6
 
5
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
8
  s.authors = ["Chris Eppstein"]
7
- s.date = %q{2009-04-29}
9
+ s.date = %q{2009-05-08}
8
10
  s.default_executable = %q{compass}
9
11
  s.description = %q{Sass-Based CSS Meta-Framework. Semantic, Maintainable CSS.}
10
12
  s.email = %q{chris@eppsteins.net}
11
13
  s.executables = ["compass"]
12
- s.extra_rdoc_files = ["bin/compass", "CHANGELOG.markdown", "lib/compass/actions.rb", "lib/compass/commands/base.rb", "lib/compass/commands/create_project.rb", "lib/compass/commands/generate_grid_background.rb", "lib/compass/commands/installer_command.rb", "lib/compass/commands/list_frameworks.rb", "lib/compass/commands/print_version.rb", "lib/compass/commands/project_base.rb", "lib/compass/commands/stamp_pattern.rb", "lib/compass/commands/update_project.rb", "lib/compass/commands/validate_project.rb", "lib/compass/commands/watch_project.rb", "lib/compass/commands/write_configuration.rb", "lib/compass/compiler.rb", "lib/compass/configuration.rb", "lib/compass/core_ext.rb", "lib/compass/errors.rb", "lib/compass/exec.rb", "lib/compass/frameworks.rb", "lib/compass/grid_builder.rb", "lib/compass/installers/base.rb", "lib/compass/installers/manifest.rb", "lib/compass/installers/rails.rb", "lib/compass/installers/stand_alone.rb", "lib/compass/installers.rb", "lib/compass/logger.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/validator.rb", "lib/compass/version.rb", "lib/compass.rb", "lib/sass_extensions.rb", "README.markdown"]
13
- s.files = ["bin/compass", "CHANGELOG.markdown", "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/src/ie.sass", "examples/blueprint_default/src/images/grid.png", "examples/blueprint_default/src/print.sass", "examples/blueprint_default/src/screen.sass", "examples/blueprint_plugins/config.rb", "examples/blueprint_plugins/images/buttons/cross.png", "examples/blueprint_plugins/images/buttons/key.png", "examples/blueprint_plugins/images/buttons/tick.png", "examples/blueprint_plugins/images/link_icons/doc.png", "examples/blueprint_plugins/images/link_icons/email.png", "examples/blueprint_plugins/images/link_icons/external.png", "examples/blueprint_plugins/images/link_icons/feed.png", "examples/blueprint_plugins/images/link_icons/im.png", "examples/blueprint_plugins/images/link_icons/pdf.png", "examples/blueprint_plugins/images/link_icons/visited.png", "examples/blueprint_plugins/images/link_icons/xls.png", "examples/blueprint_plugins/images/test-small.jpg", "examples/blueprint_plugins/images/test.jpg", "examples/blueprint_plugins/images/valid.png", "examples/blueprint_plugins/index.html", "examples/blueprint_plugins/plugins/buttons.html", "examples/blueprint_plugins/plugins/fancy_type.html", "examples/blueprint_plugins/plugins/link_icons.html", "examples/blueprint_plugins/plugins/rtl.html", "examples/blueprint_plugins/src/buttons.sass", "examples/blueprint_plugins/src/ie.sass", "examples/blueprint_plugins/src/images/grid.png", "examples/blueprint_plugins/src/link_icons.sass", "examples/blueprint_plugins/src/print.sass", "examples/blueprint_plugins/src/rtl_screen.sass", "examples/blueprint_plugins/src/screen.sass", "examples/blueprint_scoped/src/ie.sass", "examples/blueprint_scoped/src/print.sass", "examples/blueprint_scoped/src/screen.sass", "examples/blueprint_scoped_form/src/ie.sass", "examples/blueprint_scoped_form/src/print.sass", "examples/blueprint_scoped_form/src/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/src/ie.sass", "examples/blueprint_semantic/src/images/grid.png", "examples/blueprint_semantic/src/liquid.sass", "examples/blueprint_semantic/src/print.sass", "examples/blueprint_semantic/src/screen.sass", "examples/compass/compass.html", "examples/compass/src/compass.sass", "examples/compass/src/images/blue_arrow.gif", "examples/compass/src/sticky_footer.sass", "examples/compass/src/utilities.sass", "examples/compass/sticky_footer.html.haml", "examples/compass/utilities.html.haml", "examples/logo/logo.html", "examples/logo/src/ie.sass", "examples/logo/src/print.sass", "examples/logo/src/screen.sass", "examples/yui/divisions.html.haml", "examples/yui/index.html.haml", "examples/yui/src/screen.sass", "examples/yui/sub_divisions.html.haml", "examples/yui/templates.html.haml", "examples/yui/test.jpg", "examples/yui/typography.html.haml", "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/_buttons.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/_link_icons.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_rtl.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/buttons/buttons/cross.png", "frameworks/blueprint/templates/buttons/buttons/key.png", "frameworks/blueprint/templates/buttons/buttons/tick.png", "frameworks/blueprint/templates/buttons/buttons.sass", "frameworks/blueprint/templates/buttons/manifest.rb", "frameworks/blueprint/templates/link_icons/link_icons/doc.png", "frameworks/blueprint/templates/link_icons/link_icons/email.png", "frameworks/blueprint/templates/link_icons/link_icons/external.png", "frameworks/blueprint/templates/link_icons/link_icons/feed.png", "frameworks/blueprint/templates/link_icons/link_icons/im.png", "frameworks/blueprint/templates/link_icons/link_icons/pdf.png", "frameworks/blueprint/templates/link_icons/link_icons/visited.png", "frameworks/blueprint/templates/link_icons/link_icons/xls.png", "frameworks/blueprint/templates/link_icons/link_icons.sass", "frameworks/blueprint/templates/link_icons/manifest.rb", "frameworks/blueprint/templates/project/grid.png", "frameworks/blueprint/templates/project/ie.sass", "frameworks/blueprint/templates/project/manifest.rb", "frameworks/blueprint/templates/project/print.sass", "frameworks/blueprint/templates/project/screen.sass", "frameworks/blueprint.rb", "frameworks/compass/stylesheets/_compass.sass", "frameworks/compass/stylesheets/compass/_layout.sass", "frameworks/compass/stylesheets/compass/_misc.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/_float.sass", "frameworks/compass/stylesheets/compass/utilities/general/_hacks.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/tables/_borders.sass", "frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass", "frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass", "frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass", "frameworks/compass/templates/project/ie.sass", "frameworks/compass/templates/project/manifest.rb", "frameworks/compass/templates/project/print.sass", "frameworks/compass/templates/project/screen.sass", "frameworks/compass.rb", "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/stylesheets/yui/modules/_reset.sass", "frameworks/yui/templates/project/manifest.rb", "frameworks/yui/templates/project/screen.sass", "frameworks/yui.rb", "lib/compass/actions.rb", "lib/compass/commands/base.rb", "lib/compass/commands/create_project.rb", "lib/compass/commands/generate_grid_background.rb", "lib/compass/commands/installer_command.rb", "lib/compass/commands/list_frameworks.rb", "lib/compass/commands/print_version.rb", "lib/compass/commands/project_base.rb", "lib/compass/commands/stamp_pattern.rb", "lib/compass/commands/update_project.rb", "lib/compass/commands/validate_project.rb", "lib/compass/commands/watch_project.rb", "lib/compass/commands/write_configuration.rb", "lib/compass/compiler.rb", "lib/compass/configuration.rb", "lib/compass/core_ext.rb", "lib/compass/errors.rb", "lib/compass/exec.rb", "lib/compass/frameworks.rb", "lib/compass/grid_builder.rb", "lib/compass/installers/base.rb", "lib/compass/installers/manifest.rb", "lib/compass/installers/rails.rb", "lib/compass/installers/stand_alone.rb", "lib/compass/installers.rb", "lib/compass/logger.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/validator.rb", "lib/compass/version.rb", "lib/compass.rb", "lib/sass_extensions.rb", "Manifest", "Rakefile", "README.markdown", "test/command_line_test.rb", "test/compass_test.rb", "test/configuration_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"]
14
+ s.extra_rdoc_files = ["bin/compass", "CHANGELOG.markdown", "lib/compass/actions.rb", "lib/compass/commands/base.rb", "lib/compass/commands/create_project.rb", "lib/compass/commands/generate_grid_background.rb", "lib/compass/commands/installer_command.rb", "lib/compass/commands/list_frameworks.rb", "lib/compass/commands/print_version.rb", "lib/compass/commands/project_base.rb", "lib/compass/commands/stamp_pattern.rb", "lib/compass/commands/update_project.rb", "lib/compass/commands/validate_project.rb", "lib/compass/commands/watch_project.rb", "lib/compass/commands/write_configuration.rb", "lib/compass/compiler.rb", "lib/compass/configuration.rb", "lib/compass/core_ext.rb", "lib/compass/dependencies.rb", "lib/compass/errors.rb", "lib/compass/exec.rb", "lib/compass/frameworks.rb", "lib/compass/grid_builder.rb", "lib/compass/installers/base.rb", "lib/compass/installers/manifest.rb", "lib/compass/installers/rails.rb", "lib/compass/installers/stand_alone.rb", "lib/compass/installers.rb", "lib/compass/logger.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/validator.rb", "lib/compass/version.rb", "lib/compass.rb", "lib/sass_extensions.rb", "README.markdown"]
15
+ s.files = ["bin/compass", "CHANGELOG.markdown", "compass.gemspec", "examples/blueprint_default/config.rb", "examples/blueprint_default/images/grid.png", "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/src/ie.sass", "examples/blueprint_default/src/print.sass", "examples/blueprint_default/src/screen.sass", "examples/blueprint_plugins/config.rb", "examples/blueprint_plugins/images/buttons/cross.png", "examples/blueprint_plugins/images/buttons/key.png", "examples/blueprint_plugins/images/buttons/tick.png", "examples/blueprint_plugins/images/grid.png", "examples/blueprint_plugins/images/link_icons/doc.png", "examples/blueprint_plugins/images/link_icons/email.png", "examples/blueprint_plugins/images/link_icons/external.png", "examples/blueprint_plugins/images/link_icons/feed.png", "examples/blueprint_plugins/images/link_icons/im.png", "examples/blueprint_plugins/images/link_icons/pdf.png", "examples/blueprint_plugins/images/link_icons/visited.png", "examples/blueprint_plugins/images/link_icons/xls.png", "examples/blueprint_plugins/images/test-small.jpg", "examples/blueprint_plugins/images/test.jpg", "examples/blueprint_plugins/images/valid.png", "examples/blueprint_plugins/index.html", "examples/blueprint_plugins/plugins/buttons.html", "examples/blueprint_plugins/plugins/fancy_type.html", "examples/blueprint_plugins/plugins/link_icons.html", "examples/blueprint_plugins/plugins/rtl.html", "examples/blueprint_plugins/src/buttons.sass", "examples/blueprint_plugins/src/ie.sass", "examples/blueprint_plugins/src/link_icons.sass", "examples/blueprint_plugins/src/print.sass", "examples/blueprint_plugins/src/rtl_screen.sass", "examples/blueprint_plugins/src/screen.sass", "examples/blueprint_scoped/src/ie.sass", "examples/blueprint_scoped/src/print.sass", "examples/blueprint_scoped/src/screen.sass", "examples/blueprint_scoped_form/src/ie.sass", "examples/blueprint_scoped_form/src/print.sass", "examples/blueprint_scoped_form/src/screen.sass", "examples/blueprint_semantic/config.rb", "examples/blueprint_semantic/images/grid.png", "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/src/ie.sass", "examples/blueprint_semantic/src/liquid.sass", "examples/blueprint_semantic/src/print.sass", "examples/blueprint_semantic/src/screen.sass", "examples/compass/compass.html", "examples/compass/config.rb", "examples/compass/images/blue_arrow.gif", "examples/compass/src/compass.sass", "examples/compass/src/sticky_footer.sass", "examples/compass/src/utilities.sass", "examples/compass/sticky_footer.html.haml", "examples/compass/utilities.html.haml", "examples/logo/logo.html", "examples/logo/src/ie.sass", "examples/logo/src/print.sass", "examples/logo/src/screen.sass", "examples/yui/divisions.html.haml", "examples/yui/index.html.haml", "examples/yui/src/screen.sass", "examples/yui/sub_divisions.html.haml", "examples/yui/templates.html.haml", "examples/yui/test.jpg", "examples/yui/typography.html.haml", "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/_buttons.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/_link_icons.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_rtl.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/buttons/buttons/cross.png", "frameworks/blueprint/templates/buttons/buttons/key.png", "frameworks/blueprint/templates/buttons/buttons/tick.png", "frameworks/blueprint/templates/buttons/buttons.sass", "frameworks/blueprint/templates/buttons/manifest.rb", "frameworks/blueprint/templates/link_icons/link_icons/doc.png", "frameworks/blueprint/templates/link_icons/link_icons/email.png", "frameworks/blueprint/templates/link_icons/link_icons/external.png", "frameworks/blueprint/templates/link_icons/link_icons/feed.png", "frameworks/blueprint/templates/link_icons/link_icons/im.png", "frameworks/blueprint/templates/link_icons/link_icons/pdf.png", "frameworks/blueprint/templates/link_icons/link_icons/visited.png", "frameworks/blueprint/templates/link_icons/link_icons/xls.png", "frameworks/blueprint/templates/link_icons/link_icons.sass", "frameworks/blueprint/templates/link_icons/manifest.rb", "frameworks/blueprint/templates/project/grid.png", "frameworks/blueprint/templates/project/ie.sass", "frameworks/blueprint/templates/project/manifest.rb", "frameworks/blueprint/templates/project/print.sass", "frameworks/blueprint/templates/project/screen.sass", "frameworks/blueprint.rb", "frameworks/compass/stylesheets/_compass.sass", "frameworks/compass/stylesheets/compass/_layout.sass", "frameworks/compass/stylesheets/compass/_misc.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/_float.sass", "frameworks/compass/stylesheets/compass/utilities/general/_hacks.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/tables/_borders.sass", "frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass", "frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass", "frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass", "frameworks/compass/templates/project/ie.sass", "frameworks/compass/templates/project/manifest.rb", "frameworks/compass/templates/project/print.sass", "frameworks/compass/templates/project/screen.sass", "frameworks/compass.rb", "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/stylesheets/yui/modules/_reset.sass", "frameworks/yui/templates/project/manifest.rb", "frameworks/yui/templates/project/screen.sass", "frameworks/yui.rb", "lib/compass/actions.rb", "lib/compass/commands/base.rb", "lib/compass/commands/create_project.rb", "lib/compass/commands/generate_grid_background.rb", "lib/compass/commands/installer_command.rb", "lib/compass/commands/list_frameworks.rb", "lib/compass/commands/print_version.rb", "lib/compass/commands/project_base.rb", "lib/compass/commands/stamp_pattern.rb", "lib/compass/commands/update_project.rb", "lib/compass/commands/validate_project.rb", "lib/compass/commands/watch_project.rb", "lib/compass/commands/write_configuration.rb", "lib/compass/compiler.rb", "lib/compass/configuration.rb", "lib/compass/core_ext.rb", "lib/compass/dependencies.rb", "lib/compass/errors.rb", "lib/compass/exec.rb", "lib/compass/frameworks.rb", "lib/compass/grid_builder.rb", "lib/compass/installers/base.rb", "lib/compass/installers/manifest.rb", "lib/compass/installers/rails.rb", "lib/compass/installers/stand_alone.rb", "lib/compass/installers.rb", "lib/compass/logger.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/validator.rb", "lib/compass/version.rb", "lib/compass.rb", "lib/sass_extensions.rb", "Manifest", "Rakefile", "README.markdown", "test/command_line_test.rb", "test/compass_test.rb", "test/configuration_test.rb", "test/fixtures/stylesheets/blueprint/config.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/config.rb", "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/config.rb", "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"]
14
16
  s.homepage = %q{http://github.com/chriseppstein/compass}
15
17
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Compass", "--main", "README.markdown"]
16
18
  s.require_paths = ["lib"]
17
19
  s.rubyforge_project = %q{compass}
18
- s.rubygems_version = %q{1.2.0}
20
+ s.rubygems_version = %q{1.3.3}
19
21
  s.summary = %q{Sass-Based CSS Meta-Framework.}
20
22
  s.test_files = ["test/command_line_test.rb", "test/compass_test.rb", "test/configuration_test.rb", "test/sass_extensions_test.rb", "test/test_helper.rb"]
21
23
 
22
24
  if s.respond_to? :specification_version then
23
25
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
- s.specification_version = 2
26
+ s.specification_version = 3
25
27
 
26
- if current_version >= 3 then
27
- s.add_runtime_dependency(%q<haml>, [">= 0"])
28
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
29
+ s.add_runtime_dependency(%q<haml-edge>, [">= 0"])
28
30
  s.add_development_dependency(%q<echoe>, [">= 0"])
29
31
  else
30
- s.add_dependency(%q<haml>, [">= 0"])
32
+ s.add_dependency(%q<haml-edge>, [">= 0"])
31
33
  s.add_dependency(%q<echoe>, [">= 0"])
32
34
  end
33
35
  else
34
- s.add_dependency(%q<haml>, [">= 0"])
36
+ s.add_dependency(%q<haml-edge>, [">= 0"])
35
37
  s.add_dependency(%q<echoe>, [">= 0"])
36
38
  end
37
39
  end
@@ -0,0 +1,8 @@
1
+ # Require any additional compass plugins here.
2
+ project_type = :stand_alone
3
+ css_dir = "stylesheets"
4
+ sass_dir = "src"
5
+ images_dir = "images"
6
+ output_style = :compact
7
+ # To enable relative image paths using the images_url() function:
8
+ http_images_path = :relative
@@ -0,0 +1,8 @@
1
+ # Require any additional compass plugins here.
2
+ project_type = :stand_alone
3
+ css_dir = "stylesheets"
4
+ sass_dir = "src"
5
+ images_dir = "images"
6
+ output_style = :compact
7
+ # To enable relative image paths using the images_url() function:
8
+ http_images_path = :relative
@@ -9,6 +9,8 @@ body.blueprint
9
9
  +blueprint-scaffolding-body
10
10
  .container
11
11
  +container
12
+ .showgrid
13
+ +showgrid
12
14
  hr
13
15
  +colruler
14
16
  hr.space
@@ -0,0 +1,8 @@
1
+ # Require any additional compass plugins here.
2
+ project_type = :stand_alone
3
+ css_dir = "stylesheets"
4
+ sass_dir = "src"
5
+ images_dir = "images"
6
+ output_style = :compact
7
+ # To enable relative image paths using the images_url() function:
8
+ http_images_path = :relative
@@ -56,7 +56,7 @@ h2
56
56
  ul.comma-delimited
57
57
  +comma-delimited-list
58
58
  ol.pretty
59
- +pretty-bullets("images/blue_arrow.gif", 5px, 7px, 24px)
59
+ +pretty-bullets("blue_arrow.gif", 5px, 7px, 18px)
60
60
 
61
61
  #tables
62
62
  +column(16)
@@ -12,7 +12,7 @@
12
12
  // * Christian Metts [mintchaos.com]
13
13
  // * Khoi Vinh [subtraction.com]
14
14
  // Read more about using a grid here:
15
- // * subtraction.com/archives/2007/0318_oh_yeeaahh.php
15
+ // * http://www.subtraction.com/2007/03/18/oh-yeeaahh
16
16
  // --------------------------------------------------------------
17
17
 
18
18
  @import compass/utilities/general/float.sass
data/lib/compass.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'rubygems'
2
- require 'sass'
1
+ require File.join(File.dirname(__FILE__), 'compass', 'dependencies')
3
2
 
4
3
  def assert_sass_version(obj)
5
4
  unless obj.respond_to?(:version) && obj.version[:major] == 2 && obj.version[:minor] >= 1
@@ -57,7 +57,7 @@ module Compass
57
57
 
58
58
  # Compile one Sass file
59
59
  def compile(sass_filename, css_filename, options)
60
- if Sass::Plugin.exact_stylesheet_needs_update?(css_filename, sass_filename)
60
+ if options[:force] || Sass::Plugin.exact_stylesheet_needs_update?(css_filename, sass_filename)
61
61
  logger.record :compile, basename(sass_filename) unless options[:quiet]
62
62
  engine = ::Sass::Engine.new(open(sass_filename).read,
63
63
  :filename => sass_filename,
@@ -1,5 +1,3 @@
1
- require 'rubygems'
2
- require 'sass'
3
1
  require 'fileutils'
4
2
  require 'pathname'
5
3
  require File.join(File.dirname(__FILE__), 'base')
@@ -11,10 +11,12 @@ module Compass
11
11
  end
12
12
 
13
13
  def perform
14
- Compass::Compiler.new(working_path,
15
- projectize(Compass.configuration.sass_dir),
16
- projectize(Compass.configuration.css_dir),
17
- Compass.sass_engine_options.merge(:quiet => options[:quiet])).run
14
+ compiler = Compass::Compiler.new(working_path,
15
+ projectize(Compass.configuration.sass_dir),
16
+ projectize(Compass.configuration.css_dir),
17
+ Compass.sass_engine_options.merge(:quiet => options[:quiet],
18
+ :force => options[:force]))
19
+ compiler.run
18
20
  end
19
21
 
20
22
  end
@@ -1,5 +1,3 @@
1
- require 'rubygems'
2
- require 'sass'
3
1
  require 'fileutils'
4
2
  require 'pathname'
5
3
  require File.join(File.dirname(__FILE__), 'base')
@@ -15,6 +15,10 @@ module Compass
15
15
  installer.write_configuration_files
16
16
  end
17
17
 
18
+ def installer_args
19
+ [nil, project_directory, options]
20
+ end
21
+
18
22
  end
19
23
  end
20
24
  end
@@ -105,6 +105,18 @@ module Compass
105
105
  environment == :development
106
106
  end
107
107
 
108
+ def sass_path
109
+ if project_path && sass_dir
110
+ File.join(project_path, sass_dir)
111
+ end
112
+ end
113
+
114
+ def css_path
115
+ if project_path && css_dir
116
+ File.join(project_path, css_dir)
117
+ end
118
+ end
119
+
108
120
  def serialize
109
121
  contents = ""
110
122
  required_libraries.each do |lib|
@@ -130,16 +142,15 @@ module Compass
130
142
  %Q(#{prop} = #{value.inspect}\n)
131
143
  end
132
144
 
145
+ def to_compiler_arguments(additional_options)
146
+ [project_path, sass_path, css_path, to_sass_engine_options.merge(additional_options)]
147
+ end
148
+
133
149
  def to_sass_plugin_options
134
- if project_path && sass_dir && css_dir
135
- proj_sass_path = File.join(project_path, sass_dir)
136
- proj_css_path = File.join(project_path, css_dir)
137
- locations = {proj_sass_path => proj_css_path}
138
- else
139
- locations = {}
140
- end
150
+ locations = {}
151
+ locations[sass_path] = css_path if sass_path && css_path
141
152
  Compass::Frameworks::ALL.each do |framework|
142
- locations[framework.stylesheets_directory] = proj_css_path || css_dir || "."
153
+ locations[framework.stylesheets_directory] = css_path || css_dir || "."
143
154
  end
144
155
  plugin_opts = {:template_location => locations}
145
156
  plugin_opts[:style] = output_style if output_style
@@ -156,9 +167,7 @@ module Compass
156
167
 
157
168
  def sass_load_paths
158
169
  load_paths = []
159
- if project_path && sass_dir
160
- load_paths << File.join(project_path, sass_dir)
161
- end
170
+ load_paths << sass_path if sass_path
162
171
  Compass::Frameworks::ALL.each do |framework|
163
172
  load_paths << framework.stylesheets_directory
164
173
  end
@@ -0,0 +1,9 @@
1
+ unless defined?(Sass)
2
+ require 'rubygems'
3
+ begin
4
+ gem 'haml-edge','>= 2.1'
5
+ rescue Exception
6
+ $stderr.puts "WARNING: haml-edge gem not found. Trying to find haml on the load path."
7
+ end
8
+ require 'sass'
9
+ end
data/lib/compass/exec.rb CHANGED
@@ -1,6 +1,5 @@
1
+ require File.join(Compass.lib_directory, 'compass', 'dependencies')
1
2
  require 'optparse'
2
- require 'rubygems'
3
- require 'haml'
4
3
  require File.join(Compass.lib_directory, 'compass', 'logger')
5
4
  require File.join(Compass.lib_directory, 'compass', 'errors')
6
5
  require File.join(Compass.lib_directory, 'compass', 'actions')
@@ -22,10 +21,6 @@ module Compass
22
21
  end
23
22
 
24
23
  def get_line(exception)
25
- # SyntaxErrors have weird line reporting
26
- # when there's trailing whitespace,
27
- # which there is for Haml documents.
28
- return exception.message.scan(/:(\d+)/)[0] if exception.is_a?(::Haml::SyntaxError)
29
24
  exception.backtrace[0].scan(/:(\d+)/)[0]
30
25
  end
31
26
  module_function :report_error, :get_file, :get_line
@@ -14,7 +14,7 @@ module Compass
14
14
  @target_path = target_path
15
15
  @working_path = Dir.getwd
16
16
  @options = options
17
- @manifest = Manifest.new(manifest_file)
17
+ @manifest = Manifest.new(manifest_file) if template_path
18
18
  self.logger = options[:logger]
19
19
  end
20
20
 
@@ -31,4 +31,12 @@ module Compass
31
31
  @max_action_length ||= actions.inject(0){|memo, a| [memo, a.to_s.length].max}
32
32
  end
33
33
  end
34
+
35
+ class NullLogger
36
+ def record(*args)
37
+ end
38
+
39
+ def log(msg)
40
+ end
41
+ end
34
42
  end
@@ -24,8 +24,7 @@ module Compass
24
24
  input = open(stylesheet)
25
25
  template = input.read()
26
26
  input.close()
27
- @last_compile = ::Sass::Engine.new(template,
28
- ::Sass::Plugin.engine_options(:style => :compact, :filename => stylesheet)).render
27
+ @last_compile = ::Sass::Engine.new(template, ::Sass::Plugin.engine_options(:filename => stylesheet)).render
29
28
  yield @last_compile if block_given?
30
29
  end
31
30
 
@@ -1,4 +1,3 @@
1
- require 'sass'
2
1
  require 'sass/plugin'
3
2
 
4
3
  module Sass::Script::Functions
@@ -55,7 +55,11 @@ FRAMEWORKS
55
55
  within_tmp_directory do
56
56
  compass "basic"
57
57
  Dir.chdir "basic" do
58
+ # basic update with timestamp caching
58
59
  compass
60
+ assert_action_performed :unchanged, "src/screen.sass"
61
+ # basic update with force option set
62
+ compass "--force"
59
63
  assert_action_performed :compile, "src/screen.sass"
60
64
  assert_action_performed :identical, "stylesheets/screen.css"
61
65
  end
@@ -126,11 +130,16 @@ FRAMEWORKS
126
130
  end
127
131
 
128
132
  def assert_action_performed(action, path)
133
+ actions_found = []
129
134
  @last_result.split("\n").each do |line|
130
135
  line = line.split
131
136
  return if line.first == action.to_s && line.last == path
137
+ actions_found << line.first if line.last == path
132
138
  end
133
- fail "Action #{action.inspect} was not performed on: #{path}"
139
+ message = "Action #{action.inspect} was not performed on: #{path}."
140
+ message += "The following actions were performed: #{actions_found.join(", ")}" if actions_found.any?
141
+ puts @last_result
142
+ fail message
134
143
  end
135
144
 
136
145
  def within_tmp_directory(dir = "tmp")
data/test/compass_test.rb CHANGED
@@ -5,71 +5,67 @@ require 'compass'
5
5
  class CompassTest < Test::Unit::TestCase
6
6
  include Compass::TestCaseHelper
7
7
  def setup
8
- setup_fixtures :blueprint, :yui, :empty
9
- @original_options = Sass::Plugin.options
10
- end
11
-
12
- def setup_fixtures(*folders)
13
- folders.each do |folder|
14
- FileUtils.mkdir_p stylesheet_fixtures(folder)
15
- mkdir_clean tempfile_loc(folder)
16
- end
8
+ Compass.configuration.reset!
17
9
  end
18
10
 
19
11
  def teardown
20
- teardown_fixtures :blueprint, :yui, :empty
21
- Sass::Plugin.options = @original_options
12
+ teardown_fixtures :blueprint, :yui, :empty, :compass
22
13
  end
23
14
 
24
- def teardown_fixtures(*folders)
25
- folders.each do |folder|
26
- FileUtils.rm_rf tempfile_loc(folder)
15
+ def teardown_fixtures(*project_names)
16
+ project_names.each do |project_name|
17
+ FileUtils.rm_rf tempfile_path(project_name)
27
18
  end
28
19
  end
29
20
 
30
21
  def test_blueprint_generates_no_files
31
- with_templates(:empty) do
32
- Dir.new(tempfile_loc(:empty)).each do |f|
22
+ within_project(:empty) do |proj|
23
+ return unless File.exists?(proj.css_path)
24
+ Dir.new(proj.css_path).each do |f|
33
25
  fail "This file should not have been generated: #{f}" unless f == "." || f == ".."
34
26
  end
35
27
  end
36
28
  end
37
29
 
38
30
  def test_blueprint
39
- with_templates(:blueprint) do
40
- each_css_file(tempfile_loc(:blueprint)) do |css_file|
31
+ within_project(:blueprint) do |proj|
32
+ each_css_file(proj.css_path) do |css_file|
41
33
  assert_no_errors css_file, :blueprint
42
34
  end
43
35
  assert_renders_correctly :typography
44
36
  end
45
37
  end
38
+
46
39
  def test_yui
47
- with_templates('yui') do
48
- each_css_file(tempfile_loc('yui')) do |css_file|
40
+ within_project('yui') do |proj|
41
+ each_css_file(proj.css_path) do |css_file|
49
42
  assert_no_errors css_file, 'yui'
50
43
  end
51
44
  assert_renders_correctly :mixins
52
45
  end
53
46
  end
47
+
54
48
  def test_compass
55
- with_templates('compass') do
56
- each_css_file(tempfile_loc('compass')) do |css_file|
49
+ within_project('compass') do |proj|
50
+ each_css_file(proj.css_path) do |css_file|
57
51
  assert_no_errors css_file, 'compass'
58
52
  end
59
53
  assert_renders_correctly :reset, :layout, :utilities
60
54
  end
61
55
  end
62
- private
63
- def assert_no_errors(css_file, folder)
64
- file = css_file[(tempfile_loc(folder).size+1)..-1]
65
- msg = "Syntax Error found in #{file}. Results saved into #{save_loc(folder)}/#{file}"
56
+
57
+ private
58
+ def assert_no_errors(css_file, project_name)
59
+ file = css_file[(tempfile_path(project_name).size+1)..-1]
60
+ msg = "Syntax Error found in #{file}. Results saved into #{save_path(project_name)}/#{file}"
66
61
  assert_equal 0, open(css_file).readlines.grep(/Sass::SyntaxError/).size, msg
67
62
  end
63
+
68
64
  def assert_renders_correctly(*arguments)
69
65
  options = arguments.last.is_a?(Hash) ? arguments.pop : {}
70
66
  for name in arguments
71
- actual_result_file = "#{tempfile_loc(@current_template_folder)}/#{name}.css"
72
- expected_result_file = "#{result_loc(@current_template_folder)}/#{name}.css"
67
+ actual_result_file = "#{tempfile_path(@current_project)}/#{name}.css"
68
+ expected_result_file = "#{result_path(@current_project)}/#{name}.css"
73
69
  actual_lines = File.read(actual_result_file).split("\n")
74
70
  expected_lines = File.read(expected_result_file).split("\n")
75
71
  expected_lines.zip(actual_lines).each_with_index do |pair, line|
@@ -81,27 +77,17 @@ class CompassTest < Test::Unit::TestCase
81
77
  end
82
78
  end
83
79
  end
84
- def with_templates(folder)
85
- old_template_loc = Sass::Plugin.options[:template_location]
86
- Sass::Plugin.options[:template_location] = if old_template_loc.is_a?(Hash)
87
- old_template_loc.dup
88
- else
89
- Hash.new
90
- end
91
- @current_template_folder = folder
92
- begin
93
- Sass::Plugin.options[:template_location][template_loc(folder)] = tempfile_loc(folder)
94
- Compass::Frameworks::ALL.each do |framework|
95
- Sass::Plugin.options[:template_location][framework.stylesheets_directory] = tempfile_loc(folder)
96
- end
97
- Sass::Plugin.update_stylesheets
98
- yield
99
- ensure
100
- @current_template_folder = nil
101
- Sass::Plugin.options[:template_location] = old_template_loc
102
- end
80
+
81
+ def within_project(project_name)
82
+ @current_project = project_name
83
+ Compass.configuration.parse(configuration_file(project_name))
84
+ Compass.configuration.project_path = project_path(project_name)
85
+ args = Compass.configuration.to_compiler_arguments(:logger => Compass::NullLogger.new)
86
+ compiler = Compass::Compiler.new *args
87
+ compiler.run
88
+ yield Compass.configuration
103
89
  rescue
104
- save_output(folder)
90
+ save_output(project_name)
105
91
  raise
106
92
  end
107
93
 
@@ -112,37 +98,32 @@ class CompassTest < Test::Unit::TestCase
112
98
  end
113
99
 
114
100
  def save_output(dir)
115
- FileUtils.rm_rf(save_loc(dir))
116
- FileUtils.cp_r(tempfile_loc(dir), save_loc(dir))
101
+ FileUtils.rm_rf(save_path(dir))
102
+ FileUtils.cp_r(tempfile_path(dir), save_path(dir)) if File.exists?(tempfile_path(dir))
117
103
  end
118
104
 
119
- def mkdir_clean(dir)
120
- begin
121
- FileUtils.mkdir dir
122
- rescue Errno::EEXIST
123
- FileUtils.rm_r dir
124
- FileUtils.mkdir dir
125
- end
105
+ def project_path(project_name)
106
+ absolutize("fixtures/stylesheets/#{project_name}")
126
107
  end
127
108
 
128
- def stylesheet_fixtures(folder)
129
- absolutize("fixtures/stylesheets/#{folder}")
109
+ def configuration_file(project_name)
110
+ File.join(project_path(project_name), "config.rb")
130
111
  end
131
112
 
132
- def tempfile_loc(folder)
133
- "#{stylesheet_fixtures(folder)}/tmp"
113
+ def tempfile_path(project_name)
114
+ File.join(project_path(project_name), "tmp")
134
115
  end
135
116
 
136
- def template_loc(folder)
137
- "#{stylesheet_fixtures(folder)}/sass"
117
+ def template_path(project_name)
118
+ File.join(project_path(project_name), "sass")
138
119
  end
139
120
 
140
- def result_loc(folder)
141
- "#{stylesheet_fixtures(folder)}/css"
121
+ def result_path(project_name)
122
+ File.join(project_path(project_name), "css")
142
123
  end
143
124
 
144
- def save_loc(folder)
145
- "#{stylesheet_fixtures(folder)}/saved"
125
+ def save_path(project_name)
126
+ File.join(project_path(project_name), "saved")
146
127
  end
147
128
 
148
129
  end
@@ -2,18 +2,25 @@ require File.dirname(__FILE__)+'/test_helper'
2
2
  require 'compass'
3
3
 
4
4
  class ConfigurationTest < Test::Unit::TestCase
5
+
6
+ def setup
7
+ Compass.configuration.reset!
8
+ end
9
+
5
10
  def test_parse_and_serialize
6
11
  contents = <<-CONFIG
7
12
  require 'compass'
8
- require 'sass'
9
13
  # Require any additional compass plugins here.
10
14
 
15
+ project_type = :stand_alone
11
16
  css_dir = "css"
12
17
  sass_dir = "sass"
13
18
  images_dir = "img"
14
19
  javascripts_dir = "js"
20
+ output_style = :nested
15
21
  # To enable relative image paths using the images_url() function:
16
22
  # http_images_path = :relative
23
+ http_images_path = "/images"
17
24
  CONFIG
18
25
 
19
26
  Compass.configuration.parse_string(contents, "test_parse")
@@ -0,0 +1,9 @@
1
+ # Require any additional compass plugins here.
2
+ project_type = :stand_alone
3
+ css_dir = "tmp"
4
+ sass_dir = "sass"
5
+ images_dir = "images"
6
+ output_style = :nested
7
+ # To enable relative image paths using the images_url() function:
8
+ # http_images_path = :relative
9
+ http_images_path = "/images"
@@ -0,0 +1,9 @@
1
+ # Require any additional compass plugins here.
2
+ project_type = :stand_alone
3
+ css_dir = "tmp"
4
+ sass_dir = "sass"
5
+ images_dir = "images"
6
+ output_style = :nested
7
+ # To enable relative image paths using the images_url() function:
8
+ # http_images_path = :relative
9
+ http_images_path = "/images"
@@ -0,0 +1,9 @@
1
+ # Require any additional compass plugins here.
2
+ project_type = :stand_alone
3
+ css_dir = "tmp"
4
+ sass_dir = "sass"
5
+ images_dir = "images"
6
+ output_style = :nested
7
+ # To enable relative image paths using the images_url() function:
8
+ # http_images_path = :relative
9
+ http_images_path = "/images"
@@ -20,7 +20,13 @@ class SassExtensionsTest < Test::Unit::TestCase
20
20
  def test_third_argument_expansion
21
21
  assert_equal "a b e, a b f, a c e, a c f, a d e, a d f", nest("a", "b, c, d", "e, f")
22
22
  end
23
+
24
+ protected
25
+ def evaluation_content(options)
26
+ Sass::Script::Functions::EvaluationContext.new(options)
27
+ end
23
28
  def nest(*arguments)
24
- Sass::Script::Functions.nest(*arguments.map{|a| Sass::Script::String.new(a)}).to_s
29
+ options = arguments.last.is_a?(Hash) ? arguments.pop : Hash.new
30
+ evaluation_content(options).nest(*arguments.map{|a| Sass::Script::String.new(a)}).to_s
25
31
  end
26
32
  end
data/test/test_helper.rb CHANGED
@@ -17,6 +17,7 @@ linked_haml = File.dirname(__FILE__) + '/haml'
17
17
  if File.exists?(linked_haml) && !$:.include?(linked_haml + '/lib')
18
18
  puts "[ using linked Haml ]"
19
19
  $:.unshift linked_haml + '/lib'
20
+ require 'sass'
20
21
  else
21
22
  need_gems = true
22
23
  end
@@ -25,9 +26,6 @@ require 'rubygems' if need_gems
25
26
 
26
27
  require 'action_controller'
27
28
  require 'action_view'
28
- require 'haml'
29
- require 'sass'
30
- require 'sass/plugin'
31
29
 
32
30
 
33
31
  require 'test/unit'
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.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Eppstein
@@ -9,11 +9,11 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-29 00:00:00 -07:00
12
+ date: 2009-05-08 00:00:00 -07:00
13
13
  default_executable: compass
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: haml
16
+ name: haml-edge
17
17
  type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,7 +24,7 @@ dependencies:
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: echoe
27
- type: :runtime
27
+ type: :development
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
@@ -57,6 +57,7 @@ extra_rdoc_files:
57
57
  - lib/compass/compiler.rb
58
58
  - lib/compass/configuration.rb
59
59
  - lib/compass/core_ext.rb
60
+ - lib/compass/dependencies.rb
60
61
  - lib/compass/errors.rb
61
62
  - lib/compass/exec.rb
62
63
  - lib/compass/frameworks.rb
@@ -86,6 +87,8 @@ files:
86
87
  - bin/compass
87
88
  - CHANGELOG.markdown
88
89
  - compass.gemspec
90
+ - examples/blueprint_default/config.rb
91
+ - examples/blueprint_default/images/grid.png
89
92
  - examples/blueprint_default/index.html
90
93
  - examples/blueprint_default/parts/elements.html
91
94
  - examples/blueprint_default/parts/forms.html
@@ -94,13 +97,13 @@ files:
94
97
  - examples/blueprint_default/parts/test.jpg
95
98
  - examples/blueprint_default/parts/valid.png
96
99
  - examples/blueprint_default/src/ie.sass
97
- - examples/blueprint_default/src/images/grid.png
98
100
  - examples/blueprint_default/src/print.sass
99
101
  - examples/blueprint_default/src/screen.sass
100
102
  - examples/blueprint_plugins/config.rb
101
103
  - examples/blueprint_plugins/images/buttons/cross.png
102
104
  - examples/blueprint_plugins/images/buttons/key.png
103
105
  - examples/blueprint_plugins/images/buttons/tick.png
106
+ - examples/blueprint_plugins/images/grid.png
104
107
  - examples/blueprint_plugins/images/link_icons/doc.png
105
108
  - examples/blueprint_plugins/images/link_icons/email.png
106
109
  - examples/blueprint_plugins/images/link_icons/external.png
@@ -119,7 +122,6 @@ files:
119
122
  - examples/blueprint_plugins/plugins/rtl.html
120
123
  - examples/blueprint_plugins/src/buttons.sass
121
124
  - examples/blueprint_plugins/src/ie.sass
122
- - examples/blueprint_plugins/src/images/grid.png
123
125
  - examples/blueprint_plugins/src/link_icons.sass
124
126
  - examples/blueprint_plugins/src/print.sass
125
127
  - examples/blueprint_plugins/src/rtl_screen.sass
@@ -130,6 +132,8 @@ files:
130
132
  - examples/blueprint_scoped_form/src/ie.sass
131
133
  - examples/blueprint_scoped_form/src/print.sass
132
134
  - examples/blueprint_scoped_form/src/screen.sass
135
+ - examples/blueprint_semantic/config.rb
136
+ - examples/blueprint_semantic/images/grid.png
133
137
  - examples/blueprint_semantic/index.html
134
138
  - examples/blueprint_semantic/parts/fancy_type.html
135
139
  - examples/blueprint_semantic/parts/liquid.html
@@ -137,13 +141,13 @@ files:
137
141
  - examples/blueprint_semantic/parts/test.jpg
138
142
  - examples/blueprint_semantic/parts/valid.png
139
143
  - examples/blueprint_semantic/src/ie.sass
140
- - examples/blueprint_semantic/src/images/grid.png
141
144
  - examples/blueprint_semantic/src/liquid.sass
142
145
  - examples/blueprint_semantic/src/print.sass
143
146
  - examples/blueprint_semantic/src/screen.sass
144
147
  - examples/compass/compass.html
148
+ - examples/compass/config.rb
149
+ - examples/compass/images/blue_arrow.gif
145
150
  - examples/compass/src/compass.sass
146
- - examples/compass/src/images/blue_arrow.gif
147
151
  - examples/compass/src/sticky_footer.sass
148
152
  - examples/compass/src/utilities.sass
149
153
  - examples/compass/sticky_footer.html.haml
@@ -257,6 +261,7 @@ files:
257
261
  - lib/compass/compiler.rb
258
262
  - lib/compass/configuration.rb
259
263
  - lib/compass/core_ext.rb
264
+ - lib/compass/dependencies.rb
260
265
  - lib/compass/errors.rb
261
266
  - lib/compass/exec.rb
262
267
  - lib/compass/frameworks.rb
@@ -287,11 +292,13 @@ files:
287
292
  - test/command_line_test.rb
288
293
  - test/compass_test.rb
289
294
  - test/configuration_test.rb
295
+ - test/fixtures/stylesheets/blueprint/config.rb
290
296
  - test/fixtures/stylesheets/blueprint/css/typography.css
291
297
  - test/fixtures/stylesheets/blueprint/sass/ie.sass
292
298
  - test/fixtures/stylesheets/blueprint/sass/print.sass
293
299
  - test/fixtures/stylesheets/blueprint/sass/screen.sass
294
300
  - test/fixtures/stylesheets/blueprint/sass/typography.sass
301
+ - test/fixtures/stylesheets/compass/config.rb
295
302
  - test/fixtures/stylesheets/compass/css/layout.css
296
303
  - test/fixtures/stylesheets/compass/css/print.css
297
304
  - test/fixtures/stylesheets/compass/css/reset.css
@@ -300,6 +307,7 @@ files:
300
307
  - test/fixtures/stylesheets/compass/sass/print.sass
301
308
  - test/fixtures/stylesheets/compass/sass/reset.sass
302
309
  - test/fixtures/stylesheets/compass/sass/utilities.sass
310
+ - test/fixtures/stylesheets/yui/config.rb
303
311
  - test/fixtures/stylesheets/yui/css/mixins.css
304
312
  - test/fixtures/stylesheets/yui/sass/base.sass
305
313
  - test/fixtures/stylesheets/yui/sass/fonts.sass
@@ -337,7 +345,7 @@ requirements: []
337
345
  rubyforge_project: compass
338
346
  rubygems_version: 1.2.0
339
347
  signing_key:
340
- specification_version: 2
348
+ specification_version: 3
341
349
  summary: Sass-Based CSS Meta-Framework.
342
350
  test_files:
343
351
  - test/command_line_test.rb