arnebrasseur-compass 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. data/Manifest +160 -0
  2. data/README.markdown +18 -0
  3. data/Rakefile +112 -0
  4. data/VERSION +1 -0
  5. data/bin/compass +8 -0
  6. data/compass.gemspec +37 -0
  7. data/examples/blueprint_default/index.html +73 -0
  8. data/examples/blueprint_default/parts/elements.html +246 -0
  9. data/examples/blueprint_default/parts/forms.html +100 -0
  10. data/examples/blueprint_default/parts/grid.html +206 -0
  11. data/examples/blueprint_default/parts/test-small.jpg +0 -0
  12. data/examples/blueprint_default/parts/test.jpg +0 -0
  13. data/examples/blueprint_default/parts/valid.png +0 -0
  14. data/examples/blueprint_default/stylesheets/ie.sass +3 -0
  15. data/examples/blueprint_default/stylesheets/images/grid.png +0 -0
  16. data/examples/blueprint_default/stylesheets/print.sass +3 -0
  17. data/examples/blueprint_default/stylesheets/screen.sass +8 -0
  18. data/examples/blueprint_plugins/index.html +60 -0
  19. data/examples/blueprint_plugins/parts/fancy_type.html +84 -0
  20. data/examples/blueprint_plugins/parts/test-small.jpg +0 -0
  21. data/examples/blueprint_plugins/parts/test.jpg +0 -0
  22. data/examples/blueprint_plugins/parts/valid.png +0 -0
  23. data/examples/blueprint_plugins/stylesheets/ie.sass +3 -0
  24. data/examples/blueprint_plugins/stylesheets/images/grid.png +0 -0
  25. data/examples/blueprint_plugins/stylesheets/print.sass +3 -0
  26. data/examples/blueprint_plugins/stylesheets/screen.sass +11 -0
  27. data/examples/blueprint_scoped/stylesheets/ie.sass +3 -0
  28. data/examples/blueprint_scoped/stylesheets/print.sass +3 -0
  29. data/examples/blueprint_scoped/stylesheets/screen.sass +4 -0
  30. data/examples/blueprint_scoped_form/stylesheets/ie.sass +3 -0
  31. data/examples/blueprint_scoped_form/stylesheets/print.sass +3 -0
  32. data/examples/blueprint_scoped_form/stylesheets/screen.sass +10 -0
  33. data/examples/blueprint_semantic/index.html +68 -0
  34. data/examples/blueprint_semantic/parts/fancy_type.html +84 -0
  35. data/examples/blueprint_semantic/parts/liquid.html +84 -0
  36. data/examples/blueprint_semantic/parts/test-small.jpg +0 -0
  37. data/examples/blueprint_semantic/parts/test.jpg +0 -0
  38. data/examples/blueprint_semantic/parts/valid.png +0 -0
  39. data/examples/blueprint_semantic/stylesheets/ie.sass +3 -0
  40. data/examples/blueprint_semantic/stylesheets/images/grid.png +0 -0
  41. data/examples/blueprint_semantic/stylesheets/liquid.sass +70 -0
  42. data/examples/blueprint_semantic/stylesheets/print.sass +3 -0
  43. data/examples/blueprint_semantic/stylesheets/screen.sass +69 -0
  44. data/examples/compass/compass.html +19 -0
  45. data/examples/compass/sticky_footer.html.haml +14 -0
  46. data/examples/compass/stylesheets/compass.sass +47 -0
  47. data/examples/compass/stylesheets/images/blue_arrow.gif +0 -0
  48. data/examples/compass/stylesheets/sticky_footer.sass +11 -0
  49. data/examples/compass/stylesheets/utilities.sass +65 -0
  50. data/examples/compass/utilities.html.haml +136 -0
  51. data/examples/yui/divisions.html.haml +179 -0
  52. data/examples/yui/index.html.haml +19 -0
  53. data/examples/yui/stylesheets/screen.sass +13 -0
  54. data/examples/yui/sub_divisions.html.haml +169 -0
  55. data/examples/yui/templates.html.haml +54 -0
  56. data/examples/yui/test.jpg +0 -0
  57. data/examples/yui/typography.html.haml +132 -0
  58. data/frameworks/blueprint/lib/blueprint/constants.rb +17 -0
  59. data/frameworks/blueprint/lib/blueprint/grid_builder.rb +54 -0
  60. data/frameworks/blueprint/stylesheets/_blueprint.sass +3 -0
  61. data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +49 -0
  62. data/frameworks/blueprint/stylesheets/blueprint/_print.sass +82 -0
  63. data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +15 -0
  64. data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +30 -0
  65. data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -0
  66. data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +81 -0
  67. data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +43 -0
  68. data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +141 -0
  69. data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -0
  70. data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +137 -0
  71. data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +46 -0
  72. data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +153 -0
  73. data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -0
  74. data/frameworks/blueprint/templates/project/grid.png +0 -0
  75. data/frameworks/blueprint/templates/project/ie.sass +3 -0
  76. data/frameworks/blueprint/templates/project/print.sass +3 -0
  77. data/frameworks/blueprint/templates/project/screen.sass +8 -0
  78. data/frameworks/compass/stylesheets/_compass.sass +1 -0
  79. data/frameworks/compass/stylesheets/compass/_layout.sass +1 -0
  80. data/frameworks/compass/stylesheets/compass/_reset.sass +3 -0
  81. data/frameworks/compass/stylesheets/compass/_utilities.sass +5 -0
  82. data/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +17 -0
  83. data/frameworks/compass/stylesheets/compass/utilities/_general.sass +4 -0
  84. data/frameworks/compass/stylesheets/compass/utilities/_links.sass +3 -0
  85. data/frameworks/compass/stylesheets/compass/utilities/_lists.sass +3 -0
  86. data/frameworks/compass/stylesheets/compass/utilities/_print.sass +24 -0
  87. data/frameworks/compass/stylesheets/compass/utilities/_tables.sass +1 -0
  88. data/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
  89. data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +11 -0
  90. data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +6 -0
  91. data/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +58 -0
  92. data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
  93. data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
  94. data/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass +5 -0
  95. data/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass +24 -0
  96. data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +5 -0
  97. data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +21 -0
  98. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +20 -0
  99. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -0
  100. data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +25 -0
  101. data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass +3 -0
  102. data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +10 -0
  103. data/frameworks/compass/templates/project/grid.png +0 -0
  104. data/frameworks/compass/templates/project/ie.sass +3 -0
  105. data/frameworks/compass/templates/project/print.sass +4 -0
  106. data/frameworks/compass/templates/project/screen.sass +4 -0
  107. data/frameworks/yui/COPYRIGHT +15 -0
  108. data/frameworks/yui/stylesheets/_yui.sass +7 -0
  109. data/frameworks/yui/stylesheets/yui/modules/_base.sass +60 -0
  110. data/frameworks/yui/stylesheets/yui/modules/_fonts.sass +38 -0
  111. data/frameworks/yui/stylesheets/yui/modules/_grids.sass +341 -0
  112. data/frameworks/yui/templates/project/screen.sass +4 -0
  113. data/lib/compass/commands/base.rb +94 -0
  114. data/lib/compass/commands/create_project.rb +32 -0
  115. data/lib/compass/commands/install_rails.rb +115 -0
  116. data/lib/compass/commands/print_version.rb +23 -0
  117. data/lib/compass/commands/update_project.rb +101 -0
  118. data/lib/compass/commands/watch_project.rb +42 -0
  119. data/lib/compass/core_ext.rb +39 -0
  120. data/lib/compass/exec.rb +164 -0
  121. data/lib/compass/frameworks/blueprint.rb +2 -0
  122. data/lib/compass/frameworks/compass.rb +2 -0
  123. data/lib/compass/frameworks/yui.rb +2 -0
  124. data/lib/compass/frameworks.rb +27 -0
  125. data/lib/compass/merb.rb +43 -0
  126. data/lib/compass/test_case.rb +37 -0
  127. data/lib/compass/validate/COPYRIGHT.html +93 -0
  128. data/lib/compass/validate/JIGSAW_COPYRIGHT +64 -0
  129. data/lib/compass/validate/README.html +83 -0
  130. data/lib/compass/validate/XERCES_COPYING.txt +56 -0
  131. data/lib/compass/validate/css-validator-javadoc.jar +0 -0
  132. data/lib/compass/validate/css-validator.jar +0 -0
  133. data/lib/compass/validate/jigsaw.jar +0 -0
  134. data/lib/compass/validate/xerces.jar +0 -0
  135. data/lib/compass/validate.rb +13 -0
  136. data/lib/compass/validator.rb +59 -0
  137. data/lib/compass/version.rb +48 -0
  138. data/lib/compass.rb +20 -0
  139. data/lib/sass_extensions.rb +13 -0
  140. data/test/compass_test.rb +152 -0
  141. data/test/fixtures/stylesheets/blueprint/css/typography.css +158 -0
  142. data/test/fixtures/stylesheets/blueprint/sass/ie.sass +3 -0
  143. data/test/fixtures/stylesheets/blueprint/sass/print.sass +3 -0
  144. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +17 -0
  145. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +3 -0
  146. data/test/fixtures/stylesheets/compass/css/layout.css +14 -0
  147. data/test/fixtures/stylesheets/compass/css/print.css +19 -0
  148. data/test/fixtures/stylesheets/compass/css/reset.css +69 -0
  149. data/test/fixtures/stylesheets/compass/css/utilities.css +21 -0
  150. data/test/fixtures/stylesheets/compass/sass/layout.sass +3 -0
  151. data/test/fixtures/stylesheets/compass/sass/print.sass +5 -0
  152. data/test/fixtures/stylesheets/compass/sass/reset.sass +1 -0
  153. data/test/fixtures/stylesheets/compass/sass/utilities.sass +5 -0
  154. data/test/fixtures/stylesheets/yui/css/mixins.css +16 -0
  155. data/test/fixtures/stylesheets/yui/sass/base.sass +3 -0
  156. data/test/fixtures/stylesheets/yui/sass/fonts.sass +3 -0
  157. data/test/fixtures/stylesheets/yui/sass/grids.sass +3 -0
  158. data/test/fixtures/stylesheets/yui/sass/mixins.sass +16 -0
  159. data/test/sass_extensions_test.rb +26 -0
  160. data/test/test_helper.rb +37 -0
  161. metadata +264 -0
