compass 0.12.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (781) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.markdown +1 -1
  3. data/Rakefile +159 -79
  4. data/features/command_line.feature +44 -141
  5. data/features/step_definitions/command_line_steps.rb +7 -7
  6. data/lib/compass.rb +19 -17
  7. data/lib/compass/actions.rb +7 -4
  8. data/lib/compass/commands.rb +3 -1
  9. data/lib/compass/commands/print_version.rb +1 -12
  10. data/lib/compass/commands/project_stats.rb +5 -5
  11. data/lib/compass/commands/update_project.rb +55 -46
  12. data/lib/compass/commands/watch_project.rb +53 -106
  13. data/lib/compass/compiler.rb +87 -26
  14. data/lib/compass/configuration/comments.rb +4 -1
  15. data/lib/compass/configuration/helpers.rb +11 -58
  16. data/lib/compass/configuration/serialization.rb +10 -3
  17. data/lib/compass/deprecation.rb +19 -0
  18. data/lib/compass/errors.rb +1 -3
  19. data/lib/compass/exec/global_options_parser.rb +0 -4
  20. data/lib/compass/exec/project_options_parser.rb +8 -0
  21. data/lib/compass/generated_version.rb +4 -0
  22. data/lib/compass/logger.rb +55 -18
  23. data/lib/compass/sass_compiler.rb +151 -0
  24. data/lib/compass/sass_extensions.rb +0 -1
  25. data/lib/compass/sass_extensions/functions.rb +6 -25
  26. data/lib/compass/sass_extensions/functions/sprites.rb +143 -56
  27. data/lib/compass/sass_extensions/sprites.rb +2 -0
  28. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb +11 -9
  29. data/lib/compass/sass_extensions/sprites/image.rb +47 -36
  30. data/lib/compass/sass_extensions/sprites/image_methods.rb +25 -5
  31. data/lib/compass/sass_extensions/sprites/images.rb +29 -0
  32. data/lib/compass/sass_extensions/sprites/layout.rb +39 -0
  33. data/lib/compass/sass_extensions/sprites/layout/diagonal.rb +42 -0
  34. data/lib/compass/sass_extensions/sprites/layout/horizontal.rb +66 -0
  35. data/lib/compass/sass_extensions/sprites/layout/smart.rb +33 -0
  36. data/lib/compass/sass_extensions/sprites/layout/vertical.rb +68 -0
  37. data/lib/compass/sass_extensions/sprites/layout_methods.rb +9 -115
  38. data/lib/compass/sass_extensions/sprites/sprite_map.rb +14 -8
  39. data/lib/compass/sass_extensions/sprites/sprite_methods.rb +8 -14
  40. data/lib/compass/sprite_importer.rb +12 -11
  41. data/lib/compass/sprite_importer/content.erb +30 -24
  42. data/lib/compass/stats.rb +1 -1
  43. data/lib/compass/version.rb +27 -45
  44. data/test/fixtures/sprites/public/images/focus/ten-by-ten.png +0 -0
  45. data/test/fixtures/sprites/public/images/focus/ten-by-ten_active.png +0 -0
  46. data/test/fixtures/sprites/public/images/focus/ten-by-ten_focus.png +0 -0
  47. data/test/fixtures/sprites/public/images/focus/ten-by-ten_hover.png +0 -0
  48. data/test/fixtures/sprites/public/images/focus/ten-by-ten_target.png +0 -0
  49. data/test/fixtures/sprites/public/images/numeric/200.png +0 -0
  50. data/test/fixtures/stylesheets/busted_font_urls/config.rb +32 -0
  51. data/test/fixtures/stylesheets/busted_font_urls/css/screen.css +9 -0
  52. data/test/fixtures/stylesheets/busted_font_urls/fonts/feed.ttf +0 -0
  53. data/test/fixtures/stylesheets/busted_font_urls/fonts/grid.ttf +0 -0
  54. data/test/fixtures/stylesheets/busted_font_urls/fonts/sub/dk.ttf +0 -0
  55. data/test/fixtures/stylesheets/busted_font_urls/sass/screen.sass +14 -0
  56. data/test/fixtures/stylesheets/compass/config.rb +2 -0
  57. data/test/fixtures/stylesheets/compass/css/animation-with-legacy-ie.css +22 -0
  58. data/test/fixtures/stylesheets/compass/css/animation.css +22 -0
  59. data/test/fixtures/stylesheets/compass/css/appearance.css +3 -0
  60. data/test/fixtures/stylesheets/compass/css/background-clip.css +7 -6
  61. data/test/fixtures/stylesheets/compass/css/background-origin.css +11 -0
  62. data/test/fixtures/stylesheets/compass/css/background-size.css +17 -0
  63. data/test/fixtures/stylesheets/compass/css/border_radius.css +3 -3
  64. data/test/fixtures/stylesheets/compass/css/{box-sizeing.css → box-sizing.css} +7 -2
  65. data/test/fixtures/stylesheets/compass/css/box_shadow.css +15 -5
  66. data/test/fixtures/stylesheets/compass/css/brightness.css +14 -0
  67. data/test/fixtures/stylesheets/compass/css/browser-support.css +335 -0
  68. data/test/fixtures/stylesheets/compass/css/color.css +18 -0
  69. data/test/fixtures/stylesheets/compass/css/columns.css +48 -75
  70. data/test/fixtures/stylesheets/compass/css/filters.css +30 -6
  71. data/test/fixtures/stylesheets/compass/css/flexbox.css +94 -0
  72. data/test/fixtures/stylesheets/compass/css/fonts.css +6 -2
  73. data/test/fixtures/stylesheets/compass/css/gradients.css +106 -86
  74. data/test/fixtures/stylesheets/compass/css/grid_background.css +42 -35
  75. data/test/fixtures/stylesheets/compass/css/hyphenation.css +4 -4
  76. data/test/fixtures/stylesheets/compass/css/lists.css +9 -15
  77. data/test/fixtures/stylesheets/compass/css/opacity.css +4 -0
  78. data/test/fixtures/stylesheets/compass/css/print.css +1 -1
  79. data/test/fixtures/stylesheets/compass/css/regions.css +4 -2
  80. data/test/fixtures/stylesheets/compass/css/replacement.css +7 -0
  81. data/test/fixtures/stylesheets/compass/css/reset.css +3 -3
  82. data/test/fixtures/stylesheets/compass/css/selection.css +50 -0
  83. data/test/fixtures/stylesheets/compass/css/sprites_with_explicit_separator.css +19 -0
  84. data/test/fixtures/stylesheets/compass/css/support.css +69 -0
  85. data/test/fixtures/stylesheets/compass/css/text_shadow.css +6 -6
  86. data/test/fixtures/stylesheets/compass/css/transform.css +64 -164
  87. data/test/fixtures/stylesheets/compass/css/transition.css +26 -38
  88. data/test/fixtures/stylesheets/compass/css/typography/links/hover-link.css +4 -0
  89. data/test/fixtures/stylesheets/compass/css/units.css +34 -0
  90. data/test/fixtures/stylesheets/compass/css/user-interface.css +49 -1
  91. data/test/fixtures/stylesheets/compass/css/utilities.css +21 -6
  92. data/test/fixtures/stylesheets/compass/css/vertical_rhythm.css +5 -8
  93. data/test/fixtures/stylesheets/compass/css/vertical_rhythm_with_ems.css +53 -0
  94. data/test/fixtures/stylesheets/compass/css/vertical_rhythm_with_px.css +52 -0
  95. data/test/fixtures/stylesheets/compass/css/vertical_rhythm_with_rems.css +67 -0
  96. data/test/fixtures/stylesheets/compass/images/flag-s5b4f509715.png +0 -0
  97. data/test/fixtures/stylesheets/compass/images/flag_states-sc42d7bf926.png +0 -0
  98. data/{examples/compass/images/flag/ad.png → test/fixtures/stylesheets/compass/images/flag_states/foo.png} +0 -0
  99. data/{examples/compass/images/flag/fo.png → test/fixtures/stylesheets/compass/images/flag_states/foo_active.png} +0 -0
  100. data/{examples/compass/images/flag/hu.png → test/fixtures/stylesheets/compass/images/flag_states/foo_focus.png} +0 -0
  101. data/{examples/compass/images/flag/bm.png → test/fixtures/stylesheets/compass/images/flag_states/foo_hover.png} +0 -0
  102. data/{examples/compass/images/flag/cu.png → test/fixtures/stylesheets/compass/images/flag_states/foo_target.png} +0 -0
  103. data/test/fixtures/stylesheets/compass/sass/animation-with-legacy-ie.scss +17 -0
  104. data/test/fixtures/stylesheets/compass/sass/animation.scss +13 -0
  105. data/test/fixtures/stylesheets/compass/sass/appearance.scss +5 -0
  106. data/test/fixtures/stylesheets/compass/sass/background-clip.scss +1 -4
  107. data/test/fixtures/stylesheets/compass/sass/background-origin.scss +5 -0
  108. data/test/fixtures/stylesheets/compass/sass/background-size.scss +7 -0
  109. data/test/fixtures/stylesheets/compass/sass/{box-sizeing.scss → box-sizing.scss} +4 -1
  110. data/test/fixtures/stylesheets/compass/sass/box_shadow.scss +4 -2
  111. data/test/fixtures/stylesheets/compass/sass/brightness.scss +12 -0
  112. data/test/fixtures/stylesheets/compass/sass/browser-support.scss +30 -0
  113. data/test/fixtures/stylesheets/compass/sass/color.scss +25 -0
  114. data/test/fixtures/stylesheets/compass/sass/columns.scss +9 -9
  115. data/test/fixtures/stylesheets/compass/sass/filters.scss +1 -0
  116. data/test/fixtures/stylesheets/compass/sass/flexbox.scss +88 -0
  117. data/test/fixtures/stylesheets/compass/sass/fonts.sass +6 -1
  118. data/test/fixtures/stylesheets/compass/sass/gradients.sass +40 -8
  119. data/test/fixtures/stylesheets/compass/sass/opacity.scss +4 -0
  120. data/test/fixtures/stylesheets/compass/sass/selection.scss +41 -0
  121. data/test/fixtures/stylesheets/compass/sass/sprites_with_explicit_separator.scss +11 -0
  122. data/test/fixtures/stylesheets/compass/sass/support.scss +174 -0
  123. data/test/fixtures/stylesheets/compass/sass/text_shadow.scss +7 -6
  124. data/test/fixtures/stylesheets/compass/sass/transition.scss +1 -4
  125. data/test/fixtures/stylesheets/compass/sass/typography/links/hover-link.scss +3 -0
  126. data/test/fixtures/stylesheets/compass/sass/units.scss +50 -0
  127. data/test/fixtures/stylesheets/compass/sass/user-interface.scss +24 -1
  128. data/test/fixtures/stylesheets/compass/sass/utilities.scss +17 -4
  129. data/test/fixtures/stylesheets/compass/sass/vertical_rhythm.scss +51 -7
  130. data/test/fixtures/stylesheets/compass/sass/vertical_rhythm_with_ems.scss +52 -0
  131. data/test/fixtures/stylesheets/compass/sass/vertical_rhythm_with_px.scss +50 -0
  132. data/test/fixtures/stylesheets/compass/sass/vertical_rhythm_with_rems.scss +50 -0
  133. data/test/fixtures/stylesheets/envtest/css/env.css +8 -0
  134. data/test/fixtures/stylesheets/envtest/sass/env.scss +16 -0
  135. data/test/fixtures/stylesheets/sourcemaps/config.rb +10 -0
  136. data/test/fixtures/stylesheets/sourcemaps/css/another_simple.css +2 -0
  137. data/test/fixtures/stylesheets/sourcemaps/css/another_simple.css.map +7 -0
  138. data/test/fixtures/stylesheets/sourcemaps/css/simple.css +2 -0
  139. data/test/fixtures/stylesheets/sourcemaps/css/simple.css.map +7 -0
  140. data/test/fixtures/stylesheets/sourcemaps/css/with_libraries.css +2 -0
  141. data/test/fixtures/stylesheets/sourcemaps/css/with_libraries.css.map +7 -0
  142. data/test/fixtures/stylesheets/sourcemaps/sass/another_simple.scss +3 -0
  143. data/test/fixtures/stylesheets/sourcemaps/sass/simple.sass +2 -0
  144. data/test/fixtures/stylesheets/sourcemaps/sass/with_libraries.scss +5 -0
  145. data/test/fixtures/stylesheets/valid/sass/another_simple.scss +3 -0
  146. data/test/fixtures/stylesheets/with_sass_globbing/config.rb +26 -0
  147. data/test/fixtures/stylesheets/with_sass_globbing/css/screen.css +19 -0
  148. data/test/fixtures/stylesheets/with_sass_globbing/sass/partials/_1.scss +3 -0
  149. data/test/fixtures/stylesheets/with_sass_globbing/sass/partials/_2.scss +3 -0
  150. data/test/fixtures/stylesheets/with_sass_globbing/sass/partials/_3.scss +4 -0
  151. data/test/fixtures/stylesheets/with_sass_globbing/sass/screen.scss +3 -0
  152. data/test/helpers/diff.rb +1 -1
  153. data/test/integrations/compass_test.rb +49 -14
  154. data/test/integrations/sprites_test.rb +380 -100
  155. data/test/test_helper.rb +12 -20
  156. data/test/units/caniuse_test.rb +194 -0
  157. data/test/units/command_line_test.rb +9 -9
  158. data/test/units/compass_util_test.rb +11 -0
  159. data/test/units/compiler_test.rb +7 -2
  160. data/test/units/configuration_test.rb +187 -9
  161. data/test/units/regressions_test.rb +8 -8
  162. data/test/units/sass_extensions_test.rb +37 -3
  163. data/test/units/sass_extenstions/gradients_test.rb +30 -0
  164. data/test/units/sprites/image_test.rb +17 -0
  165. data/test/units/sprites/images_test.rb +46 -0
  166. data/test/units/sprites/layout_test.rb +29 -4
  167. data/test/units/sprites/sprite_map_test.rb +40 -2
  168. metadata +243 -713
  169. data/README.markdown +0 -31
  170. data/VERSION.yml +0 -5
  171. data/examples/README.markdown +0 -4
  172. data/examples/blueprint_default/config.rb +0 -7
  173. data/examples/blueprint_default/images/grid.png +0 -0
  174. data/examples/blueprint_default/index.html.haml +0 -85
  175. data/examples/blueprint_default/parts/elements.html.haml +0 -282
  176. data/examples/blueprint_default/parts/forms.html.haml +0 -200
  177. data/examples/blueprint_default/parts/grid.html.haml +0 -274
  178. data/examples/blueprint_default/parts/test-small.jpg +0 -0
  179. data/examples/blueprint_default/parts/test.jpg +0 -0
  180. data/examples/blueprint_default/parts/valid.png +0 -0
  181. data/examples/blueprint_default/src/ie.scss +0 -3
  182. data/examples/blueprint_default/src/images/grid.png +0 -0
  183. data/examples/blueprint_default/src/print.scss +0 -3
  184. data/examples/blueprint_default/src/screen.scss +0 -9
  185. data/examples/blueprint_plugins/config.rb +0 -8
  186. data/examples/blueprint_plugins/images/buttons/cross.png +0 -0
  187. data/examples/blueprint_plugins/images/buttons/key.png +0 -0
  188. data/examples/blueprint_plugins/images/buttons/tick.png +0 -0
  189. data/examples/blueprint_plugins/images/grid.png +0 -0
  190. data/examples/blueprint_plugins/images/link_icons/doc.png +0 -0
  191. data/examples/blueprint_plugins/images/link_icons/email.png +0 -0
  192. data/examples/blueprint_plugins/images/link_icons/external.png +0 -0
  193. data/examples/blueprint_plugins/images/link_icons/feed.png +0 -0
  194. data/examples/blueprint_plugins/images/link_icons/im.png +0 -0
  195. data/examples/blueprint_plugins/images/link_icons/pdf.png +0 -0
  196. data/examples/blueprint_plugins/images/link_icons/visited.png +0 -0
  197. data/examples/blueprint_plugins/images/link_icons/xls.png +0 -0
  198. data/examples/blueprint_plugins/images/test-small.jpg +0 -0
  199. data/examples/blueprint_plugins/images/test.jpg +0 -0
  200. data/examples/blueprint_plugins/images/valid.png +0 -0
  201. data/examples/blueprint_plugins/index.html.haml +0 -96
  202. data/examples/blueprint_plugins/plugins/buttons.html.haml +0 -67
  203. data/examples/blueprint_plugins/plugins/fancy_type.html.haml +0 -100
  204. data/examples/blueprint_plugins/plugins/link_icons.html.haml +0 -61
  205. data/examples/blueprint_plugins/plugins/rtl.html.haml +0 -100
  206. data/examples/blueprint_plugins/src/buttons.scss +0 -47
  207. data/examples/blueprint_plugins/src/ie.scss +0 -3
  208. data/examples/blueprint_plugins/src/images/grid.png +0 -0
  209. data/examples/blueprint_plugins/src/link_icons.scss +0 -13
  210. data/examples/blueprint_plugins/src/print.scss +0 -3
  211. data/examples/blueprint_plugins/src/rtl_screen.scss +0 -15
  212. data/examples/blueprint_plugins/src/screen.scss +0 -12
  213. data/examples/blueprint_scoped/images/grid.png +0 -0
  214. data/examples/blueprint_scoped/src/ie.scss +0 -4
  215. data/examples/blueprint_scoped/src/print.scss +0 -4
  216. data/examples/blueprint_scoped/src/screen.scss +0 -5
  217. data/examples/blueprint_scoped_form/images/grid.png +0 -0
  218. data/examples/blueprint_scoped_form/src/ie.scss +0 -3
  219. data/examples/blueprint_scoped_form/src/print.scss +0 -3
  220. data/examples/blueprint_scoped_form/src/screen.scss +0 -15
  221. data/examples/blueprint_semantic/config.rb +0 -7
  222. data/examples/blueprint_semantic/images/grid.png +0 -0
  223. data/examples/blueprint_semantic/index.html.haml +0 -86
  224. data/examples/blueprint_semantic/parts/fancy_type.html.haml +0 -100
  225. data/examples/blueprint_semantic/parts/liquid.html.haml +0 -100
  226. data/examples/blueprint_semantic/parts/test-small.jpg +0 -0
  227. data/examples/blueprint_semantic/parts/test.jpg +0 -0
  228. data/examples/blueprint_semantic/parts/valid.png +0 -0
  229. data/examples/blueprint_semantic/src/ie.scss +0 -3
  230. data/examples/blueprint_semantic/src/images/grid.png +0 -0
  231. data/examples/blueprint_semantic/src/liquid.scss +0 -69
  232. data/examples/blueprint_semantic/src/print.scss +0 -3
  233. data/examples/blueprint_semantic/src/screen.scss +0 -69
  234. data/examples/compass/bootstrap.rb +0 -4
  235. data/examples/compass/clean.rb +0 -2
  236. data/examples/compass/compass.html.haml +0 -39
  237. data/examples/compass/config.rb +0 -8
  238. data/examples/compass/headers.txt +0 -7
  239. data/examples/compass/images/blue_arrow.gif +0 -0
  240. data/examples/compass/images/border2.png +0 -0
  241. data/examples/compass/images/emblem/favorite.png +0 -0
  242. data/examples/compass/images/emblem/important.png +0 -0
  243. data/examples/compass/images/emblem/photos.png +0 -0
  244. data/examples/compass/images/emblem/readonly.png +0 -0
  245. data/examples/compass/images/emblem/symbolic-link.png +0 -0
  246. data/examples/compass/images/emblem/system.png +0 -0
  247. data/examples/compass/images/emblem/unreadable.png +0 -0
  248. data/examples/compass/images/flag/ae.png +0 -0
  249. data/examples/compass/images/flag/af.png +0 -0
  250. data/examples/compass/images/flag/ag.png +0 -0
  251. data/examples/compass/images/flag/ai.png +0 -0
  252. data/examples/compass/images/flag/al.png +0 -0
  253. data/examples/compass/images/flag/am.png +0 -0
  254. data/examples/compass/images/flag/an.png +0 -0
  255. data/examples/compass/images/flag/ao.png +0 -0
  256. data/examples/compass/images/flag/ar.png +0 -0
  257. data/examples/compass/images/flag/as.png +0 -0
  258. data/examples/compass/images/flag/at.png +0 -0
  259. data/examples/compass/images/flag/au.png +0 -0
  260. data/examples/compass/images/flag/aw.png +0 -0
  261. data/examples/compass/images/flag/ax.png +0 -0
  262. data/examples/compass/images/flag/az.png +0 -0
  263. data/examples/compass/images/flag/ba.png +0 -0
  264. data/examples/compass/images/flag/bb.png +0 -0
  265. data/examples/compass/images/flag/bd.png +0 -0
  266. data/examples/compass/images/flag/be.png +0 -0
  267. data/examples/compass/images/flag/bf.png +0 -0
  268. data/examples/compass/images/flag/bg.png +0 -0
  269. data/examples/compass/images/flag/bh.png +0 -0
  270. data/examples/compass/images/flag/bi.png +0 -0
  271. data/examples/compass/images/flag/bj.png +0 -0
  272. data/examples/compass/images/flag/bn.png +0 -0
  273. data/examples/compass/images/flag/bo.png +0 -0
  274. data/examples/compass/images/flag/br.png +0 -0
  275. data/examples/compass/images/flag/bs.png +0 -0
  276. data/examples/compass/images/flag/bt.png +0 -0
  277. data/examples/compass/images/flag/bv.png +0 -0
  278. data/examples/compass/images/flag/bw.png +0 -0
  279. data/examples/compass/images/flag/by.png +0 -0
  280. data/examples/compass/images/flag/bz.png +0 -0
  281. data/examples/compass/images/flag/ca.png +0 -0
  282. data/examples/compass/images/flag/catalonia.png +0 -0
  283. data/examples/compass/images/flag/cc.png +0 -0
  284. data/examples/compass/images/flag/cd.png +0 -0
  285. data/examples/compass/images/flag/cf.png +0 -0
  286. data/examples/compass/images/flag/cg.png +0 -0
  287. data/examples/compass/images/flag/ch.png +0 -0
  288. data/examples/compass/images/flag/ci.png +0 -0
  289. data/examples/compass/images/flag/ck.png +0 -0
  290. data/examples/compass/images/flag/cl.png +0 -0
  291. data/examples/compass/images/flag/cm.png +0 -0
  292. data/examples/compass/images/flag/cn.png +0 -0
  293. data/examples/compass/images/flag/co.png +0 -0
  294. data/examples/compass/images/flag/cr.png +0 -0
  295. data/examples/compass/images/flag/cs.png +0 -0
  296. data/examples/compass/images/flag/cv.png +0 -0
  297. data/examples/compass/images/flag/cx.png +0 -0
  298. data/examples/compass/images/flag/cy.png +0 -0
  299. data/examples/compass/images/flag/cz.png +0 -0
  300. data/examples/compass/images/flag/de.png +0 -0
  301. data/examples/compass/images/flag/dj.png +0 -0
  302. data/examples/compass/images/flag/dk.png +0 -0
  303. data/examples/compass/images/flag/dm.png +0 -0
  304. data/examples/compass/images/flag/do.png +0 -0
  305. data/examples/compass/images/flag/dz.png +0 -0
  306. data/examples/compass/images/flag/ec.png +0 -0
  307. data/examples/compass/images/flag/ee.png +0 -0
  308. data/examples/compass/images/flag/eg.png +0 -0
  309. data/examples/compass/images/flag/eh.png +0 -0
  310. data/examples/compass/images/flag/england.png +0 -0
  311. data/examples/compass/images/flag/er.png +0 -0
  312. data/examples/compass/images/flag/es.png +0 -0
  313. data/examples/compass/images/flag/et.png +0 -0
  314. data/examples/compass/images/flag/europeanunion.png +0 -0
  315. data/examples/compass/images/flag/fam.png +0 -0
  316. data/examples/compass/images/flag/fi.png +0 -0
  317. data/examples/compass/images/flag/fj.png +0 -0
  318. data/examples/compass/images/flag/fk.png +0 -0
  319. data/examples/compass/images/flag/fm.png +0 -0
  320. data/examples/compass/images/flag/fr.png +0 -0
  321. data/examples/compass/images/flag/ga.png +0 -0
  322. data/examples/compass/images/flag/gb.png +0 -0
  323. data/examples/compass/images/flag/gd.png +0 -0
  324. data/examples/compass/images/flag/ge.png +0 -0
  325. data/examples/compass/images/flag/gf.png +0 -0
  326. data/examples/compass/images/flag/gh.png +0 -0
  327. data/examples/compass/images/flag/gi.png +0 -0
  328. data/examples/compass/images/flag/gl.png +0 -0
  329. data/examples/compass/images/flag/gm.png +0 -0
  330. data/examples/compass/images/flag/gn.png +0 -0
  331. data/examples/compass/images/flag/gp.png +0 -0
  332. data/examples/compass/images/flag/gq.png +0 -0
  333. data/examples/compass/images/flag/gr.png +0 -0
  334. data/examples/compass/images/flag/gs.png +0 -0
  335. data/examples/compass/images/flag/gt.png +0 -0
  336. data/examples/compass/images/flag/gu.png +0 -0
  337. data/examples/compass/images/flag/gw.png +0 -0
  338. data/examples/compass/images/flag/gy.png +0 -0
  339. data/examples/compass/images/flag/hk.png +0 -0
  340. data/examples/compass/images/flag/hm.png +0 -0
  341. data/examples/compass/images/flag/hn.png +0 -0
  342. data/examples/compass/images/flag/hr.png +0 -0
  343. data/examples/compass/images/flag/ht.png +0 -0
  344. data/examples/compass/images/flag/id-2.png +0 -0
  345. data/examples/compass/images/flag/ie.png +0 -0
  346. data/examples/compass/images/flag/il.png +0 -0
  347. data/examples/compass/images/flag/in.png +0 -0
  348. data/examples/compass/images/flag/io.png +0 -0
  349. data/examples/compass/images/flag/iq.png +0 -0
  350. data/examples/compass/images/flag/ir.png +0 -0
  351. data/examples/compass/images/flag/is.png +0 -0
  352. data/examples/compass/images/flag/it.png +0 -0
  353. data/examples/compass/images/flag/jm.png +0 -0
  354. data/examples/compass/images/flag/jo.png +0 -0
  355. data/examples/compass/images/flag/jp.png +0 -0
  356. data/examples/compass/images/flag/ke.png +0 -0
  357. data/examples/compass/images/flag/kg.png +0 -0
  358. data/examples/compass/images/flag/kh.png +0 -0
  359. data/examples/compass/images/flag/ki.png +0 -0
  360. data/examples/compass/images/flag/km.png +0 -0
  361. data/examples/compass/images/flag/kn.png +0 -0
  362. data/examples/compass/images/flag/kp.png +0 -0
  363. data/examples/compass/images/flag/kr.png +0 -0
  364. data/examples/compass/images/flag/kw.png +0 -0
  365. data/examples/compass/images/flag/ky.png +0 -0
  366. data/examples/compass/images/flag/kz.png +0 -0
  367. data/examples/compass/images/flag/la.png +0 -0
  368. data/examples/compass/images/flag/lb.png +0 -0
  369. data/examples/compass/images/flag/lc.png +0 -0
  370. data/examples/compass/images/flag/li.png +0 -0
  371. data/examples/compass/images/flag/lk.png +0 -0
  372. data/examples/compass/images/flag/lr.png +0 -0
  373. data/examples/compass/images/flag/ls.png +0 -0
  374. data/examples/compass/images/flag/lt.png +0 -0
  375. data/examples/compass/images/flag/lu.png +0 -0
  376. data/examples/compass/images/flag/lv.png +0 -0
  377. data/examples/compass/images/flag/ly.png +0 -0
  378. data/examples/compass/images/flag/ma.png +0 -0
  379. data/examples/compass/images/flag/mc.png +0 -0
  380. data/examples/compass/images/flag/md.png +0 -0
  381. data/examples/compass/images/flag/me.png +0 -0
  382. data/examples/compass/images/flag/mg.png +0 -0
  383. data/examples/compass/images/flag/mh.png +0 -0
  384. data/examples/compass/images/flag/mk.png +0 -0
  385. data/examples/compass/images/flag/ml.png +0 -0
  386. data/examples/compass/images/flag/mm.png +0 -0
  387. data/examples/compass/images/flag/mn.png +0 -0
  388. data/examples/compass/images/flag/mo.png +0 -0
  389. data/examples/compass/images/flag/mp.png +0 -0
  390. data/examples/compass/images/flag/mq.png +0 -0
  391. data/examples/compass/images/flag/mr.png +0 -0
  392. data/examples/compass/images/flag/ms.png +0 -0
  393. data/examples/compass/images/flag/mt.png +0 -0
  394. data/examples/compass/images/flag/mu.png +0 -0
  395. data/examples/compass/images/flag/mv.png +0 -0
  396. data/examples/compass/images/flag/mw.png +0 -0
  397. data/examples/compass/images/flag/mx.png +0 -0
  398. data/examples/compass/images/flag/my.png +0 -0
  399. data/examples/compass/images/flag/mz.png +0 -0
  400. data/examples/compass/images/flag/na.png +0 -0
  401. data/examples/compass/images/flag/nc.png +0 -0
  402. data/examples/compass/images/flag/ne.png +0 -0
  403. data/examples/compass/images/flag/nf.png +0 -0
  404. data/examples/compass/images/flag/ng.png +0 -0
  405. data/examples/compass/images/flag/ni.png +0 -0
  406. data/examples/compass/images/flag/nl.png +0 -0
  407. data/examples/compass/images/flag/no.png +0 -0
  408. data/examples/compass/images/flag/np.png +0 -0
  409. data/examples/compass/images/flag/nr.png +0 -0
  410. data/examples/compass/images/flag/nu.png +0 -0
  411. data/examples/compass/images/flag/nz.png +0 -0
  412. data/examples/compass/images/flag/om.png +0 -0
  413. data/examples/compass/images/flag/pa.png +0 -0
  414. data/examples/compass/images/flag/pe.png +0 -0
  415. data/examples/compass/images/flag/pf.png +0 -0
  416. data/examples/compass/images/flag/pg.png +0 -0
  417. data/examples/compass/images/flag/ph.png +0 -0
  418. data/examples/compass/images/flag/pk.png +0 -0
  419. data/examples/compass/images/flag/pl.png +0 -0
  420. data/examples/compass/images/flag/pm.png +0 -0
  421. data/examples/compass/images/flag/pn.png +0 -0
  422. data/examples/compass/images/flag/pr.png +0 -0
  423. data/examples/compass/images/flag/ps.png +0 -0
  424. data/examples/compass/images/flag/pt.png +0 -0
  425. data/examples/compass/images/flag/pw.png +0 -0
  426. data/examples/compass/images/flag/py.png +0 -0
  427. data/examples/compass/images/flag/qa.png +0 -0
  428. data/examples/compass/images/flag/re.png +0 -0
  429. data/examples/compass/images/flag/ro.png +0 -0
  430. data/examples/compass/images/flag/rs.png +0 -0
  431. data/examples/compass/images/flag/ru.png +0 -0
  432. data/examples/compass/images/flag/rw.png +0 -0
  433. data/examples/compass/images/flag/sa.png +0 -0
  434. data/examples/compass/images/flag/sb.png +0 -0
  435. data/examples/compass/images/flag/sc.png +0 -0
  436. data/examples/compass/images/flag/scotland.png +0 -0
  437. data/examples/compass/images/flag/sd.png +0 -0
  438. data/examples/compass/images/flag/se.png +0 -0
  439. data/examples/compass/images/flag/sg.png +0 -0
  440. data/examples/compass/images/flag/sh.png +0 -0
  441. data/examples/compass/images/flag/si.png +0 -0
  442. data/examples/compass/images/flag/sj.png +0 -0
  443. data/examples/compass/images/flag/sk.png +0 -0
  444. data/examples/compass/images/flag/sl.png +0 -0
  445. data/examples/compass/images/flag/sm.png +0 -0
  446. data/examples/compass/images/flag/sn.png +0 -0
  447. data/examples/compass/images/flag/so.png +0 -0
  448. data/examples/compass/images/flag/sr.png +0 -0
  449. data/examples/compass/images/flag/st.png +0 -0
  450. data/examples/compass/images/flag/sv.png +0 -0
  451. data/examples/compass/images/flag/sy.png +0 -0
  452. data/examples/compass/images/flag/sz.png +0 -0
  453. data/examples/compass/images/flag/tc.png +0 -0
  454. data/examples/compass/images/flag/td.png +0 -0
  455. data/examples/compass/images/flag/tf.png +0 -0
  456. data/examples/compass/images/flag/tg.png +0 -0
  457. data/examples/compass/images/flag/th.png +0 -0
  458. data/examples/compass/images/flag/tj.png +0 -0
  459. data/examples/compass/images/flag/tk.png +0 -0
  460. data/examples/compass/images/flag/tl.png +0 -0
  461. data/examples/compass/images/flag/tm.png +0 -0
  462. data/examples/compass/images/flag/tn.png +0 -0
  463. data/examples/compass/images/flag/to.png +0 -0
  464. data/examples/compass/images/flag/tr.png +0 -0
  465. data/examples/compass/images/flag/tt.png +0 -0
  466. data/examples/compass/images/flag/tv.png +0 -0
  467. data/examples/compass/images/flag/tw.png +0 -0
  468. data/examples/compass/images/flag/tz.png +0 -0
  469. data/examples/compass/images/flag/ua.png +0 -0
  470. data/examples/compass/images/flag/ug.png +0 -0
  471. data/examples/compass/images/flag/um.png +0 -0
  472. data/examples/compass/images/flag/us.png +0 -0
  473. data/examples/compass/images/flag/uy.png +0 -0
  474. data/examples/compass/images/flag/uz.png +0 -0
  475. data/examples/compass/images/flag/va.png +0 -0
  476. data/examples/compass/images/flag/vc.png +0 -0
  477. data/examples/compass/images/flag/ve.png +0 -0
  478. data/examples/compass/images/flag/vg.png +0 -0
  479. data/examples/compass/images/flag/vi.png +0 -0
  480. data/examples/compass/images/flag/vn.png +0 -0
  481. data/examples/compass/images/flag/vu.png +0 -0
  482. data/examples/compass/images/flag/wales.png +0 -0
  483. data/examples/compass/images/flag/wf.png +0 -0
  484. data/examples/compass/images/flag/ws.png +0 -0
  485. data/examples/compass/images/flag/ye.png +0 -0
  486. data/examples/compass/images/flag/yt.png +0 -0
  487. data/examples/compass/images/flag/za.png +0 -0
  488. data/examples/compass/images/flag/zm.png +0 -0
  489. data/examples/compass/images/flag/zw.png +0 -0
  490. data/examples/compass/images/icon-chrome.png +0 -0
  491. data/examples/compass/images/icon-firefox.png +0 -0
  492. data/examples/compass/images/icon-ie.png +0 -0
  493. data/examples/compass/images/icon-opera.png +0 -0
  494. data/examples/compass/images/icon-safari.png +0 -0
  495. data/examples/compass/pie.html.haml +0 -73
  496. data/examples/compass/sprites.html.haml +0 -37
  497. data/examples/compass/src/bp_layout.scss +0 -18
  498. data/examples/compass/src/compass.scss +0 -46
  499. data/examples/compass/src/images/blue_arrow.gif +0 -0
  500. data/examples/compass/src/pie.scss +0 -110
  501. data/examples/compass/src/sprites.scss +0 -25
  502. data/examples/compass/src/sticky_footer.scss +0 -11
  503. data/examples/compass/src/utilities.scss +0 -108
  504. data/examples/compass/sticky_footer.html.haml +0 -14
  505. data/examples/compass/utilities.html.haml +0 -189
  506. data/examples/css3/bootstrap.rb +0 -3
  507. data/examples/css3/clean.rb +0 -2
  508. data/examples/css3/config.rb +0 -6
  509. data/examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass +0 -10
  510. data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +0 -6
  511. data/examples/css3/gradients.html.haml +0 -68
  512. data/examples/css3/images/button_bg.png +0 -0
  513. data/examples/css3/images/example.png +0 -0
  514. data/examples/css3/index.html.haml +0 -57
  515. data/examples/css3/src/_base.scss +0 -13
  516. data/examples/css3/src/fancy-fonts.scss +0 -13
  517. data/examples/css3/src/gradients.scss +0 -86
  518. data/examples/css3/src/main.scss +0 -108
  519. data/examples/downloader.rb +0 -58
  520. data/examples/ninesixty/bootstrap.rb +0 -4
  521. data/examples/ninesixty/clean.rb +0 -2
  522. data/examples/ninesixty/config.rb +0 -10
  523. data/examples/ninesixty/src/grid.scss +0 -15
  524. data/examples/ninesixty/src/text.scss +0 -8
  525. data/examples/susy/bootstrap.rb +0 -3
  526. data/examples/susy/clean.rb +0 -2
  527. data/examples/susy/config.rb +0 -10
  528. data/examples/susy/src/_base.scss +0 -61
  529. data/examples/susy/src/_defaults.scss +0 -140
  530. data/examples/susy/src/screen.scss +0 -100
  531. data/examples/yui/bootstrap.rb +0 -3
  532. data/examples/yui/clean.rb +0 -2
  533. data/examples/yui/config.rb +0 -1
  534. data/examples/yui/divisions.html.haml +0 -179
  535. data/examples/yui/index.html.haml +0 -19
  536. data/examples/yui/src/screen.scss +0 -13
  537. data/examples/yui/sub_divisions.html.haml +0 -169
  538. data/examples/yui/templates.html.haml +0 -54
  539. data/examples/yui/test.jpg +0 -0
  540. data/examples/yui/typography.html.haml +0 -132
  541. data/frameworks/blueprint/stylesheets/_blueprint.scss +0 -37
  542. data/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +0 -101
  543. data/frameworks/blueprint/stylesheets/blueprint/_colors.scss +0 -36
  544. data/frameworks/blueprint/stylesheets/blueprint/_debug.scss +0 -28
  545. data/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +0 -88
  546. data/frameworks/blueprint/stylesheets/blueprint/_form.scss +0 -66
  547. data/frameworks/blueprint/stylesheets/blueprint/_grid.scss +0 -258
  548. data/frameworks/blueprint/stylesheets/blueprint/_ie.scss +0 -111
  549. data/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +0 -66
  550. data/frameworks/blueprint/stylesheets/blueprint/_link-icons.scss +0 -37
  551. data/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +0 -152
  552. data/frameworks/blueprint/stylesheets/blueprint/_print.scss +0 -86
  553. data/frameworks/blueprint/stylesheets/blueprint/_reset.scss +0 -3
  554. data/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +0 -121
  555. data/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +0 -52
  556. data/frameworks/blueprint/stylesheets/blueprint/_typography.scss +0 -90
  557. data/frameworks/blueprint/stylesheets/blueprint/_utilities.scss +0 -37
  558. data/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +0 -83
  559. data/frameworks/blueprint/templates/basic/grid.png +0 -0
  560. data/frameworks/blueprint/templates/basic/ie.sass +0 -4
  561. data/frameworks/blueprint/templates/basic/manifest.rb +0 -30
  562. data/frameworks/blueprint/templates/basic/partials/_base.sass +0 -10
  563. data/frameworks/blueprint/templates/basic/print.sass +0 -4
  564. data/frameworks/blueprint/templates/basic/screen.sass +0 -12
  565. data/frameworks/blueprint/templates/buttons/buttons.sass +0 -49
  566. data/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
  567. data/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
  568. data/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
  569. data/frameworks/blueprint/templates/buttons/manifest.rb +0 -17
  570. data/frameworks/blueprint/templates/link_icons/link_icons.sass +0 -13
  571. data/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
  572. data/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
  573. data/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
  574. data/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
  575. data/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
  576. data/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
  577. data/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
  578. data/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
  579. data/frameworks/blueprint/templates/link_icons/manifest.rb +0 -23
  580. data/frameworks/blueprint/templates/project/grid.png +0 -0
  581. data/frameworks/blueprint/templates/project/ie.sass +0 -16
  582. data/frameworks/blueprint/templates/project/manifest.rb +0 -30
  583. data/frameworks/blueprint/templates/project/partials/_base.sass +0 -11
  584. data/frameworks/blueprint/templates/project/print.sass +0 -8
  585. data/frameworks/blueprint/templates/project/screen.sass +0 -46
  586. data/frameworks/blueprint/templates/semantic/grid.png +0 -0
  587. data/frameworks/blueprint/templates/semantic/ie.sass +0 -16
  588. data/frameworks/blueprint/templates/semantic/manifest.rb +0 -33
  589. data/frameworks/blueprint/templates/semantic/partials/_base.sass +0 -10
  590. data/frameworks/blueprint/templates/semantic/partials/_form.sass +0 -6
  591. data/frameworks/blueprint/templates/semantic/partials/_page.sass +0 -17
  592. data/frameworks/blueprint/templates/semantic/partials/_two_col.sass +0 -38
  593. data/frameworks/blueprint/templates/semantic/print.sass +0 -5
  594. data/frameworks/blueprint/templates/semantic/screen.sass +0 -14
  595. data/frameworks/compass/stylesheets/_compass.scss +0 -3
  596. data/frameworks/compass/stylesheets/_lemonade.scss +0 -38
  597. data/frameworks/compass/stylesheets/compass/_css3.scss +0 -20
  598. data/frameworks/compass/stylesheets/compass/_layout.scss +0 -3
  599. data/frameworks/compass/stylesheets/compass/_reset-legacy.scss +0 -3
  600. data/frameworks/compass/stylesheets/compass/_reset.scss +0 -3
  601. data/frameworks/compass/stylesheets/compass/_support.scss +0 -40
  602. data/frameworks/compass/stylesheets/compass/_typography.scss +0 -4
  603. data/frameworks/compass/stylesheets/compass/_utilities.scss +0 -9
  604. data/frameworks/compass/stylesheets/compass/css3/_appearance.scss +0 -17
  605. data/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +0 -43
  606. data/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +0 -42
  607. data/frameworks/compass/stylesheets/compass/css3/_background-size.scss +0 -26
  608. data/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +0 -130
  609. data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +0 -76
  610. data/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +0 -13
  611. data/frameworks/compass/stylesheets/compass/css3/_box.scss +0 -111
  612. data/frameworks/compass/stylesheets/compass/css3/_columns.scss +0 -157
  613. data/frameworks/compass/stylesheets/compass/css3/_filter.scss +0 -23
  614. data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +0 -48
  615. data/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss +0 -77
  616. data/frameworks/compass/stylesheets/compass/css3/_images.scss +0 -132
  617. data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +0 -22
  618. data/frameworks/compass/stylesheets/compass/css3/_opacity.scss +0 -19
  619. data/frameworks/compass/stylesheets/compass/css3/_pie.scss +0 -73
  620. data/frameworks/compass/stylesheets/compass/css3/_regions.scss +0 -22
  621. data/frameworks/compass/stylesheets/compass/css3/_shared.scss +0 -38
  622. data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +0 -87
  623. data/frameworks/compass/stylesheets/compass/css3/_transform-legacy.scss +0 -87
  624. data/frameworks/compass/stylesheets/compass/css3/_transform.scss +0 -598
  625. data/frameworks/compass/stylesheets/compass/css3/_transition.scss +0 -221
  626. data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +0 -17
  627. data/frameworks/compass/stylesheets/compass/layout/_grid-background.scss +0 -178
  628. data/frameworks/compass/stylesheets/compass/layout/_sticky-footer.scss +0 -23
  629. data/frameworks/compass/stylesheets/compass/layout/_stretching.scss +0 -24
  630. data/frameworks/compass/stylesheets/compass/reset/_utilities-legacy.scss +0 -135
  631. data/frameworks/compass/stylesheets/compass/reset/_utilities.scss +0 -142
  632. data/frameworks/compass/stylesheets/compass/typography/_links.scss +0 -3
  633. data/frameworks/compass/stylesheets/compass/typography/_lists.scss +0 -4
  634. data/frameworks/compass/stylesheets/compass/typography/_text.scss +0 -4
  635. data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +0 -221
  636. data/frameworks/compass/stylesheets/compass/typography/links/_hover-link.scss +0 -5
  637. data/frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss +0 -28
  638. data/frameworks/compass/stylesheets/compass/typography/links/_unstyled-link.scss +0 -7
  639. data/frameworks/compass/stylesheets/compass/typography/lists/_bullets.scss +0 -34
  640. data/frameworks/compass/stylesheets/compass/typography/lists/_horizontal-list.scss +0 -61
  641. data/frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss +0 -50
  642. data/frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss +0 -44
  643. data/frameworks/compass/stylesheets/compass/typography/text/_ellipsis.scss +0 -25
  644. data/frameworks/compass/stylesheets/compass/typography/text/_force-wrap.scss +0 -12
  645. data/frameworks/compass/stylesheets/compass/typography/text/_nowrap.scss +0 -2
  646. data/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss +0 -68
  647. data/frameworks/compass/stylesheets/compass/utilities/_color.scss +0 -1
  648. data/frameworks/compass/stylesheets/compass/utilities/_general.scss +0 -6
  649. data/frameworks/compass/stylesheets/compass/utilities/_links.scss +0 -5
  650. data/frameworks/compass/stylesheets/compass/utilities/_lists.scss +0 -6
  651. data/frameworks/compass/stylesheets/compass/utilities/_print.scss +0 -17
  652. data/frameworks/compass/stylesheets/compass/utilities/_sprites.scss +0 -2
  653. data/frameworks/compass/stylesheets/compass/utilities/_tables.scss +0 -3
  654. data/frameworks/compass/stylesheets/compass/utilities/_text.scss +0 -5
  655. data/frameworks/compass/stylesheets/compass/utilities/color/_contrast.scss +0 -28
  656. data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss +0 -44
  657. data/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +0 -30
  658. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +0 -46
  659. data/frameworks/compass/stylesheets/compass/utilities/general/_min.scss +0 -16
  660. data/frameworks/compass/stylesheets/compass/utilities/general/_reset.scss +0 -2
  661. data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.scss +0 -1
  662. data/frameworks/compass/stylesheets/compass/utilities/general/_tag-cloud.scss +0 -18
  663. data/frameworks/compass/stylesheets/compass/utilities/links/_hover-link.scss +0 -3
  664. data/frameworks/compass/stylesheets/compass/utilities/links/_link-colors.scss +0 -3
  665. data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled-link.scss +0 -3
  666. data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.scss +0 -3
  667. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +0 -3
  668. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +0 -3
  669. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +0 -3
  670. data/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss +0 -66
  671. data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +0 -79
  672. data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +0 -22
  673. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +0 -33
  674. data/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.scss +0 -9
  675. data/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.scss +0 -3
  676. data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.scss +0 -3
  677. data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss +0 -3
  678. data/frameworks/compass/templates/ellipsis/ellipsis.sass +0 -9
  679. data/frameworks/compass/templates/ellipsis/manifest.rb +0 -27
  680. data/frameworks/compass/templates/ellipsis/xml/ellipsis.xml +0 -14
  681. data/frameworks/compass/templates/extension/manifest.rb +0 -26
  682. data/frameworks/compass/templates/extension/stylesheets/main.sass +0 -1
  683. data/frameworks/compass/templates/extension/templates/project/manifest.rb +0 -2
  684. data/frameworks/compass/templates/extension/templates/project/screen.sass +0 -2
  685. data/frameworks/compass/templates/pie/LICENSE +0 -12
  686. data/frameworks/compass/templates/pie/LICENSE-APACHE2.txt +0 -13
  687. data/frameworks/compass/templates/pie/LICENSE-GPL2.txt +0 -278
  688. data/frameworks/compass/templates/pie/PIE.htc +0 -96
  689. data/frameworks/compass/templates/pie/manifest.rb +0 -39
  690. data/frameworks/compass/templates/pie/pie.scss +0 -74
  691. data/frameworks/compass/templates/project/USAGE.markdown +0 -32
  692. data/frameworks/compass/templates/project/ie.sass +0 -6
  693. data/frameworks/compass/templates/project/manifest.rb +0 -4
  694. data/frameworks/compass/templates/project/print.sass +0 -6
  695. data/frameworks/compass/templates/project/screen.sass +0 -7
  696. data/lib/compass/app_integration/rails.rb +0 -18
  697. data/lib/compass/browser_support.rb +0 -62
  698. data/lib/compass/commands/generate_grid_background.rb +0 -96
  699. data/lib/compass/configuration.rb +0 -91
  700. data/lib/compass/configuration/adapters.rb +0 -77
  701. data/lib/compass/configuration/data.rb +0 -193
  702. data/lib/compass/configuration/defaults.rb +0 -187
  703. data/lib/compass/configuration/inheritance.rb +0 -304
  704. data/lib/compass/configuration/paths.rb +0 -19
  705. data/lib/compass/exec/switch_ui.rb +0 -179
  706. data/lib/compass/frameworks.rb +0 -133
  707. data/lib/compass/grid_builder.rb +0 -102
  708. data/lib/compass/sass_extensions/functions/colors.rb +0 -67
  709. data/lib/compass/sass_extensions/functions/constants.rb +0 -74
  710. data/lib/compass/sass_extensions/functions/cross_browser_support.rb +0 -70
  711. data/lib/compass/sass_extensions/functions/display.rb +0 -27
  712. data/lib/compass/sass_extensions/functions/enumerate.rb +0 -7
  713. data/lib/compass/sass_extensions/functions/env.rb +0 -5
  714. data/lib/compass/sass_extensions/functions/font_files.rb +0 -41
  715. data/lib/compass/sass_extensions/functions/gradient_support.rb +0 -540
  716. data/lib/compass/sass_extensions/functions/image_size.rb +0 -113
  717. data/lib/compass/sass_extensions/functions/inline_image.rb +0 -64
  718. data/lib/compass/sass_extensions/functions/lists.rb +0 -101
  719. data/lib/compass/sass_extensions/functions/math.rb +0 -63
  720. data/lib/compass/sass_extensions/functions/selectors.rb +0 -64
  721. data/lib/compass/sass_extensions/functions/urls.rb +0 -266
  722. data/lib/compass/sass_extensions/monkey_patches.rb +0 -3
  723. data/lib/compass/sass_extensions/monkey_patches/browser_support.rb +0 -95
  724. data/lib/compass/sass_extensions/monkey_patches/traversal.rb +0 -23
  725. data/lib/compass/util.rb +0 -29
  726. data/test/fixtures/stylesheets/blueprint/config.rb +0 -14
  727. data/test/fixtures/stylesheets/blueprint/css/ie.css +0 -76
  728. data/test/fixtures/stylesheets/blueprint/css/print.css +0 -56
  729. data/test/fixtures/stylesheets/blueprint/css/screen.css +0 -815
  730. data/test/fixtures/stylesheets/blueprint/css/single-imports/buttons.css +0 -56
  731. data/test/fixtures/stylesheets/blueprint/css/single-imports/colors.css +0 -80
  732. data/test/fixtures/stylesheets/blueprint/css/single-imports/debug.css +0 -11
  733. data/test/fixtures/stylesheets/blueprint/css/single-imports/fancy-type.css +0 -30
  734. data/test/fixtures/stylesheets/blueprint/css/single-imports/form.css +0 -42
  735. data/test/fixtures/stylesheets/blueprint/css/single-imports/grid.css +0 -435
  736. data/test/fixtures/stylesheets/blueprint/css/single-imports/ie.css +0 -76
  737. data/test/fixtures/stylesheets/blueprint/css/single-imports/interaction.css +0 -46
  738. data/test/fixtures/stylesheets/blueprint/css/single-imports/link-icons.css +0 -40
  739. data/test/fixtures/stylesheets/blueprint/css/single-imports/liquid.css +0 -651
  740. data/test/fixtures/stylesheets/blueprint/css/single-imports/print.css +0 -60
  741. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +0 -75
  742. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset.css +0 -42
  743. data/test/fixtures/stylesheets/blueprint/css/single-imports/rtl.css +0 -437
  744. data/test/fixtures/stylesheets/blueprint/css/single-imports/scaffolding.css +0 -45
  745. data/test/fixtures/stylesheets/blueprint/css/single-imports/typography.css +0 -146
  746. data/test/fixtures/stylesheets/blueprint/css/single-imports/utilities.css +0 -35
  747. data/test/fixtures/stylesheets/blueprint/images/grid.png +0 -0
  748. data/test/fixtures/stylesheets/blueprint/images/link_icons/doc.png +0 -0
  749. data/test/fixtures/stylesheets/blueprint/images/link_icons/email.png +0 -0
  750. data/test/fixtures/stylesheets/blueprint/images/link_icons/external.png +0 -0
  751. data/test/fixtures/stylesheets/blueprint/images/link_icons/feed.png +0 -0
  752. data/test/fixtures/stylesheets/blueprint/images/link_icons/im.png +0 -0
  753. data/test/fixtures/stylesheets/blueprint/images/link_icons/pdf.png +0 -0
  754. data/test/fixtures/stylesheets/blueprint/images/link_icons/visited.png +0 -0
  755. data/test/fixtures/stylesheets/blueprint/images/link_icons/xls.png +0 -0
  756. data/test/fixtures/stylesheets/blueprint/sass/ie.sass +0 -3
  757. data/test/fixtures/stylesheets/blueprint/sass/print.sass +0 -3
  758. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +0 -18
  759. data/test/fixtures/stylesheets/blueprint/sass/single-imports/buttons.scss +0 -4
  760. data/test/fixtures/stylesheets/blueprint/sass/single-imports/colors.scss +0 -34
  761. data/test/fixtures/stylesheets/blueprint/sass/single-imports/debug.scss +0 -3
  762. data/test/fixtures/stylesheets/blueprint/sass/single-imports/fancy-type.scss +0 -3
  763. data/test/fixtures/stylesheets/blueprint/sass/single-imports/form.scss +0 -5
  764. data/test/fixtures/stylesheets/blueprint/sass/single-imports/grid.scss +0 -3
  765. data/test/fixtures/stylesheets/blueprint/sass/single-imports/ie.scss +0 -3
  766. data/test/fixtures/stylesheets/blueprint/sass/single-imports/interaction.scss +0 -3
  767. data/test/fixtures/stylesheets/blueprint/sass/single-imports/link-icons.scss +0 -13
  768. data/test/fixtures/stylesheets/blueprint/sass/single-imports/liquid.scss +0 -3
  769. data/test/fixtures/stylesheets/blueprint/sass/single-imports/print.scss +0 -5
  770. data/test/fixtures/stylesheets/blueprint/sass/single-imports/reset-utilities.scss +0 -5
  771. data/test/fixtures/stylesheets/blueprint/sass/single-imports/reset.scss +0 -1
  772. data/test/fixtures/stylesheets/blueprint/sass/single-imports/rtl.scss +0 -3
  773. data/test/fixtures/stylesheets/blueprint/sass/single-imports/scaffolding.scss +0 -5
  774. data/test/fixtures/stylesheets/blueprint/sass/single-imports/typography.scss +0 -3
  775. data/test/fixtures/stylesheets/blueprint/sass/single-imports/utilities.scss +0 -3
  776. data/test/fixtures/stylesheets/compass/css/pie.css +0 -26
  777. data/test/fixtures/stylesheets/compass/css/sprites.css +0 -1262
  778. data/test/fixtures/stylesheets/compass/sass/pie.scss +0 -47
  779. data/test/fixtures/stylesheets/compass/sass/sprites.scss +0 -13
  780. data/test/units/compass_module_test.rb +0 -36
  781. data/test/units/compass_png_test.rb +0 -46
@@ -0,0 +1,50 @@
1
+ /* New using px output */
2
+ $base-font-size: 18px;
3
+ $base-line-height: $base-font-size * 1.4;
4
+ $rhythm-unit: px;
5
+ $default-rhythm-border-style: solid #aaaaaa;
6
+ @import "compass/typography/vertical_rhythm";
7
+
8
+ @include establish-baseline;
9
+
10
+ .container {
11
+ @include debug-vertical-alignment;
12
+ }
13
+
14
+ p {
15
+ @include margin-leader;
16
+ @include margin-trailer;
17
+ }
18
+
19
+ th,
20
+ td {
21
+ @include rhythm-padding(.25);
22
+ }
23
+
24
+ /* Incremental leading made easy! */
25
+ .caption {
26
+ @include adjust-font-size-to(.85rem, 4/5);
27
+ }
28
+
29
+ .spaced-out {
30
+ @include adjust-leading-to(1.5);
31
+ }
32
+
33
+ blockquote {
34
+ @include rhythm-margins;
35
+ padding: 0 rhythm();
36
+ }
37
+
38
+ .fig-quote {
39
+ > blockquote {
40
+ @include trailer(.5);
41
+ }
42
+ .source {
43
+ @include adjust-font-size-to(.85rem, auto);
44
+ @include trailer(.5);
45
+ }
46
+ }
47
+
48
+ .panel {
49
+ @include rhythm-borders;
50
+ }
@@ -0,0 +1,50 @@
1
+ /* New using rem output with pixel fallbacks */
2
+ $base-font-size: 18px;
3
+ $base-line-height: $base-font-size * 1.4;
4
+ $rhythm-unit: rem;
5
+ $default-rhythm-border-style: solid #aaaaaa;
6
+ @import "compass/typography/vertical_rhythm";
7
+
8
+ @include establish-baseline;
9
+
10
+ .container {
11
+ @include debug-vertical-alignment;
12
+ }
13
+
14
+ p {
15
+ @include margin-leader;
16
+ @include margin-trailer;
17
+ }
18
+
19
+ th,
20
+ td {
21
+ @include rhythm-padding(.25);
22
+ }
23
+
24
+ /* Incremental leading made easy! */
25
+ .caption {
26
+ @include adjust-font-size-to(.85rem, 4/5);
27
+ }
28
+
29
+ .spaced-out {
30
+ @include adjust-leading-to(1.5);
31
+ }
32
+
33
+ blockquote {
34
+ @include rhythm-margins;
35
+ padding: 0 rhythm();
36
+ }
37
+
38
+ .fig-quote {
39
+ > blockquote {
40
+ @include trailer(.5);
41
+ }
42
+ .source {
43
+ @include adjust-font-size-to(.85rem, auto);
44
+ @include trailer(.5);
45
+ }
46
+ }
47
+
48
+ .panel {
49
+ @include rhythm-borders;
50
+ }
@@ -1,2 +1,10 @@
1
1
  .env {
2
2
  env: <%= options[:environment] %>; }