data/Manifest ADDED
@@ -0,0 +1,160 @@
1
+ bin/compass
2
+ compass.gemspec
3
+ examples/blueprint_default/index.html
4
+ examples/blueprint_default/parts/elements.html
5
+ examples/blueprint_default/parts/forms.html
6
+ examples/blueprint_default/parts/grid.html
7
+ examples/blueprint_default/parts/test-small.jpg
8
+ examples/blueprint_default/parts/test.jpg
9
+ examples/blueprint_default/parts/valid.png
10
+ examples/blueprint_default/stylesheets/ie.sass
11
+ examples/blueprint_default/stylesheets/images/grid.png
12
+ examples/blueprint_default/stylesheets/print.sass
13
+ examples/blueprint_default/stylesheets/screen.sass
14
+ examples/blueprint_plugins/index.html
15
+ examples/blueprint_plugins/parts/fancy_type.html
16
+ examples/blueprint_plugins/parts/test-small.jpg
17
+ examples/blueprint_plugins/parts/test.jpg
18
+ examples/blueprint_plugins/parts/valid.png
19
+ examples/blueprint_plugins/stylesheets/ie.sass
20
+ examples/blueprint_plugins/stylesheets/images/grid.png
21
+ examples/blueprint_plugins/stylesheets/print.sass
22
+ examples/blueprint_plugins/stylesheets/screen.sass
23
+ examples/blueprint_scoped/stylesheets/ie.sass
24
+ examples/blueprint_scoped/stylesheets/print.sass
25
+ examples/blueprint_scoped/stylesheets/screen.sass
26
+ examples/blueprint_scoped_form/stylesheets/ie.sass
27
+ examples/blueprint_scoped_form/stylesheets/print.sass
28
+ examples/blueprint_scoped_form/stylesheets/screen.sass
29
+ examples/blueprint_semantic/index.html
30
+ examples/blueprint_semantic/parts/fancy_type.html
31
+ examples/blueprint_semantic/parts/liquid.html
32
+ examples/blueprint_semantic/parts/test-small.jpg
33
+ examples/blueprint_semantic/parts/test.jpg
34
+ examples/blueprint_semantic/parts/valid.png
35
+ examples/blueprint_semantic/stylesheets/ie.sass
36
+ examples/blueprint_semantic/stylesheets/images/grid.png
37
+ examples/blueprint_semantic/stylesheets/liquid.sass
38
+ examples/blueprint_semantic/stylesheets/print.sass
39
+ examples/blueprint_semantic/stylesheets/screen.sass
40
+ examples/compass/compass.html
41
+ examples/compass/sticky_footer.html.haml
42
+ examples/compass/stylesheets/compass.sass
43
+ examples/compass/stylesheets/images/blue_arrow.gif
44
+ examples/compass/stylesheets/sticky_footer.sass
45
+ examples/compass/stylesheets/utilities.sass
46
+ examples/compass/utilities.html.haml
47
+ examples/yui/divisions.html.haml
48
+ examples/yui/index.html.haml
49
+ examples/yui/stylesheets/screen.sass
50
+ examples/yui/sub_divisions.html.haml
51
+ examples/yui/templates.html.haml
52
+ examples/yui/test.jpg
53
+ examples/yui/typography.html.haml
54
+ frameworks/blueprint/lib/blueprint/constants.rb
55
+ frameworks/blueprint/lib/blueprint/grid_builder.rb
56
+ frameworks/blueprint/stylesheets/_blueprint.sass
57
+ frameworks/blueprint/stylesheets/blueprint/_ie.sass
58
+ frameworks/blueprint/stylesheets/blueprint/_print.sass
59
+ frameworks/blueprint/stylesheets/blueprint/_screen.sass
60
+ frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass
61
+ frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass
62
+ frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass
63
+ frameworks/blueprint/stylesheets/blueprint/modules/_form.sass
64
+ frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass
65
+ frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass
66
+ frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass
67
+ frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass
68
+ frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass
69
+ frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass
70
+ frameworks/blueprint/templates/project/grid.png
71
+ frameworks/blueprint/templates/project/ie.sass
72
+ frameworks/blueprint/templates/project/print.sass
73
+ frameworks/blueprint/templates/project/screen.sass
74
+ frameworks/compass/stylesheets/_compass.sass
75
+ frameworks/compass/stylesheets/compass/_layout.sass
76
+ frameworks/compass/stylesheets/compass/_reset.sass
77
+ frameworks/compass/stylesheets/compass/_utilities.sass
78
+ frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
79
+ frameworks/compass/stylesheets/compass/utilities/_general.sass
80
+ frameworks/compass/stylesheets/compass/utilities/_links.sass
81
+ frameworks/compass/stylesheets/compass/utilities/_lists.sass
82
+ frameworks/compass/stylesheets/compass/utilities/_print.sass
83
+ frameworks/compass/stylesheets/compass/utilities/_tables.sass
84
+ frameworks/compass/stylesheets/compass/utilities/_text.sass
85
+ frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass
86
+ frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass
87
+ frameworks/compass/stylesheets/compass/utilities/general/_reset.sass
88
+ frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass
89
+ frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass
90
+ frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass
91
+ frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass
92
+ frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass
93
+ frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass
94
+ frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass
95
+ frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass
96
+ frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass
97
+ frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass
98
+ frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass
99
+ frameworks/compass/templates/project/grid.png
100
+ frameworks/compass/templates/project/ie.sass
101
+ frameworks/compass/templates/project/print.sass
102
+ frameworks/compass/templates/project/screen.sass
103
+ frameworks/yui/COPYRIGHT
104
+ frameworks/yui/stylesheets/_yui.sass
105
+ frameworks/yui/stylesheets/yui/modules/_base.sass
106
+ frameworks/yui/stylesheets/yui/modules/_fonts.sass
107
+ frameworks/yui/stylesheets/yui/modules/_grids.sass
108
+ frameworks/yui/templates/project/screen.sass
109
+ lib/compass/commands/base.rb
110
+ lib/compass/commands/create_project.rb
111
+ lib/compass/commands/install_rails.rb
112
+ lib/compass/commands/print_version.rb
113
+ lib/compass/commands/update_project.rb
114
+ lib/compass/commands/watch_project.rb
115
+ lib/compass/core_ext.rb
116
+ lib/compass/exec.rb
117
+ lib/compass/frameworks/blueprint.rb
118
+ lib/compass/frameworks/compass.rb
119
+ lib/compass/frameworks/yui.rb
120
+ lib/compass/frameworks.rb
121
+ lib/compass/merb.rb
122
+ lib/compass/test_case.rb
123
+ lib/compass/validate/COPYRIGHT.html
124
+ lib/compass/validate/css-validator-javadoc.jar
125
+ lib/compass/validate/css-validator.jar
126
+ lib/compass/validate/jigsaw.jar
127
+ lib/compass/validate/JIGSAW_COPYRIGHT
128
+ lib/compass/validate/README.html
129
+ lib/compass/validate/xerces.jar
130
+ lib/compass/validate/XERCES_COPYING.txt
131
+ lib/compass/validate.rb
132
+ lib/compass/validator.rb
133
+ lib/compass/version.rb
134
+ lib/compass.rb
135
+ lib/sass_extensions.rb
136
+ Manifest
137
+ Rakefile
138
+ README.markdown
139
+ test/compass_test.rb
140
+ test/fixtures/stylesheets/blueprint/css/typography.css
141
+ test/fixtures/stylesheets/blueprint/sass/ie.sass
142
+ test/fixtures/stylesheets/blueprint/sass/print.sass
143
+ test/fixtures/stylesheets/blueprint/sass/screen.sass
144
+ test/fixtures/stylesheets/blueprint/sass/typography.sass
145
+ test/fixtures/stylesheets/compass/css/layout.css
146
+ test/fixtures/stylesheets/compass/css/print.css
147
+ test/fixtures/stylesheets/compass/css/reset.css
148
+ test/fixtures/stylesheets/compass/css/utilities.css
149
+ test/fixtures/stylesheets/compass/sass/layout.sass
150
+ test/fixtures/stylesheets/compass/sass/print.sass
151
+ test/fixtures/stylesheets/compass/sass/reset.sass
152
+ test/fixtures/stylesheets/compass/sass/utilities.sass
153
+ test/fixtures/stylesheets/yui/css/mixins.css
154
+ test/fixtures/stylesheets/yui/sass/base.sass
155
+ test/fixtures/stylesheets/yui/sass/fonts.sass
156
+ test/fixtures/stylesheets/yui/sass/grids.sass
157
+ test/fixtures/stylesheets/yui/sass/mixins.sass
158
+ test/sass_extensions_test.rb
159
+ test/test_helper.rb
160
+ VERSION
data/README.markdown ADDED
@@ -0,0 +1,18 @@
1
+ # Compass
2
+ A [Sass](http://haml.hamptoncatlin.com/docs/rdoc/classes/Sass.html)-based CSS Meta-Framework that allows you to mix and match any of the following CSS frameworks:
3
+ - [Compass Core](http://github.com/chriseppstein/compass/tree/master/frameworks/compass) - [Wiki Documentation](http://github.com/chriseppstein/compass/wikis/compass-core-documentation)
4
+ - [Blueprint](http://blueprintcss.org/) - [Wiki Documentation](http://github.com/chriseppstein/compass/wikis/blueprint-documentation)
5
+ - [YUI](http://developer.yahoo.com/yui/grids/) - [Wiki Documentation](http://github.com/chriseppstein/compass/wikis/yui-documentation)
6
+ - [YAML](http://www.yaml.de/en/) - Planned
7
+ - [960](http://960.gs/) - Planned
8
+ - Other frameworks can be added relatively easily.
9
+
10
+ ## Compass Provides
11
+ 1. A command line tool for maintaining your Sass projects.
12
+ 2. Ruby-on-Rails integration
13
+ 3. Scaffolds - Generate templates with corresponding Sass stylesheets.
14
+ 4. Loads of Sass files to make building your website a snap.
15
+
16
+ ## More Information
17
+ Please see the [wiki](http://github.com/chriseppstein/compass/wikis/home)
18
+
data/Rakefile ADDED
@@ -0,0 +1,112 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'lib/compass'
4
+
5
+ # ----- Default: Testing ------
6
+
7
+ task :default => :run_tests
8
+
9
+ require 'rake/testtask'
10
+ require 'fileutils'
11
+
12
+ Rake::TestTask.new :run_tests do |t|
13
+ t.libs << 'lib'
14
+ test_files = FileList['test/**/*_test.rb']
15
+ test_files.exclude('test/rails/*', 'test/haml/*')
16
+ t.test_files = test_files
17
+ t.verbose = true
18
+ end
19
+ Rake::Task[:test].send(:add_comment, <<END)
20
+ To run with an alternate version of Rails, make test/rails a symlink to that version.
21
+ To run with an alternate version of Haml & Sass, make test/haml a symlink to that version.
22
+ END
23
+
24
+ begin
25
+ require 'echoe'
26
+
27
+ Echoe.new('compass', open('VERSION').read) do |p|
28
+ # p.rubyforge_name = 'github'
29
+ p.summary = "Sass-Based CSS Meta-Framework."
30
+ p.description = "Sass-Based CSS Meta-Framework. Semantic, Maintainable CSS."
31
+ p.url = "http://github.com/chriseppstein/compass"
32
+ p.author = ['Chris Eppstein']
33
+ p.email = "chris@eppsteins.net"
34
+ p.dependencies = ["haml"]
35
+ p.has_rdoc = false
36
+ end
37
+
38
+ rescue LoadError => boom
39
+ puts "You are missing a dependency required for meta-operations on this gem."
40
+ puts "#{boom.to_s.capitalize}."
41
+ end
42
+
43
+ desc "Compile Examples into HTML and CSS"
44
+ task :examples do
45
+ linked_haml = "tests/haml"
46
+ if File.exists?(linked_haml) && !$:.include?(linked_haml + '/lib')
47
+ puts "[ using linked Haml ]"
48
+ $:.unshift linked_haml + '/lib'
49
+ end
50
+ require 'haml'
51
+ require 'sass'
52
+ require 'pathname'
53
+ FileList['examples/*'].each do |example|
54
+ puts "Compiling #{example} -> built_examples/#{example.sub(%r{.*/},'')}"
55
+ # compile any haml templates to html
56
+ FileList["#{example}/*.haml"].each do |haml_file|
57
+ basename = haml_file[9..-6]
58
+ engine = Haml::Engine.new(open(haml_file).read, :filename => haml_file)
59
+ target_dir = "built_examples/#{basename.sub(%r{/[^/]*$},'')}"
60
+ FileUtils.mkdir_p(target_dir)
61
+ output = open("built_examples/#{basename}",'w')
62
+ output.write(engine.render)
63
+ output.close
64
+ end
65
+ # compile any sass templates to css
66
+ FileList["#{example}/stylesheets/**/[^_]*.sass"].each do |sass_file|
67
+ basename = sass_file[9..-6]
68
+ css_filename = "built_examples/#{basename}.css"
69
+ compass_sass = File.dirname(__FILE__).sub(%r{.*/},'')
70
+ engine = Sass::Engine.new(open(sass_file).read,
71
+ :filename => sass_file,
72
+ :line_comments => true,
73
+ :css_filename => css_filename,
74
+ :load_paths => ["#{example}/stylesheets"] + Compass::Frameworks::ALL.map{|f| f.stylesheets_directory})
75
+ target_dir = "built_examples/#{basename.sub(%r{/[^/]*$},'')}"
76
+ FileUtils.mkdir_p(target_dir)
77
+ output = open(css_filename,'w')
78
+ output.write(engine.render)
79
+ output.close
80
+ end
81
+ # copy any other non-haml and non-sass files directly over
82
+ target_dir = "built_examples/#{example.sub(%r{.*/},'')}"
83
+ other_files = FileList["#{example}/**/*"]
84
+ other_files.exclude "**/*.sass", "**/*.haml"
85
+ other_files.each do |file|
86
+
87
+ if File.directory?(file)
88
+ FileUtils.mkdir_p(file)
89
+ elsif File.file?(file)
90
+ target_file = "#{target_dir}/#{file[(example.size+1)..-1]}"
91
+ # puts "mkdir -p #{File.dirname(target_file)}"
92
+ FileUtils.mkdir_p(File.dirname(target_file))
93
+ # puts "cp #{file} #{target_file}"
94
+ FileUtils.cp(file, target_file)
95
+ end
96
+ end
97
+ end
98
+ end
99
+
100
+ namespace :git do
101
+ desc "Perform normal operations required for pushing to github."
102
+ task :push => [:manifest, :gem] do
103
+ sh "git", "add", "Manifest", "compass.gemspec"
104
+ sh "git", "commit", "-m", "Updated Manifest and gemspec."
105
+ sh "git", "push", "origin", "master"
106
+ end
107
+ task :clean do
108
+ sh "git", "clean", "-fdx"
109
+ end
110
+ end
111
+
112
+ task :manifest => :"git:clean"
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.3.5
data/bin/compass ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # The compass command line utility
3
+
4
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'compass'))
5
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'compass', 'exec'))
6
+
7
+ command = Compass::Exec::Compass.new(ARGV)
8
+ command.run!
data/compass.gemspec ADDED
@@ -0,0 +1,37 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = %q{compass}
3
+ s.version = "0.3.5"
4
+
5
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
+ s.authors = ["Chris Eppstein"]
7
+ s.date = %q{2008-12-21}
8
+ s.default_executable = %q{compass}
9
+ s.description = %q{Sass-Based CSS Meta-Framework. Semantic, Maintainable CSS.}
10
+ s.email = %q{chris@eppsteins.net}
11
+ s.executables = ["compass"]
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"]
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"]
14
+ s.homepage = %q{http://github.com/chriseppstein/compass}
15
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Compass", "--main", "README.markdown"]
16
+ s.require_paths = ["lib"]
17
+ s.rubyforge_project = %q{compass}
18
+ s.rubygems_version = %q{1.2.0}
19
+ s.summary = %q{Sass-Based CSS Meta-Framework.}
20
+ s.test_files = ["test/compass_test.rb", "test/sass_extensions_test.rb", "test/test_helper.rb"]
21
+
22
+ if s.respond_to? :specification_version then
23
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
+ s.specification_version = 2
25
+
26
+ if current_version >= 3 then
27
+ s.add_runtime_dependency(%q<haml>, [">= 0"])
28
+ s.add_development_dependency(%q<echoe>, [">= 0"])
29
+ else
30
+ s.add_dependency(%q<haml>, [">= 0"])
31
+ s.add_dependency(%q<echoe>, [">= 0"])
32
+ end
33
+ else
34
+ s.add_dependency(%q<haml>, [">= 0"])
35
+ s.add_dependency(%q<echoe>, [">= 0"])
36
+ end
37
+ end
@@ -0,0 +1,73 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+
4
+ <html lang="en">
5
+ <head>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7
+ <title>Blueprint test pages</title>
8
+
9
+ <!-- Framework CSS -->
10
+ <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen, projection">
11
+ <link rel="stylesheet" href="stylesheets/index.css" type="text/css" media="screen, projection">
12
+ <link rel="stylesheet" href="stylesheets/print.css" type="text/css" media="print">
13
+ <!--[if IE]><link rel="stylesheet" href="stylesheets/ie.css" type="text/css" media="screen, projection"><![endif]-->
14
+ </head>
15
+ <body>
16
+
17
+ <div class="container">
18
+ <h1>Blueprint test pages</h1>
19
+ <hr>
20
+
21
+ <p>Welcome to the Blueprint test pages. The HTML files below tests most HTML elements, and especially classes provided
22
+ by&nbsp;Blueprint.</p>
23
+
24
+ <table border="0" cellspacing="0" cellpadding="0">
25
+ <tr>
26
+ <th class="span-6">Test page</th>
27
+ <th class="span-8">Main files tested</th>
28
+ <th class="span-10">Description</th>
29
+ </tr>
30
+ <tr>
31
+ <td><a href="parts/grid.html">Grid</a></td>
32
+ <td>
33
+ <a href="../../frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass">grid.sass</a>
34
+ </td>
35
+ <td>Tests classes provided by the grid module.</td>
36
+ </tr>
37
+ <tr class="even">
38
+ <td><a href="parts/elements.html">Typography</a></td>
39
+ <td>
40
+ <a href="../../frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass">typography.sass</a>
41
+ </td>
42
+ <td>Tests HTML elements which gets set in the typography module.</td>
43
+ </tr>
44
+ <tr>
45
+ <td><a href="parts/forms.html">Forms</a></td>
46
+ <td>
47
+ <a href="../../frameworks/blueprint/stylesheets/blueprint/modules/_form.sass">form.sass</a>
48
+ </td>
49
+ <td>Tests classes and default look provided by the form module.</td>
50
+ </tr>
51
+ </table>
52
+
53
+ <p><em><strong>Note about the css files:</strong></em>
54
+ These test files utilize the css files that are generated from
55
+ <a href="http://haml.hamptoncatlin.com/docs/rdoc/classes/Sass.html">Sass templates</a>.
56
+ In other words, if you change any of the source files,
57
+ you'll have to re-build them with <code>rake examples</code> to see any&nbsp;changes.</p>
58
+
59
+ <div class="box">
60
+ <p>For more information and help, try these resources:</p>
61
+ <ul class="bottom">
62
+ <li><a href="http://code.google.com/p/blueprintcss">The Blueprint home page.</a></li>
63
+ <li><a href="http://groups.google.com/group/blueprintcss">Our anything-goes mailing list.</a></li>
64
+ <li><a href="http://bjorkoy.com">The blog where news about Blueprint gets posted.</a></li>
65
+ </ul>
66
+ </div>
67
+
68
+ <p><a href="http://validator.w3.org/check?uri=referer">
69
+ <img src="parts/valid.png" alt="Valid HTML 4.01 Strict" height="31" width="88" class="top"></a></p>
70
+
71
+ </div>
72
+ </body>
73
+ </html>