3
+ .time {
4
+ time: <%= Time.now.strftime("%F") %>; }
5
+ .date {
6
+ date: <%= Time.now.strftime("%F") %>; }
7
+ .filename {
8
+ file: env.scss; }
9
+ .output {
10
+ output: env.css; }
@@ -1,3 +1,19 @@
1
1
  .env {
2
2
  env: compass-env();
3
3
  }
4
+
5
+ .time {
6
+ time: current-time("%F");
7
+ }
8
+
9
+ .date {
10
+ date: current-date("%F");
11
+ }
12
+
13
+ .filename {
14
+ file: current-source-file();
15
+ }
16
+
17
+ .output {
18
+ output: current-output-file();
19
+ }
@@ -0,0 +1,10 @@
1
+ # Require any additional compass plugins here.
2
+ css_dir = "tmp"
3
+ sass_dir = "sass"
4
+ images_dir = "assets/images"
5
+ javascripts_dir = "assets/javascripts"
6
+ # Set this to the root of your project when deployed:
7
+ http_path = "/"
8
+ # To enable relative paths to assets via compass helper functions. Uncomment:
9
+ relative_assets = true
10
+ sourcemap = true
@@ -0,0 +1,2 @@
1
+ .another-simple-class{color:blue}
2
+ /*# sourceMappingURL=another_simple.css.map */
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "mappings": "AAAA,qBAAsB,CACpB,KAAK,CAAE,IAAI",
4
+ "sources": ["../sass/another_simple.scss"],
5
+ "names": [],
6
+ "file": "another_simple.css"
7
+ }
@@ -0,0 +1,2 @@
1
+ div{color:red}
2
+ /*# sourceMappingURL=simple.css.map */
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "mappings": "AAAA,GAAG,CACD,KAAK,CAAE,GAAG",
4
+ "sources": ["../sass/simple.sass"],
5
+ "names": [],
6
+ "file": "simple.css"
7
+ }
@@ -0,0 +1,2 @@
1
+ *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}
2
+ /*# sourceMappingURL=with_libraries.css.map */
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "mappings": "AAEA,CAAE,CC0VA,eAAwC,CC1U5B,UAAmB,CD0U/B,kBAAwC,CC1U5B,UAAmB,CD0U/B,UAAwC,CC1U5B,UAAmB",
4
+ "sources": ["../sass/with_libraries.scss","../../../../../../core/stylesheets/compass/_support.scss","../../../../../../core/stylesheets/compass/css3/_box-sizing.scss"],
5
+ "names": [],
6
+ "file": "with_libraries.css"
7
+ }
@@ -0,0 +1,3 @@
1
+ .another-simple-class {
2
+ color: blue;
3
+ }
@@ -0,0 +1,2 @@
1
+ div
2
+ color: red
@@ -0,0 +1,5 @@
1
+ @import "compass/css3/box-sizing";
2
+
3
+ * {
4
+ @include box-sizing;
5
+ }
@@ -0,0 +1,3 @@
1
+ .another-simple-class {
2
+ color: blue;
3
+ }
@@ -0,0 +1,26 @@
1
+ require 'sass-globbing'
2
+ require 'compass/import-once/activate'
3
+ # Require any additional compass plugins here.
4
+
5
+ # Set this to the root of your project when deployed:
6
+ http_path = "/"
7
+ css_dir = "tmp"
8
+ sass_dir = "sass"
9
+ images_dir = "images"
10
+ javascripts_dir = "javascripts"
11
+
12
+ # You can select your preferred output style here (can be overridden via the command line):
13
+ output_style = :expanded
14
+
15
+ # To enable relative paths to assets via compass helper functions. Uncomment:
16
+ relative_assets = true
17
+
18
+ # To disable debugging comments that display the original location of your selectors. Uncomment:
19
+ line_comments = true
20
+
21
+
22
+ # If you prefer the indented syntax, you might want to regenerate this
23
+ # project again passing --syntax sass, or you can uncomment this:
24
+ # preferred_syntax = :sass
25
+ # and then run:
26
+ # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
@@ -0,0 +1,19 @@
1
+ /* line 1, ../sass/partials/_1.scss */
2
+ .one {
3
+ value: 1;
4
+ }
5
+
6
+ /* line 1, ../sass/partials/_2.scss */
7
+ .two {
8
+ value: 2;
9
+ }
10
+
11
+ /* line 1, ../sass/partials/_3.scss */
12
+ .three {
13
+ value: 3;
14
+ }
15
+
16
+ /* line 3, ../sass/screen.scss */
17
+ .something {
18
+ awww: yeah;
19
+ }
@@ -0,0 +1,4 @@
1
+ .three {
2
+ value: 3;
3
+ }
4
+
@@ -0,0 +1,3 @@
1
+ @import "partials/*";
2
+
3
+ .something { awww: yeah; }
data/test/helpers/diff.rb CHANGED
@@ -3,7 +3,7 @@ require 'diff/lcs/hunk'
3
3
  module Compass
4
4
  module Diff
5
5
  #stole this from rspec who stole this from the gem
6
- def diff_as_string(data_new, data_old)
6
+ def diff_as_string(data_old, data_new)
7
7
  data_old = data_old.split(/\n/).map! { |e| e.chomp }
8
8
  data_new = data_new.split(/\n/).map! { |e| e.chomp }
9
9
  output = ""
@@ -11,8 +11,10 @@ class CompassTest < Test::Unit::TestCase
11
11
  end
12
12
 
13
13
  def teardown
14
- [:blueprint, :empty, :compass, :image_urls, :relative].each do |project_name|
14
+ Dir.glob(absolutize("fixtures/stylesheets/*")).each do |dir|
15
+ project_name = File.basename(dir)
15
16
  ::FileUtils.rm_rf tempfile_path(project_name)
17
+ ::FileUtils.rm_rf File.join(project_path(project_name), ".sass-cache")
16
18
  end
17
19
  end
18
20
 
@@ -23,7 +25,7 @@ class CompassTest < Test::Unit::TestCase
23
25
  before_compile = Proc.new do |config|
24
26
  config.on_stylesheet_saved {|filepath| path = filepath; saved = true }
25
27
  end
26
- within_project(:blueprint, before_compile)
28
+ within_project(:compass, before_compile)
27
29
  assert saved, "Stylesheet callback didn't get called"
28
30
  assert path.is_a?(String), "Path is not a string. Got: #{path.class.name}"
29
31
  end
@@ -36,7 +38,7 @@ class CompassTest < Test::Unit::TestCase
36
38
  before_compile = Proc.new do |config|
37
39
  config.on_stylesheet_error {|filename, message| file = filename; error = true }
38
40
  end
39
- within_project(:error, before_compile) rescue nil;
41
+ within_project(:error, before_compile) rescue nil
40
42
  assert error, "Project did not throw a compile error"
41
43
  assert file.is_a?(String), "Filename was not a string"
42
44
  end
@@ -51,10 +53,10 @@ class CompassTest < Test::Unit::TestCase
51
53
  end
52
54
  end
53
55
 
54
- def test_blueprint
55
- within_project(:blueprint) do |proj|
56
+ def test_compass
57
+ within_project('compass') do |proj|
56
58
  each_css_file(proj.css_path) do |css_file|
57
- assert_no_errors css_file, :blueprint
59
+ assert_no_errors css_file, 'compass'
58
60
  end
59
61
  each_sass_file do |sass_file|
60
62
  assert_renders_correctly sass_file, :ignore_charset => true
@@ -62,10 +64,10 @@ class CompassTest < Test::Unit::TestCase
62
64
  end
63
65
  end
64
66
 
65
- def test_compass
66
- within_project('compass') do |proj|
67
+ def test_sourcemaps
68
+ within_project('sourcemaps') do |proj|
67
69
  each_css_file(proj.css_path) do |css_file|
68
- assert_no_errors css_file, 'compass'
70
+ assert_no_errors css_file, 'sourcemaps'
69
71
  end
70
72
  each_sass_file do |sass_file|
71
73
  assert_renders_correctly sass_file, :ignore_charset => true
@@ -95,6 +97,17 @@ class CompassTest < Test::Unit::TestCase
95
97
  end
96
98
  end
97
99
 
100
+ def test_busted_font_urls
101
+ within_project('busted_font_urls') do |proj|
102
+ each_css_file(proj.css_path) do |css_file|
103
+ assert_no_errors css_file, 'busted_font_urls'
104
+ end
105
+ each_sass_file do |sass_file|
106
+ assert_renders_correctly sass_file
107
+ end
108
+ end
109
+ end
110
+
98
111
  def test_busted_image_urls
99
112
  within_project('busted_image_urls') do |proj|
100
113
  each_css_file(proj.css_path) do |css_file|
@@ -106,6 +119,17 @@ class CompassTest < Test::Unit::TestCase
106
119
  end
107
120
  end
108
121
 
122
+ def test_with_sass_globbing
123
+ within_project('with_sass_globbing') do |proj|
124
+ each_css_file(proj.css_path) do |css_file|
125
+ assert_no_errors css_file, 'with_sass_globbing'
126
+ end
127
+ each_sass_file do |sass_file|
128
+ assert_renders_correctly sass_file
129
+ end
130
+ end
131
+ end
132
+
109
133
  def test_image_urls
110
134
  within_project('image_urls') do |proj|
111
135
  each_css_file(proj.css_path) do |css_file|
@@ -138,8 +162,9 @@ private
138
162
  def assert_renders_correctly(*arguments)
139
163
  options = arguments.last.is_a?(Hash) ? arguments.pop : {}
140
164
  for name in arguments
141
- actual_result_file = "#{tempfile_path(@current_project)}/#{name}.css"
165
+ @output_file = actual_result_file = "#{tempfile_path(@current_project)}/#{name}.css"
142
166
  expected_result_file = "#{result_path(@current_project)}/#{name}.css"
167
+ @filename = expected_result_file.gsub('css', 'scss')
143
168
  actual_lines = File.read(actual_result_file)
144
169
  actual_lines.gsub!(/^@charset[^;]+;/,'') if options[:ignore_charset]
145
170
  actual_lines = actual_lines.split("\n").reject{|l| l=~/\A\Z/}
@@ -154,7 +179,7 @@ private
154
179
  end
155
180
  end
156
181
  if expected_lines.size < actual_lines.size
157
- assert(false, "#{actual_lines.size - expected_lines.size} Trailing lines found in #{actual_result_file}.css: #{actual_lines[expected_lines.size..-1].join('\n')}")
182
+ assert(false, "#{actual_lines.size - expected_lines.size} Trailing lines found in #{actual_result_file}: #{actual_lines[expected_lines.size..-1].join('\n')}")
158
183
  end
159
184
  end
160
185
  end
@@ -164,16 +189,17 @@ private
164
189
  Compass.add_configuration(configuration_file(project_name)) if File.exists?(configuration_file(project_name))
165
190
  Compass.configuration.project_path = project_path(project_name)
166
191
  Compass.configuration.environment = :production
167
- args = Compass.configuration.to_compiler_arguments(:logger => Compass::NullLogger.new)
192
+ Compass.configuration.sourcemap = false unless Compass.configuration.sourcemap_set?
168
193
 
169
194
  if config_block
170
195
  config_block.call(Compass.configuration)
171
196
  end
172
197
 
173
198
  if Compass.configuration.sass_path && File.exists?(Compass.configuration.sass_path)
174
- compiler = Compass::Compiler.new *args
199
+ compiler = Compass.sass_compiler
200
+ compiler.logger = Compass::NullLogger.new
175
201
  compiler.clean!
176
- compiler.run
202
+ compiler.compile!
177
203
  end
178
204
  yield Compass.configuration if block_given?
179
205
  rescue
@@ -188,6 +214,7 @@ private
188
214
  def each_sass_file(sass_dir = nil)
189
215
  sass_dir ||= template_path(@current_project)
190
216
  Dir.glob("#{sass_dir}/**/*.s[ac]ss").each do |sass_file|
217
+ next if File.basename(sass_file).start_with?("_")
191
218
  yield sass_file[(sass_dir.length+1)..-6]
192
219
  end
193
220
  end
@@ -221,4 +248,12 @@ private
221
248
  File.join(project_path(project_name), "saved")
222
249
  end
223
250
 
251
+ def filename
252
+ @filename
253
+ end
254
+
255
+ def output_file
256
+ @output_file
257
+ end
258
+
224
259
  end
@@ -9,11 +9,19 @@ class SpritesTest < Test::Unit::TestCase
9
9
 
10
10
  def setup
11
11
  Compass.reset_configuration!
12
- @images_src_path = File.join(File.dirname(__FILE__), '..', 'fixtures', 'sprites', 'public', 'images')
13
- @images_tmp_path = File.join(File.dirname(__FILE__), '..', 'fixtures', 'sprites', 'public', 'images-tmp')
14
- @generated_images_tmp_path = File.join(File.dirname(__FILE__), '..', 'fixtures', 'sprites', 'public', 'generated-images-tmp')
12
+ @images_project_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'fixtures', 'sprites', 'public'))
13
+ @images_src_dir = 'images'
14
+ @images_src_path = File.join(@images_project_path, @images_src_dir)
15
+ @images_tmp_dir = 'images-tmp'
16
+ @images_tmp_path = File.join(@images_project_path, @images_tmp_dir)
17
+ @generated_images_tmp_dir = 'generated-images-tmp'
18
+ @generated_images_tmp_path = File.join(@images_project_path, @generated_images_tmp_dir)
15
19
  ::FileUtils.cp_r @images_src_path, @images_tmp_path
16
- file = StringIO.new("images_path = #{@images_tmp_path.inspect}\n")
20
+ ::FileUtils.mkdir_p @generated_images_tmp_path
21
+ file = StringIO.new(<<-CONFIG)
22
+ project_path = "#{@images_project_path}"
23
+ images_dir = "#{@images_tmp_dir}"
24
+ CONFIG
17
25
  Compass.add_configuration(file, "sprite_config")
18
26
  Compass.configure_sass_plugin!
19
27
  end
@@ -34,7 +42,7 @@ class SpritesTest < Test::Unit::TestCase
34
42
  end
35
43
 
36
44
  def image_size(file)
37
- open(map_location(file), "rb").read[0x10..0x18].unpack('NN')
45
+ Compass::Core::SassExtensions::Functions::ImageSize::ImageProperties.new(map_location(file)).size
38
46
  end
39
47
 
40
48
  def image_md5(file)
@@ -44,7 +52,6 @@ class SpritesTest < Test::Unit::TestCase
44
52
  end
45
53
 
46
54
  def render(scss)
47
- scss = %Q(@import "compass"; #{scss})
48
55
  options = Compass.sass_engine_options
49
56
  options[:line_comments] = false
50
57
  options[:style] = :expanded
@@ -65,9 +72,10 @@ class SpritesTest < Test::Unit::TestCase
65
72
  @import "squares/*.png";
66
73
  @include all-squares-sprites;
67
74
  SCSS
68
- assert_correct css, <<-CSS
75
+ assert_correct <<-CSS, css
69
76
  .squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
70
- background: url('/squares-sbbc18e2129.png') no-repeat;
77
+ background-image: url('/images-tmp/squares-sbbc18e2129.png');
78
+ background-repeat: no-repeat;
71
79
  }
72
80
 
73
81
  .squares-ten-by-ten {
@@ -98,7 +106,8 @@ class SpritesTest < Test::Unit::TestCase
98
106
  assert_not_nil Dir.glob("#{@generated_images_tmp_path}/squares-s*.png").first
99
107
  assert_correct <<-CSS, css
100
108
  .squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
101
- background: url('/images/generated/squares-sbbc18e2129.png') no-repeat;
109
+ background-image: url('/images/generated/squares-sbbc18e2129.png');
110
+ background-repeat: no-repeat;
102
111
  }
103
112
 
104
113
  .squares-ten-by-ten {
@@ -117,9 +126,10 @@ class SpritesTest < Test::Unit::TestCase
117
126
  @import "squares/*.png";
118
127
  @include all-squares-sprites;
119
128
  SCSS
120
- assert_correct css, <<-CSS
129
+ assert_correct <<-CSS, css
121
130
  .squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
122
- background: url('/squares-sbbc18e2129.png') no-repeat;
131
+ background-image: url('/images-tmp/squares-sbbc18e2129.png');
132
+ background-repeat: no-repeat;
123
133
  }
124
134
 
125
135
  .squares-ten-by-ten {
@@ -149,9 +159,10 @@ class SpritesTest < Test::Unit::TestCase
149
159
  @include squares-sprite("twenty-by-twenty", true);
150
160
  }
151
161
  SCSS
152
- assert_correct css, <<-CSS
162
+ assert_correct <<-CSS, css
153
163
  .squares-sprite, .cubicle, .large-cube {
154
- background: url('/squares-sbbc18e2129.png') no-repeat;
164
+ background-image: url('/images-tmp/squares-sbbc18e2129.png');
165
+ background-repeat: no-repeat;
155
166
  }
156
167
 
157
168
  .cubicle {
@@ -174,9 +185,10 @@ class SpritesTest < Test::Unit::TestCase
174
185
  $squares-sprite-base-class: ".circles";
175
186
  @import "squares/*.png";
176
187
  SCSS
177
- assert_correct css, <<-CSS
188
+ assert_correct <<-CSS, css
178
189
  .circles {
179
- background: url('/squares-sbbc18e2129.png') no-repeat;
190
+ background-image: url('/images-tmp/squares-sbbc18e2129.png');
191
+ background-repeat: no-repeat;
180
192
  }
181
193
  CSS
182
194
  assert_equal image_size('squares-s*.png'), [20, 30]
@@ -188,9 +200,10 @@ class SpritesTest < Test::Unit::TestCase
188
200
  @import "squares/*.png";
189
201
  @include all-squares-sprites;
190
202
  SCSS
191
- assert_correct css, <<-CSS
203
+ assert_correct <<-CSS, css
192
204
  .squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
193
- background: url('/squares-s563a5e0855.png') no-repeat;
205
+ background-image: url('/images-tmp/squares-s563a5e0855.png');
206
+ background-repeat: no-repeat;
194
207
  }
195
208
 
196
209
  .squares-ten-by-ten {
@@ -210,9 +223,10 @@ class SpritesTest < Test::Unit::TestCase
210
223
  @import "squares/*.png";
211
224
  @include all-squares-sprites;
212
225
  SCSS
213
- assert_correct css, <<-CSS
226
+ assert_correct <<-CSS, css
214
227
  .squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
215
- background: url('/squares-s4ea353fa6d.png') no-repeat;
228
+ background-image: url('/images-tmp/squares-s4ea353fa6d.png');
229
+ background-repeat: no-repeat;
216
230
  }
217
231
 
218
232
  .squares-ten-by-ten {
@@ -233,9 +247,10 @@ class SpritesTest < Test::Unit::TestCase
233
247
  @import "squares/*.png";
234
248
  @include all-squares-sprites;
235
249
  SCSS
236
- assert_correct css, <<-CSS
250
+ assert_correct <<-CSS, css
237
251
  .squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
238
- background: url('/squares-sf4771cb124.png') no-repeat;
252
+ background-image: url('/images-tmp/squares-sf4771cb124.png');
253
+ background-repeat: no-repeat;
239
254
  }
240
255
 
241
256
  .squares-ten-by-ten {
@@ -256,9 +271,10 @@ class SpritesTest < Test::Unit::TestCase
256
271
  @import "squares/*.png";
257
272
  @include all-squares-sprites;
258
273
  SCSS
259
- assert_correct css, <<-CSS
274
+ assert_correct <<-CSS, css
260
275
  .squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
261
- background: url('/squares-sc82d6f3cf4.png') no-repeat;
276
+ background-image: url('/images-tmp/squares-sc82d6f3cf4.png');
277
+ background-repeat: no-repeat;
262
278
  }
263
279
 
264
280
  .squares-ten-by-ten {
@@ -278,9 +294,10 @@ class SpritesTest < Test::Unit::TestCase
278
294
  @import "squares/*.png";
279
295
  @include all-squares-sprites;
280
296
  SCSS
281
- assert_correct css, <<-CSS
297
+ assert_correct <<-CSS, css
282
298
  .squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
283
- background: url('/squares-s2f4aa65dcf.png') no-repeat;
299
+ background-image: url('/images-tmp/squares-s2f4aa65dcf.png');
300
+ background-repeat: no-repeat;
284
301
  }
285
302
 
286
303
  .squares-ten-by-ten {
@@ -298,7 +315,8 @@ class SpritesTest < Test::Unit::TestCase
298
315
  css = render <<-SCSS
299
316
  $squares: sprite-map("squares/*.png", $position: 100%);
300
317
  .squares-sprite {
301
- background: $squares no-repeat;
318
+ background-image: $squares;
319
+ background-repeat: no-repeat;
302
320
  }
303
321
 
304
322
  .adjusted-percentage {
@@ -313,9 +331,10 @@ class SpritesTest < Test::Unit::TestCase
313
331
  background-position: sprite-position($squares, twenty-by-twenty, -3px, 2px);
314
332
  }
315
333
  SCSS
316
- assert_correct css, <<-CSS
334
+ assert_correct <<-CSS, css
317
335
  .squares-sprite {
318
- background: url('/squares-sce5dc30797.png') no-repeat;
336
+ background-image: url('/images-tmp/squares-sce5dc30797.png');
337
+ background-repeat: no-repeat;
319
338
  }
320
339
 
321
340
  .adjusted-percentage {
@@ -351,9 +370,10 @@ class SpritesTest < Test::Unit::TestCase
351
370
  @include squares-sprite("twenty-by-twenty", $offset-x: -3px, $offset-y: 2px);
352
371
  }
353
372
  SCSS
354
- assert_correct css, <<-CSS
373
+ assert_correct <<-CSS, css
355
374
  .squares-sprite, .adjusted-percentage, .adjusted-px-1, .adjusted-px-2 {
356
- background: url('/squares-sce5dc30797.png') no-repeat;
375
+ background-image: url('/images-tmp/squares-sce5dc30797.png');
376
+ background-repeat: no-repeat;
357
377
  }
358
378
 
359
379
  .adjusted-percentage {
@@ -378,9 +398,10 @@ class SpritesTest < Test::Unit::TestCase
378
398
  @import "squares/*.png";
379
399
  @include all-squares-sprites;
380
400
  SCSS
381
- assert_correct css, <<-CSS
401
+ assert_correct <<-CSS, css
382
402
  .squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
383
- background: url('/squares-s65c43cd573.png') no-repeat;
403
+ background-image: url('/images-tmp/squares-s65c43cd573.png');
404
+ background-repeat: no-repeat;
384
405
  }
385
406
 
386
407
  .squares-ten-by-ten {
@@ -402,9 +423,10 @@ class SpritesTest < Test::Unit::TestCase
402
423
  @import "squares/*.png";
403
424
  @include all-squares-sprites;
404
425
  SCSS
405
- assert_correct css, <<-CSS
426
+ assert_correct <<-CSS, css
406
427
  .squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
407
- background: url('/squares-sb9d9a8ca6a.png') no-repeat;
428
+ background-image: url('/images-tmp/squares-sb9d9a8ca6a.png');
429
+ background-repeat: no-repeat;
408
430
  }
409
431
 
410
432
  .squares-ten-by-ten {
@@ -423,23 +445,19 @@ class SpritesTest < Test::Unit::TestCase
423
445
  assert_raise(Sass::SyntaxError) do
424
446
  render <<-SCSS
425
447
  .squares {
426
- background: sprite-url("squares/*.png") no-repeat;
427
- }
428
- SCSS
429
- end
430
- assert_raise(Sass::SyntaxError) do
431
- css = render <<-SCSS
432
- .squares {
433
- background: sprite-image("squares/twenty-by-twenty.png") no-repeat;
448
+ background-image: sprite-url("squares/*.png");
449
+ background-repeat: no-repeat;
434
450
  }
435
451
  SCSS
436
452
  end
453
+
437
454
  assert_raise(Sass::SyntaxError) do
438
455
  css = render <<-SCSS
439
456
  @import "squares/*.png";
440
457
 
441
458
  .squares {
442
- background: sprite-position("squares/twenty-by-twenty.png") no-repeat;
459
+ background-image: sprite-position("squares/twenty-by-twenty.png");
460
+ background-repeat: no-repeat;
443
461
  }
444
462
  SCSS
445
463
  end
@@ -448,12 +466,152 @@ class SpritesTest < Test::Unit::TestCase
448
466
  it "should work even if @import is missing" do
449
467
  css = render <<-SCSS
450
468
  .squares {
451
- background: sprite(sprite-map("squares/*.png"), twenty-by-twenty) no-repeat;
469
+ background-image: sprite(sprite-map("squares/*.png"), twenty-by-twenty);
470
+ background-repeat: no-repeat;
452
471
  }
453
472
  SCSS
454
- assert_correct css, <<-CSS
473
+ assert_correct <<-CSS, css
455
474
  .squares {
456
- background: url('/squares-sd817b59156.png') 0 -10px no-repeat;
475
+ background-image: url('/images-tmp/squares-sd817b59156.png') 0 -10px;
476
+ background-repeat: no-repeat;
477
+ }
478
+ CSS
479
+ end
480
+
481
+ it "should import sprites with numeric filenames via #738" do
482
+ css = render <<-SCSS
483
+ @import "numeric/*.png";
484
+ @include all-numeric-sprites;
485
+ SCSS
486
+ assert_correct <<-CSS, css
487
+ .numeric-sprite, .numeric-200 {
488
+ background-image: url('/images-tmp/numeric-saa92d65a89.png');
489
+ background-repeat: no-repeat;
490
+ }
491
+
492
+ .numeric-200 {
493
+ background-position: 0 0;
494
+ }
495
+ CSS
496
+ end
497
+
498
+ it "should use percentage positions when use_percentages is true" do
499
+ css = render <<-SCSS
500
+ @import "squares/*.png";
501
+ $squares-use-percentages: true;
502
+ .foo {
503
+ @include squares-sprite-position("twenty-by-twenty");
504
+ }
505
+ .bar {
506
+ @include squares-sprite-position("ten-by-ten");
507
+ @include squares-sprite-dimensions("ten-by-ten");
508
+ }
509
+ SCSS
510
+ assert_correct <<-CSS, css
511
+ .squares-sprite {
512
+ background-image: url('/images-tmp/squares-sbbc18e2129.png');
513
+ background-repeat: no-repeat;
514
+ }
515
+
516
+ .foo {
517
+ background-position: 0 100%;
518
+ }
519
+
520
+ .bar {
521
+ background-position: 0 0;
522
+ height: 10px;
523
+ width: 10px;
524
+ }
525
+ CSS
526
+ end
527
+
528
+ it "should use correct percentages when use_percentages is with horizontal layout" do
529
+ css = render <<-SCSS
530
+ $squares-layout: horizontal;
531
+ @import "squares/*.png";
532
+ $squares-use-percentages: true;
533
+ .foo {
534
+ @include squares-sprite-position("twenty-by-twenty");
535
+ }
536
+ .bar {
537
+ @include squares-sprite-position("ten-by-ten");
538
+ }
539
+ SCSS
540
+ assert_correct <<-CSS, css
541
+ .squares-sprite {
542
+ background-image: url('/images-tmp/squares-s4bd95c5c56.png');
543
+ background-repeat: no-repeat;
544
+ }
545
+
546
+ .foo {
547
+ background-position: 100% 0;
548
+ }
549
+
550
+ .bar {
551
+ background-position: 0 0;
552
+ }
553
+ CSS
554
+ end
555
+
556
+ it "should use correct percentages when use_percentages is true with smart layout" do
557
+ css = render <<-SCSS
558
+ $image_row-layout: smart;
559
+ @import "image_row/*.png";
560
+ $image_row-use-percentages: true;
561
+ .foo {
562
+ @include image_row-sprite-position("medium");
563
+ }
564
+ .bar {
565
+ @include image_row-sprite-position("large_square");
566
+ }
567
+ SCSS
568
+ assert_correct <<-CSS, css
569
+ .image_row-sprite {
570
+ background-image: url('/images-tmp/image_row-sc5082a6b9f.png');
571
+ background-repeat: no-repeat;
572
+ }
573
+
574
+ .foo {
575
+ background-position: 0 50%;
576
+ }
577
+
578
+ .bar {
579
+ background-position: 33.33333% 100%;
580
+ }
581
+ CSS
582
+ end
583
+
584
+ it "should use correct percentages when use_percentages is true" do
585
+ css = render <<-SCSS
586
+ $image_row-use-percentages: true;
587
+ $image_row-sort-by : '!width';
588
+ @import "image_row/*.png";
589
+ @include all-image_row-sprites;
590
+ SCSS
591
+ assert_correct <<-CSS, css
592
+ .image_row-sprite, .image_row-large, .image_row-large_square, .image_row-medium, .image_row-small, .image_row-tall {
593
+ background-image: url('/images-tmp/image_row-sdf383d45a3.png');
594
+ background-repeat: no-repeat;
595
+ }
596
+
597
+ .image_row-large {
598
+ background-position: 0 0;
599
+ }
600
+
601
+ .image_row-large_square {
602
+ background-position: 0 40%;
603
+ }
604
+
605
+ .image_row-medium {
606
+ background-position: 0 16.66667%;
607
+ }
608
+
609
+ .image_row-small {
610
+ background-position: 0 100%;
611
+ }
612
+
613
+ .image_row-tall {
614
+ background-position: 0 80%;
457
615
  }
458
616
  CSS
459
617
  end
@@ -470,9 +628,10 @@ class SpritesTest < Test::Unit::TestCase
470
628
  }
471
629
  SCSS
472
630
  assert_equal image_size('squares-s*.png'), [20, 40]
473
- assert_correct css, <<-CSS
631
+ assert_correct <<-CSS, css
474
632
  .squares-sprite {
475
- background: url('/squares-s555875d730.png') no-repeat;
633
+ background-image: url('/images-tmp/squares-s555875d730.png');
634
+ background-repeat: no-repeat;
476
635
  }
477
636
 
478
637
  .foo {
@@ -490,21 +649,22 @@ class SpritesTest < Test::Unit::TestCase
490
649
  @import "selectors/*.png";
491
650
  @include all-selectors-sprites;
492
651
  SCSS
493
- assert_correct css, <<-CSS
652
+ assert_correct <<-CSS, css
494
653
  .selectors-sprite, .selectors-ten-by-ten {
495
- background: url('/selectors-s7e84acb3d2.png') no-repeat;
654
+ background-image: url('/images-tmp/selectors-s7e84acb3d2.png');
655
+ background-repeat: no-repeat;
496
656
  }
497
657
 
498
658
  .selectors-ten-by-ten {
499
659
  background-position: 0 0;
500
660
  }
501
- .selectors-ten-by-ten:hover, .selectors-ten-by-ten.ten-by-ten_hover, .selectors-ten-by-ten.ten-by-ten-hover {
661
+ .selectors-ten-by-ten:hover, .selectors-ten-by-ten.ten-by-ten-hover {
502
662
  background-position: 0 -20px;
503
663
  }
504
- .selectors-ten-by-ten:target, .selectors-ten-by-ten.ten-by-ten_target, .selectors-ten-by-ten.ten-by-ten-target {
664
+ .selectors-ten-by-ten:target, .selectors-ten-by-ten.ten-by-ten-target {
505
665
  background-position: 0 -30px;
506
666
  }
507
- .selectors-ten-by-ten:active, .selectors-ten-by-ten.ten-by-ten_active, .selectors-ten-by-ten.ten-by-ten-active {
667
+ .selectors-ten-by-ten:active, .selectors-ten-by-ten.ten-by-ten-active {
508
668
  background-position: 0 -10px;
509
669
  }
510
670
  CSS
@@ -515,21 +675,22 @@ class SpritesTest < Test::Unit::TestCase
515
675
  @import "selectors/*.png";
516
676
  @include all-selectors-sprites($offset-x: 20px, $offset-y: 20px);
517
677
  SCSS
518
- assert_correct css, <<-CSS
678
+ assert_correct <<-CSS, css
519
679
  .selectors-sprite, .selectors-ten-by-ten {
520
- background: url('/selectors-s7e84acb3d2.png') no-repeat;
680
+ background-image: url('/images-tmp/selectors-s7e84acb3d2.png');
681
+ background-repeat: no-repeat;
521
682
  }
522
683
 
523
684
  .selectors-ten-by-ten {
524
685
  background-position: 20px 20px;
525
686
  }
526
- .selectors-ten-by-ten:hover, .selectors-ten-by-ten.ten-by-ten_hover, .selectors-ten-by-ten.ten-by-ten-hover {
687
+ .selectors-ten-by-ten:hover, .selectors-ten-by-ten.ten-by-ten-hover {
527
688
  background-position: 20px 0;
528
689
  }
529
- .selectors-ten-by-ten:target, .selectors-ten-by-ten.ten-by-ten_target, .selectors-ten-by-ten.ten-by-ten-target {
690
+ .selectors-ten-by-ten:target, .selectors-ten-by-ten.ten-by-ten-target {
530
691
  background-position: 20px -10px;
531
692
  }
532
- .selectors-ten-by-ten:active, .selectors-ten-by-ten.ten-by-ten_active, .selectors-ten-by-ten.ten-by-ten-active {
693
+ .selectors-ten-by-ten:active, .selectors-ten-by-ten.ten-by-ten-active {
533
694
  background-position: 20px 10px;
534
695
  }
535
696
  CSS
@@ -542,21 +703,22 @@ class SpritesTest < Test::Unit::TestCase
542
703
  @include selectors-sprite(ten-by-ten)
543
704
  }
544
705
  SCSS
545
- assert_correct css, <<-CSS
706
+ assert_correct <<-CSS, css
546
707
  .selectors-sprite, a {
547
- background: url('/selectors-s7e84acb3d2.png') no-repeat;
708
+ background-image: url('/images-tmp/selectors-s7e84acb3d2.png');
709
+ background-repeat: no-repeat;
548
710
  }
549
711
 
550
712
  a {
551
713
  background-position: 0 0;
552
714
  }
553
- a:hover, a.ten-by-ten_hover, a.ten-by-ten-hover {
715
+ a:hover, a.ten-by-ten-hover {
554
716
  background-position: 0 -20px;
555
717
  }
556
- a:target, a.ten-by-ten_target, a.ten-by-ten-target {
718
+ a:target, a.ten-by-ten-target {
557
719
  background-position: 0 -30px;
558
720
  }
559
- a:active, a.ten-by-ten_active, a.ten-by-ten-active {
721
+ a:active, a.ten-by-ten-active {
560
722
  background-position: 0 -10px;
561
723
  }
562
724
  CSS
@@ -567,13 +729,14 @@ class SpritesTest < Test::Unit::TestCase
567
729
  css = render <<-SCSS
568
730
  @import "selectors/*.png";
569
731
  a {
570
- $disable-magic-sprite-selectors:true;
732
+ $disable-magic-sprite-selectors:true !global;
571
733
  @include selectors-sprite(ten-by-ten)
572
734
  }
573
735
  SCSS
574
- assert_correct css, <<-CSS
736
+ assert_correct <<-CSS, css
575
737
  .selectors-sprite, a {
576
- background: url('/selectors-s7e84acb3d2.png') no-repeat;
738
+ background-image: url('/images-tmp/selectors-s7e84acb3d2.png');
739
+ background-repeat: no-repeat;
577
740
  }
578
741
 
579
742
  a {
@@ -589,35 +752,45 @@ class SpritesTest < Test::Unit::TestCase
589
752
  @include selectors-sprite(ten-by-ten, false, 5, -5)
590
753
  }
591
754
  SCSS
592
- assert_correct css, <<-CSS
755
+ assert_correct <<-CSS, css
593
756
  .selectors-sprite, a {
594
- background: url('/selectors-s7e84acb3d2.png') no-repeat;
757
+ background-image: url('/images-tmp/selectors-s7e84acb3d2.png');
758
+ background-repeat: no-repeat;
595
759
  }
596
760
 
597
761
  a {
598
762
  background-position: 5px -5px;
599
763
  }
600
- a:hover, a.ten-by-ten_hover, a.ten-by-ten-hover {
764
+ a:hover, a.ten-by-ten-hover {
601
765
  background-position: 5px -25px;
602
766
  }
603
- a:target, a.ten-by-ten_target, a.ten-by-ten-target {
767
+ a:target, a.ten-by-ten-target {
604
768
  background-position: 5px -35px;
605
769
  }
606
- a:active, a.ten-by-ten_active, a.ten-by-ten-active {
770
+ a:active, a.ten-by-ten-active {
607
771
  background-position: 5px -15px;
608
772
  }
609
773
  CSS
610
774
  end
611
775
 
612
- it "should raise error on filenames that are not valid sass syntax" do
613
- assert_raise(Compass::Error) do
614
- css = render <<-SCSS
615
- @import "prefix/*.png";
616
- a {
617
- @include squares-sprite(20-by-20);
618
- }
619
- SCSS
620
- end
776
+ it "should not raise error on filenames that are invalid classnames if the selector generation is not used" do
777
+ css = render <<-SCSS
778
+ $prefix-sort-by : 'width';
779
+ @import "prefix/*.png";
780
+ a {
781
+ @include prefix-sprite("20-by-20");
782
+ }
783
+ SCSS
784
+ assert_correct <<-CSS, css
785
+ .prefix-sprite, a {
786
+ background-image: url('/images-tmp/prefix-s949dea513d.png');
787
+ background-repeat: no-repeat;
788
+ }
789
+
790
+ a {
791
+ background-position: 0 -10px;
792
+ }
793
+ CSS
621
794
  end
622
795
 
623
796
  it "should generate sprite with bad repeat-x dimensions" do
@@ -626,9 +799,10 @@ class SpritesTest < Test::Unit::TestCase
626
799
  @import "ko/*.png";
627
800
  @include all-ko-sprites;
628
801
  SCSS
629
- assert_correct css, <<-CSS
802
+ assert_correct <<-CSS, css
630
803
  .ko-sprite, .ko-default_background, .ko-starbg26x27 {
631
- background: url('/ko-sd46dfbab4f.png') no-repeat;
804
+ background-image: url('/images-tmp/ko-sd46dfbab4f.png');
805
+ background-repeat: no-repeat;
632
806
  }
633
807
 
634
808
  .ko-default_background {
@@ -647,7 +821,7 @@ class SpritesTest < Test::Unit::TestCase
647
821
  css = render <<-SCSS
648
822
  @import "selectors/*.png";
649
823
  a {
650
- $disable-magic-sprite-selectors:true;
824
+ $disable-magic-sprite-selectors:true !global;
651
825
  @include selectors-sprite(ten-by-ten)
652
826
  }
653
827
  SCSS
@@ -661,7 +835,7 @@ class SpritesTest < Test::Unit::TestCase
661
835
  $selectors-clean-up: false;
662
836
  @import "selectors/*.png";
663
837
  a {
664
- $disable-magic-sprite-selectors:true;
838
+ $disable-magic-sprite-selectors:true !global;
665
839
  @include selectors-sprite(ten-by-ten)
666
840
  }
667
841
  SCSS
@@ -697,9 +871,10 @@ class SpritesTest < Test::Unit::TestCase
697
871
  @import "nested/**/*.png";
698
872
  @include all-nested-sprites;
699
873
  SCSS
700
- assert_correct css, <<-CSS
874
+ assert_correct <<-CSS, css
701
875
  .nested-sprite, .nested-ten-by-ten {
702
- background: url('/nested-s7b93e0b6bf.png') no-repeat;
876
+ background-image: url('/images-tmp/nested-s7b93e0b6bf.png');
877
+ background-repeat: no-repeat;
703
878
  }
704
879
 
705
880
  .nested-ten-by-ten {
@@ -722,7 +897,8 @@ class SpritesTest < Test::Unit::TestCase
722
897
  assert_equal [30, 20], image_size('squares-s*.png')
723
898
  other_css = <<-CSS
724
899
  .squares-sprite {
725
- background: url('/squares-s4bd95c5c56.png') no-repeat;
900
+ background-image: url('/images-tmp/squares-s4bd95c5c56.png');
901
+ background-repeat: no-repeat;
726
902
  }
727
903
 
728
904
  .foo {
@@ -733,7 +909,7 @@ class SpritesTest < Test::Unit::TestCase
733
909
  background-position: 0 0;
734
910
  }
735
911
  CSS
736
- assert_correct clean(css), clean(other_css)
912
+ assert_correct clean(other_css), clean(css)
737
913
  end
738
914
 
739
915
  it "should allow use of demension functions" do
@@ -748,18 +924,20 @@ class SpritesTest < Test::Unit::TestCase
748
924
  SCSS
749
925
  other_css = <<-CSS
750
926
  .squares-sprite {
751
- background: url('/squares-sbbc18e2129.png') no-repeat;
927
+ background-image: url('/images-tmp/squares-sbbc18e2129.png');
928
+ background-repeat: no-repeat;
752
929
  }
753
930
  .div {
754
931
  height:21px;
755
932
  width:22px;
756
933
  }
757
934
  CSS
758
- assert_correct clean(css), clean(other_css)
935
+ assert_correct clean(other_css), clean(css)
759
936
  end
760
937
 
761
938
  it "should replace text with images and dimensions using sprites" do
762
939
  css = render <<-SCSS
940
+ @import "compass/utilities/sprites/sprite-img";
763
941
  @import "colors/*.png";
764
942
  .blue {
765
943
  @include sprite-replace-text($colors-sprites, blue);
@@ -769,15 +947,17 @@ class SpritesTest < Test::Unit::TestCase
769
947
  }
770
948
  SCSS
771
949
  other_css = <<-CSS
772
- .colors-sprite {
773
- background:url('/colors-s58671cb5bb.png') no-repeat;
950
+ .colors-sprite {
951
+ background-image:url('/images-tmp/colors-s58671cb5bb.png');
952
+ background-repeat: no-repeat;
774
953
  }
775
954
  .blue {
776
955
  text-indent:-119988px;
777
956
  overflow:hidden;
778
957
  text-align:left;
958
+ text-transform: capitalize;
779
959
  background-position:0 0;
780
- background-image:url('/colors-s58671cb5bb.png');
960
+ background-image:url('/images-tmp/colors-s58671cb5bb.png');
781
961
  background-repeat:no-repeat;
782
962
  }
783
963
 
@@ -785,18 +965,26 @@ class SpritesTest < Test::Unit::TestCase
785
965
  text-indent:-119988px;
786
966
  overflow:hidden;
787
967
  text-align:left;
968
+ text-transform: capitalize;
788
969
  background-position:0 -10px;
789
970
  height:10px;
790
971
  width:10px;
791
- background-image:url('/colors-s58671cb5bb.png');
972
+ background-image:url('/images-tmp/colors-s58671cb5bb.png');
792
973
  background-repeat:no-repeat;
793
974
  }
794
975
  CSS
795
- assert_correct clean(css), clean(other_css)
976
+ assert_correct clean(other_css), clean(css)
796
977
  end
797
978
 
798
979
  it "should inline the sprite file" do
799
- css = render <<-SCSS
980
+ Compass.reset_configuration!
981
+ file = StringIO.new(<<-CONFIG)
982
+ images_path = #{@images_tmp_path.inspect}
983
+ generated_images_path = #{@generated_images_tmp_path.inspect}
984
+ CONFIG
985
+ Compass.add_configuration(file, "sprite_config")
986
+ Compass.configure_sass_plugin!
987
+ css = render <<-SCSS
800
988
  $colors-inline:true;
801
989
  @import "colors/*.png";
802
990
  @include all-colors-sprites;
@@ -812,12 +1000,11 @@ class SpritesTest < Test::Unit::TestCase
812
1000
  background-position:0 -10px;
813
1001
  }
814
1002
  CSS
815
- assert_correct clean(css), clean(other_css)
1003
+ assert_correct clean(other_css), clean(css)
816
1004
  end
817
1005
 
818
1006
  it "should have a sprite_name function that returns the names of the sprites in a sass list" do
819
1007
  css = render <<-SCSS
820
- $colors-inline:true;
821
1008
  @import "colors/*.png";
822
1009
  @each $color in sprite_names($colors-sprites) {
823
1010
  .\#{$color} {
@@ -827,7 +1014,8 @@ class SpritesTest < Test::Unit::TestCase
827
1014
  SCSS
828
1015
  other_css = <<-CSS
829
1016
  .colors-sprite {
830
- background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAUCAAAAACRhfOKAAAAHElEQVR42mM5wQADLP8JMRlIUIvE/IdgctLTNgCHDhEQVD4ceAAAAABJRU5ErkJggg==');
1017
+ background-image: url('/images-tmp/colors-s58671cb5bb.png');
1018
+ background-repeat: no-repeat;
831
1019
  }
832
1020
  .blue {
833
1021
  width:0px;
@@ -836,8 +1024,100 @@ class SpritesTest < Test::Unit::TestCase
836
1024
  width:0px;
837
1025
  }
838
1026
  CSS
839
- assert_correct clean(css), clean(other_css)
1027
+ assert_correct clean(other_css), clean(css)
1028
+
1029
+ end
840
1030
 
1031
+ it "should respect global spacing" do
1032
+ css = render <<-SCSS
1033
+ $colors-spacing:5px;
1034
+ @import "colors/*.png";
1035
+ @include all-colors-sprites;
1036
+ SCSS
1037
+ other_css = <<-CSS
1038
+ .colors-sprite, .colors-blue, .colors-yellow {
1039
+ background-image: url('/images-tmp/colors-s747dec274e.png');
1040
+ background-repeat: no-repeat;
1041
+ }
1042
+ .colors-blue {
1043
+ background-position:0 0;
1044
+ }
1045
+ .colors-yellow {
1046
+ background-position:0 -15px;
1047
+ }
1048
+ CSS
1049
+ assert_correct clean(other_css), clean(css)
1050
+ end
1051
+
1052
+ it "should return width and height of the map" do
1053
+ css = render <<-SCSS
1054
+ @import "colors/*.png";
1055
+ .height { height : sprite_height($colors-sprites); }
1056
+ .width { width : sprite_width($colors-sprites); }
1057
+ SCSS
1058
+ other_css = <<-CSS
1059
+ .colors-sprite {
1060
+ background-image: url('/images-tmp/colors-s58671cb5bb.png');
1061
+ background-repeat: no-repeat;
1062
+ }
1063
+ .height {
1064
+ height : 20px;
1065
+ }
1066
+ .width {
1067
+ width : 10px;
1068
+ }
1069
+ CSS
1070
+ assert_correct clean(other_css), clean(css)
1071
+ end
1072
+
1073
+ it "should return width and height of a sprite" do
1074
+ css = render <<-SCSS
1075
+ @import "colors/*.png";
1076
+ .height { height : sprite_height($colors-sprites, blue); }
1077
+ .width { width : sprite_width($colors-sprites, blue); }
1078
+ SCSS
1079
+ other_css = <<-CSS
1080
+ .colors-sprite {
1081
+ background-image: url('/images-tmp/colors-s58671cb5bb.png');
1082
+ background-repeat: no-repeat;
1083
+ }
1084
+ .height {
1085
+ height : 10px;
1086
+ }
1087
+ .width {
1088
+ width : 10px;
1089
+ }
1090
+ CSS
1091
+ assert_correct clean(other_css), clean(css)
1092
+ end
1093
+
1094
+ it "should render correct sprite with focus selector" do
1095
+ css = render <<-SCSS
1096
+ @import "focus/*.png";
1097
+ @include all-focus-sprites;
1098
+ SCSS
1099
+ assert_correct <<-CSS, css
1100
+ .focus-sprite, .focus-ten-by-ten {
1101
+ background-image: url('/images-tmp/focus-sb5d1467be1.png');
1102
+ background-repeat: no-repeat;
1103
+ }
1104
+
1105
+ .focus-ten-by-ten {
1106
+ background-position: 0 0;
1107
+ }
1108
+ .focus-ten-by-ten:hover, .focus-ten-by-ten.ten-by-ten-hover {
1109
+ background-position: 0 -30px;
1110
+ }
1111
+ .focus-ten-by-ten:target, .focus-ten-by-ten.ten-by-ten-target {
1112
+ background-position: 0 -40px;
1113
+ }
1114
+ .focus-ten-by-ten:active, .focus-ten-by-ten.ten-by-ten-active {
1115
+ background-position: 0 -10px;
1116
+ }
1117
+ .focus-ten-by-ten:focus, .focus-ten-by-ten.ten-by-ten-focus {
1118
+ background-position: 0 -20px;
1119
+ }
1120
+ CSS
841
1121
  end
842
1122
 
843
1123
  end