compass 0.11.7 → 0.12.alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. data/Rakefile +10 -0
  2. data/VERSION.yml +4 -3
  3. data/bin/compass +1 -5
  4. data/features/command_line.feature +17 -17
  5. data/features/extensions.feature +0 -6
  6. data/features/step_definitions/command_line_steps.rb +1 -2
  7. data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +35 -5
  8. data/frameworks/compass/stylesheets/compass/css3/_images.scss +6 -6
  9. data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +3 -12
  10. data/frameworks/compass/stylesheets/compass/typography/lists/_bullets.scss +1 -1
  11. data/frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss +11 -14
  12. data/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss +5 -5
  13. data/frameworks/compass/templates/pie/PIE.htc +64 -83
  14. data/lib/compass.rbc +36 -42
  15. data/lib/compass/actions.rb +1 -0
  16. data/lib/compass/actions.rbc +85 -244
  17. data/lib/compass/app_integration.rbc +20 -28
  18. data/lib/compass/app_integration/merb.rbc +4 -8
  19. data/lib/compass/app_integration/rails.rb +22 -5
  20. data/lib/compass/app_integration/rails.rbc +142 -658
  21. data/lib/compass/app_integration/rails/actionpack2x.rb +10 -0
  22. data/lib/compass/app_integration/rails/{actionpack2 → actionpack2x}/action_controller.rb +0 -0
  23. data/lib/compass/app_integration/rails/{actionpack2 → actionpack2x}/sass_plugin.rb +0 -0
  24. data/lib/compass/app_integration/rails/{actionpack2 → actionpack2x}/urls.rb +0 -0
  25. data/lib/compass/app_integration/rails/actionpack30.rb +11 -0
  26. data/lib/compass/app_integration/rails/{actionpack3 → actionpack30}/railtie.rb +0 -0
  27. data/lib/compass/app_integration/rails/actionpack31.rb +5 -0
  28. data/lib/compass/app_integration/rails/actionpack31/helpers.rb +5 -0
  29. data/lib/compass/app_integration/rails/actionpack31/railtie.rb +89 -0
  30. data/lib/compass/app_integration/rails/configuration_defaults.rb +54 -14
  31. data/lib/compass/app_integration/rails/configuration_defaults.rbc +324 -1081
  32. data/lib/compass/app_integration/rails/installer.rbc +61 -145
  33. data/lib/compass/app_integration/rails/runtime.rb +6 -16
  34. data/lib/compass/app_integration/stand_alone.rbc +15 -15
  35. data/lib/compass/app_integration/stand_alone/configuration_defaults.rbc +23 -23
  36. data/lib/compass/app_integration/stand_alone/installer.rbc +32 -52
  37. data/lib/compass/browser_support.rbc +23 -35
  38. data/lib/compass/commands/clean_project.rb +1 -1
  39. data/lib/compass/commands/project_stats.rb +7 -7
  40. data/lib/compass/commands/sprite.rb +4 -3
  41. data/lib/compass/compiler.rb +2 -2
  42. data/lib/compass/compiler.rbc +398 -591
  43. data/lib/compass/configuration.rb +2 -0
  44. data/lib/compass/configuration.rbc +78 -134
  45. data/lib/compass/configuration/adapters.rbc +40 -98
  46. data/lib/compass/configuration/comments.rb +5 -1
  47. data/lib/compass/configuration/comments.rbc +51 -132
  48. data/lib/compass/configuration/data.rb +26 -10
  49. data/lib/compass/configuration/data.rbc +536 -526
  50. data/lib/compass/configuration/defaults.rb +24 -1
  51. data/lib/compass/configuration/defaults.rbc +187 -762
  52. data/lib/compass/configuration/file_data.rb +0 -22
  53. data/lib/compass/configuration/file_data.rbc +125 -37
  54. data/lib/compass/configuration/helpers.rb +9 -8
  55. data/lib/compass/configuration/helpers.rbc +153 -433
  56. data/lib/compass/configuration/inheritance.rb +13 -0
  57. data/lib/compass/configuration/inheritance.rbc +165 -412
  58. data/lib/compass/configuration/paths.rbc +9 -9
  59. data/lib/compass/configuration/serialization.rb +1 -0
  60. data/lib/compass/configuration/serialization.rbc +84 -151
  61. data/lib/compass/dependencies.rbc +4 -16
  62. data/lib/compass/errors.rbc +5 -5
  63. data/lib/compass/frameworks.rb +4 -10
  64. data/lib/compass/frameworks.rbc +66 -118
  65. data/lib/compass/quick_cache.rbc +8 -12
  66. data/lib/compass/sass_extensions.rbc +4 -8
  67. data/lib/compass/sass_extensions/functions.rbc +57 -90
  68. data/lib/compass/sass_extensions/functions/colors.rbc +18 -22
  69. data/lib/compass/sass_extensions/functions/constants.rbc +25 -45
  70. data/lib/compass/sass_extensions/functions/cross_browser_support.rbc +36 -48
  71. data/lib/compass/sass_extensions/functions/display.rbc +107 -341
  72. data/lib/compass/sass_extensions/functions/enumerate.rbc +9 -9
  73. data/lib/compass/sass_extensions/functions/font_files.rbc +125 -542
  74. data/lib/compass/sass_extensions/functions/gradient_support.rbc +167 -379
  75. data/lib/compass/sass_extensions/functions/image_size.rb +10 -2
  76. data/lib/compass/sass_extensions/functions/image_size.rbc +400 -715
  77. data/lib/compass/sass_extensions/functions/inline_image.rbc +98 -152
  78. data/lib/compass/sass_extensions/functions/lists.rb +0 -5
  79. data/lib/compass/sass_extensions/functions/lists.rbc +39 -75
  80. data/lib/compass/sass_extensions/functions/selectors.rbc +28 -36
  81. data/lib/compass/sass_extensions/functions/sprites.rb +5 -7
  82. data/lib/compass/sass_extensions/functions/sprites.rbc +233 -255
  83. data/lib/compass/sass_extensions/functions/trig.rb +2 -1
  84. data/lib/compass/sass_extensions/functions/trig.rbc +51 -53
  85. data/lib/compass/sass_extensions/functions/urls.rb +171 -80
  86. data/lib/compass/sass_extensions/functions/urls.rbc +1051 -3158
  87. data/lib/compass/sass_extensions/monkey_patches.rbc +5 -5
  88. data/lib/compass/sass_extensions/monkey_patches/browser_support.rbc +47 -63
  89. data/lib/compass/sass_extensions/monkey_patches/traversal.rbc +16 -36
  90. data/lib/compass/sass_extensions/sprites.rb +3 -1
  91. data/lib/compass/sass_extensions/sprites.rbc +13 -93
  92. data/lib/compass/sass_extensions/sprites/engines.rbc +6 -615
  93. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rbc +94 -260
  94. data/lib/compass/sass_extensions/sprites/image.rb +23 -11
  95. data/lib/compass/sass_extensions/sprites/image.rbc +313 -691
  96. data/lib/compass/sass_extensions/sprites/image_row.rb +47 -0
  97. data/lib/compass/sass_extensions/sprites/layout_methods.rb +117 -0
  98. data/lib/compass/sass_extensions/sprites/row_fitter.rb +86 -0
  99. data/lib/compass/sass_extensions/sprites/sprite_map.rb +18 -4
  100. data/lib/compass/sass_extensions/sprites/sprite_map.rbc +3635 -708
  101. data/lib/compass/sass_extensions/sprites/sprite_methods.rb +5 -17
  102. data/lib/compass/sprite_importer.rb +38 -62
  103. data/lib/compass/sprite_importer.rbc +1495 -1125
  104. data/lib/compass/util.rbc +11 -19
  105. data/lib/compass/version.rbc +25 -53
  106. data/test/fixtures/sprites/public/images/image_row/large.png +0 -0
  107. data/test/fixtures/sprites/public/images/image_row/large_square.png +0 -0
  108. data/test/fixtures/sprites/public/images/image_row/medium.png +0 -0
  109. data/test/fixtures/sprites/public/images/image_row/small.png +0 -0
  110. data/test/fixtures/sprites/public/images/image_row/tall.png +0 -0
  111. data/test/fixtures/stylesheets/compass/css/lists.css +7 -7
  112. data/test/fixtures/stylesheets/compass/css/reset.css +1 -0
  113. data/test/fixtures/stylesheets/compass/css/sprites.css +248 -248
  114. data/test/fixtures/stylesheets/compass/images/flag-s8c3c755a68.png +0 -0
  115. data/test/integrations/sprites_test.rb +115 -3
  116. data/test/test_helper.rb +29 -1
  117. data/test/tmp/compass_rails/public/images/selectors-sef52c5c63a.png +0 -0
  118. data/test/units/configuration_test.rb +2 -5
  119. data/test/units/rails_configuration_test.rb +50 -0
  120. data/test/units/sass_extensions_test.rb +17 -5
  121. data/test/units/sprites/image_row_test.rb +57 -0
  122. data/test/units/sprites/image_test.rb +53 -45
  123. data/test/units/sprites/importer_test.rb +31 -12
  124. data/test/units/sprites/row_fitter_test.rb +66 -0
  125. data/test/units/sprites/sprite_command_test.rb +1 -11
  126. data/test/units/sprites/sprite_map_test.rb +122 -16
  127. metadata +38 -149
  128. data/bin/compass.compiled.rbc +0 -707
  129. data/examples/compass/compass_app_log.txt +0 -6
  130. data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +0 -19
  131. data/lib/compass/commands.rbc +0 -307
  132. data/lib/compass/commands/base.rbc +0 -1044
  133. data/lib/compass/commands/clean_project.rbc +0 -1856
  134. data/lib/compass/commands/create_project.rbc +0 -2691
  135. data/lib/compass/commands/default.rbc +0 -1677
  136. data/lib/compass/commands/generate_grid_background.rbc +0 -1939
  137. data/lib/compass/commands/help.rbc +0 -1921
  138. data/lib/compass/commands/imports.rbc +0 -969
  139. data/lib/compass/commands/installer_command.rbc +0 -807
  140. data/lib/compass/commands/interactive.rbc +0 -1341
  141. data/lib/compass/commands/list_frameworks.rbc +0 -1111
  142. data/lib/compass/commands/print_version.rbc +0 -2478
  143. data/lib/compass/commands/project_base.rbc +0 -2085
  144. data/lib/compass/commands/project_stats.rbc +0 -4202
  145. data/lib/compass/commands/registry.rbc +0 -1350
  146. data/lib/compass/commands/sprite.rbc +0 -2212
  147. data/lib/compass/commands/stamp_pattern.rbc +0 -2011
  148. data/lib/compass/commands/unpack_extension.rbc +0 -2348
  149. data/lib/compass/commands/update_project.rbc +0 -3002
  150. data/lib/compass/commands/validate_project.rbc +0 -1686
  151. data/lib/compass/commands/watch_project.rbc +0 -4155
  152. data/lib/compass/commands/write_configuration.rbc +0 -2896
  153. data/lib/compass/exec.rbc +0 -500
  154. data/lib/compass/exec/command_option_parser.rbc +0 -676
  155. data/lib/compass/exec/global_options_parser.rbc +0 -1306
  156. data/lib/compass/exec/helpers.rbc +0 -758
  157. data/lib/compass/exec/project_options_parser.rbc +0 -1515
  158. data/lib/compass/exec/sub_command_ui.rbc +0 -1191
  159. data/lib/compass/grid_builder.rbc +0 -0
  160. data/lib/compass/installers.rbc +0 -152
  161. data/lib/compass/installers/bare_installer.rbc +0 -939
  162. data/lib/compass/installers/base.rbc +0 -4427
  163. data/lib/compass/installers/manifest.rbc +0 -3335
  164. data/lib/compass/installers/manifest_installer.rbc +0 -1591
  165. data/lib/compass/installers/template_context.rbc +0 -1030
  166. data/lib/compass/logger.rbc +0 -2317
  167. data/lib/compass/sass_extensions/functions/env.rbc +0 -299
  168. data/lib/compass/sass_extensions/sprites/image_methods.rbc +0 -900
  169. data/lib/compass/sass_extensions/sprites/image_row.rbc +0 -1168
  170. data/lib/compass/sass_extensions/sprites/layout_methods.rbc +0 -3236
  171. data/lib/compass/sass_extensions/sprites/row_fitter.rbc +0 -2067
  172. data/lib/compass/sass_extensions/sprites/sprite_methods.rbc +0 -3190
  173. data/test/fixtures/extensions/only_stylesheets/compass_init.rb +0 -1
  174. data/test/fixtures/extensions/only_stylesheets/scss/only_stylesheets/foo.scss +0 -3
  175. data/test/fixtures/stylesheets/compass/css/user-interface.css +0 -5
  176. data/test/fixtures/stylesheets/compass/images/flag-s03c3b29b35.png +0 -0
  177. data/test/fixtures/stylesheets/compass/sass/user-interface.scss +0 -5
  178. data/test/fixtures/stylesheets/envtest/tmp/env.css +0 -2
  179. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/config.rb +0 -25
  180. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/ie.scss +0 -5
  181. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/print.scss +0 -3
  182. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/screen.scss +0 -6
  183. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/ie.css +0 -5
  184. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/print.css +0 -3
  185. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/screen.css +0 -68
  186. data/test/helpers/command_line.rbc +0 -2820
  187. data/test/helpers/diff.rbc +0 -1104
  188. data/test/helpers/io.rbc +0 -962
  189. data/test/helpers/rails.rbc +0 -1116
  190. data/test/helpers/test_case.rbc +0 -1255
  191. data/test/integrations/compass_test.rbc +0 -6589
  192. data/test/integrations/rails_integration_test.rbc +0 -1342
  193. data/test/integrations/sprites_test.rbc +0 -6192
  194. data/test/test_helper.rbc +0 -1694
  195. data/test/units/actions_test.rbc +0 -644
  196. data/test/units/command_line_test.rbc +0 -1532
  197. data/test/units/compass_png_test.rbc +0 -0
  198. data/test/units/configuration_test.rbc +0 -3833
  199. data/test/units/rails_configuration_test.rbc +0 -1032
  200. data/test/units/sass_extensions_test.rbc +0 -3586
  201. data/test/units/sprites/engine_test.rbc +0 -962
  202. data/test/units/sprites/image_row_test.rbc +0 -1578
  203. data/test/units/sprites/image_test.rbc +0 -2836
  204. data/test/units/sprites/importer_test.rbc +0 -2620
  205. data/test/units/sprites/row_fitter_test.rbc +0 -1479
  206. data/test/units/sprites/sprite_command_test.rbc +0 -1147
  207. data/test/units/sprites/sprite_map_test.rbc +0 -6515
@@ -1,13 +1,13 @@
1
1
  require 'test_helper'
2
2
  require 'timecop'
3
3
  class ImporterTest < Test::Unit::TestCase
4
- URI = "selectors/*.png"
4
+ include SpriteHelper
5
5
 
6
6
  def setup
7
- @images_src_path = File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'sprites', 'public', 'images')
7
+ create_sprite_temp
8
8
  file = StringIO.new("images_path = #{@images_src_path.inspect}\n")
9
9
  Compass.add_configuration(file, "sprite_config")
10
- @importer = Compass::SpriteImporter.new(:uri => URI, :options => options)
10
+ @importer = Compass::SpriteImporter.new
11
11
  end
12
12
 
13
13
  def teardown
@@ -18,20 +18,37 @@ class ImporterTest < Test::Unit::TestCase
18
18
  {:foo => 'bar'}
19
19
  end
20
20
 
21
- test "load should return an instance of SpriteImporter" do
22
- assert Compass::SpriteImporter.load(URI, options).is_a?(Compass::SpriteImporter)
21
+ test "should use search path to find sprites" do
22
+ Compass.reset_configuration!
23
+ uri = 'foo/*.png'
24
+ other_folder = File.join(@images_tmp_path, '../other-temp')
25
+ FileUtils.mkdir_p other_folder
26
+ FileUtils.mkdir_p File.join(other_folder, 'foo')
27
+ %w(my bar).each do |file|
28
+ FileUtils.touch(File.join(other_folder, "foo/#{file}.png"))
29
+ end
30
+ config = Compass::Configuration::Data.new('config')
31
+ config.images_path = @images_tmp_path
32
+ config.sprite_load_path = [@images_tmp_path, other_folder]
33
+ Compass.add_configuration(config, "sprite_config")
34
+ importer = Compass::SpriteImporter.new
35
+ assert_equal 2, Compass.configuration.sprite_load_path.compact.size
36
+ assert Compass.configuration.sprite_load_path.include?(other_folder)
37
+ assert_equal ["bar", "my"], Compass::SpriteImporter.sprite_names(uri)
38
+
39
+ FileUtils.rm_rf other_folder
23
40
  end
24
41
 
25
42
  test "name should return the sprite name" do
26
- assert_equal 'selectors', @importer.name
43
+ assert_equal 'selectors', Compass::SpriteImporter.sprite_name(URI)
27
44
  end
28
45
 
29
46
  test "path should return the sprite path" do
30
- assert_equal 'selectors', @importer.path
47
+ assert_equal 'selectors', Compass::SpriteImporter.path(URI)
31
48
  end
32
49
 
33
50
  test "should return all the sprite names" do
34
- assert_equal ["ten-by-ten", "ten-by-ten_active", "ten-by-ten_hover", "ten-by-ten_target"], @importer.sprite_names
51
+ assert_equal ["ten-by-ten", "ten-by-ten_active", "ten-by-ten_hover", "ten-by-ten_target"], Compass::SpriteImporter.sprite_names(URI)
35
52
  end
36
53
 
37
54
  test "should have correct mtime" do
@@ -47,19 +64,21 @@ class ImporterTest < Test::Unit::TestCase
47
64
  end
48
65
 
49
66
  test "sass options should contain options" do
50
- assert_equal 'bar', @importer.sass_options[:foo]
67
+ opts = Compass::SpriteImporter.sass_options('foo', @importer, options)
68
+ assert_equal 'bar', opts[:foo]
51
69
  end
52
70
 
53
71
  test "should fail given bad sprite extensions" do
54
72
  @images_src_path = File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'sprites', 'public', 'images')
55
73
  file = StringIO.new("images_path = #{@images_src_path.inspect}\n")
56
74
  Compass.add_configuration(file, "sprite_config")
57
- importer = Compass::SpriteImporter.new(:uri => 'bad_extensions/*.jpg', :options => options)
75
+ importer = Compass::SpriteImporter.new
76
+ uri = "bad_extensions/*.jpg"
58
77
  begin
59
- importer.sass_engine
78
+ Compass::SpriteImporter.sass_engine(uri, Compass::SpriteImporter.sprite_name(uri), importer, {})
60
79
  assert false, "An invalid sprite file made it past validation."
61
80
  rescue Compass::Error => e
62
- assert e.message.include?('.png')
81
+ assert e.message.include?("invalid sprite path")
63
82
  end
64
83
  end
65
84
 
@@ -0,0 +1,66 @@
1
+ require 'test_helper'
2
+ require 'compass/sass_extensions/sprites/row_fitter'
3
+
4
+ class RowFitterTest < Test::Unit::TestCase
5
+ include SpriteHelper
6
+ def setup
7
+ file = StringIO.new("images_path = #{@images_src_path.inspect}\n")
8
+ Compass.add_configuration(file, "sprite_config")
9
+ end
10
+
11
+ def row_fitter(images = nil)
12
+ @row_fitter ||= Compass::SassExtensions::Sprites::RowFitter.new(images)
13
+ end
14
+
15
+ def teardown
16
+ @row_fitter = nil
17
+ end
18
+
19
+ def create_images(dims)
20
+ dims.collect { |width, height|
21
+ image = Compass::SassExtensions::Sprites::Image.new('blah', 'blah', {})
22
+ image.stubs(:width => width, :height => height)
23
+ image
24
+ }
25
+ end
26
+
27
+ def basic_dims
28
+ [
29
+ [ 100, 10 ],
30
+ [ 80, 10 ],
31
+ [ 50, 10 ],
32
+ [ 35, 10 ],
33
+ [ 20, 10 ]
34
+ ]
35
+ end
36
+
37
+ it 'should use the fast placement algorithm' do
38
+ images = create_images(basic_dims)
39
+
40
+ row_fitter(images)
41
+ assert_equal 100, row_fitter.width
42
+
43
+ row_fitter.fit!(:fast)
44
+
45
+ assert_equal 4, row_fitter.rows.length
46
+
47
+ assert_equal [ images[0] ], row_fitter[0].images
48
+ assert_equal [ images[1] ], row_fitter[1].images
49
+ assert_equal [ images[2], images[3] ], row_fitter[2].images
50
+ assert_equal [ images[4] ], row_fitter[3].images
51
+ end
52
+
53
+ it 'should use the scan placement algorithm' do
54
+ images = create_images(basic_dims)
55
+
56
+ row_fitter(images)
57
+
58
+ row_fitter.fit!(:scan)
59
+
60
+ assert_equal 3, row_fitter.rows.length
61
+
62
+ assert_equal [ images[0] ], row_fitter[0].images
63
+ assert_equal [ images[1], images[4] ], row_fitter[1].images
64
+ assert_equal [ images[2], images[3] ], row_fitter[2].images
65
+ end
66
+ end
@@ -2,10 +2,8 @@ require 'test_helper'
2
2
 
3
3
  class SpriteCommandTest < Test::Unit::TestCase
4
4
  attr_reader :test_dir
5
-
5
+ include SpriteHelper
6
6
  def setup
7
- @images_src_path = File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'sprites', 'public', 'images')
8
- @images_tmp_path = File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'sprites', 'public', 'images-tmp')
9
7
  @before_dir = ::Dir.pwd
10
8
  create_temp_cli_dir
11
9
  create_sprite_temp
@@ -14,14 +12,6 @@ class SpriteCommandTest < Test::Unit::TestCase
14
12
  end
15
13
  end
16
14
 
17
- def create_sprite_temp
18
- ::FileUtils.cp_r @images_src_path, @images_tmp_path
19
- end
20
-
21
- def clean_up_sprites
22
- ::FileUtils.rm_r @images_tmp_path
23
- end
24
-
25
15
  def config_data
26
16
  return <<-CONFIG
27
17
  images_path = #{@images_tmp_path.inspect}
@@ -1,27 +1,21 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class SpriteMapTest < Test::Unit::TestCase
4
+ include SpriteHelper
4
5
 
5
6
  def setup
6
7
  Hash.send(:include, Compass::SassExtensions::Functions::Sprites::VariableReader)
7
- @images_src_path = File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'sprites', 'public', 'images')
8
- @images_tmp_path = File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'sprites', 'public', 'images-tmp')
9
- FileUtils.cp_r @images_src_path, @images_tmp_path
10
- config = Compass::Configuration::Data.new('config')
11
- config.images_path = @images_tmp_path
12
- Compass.add_configuration(config)
8
+ create_sprite_temp
9
+ file = StringIO.new("images_path = #{@images_tmp_path.inspect}\n")
10
+ Compass.add_configuration(file, "sprite_config")
13
11
  Compass.configure_sass_plugin!
14
- @options = {'cleanup' => Sass::Script::Bool.new(true)}
15
- setup_map
16
- end
17
-
18
- def setup_map
19
- @importer = Compass::SpriteImporter.new(:uri => "selectors/*.png", :options => @options)
20
- @base = Compass::SassExtensions::Sprites::SpriteMap.new(@importer.sprite_names.map{|n| "selectors/#{n}.png"}, @importer.path, @importer.name, @importer.sass_engine, @importer.options)
12
+ @options = {'cleanup' => Sass::Script::Bool.new(true), 'layout' => Sass::Script::String.new('vertical')}
13
+ @base = sprite_map_test(@options)
21
14
  end
22
15
 
23
16
  def teardown
24
- FileUtils.rm_r @images_tmp_path
17
+ clean_up_sprites
18
+ @base = nil
25
19
  end
26
20
 
27
21
  it "should have the correct size" do
@@ -29,7 +23,7 @@ class SpriteMapTest < Test::Unit::TestCase
29
23
  end
30
24
 
31
25
  it "should have the sprite names" do
32
- assert_equal @importer.sprite_names, @base.sprite_names
26
+ assert_equal Compass::SpriteImporter.sprite_names(URI), @base.sprite_names
33
27
  end
34
28
 
35
29
  it 'should have image filenames' do
@@ -82,9 +76,121 @@ class SpriteMapTest < Test::Unit::TestCase
82
76
  file_to_remove = File.join(@images_tmp_path, 'selectors', 'ten-by-ten.png')
83
77
  FileUtils.rm file_to_remove
84
78
  assert !File.exists?(file_to_remove), "Failed to remove sprite file"
85
- setup_map
79
+ @base = sprite_map_test(@options)
86
80
  @base.generate
87
81
  assert !File.exists?(file), "Sprite file did not get removed"
88
82
  end
83
+
84
+ it "should have a vertical layout" do
85
+ assert_equal [0, 10, 20, 30], @base.images.map(&:top)
86
+ assert_equal [0, 0, 0, 0], @base.images.map(&:left)
87
+ end
88
+
89
+ it "should have a vertical layout with spacing" do
90
+ base = sprite_map_test(@options.merge({"spacing" => Sass::Script::Number.new(10, ['px'])}))
91
+ assert_equal [0, 20, 40, 60], base.images.map(&:top)
92
+ end
93
+
94
+ it "should layout vertical with position" do
95
+ base = sprite_map_test("ten_by_ten_active_position" => Sass::Script::Number.new(10, ['px']))
96
+ assert_equal [0, 10, 0, 0], base.images.map(&:left)
97
+ end
98
+
99
+ def smart
100
+ options = @options.merge("layout" => Sass::Script::String.new('smart'))
101
+ importer = Compass::SpriteImporter.new
102
+ uri = "image_row/*.png"
103
+ path, name = Compass::SpriteImporter.path_and_name(uri)
104
+ sprite_names = Compass::SpriteImporter.sprite_names(uri)
105
+ sass_engine = Compass::SpriteImporter.sass_engine(uri, name, importer, options)
106
+ Compass::SassExtensions::Sprites::SpriteMap.new(sprite_names.map {|n| "image_row/#{n}.png"}, path, name, sass_engine, options)
107
+ end
108
+
109
+ it "should have a smart layout" do
110
+ base = smart
111
+ base.generate
112
+ assert_equal 400, base.width
113
+ assert_equal 60, base.height
114
+ assert_equal [[0, 0], [20, 120], [20, 20], [20, 0], [20, 160]], base.images.map {|i| [i.top, i.left]}
115
+ assert File.exists?(base.filename)
116
+ FileUtils.rm base.filename
117
+ end
118
+
119
+ def diagonal
120
+ opts = @options.merge("layout" => Sass::Script::String.new('diagonal'))
121
+ sprite_map_test(opts)
122
+ end
123
+
124
+ it "should generate a diagonal sprite" do
125
+ base = diagonal
126
+ base.generate
127
+ assert_equal 40, base.width
128
+ assert_equal 40, base.height
129
+ assert_equal [[0,0], [10,10], [20,20], [30,30]], base.images.map {|i| [i.top, i.left]}
130
+ assert File.exists?(base.filename)
131
+ FileUtils.rm base.filename
132
+ end
133
+
134
+ # Horizontal tests
135
+ def horizontal(options= {})
136
+ opts = @options.merge("layout" => Sass::Script::String.new('horizontal'))
137
+ opts.merge!(options)
138
+ sprite_map_test(opts)
139
+ end
140
+
141
+ it "should have a horizontal layout" do
142
+ base = horizontal
143
+ assert_equal 10, base.height
144
+ assert_equal 40, base.width
145
+ end
146
+
147
+ it "should layout images horizontaly" do
148
+ base = horizontal
149
+ assert_equal [0, 10, 20, 30], base.images.map(&:left)
150
+ assert_equal [0, 0, 0, 0], base.images.map(&:top)
151
+ end
152
+
153
+ it "should layout horizontaly with spacing" do
154
+ base = horizontal("spacing" => Sass::Script::Number.new(10, ['px']))
155
+ assert_equal [0, 20, 40, 60], base.images.map(&:left)
156
+ assert_equal [0, 0, 0, 0], base.images.map(&:top)
157
+ assert_equal 80, base.width
158
+ end
159
+
160
+ it "should layout horizontaly with position" do
161
+ base = horizontal("ten_by_ten_active_position" => Sass::Script::Number.new(10, ['px']))
162
+ assert_equal [0, 10, 0, 0], base.images.map(&:top)
163
+ end
164
+
165
+ it "should generate a horrizontal sprite" do
166
+ base = horizontal
167
+ base.generate
168
+ assert File.exists?(base.filename)
169
+ FileUtils.rm base.filename
170
+ end
171
+
172
+ it "should generate vertical sprites in decending order" do
173
+ sizes = @base.images.map{|image| File.size(image.file) }
174
+ assert_equal sizes.min, File.size(@base.images.first.file)
175
+ assert_equal sizes.max, File.size(@base.images.last.file)
176
+ end
177
+
178
+ test "should get correct relative_name" do
179
+ Compass.reset_configuration!
180
+ uri = 'foo/*.png'
181
+ other_folder = File.join(@images_tmp_path, '../other-temp')
182
+ FileUtils.mkdir_p other_folder
183
+ FileUtils.mkdir_p File.join(other_folder, 'foo')
184
+ %w(my bar).each do |file|
185
+ FileUtils.touch(File.join(other_folder, "foo/#{file}.png"))
186
+ end
187
+ config = Compass::Configuration::Data.new('config')
188
+ config.images_path = @images_tmp_path
189
+ config.sprite_load_path = [@images_tmp_path, other_folder]
190
+ Compass.add_configuration(config, "sprite_config")
191
+ assert_equal 'foo/my.png', Compass::SassExtensions::Sprites::SpriteMap.relative_name(File.join(other_folder, 'foo/my.png'))
192
+ FileUtils.rm_rf other_folder
193
+ end
194
+
89
195
 
90
196
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
5
- prerelease:
6
- segments:
7
- - 0
8
- - 11
9
- - 7
10
- version: 0.11.7
4
+ prerelease: 5
5
+ version: 0.12.alpha.0
11
6
  platform: ruby
12
7
  authors:
13
8
  - Chris Eppstein
@@ -19,7 +14,7 @@ autorequire:
19
14
  bindir: bin
20
15
  cert_chain: []
21
16
 
22
- date: 2012-01-05 00:00:00 -08:00
17
+ date: 2011-08-30 00:00:00 -07:00
23
18
  default_executable:
24
19
  dependencies:
25
20
  - !ruby/object:Gem::Dependency
@@ -30,10 +25,6 @@ dependencies:
30
25
  requirements:
31
26
  - - ~>
32
27
  - !ruby/object:Gem::Version
33
- hash: 5
34
- segments:
35
- - 3
36
- - 1
37
28
  version: "3.1"
38
29
  type: :runtime
39
30
  version_requirements: *id001
@@ -45,10 +36,6 @@ dependencies:
45
36
  requirements:
46
37
  - - ~>
47
38
  - !ruby/object:Gem::Version
48
- hash: 11
49
- segments:
50
- - 1
51
- - 2
52
39
  version: "1.2"
53
40
  type: :runtime
54
41
  version_requirements: *id002
@@ -60,11 +47,6 @@ dependencies:
60
47
  requirements:
61
48
  - - ">="
62
49
  - !ruby/object:Gem::Version
63
- hash: 25
64
- segments:
65
- - 0
66
- - 2
67
- - 7
68
50
  version: 0.2.7
69
51
  type: :runtime
70
52
  version_requirements: *id003
@@ -82,7 +64,6 @@ files:
82
64
  - VERSION.yml
83
65
  - Rakefile
84
66
  - bin/compass
85
- - bin/compass.compiled.rbc
86
67
  - examples/blueprint_default/config.rb
87
68
  - examples/blueprint_default/images/grid.png
88
69
  - examples/blueprint_default/index.html.haml
@@ -148,7 +129,6 @@ files:
148
129
  - examples/compass/bootstrap.rb
149
130
  - examples/compass/clean.rb
150
131
  - examples/compass/compass.html.haml
151
- - examples/compass/compass_app_log.txt
152
132
  - examples/compass/config.rb
153
133
  - examples/compass/headers.txt
154
134
  - examples/compass/images/blue_arrow.gif
@@ -548,7 +528,6 @@ files:
548
528
  - frameworks/compass/stylesheets/compass/css3/_transform-legacy.scss
549
529
  - frameworks/compass/stylesheets/compass/css3/_transform.scss
550
530
  - frameworks/compass/stylesheets/compass/css3/_transition.scss
551
- - frameworks/compass/stylesheets/compass/css3/_user-interface.scss
552
531
  - frameworks/compass/stylesheets/compass/layout/_grid-background.scss
553
532
  - frameworks/compass/stylesheets/compass/layout/_sticky-footer.scss
554
533
  - frameworks/compass/stylesheets/compass/layout/_stretching.scss
@@ -623,10 +602,15 @@ files:
623
602
  - lib/compass/app_integration/merb/runtime.rb
624
603
  - lib/compass/app_integration/merb.rb
625
604
  - lib/compass/app_integration/merb.rbc
626
- - lib/compass/app_integration/rails/actionpack2/action_controller.rb
627
- - lib/compass/app_integration/rails/actionpack2/sass_plugin.rb
628
- - lib/compass/app_integration/rails/actionpack2/urls.rb
629
- - lib/compass/app_integration/rails/actionpack3/railtie.rb
605
+ - lib/compass/app_integration/rails/actionpack2x/action_controller.rb
606
+ - lib/compass/app_integration/rails/actionpack2x/sass_plugin.rb
607
+ - lib/compass/app_integration/rails/actionpack2x/urls.rb
608
+ - lib/compass/app_integration/rails/actionpack2x.rb
609
+ - lib/compass/app_integration/rails/actionpack30/railtie.rb
610
+ - lib/compass/app_integration/rails/actionpack30.rb
611
+ - lib/compass/app_integration/rails/actionpack31/helpers.rb
612
+ - lib/compass/app_integration/rails/actionpack31/railtie.rb
613
+ - lib/compass/app_integration/rails/actionpack31.rb
630
614
  - lib/compass/app_integration/rails/configuration_defaults.rb
631
615
  - lib/compass/app_integration/rails/configuration_defaults.rbc
632
616
  - lib/compass/app_integration/rails/installer.rb
@@ -646,49 +630,27 @@ files:
646
630
  - lib/compass/browser_support.rb
647
631
  - lib/compass/browser_support.rbc
648
632
  - lib/compass/commands/base.rb
649
- - lib/compass/commands/base.rbc
650
633
  - lib/compass/commands/clean_project.rb
651
- - lib/compass/commands/clean_project.rbc
652
634
  - lib/compass/commands/create_project.rb
653
- - lib/compass/commands/create_project.rbc
654
635
  - lib/compass/commands/default.rb
655
- - lib/compass/commands/default.rbc
656
636
  - lib/compass/commands/generate_grid_background.rb
657
- - lib/compass/commands/generate_grid_background.rbc
658
637
  - lib/compass/commands/help.rb
659
- - lib/compass/commands/help.rbc
660
638
  - lib/compass/commands/imports.rb
661
- - lib/compass/commands/imports.rbc
662
639
  - lib/compass/commands/installer_command.rb
663
- - lib/compass/commands/installer_command.rbc
664
640
  - lib/compass/commands/interactive.rb
665
- - lib/compass/commands/interactive.rbc
666
641
  - lib/compass/commands/list_frameworks.rb
667
- - lib/compass/commands/list_frameworks.rbc
668
642
  - lib/compass/commands/print_version.rb
669
- - lib/compass/commands/print_version.rbc
670
643
  - lib/compass/commands/project_base.rb
671
- - lib/compass/commands/project_base.rbc
672
644
  - lib/compass/commands/project_stats.rb
673
- - lib/compass/commands/project_stats.rbc
674
645
  - lib/compass/commands/registry.rb
675
- - lib/compass/commands/registry.rbc
676
646
  - lib/compass/commands/sprite.rb
677
- - lib/compass/commands/sprite.rbc
678
647
  - lib/compass/commands/stamp_pattern.rb
679
- - lib/compass/commands/stamp_pattern.rbc
680
648
  - lib/compass/commands/unpack_extension.rb
681
- - lib/compass/commands/unpack_extension.rbc
682
649
  - lib/compass/commands/update_project.rb
683
- - lib/compass/commands/update_project.rbc
684
650
  - lib/compass/commands/validate_project.rb
685
- - lib/compass/commands/validate_project.rbc
686
651
  - lib/compass/commands/watch_project.rb
687
- - lib/compass/commands/watch_project.rbc
688
652
  - lib/compass/commands/write_configuration.rb
689
- - lib/compass/commands/write_configuration.rbc
690
653
  - lib/compass/commands.rb
691
- - lib/compass/commands.rbc
692
654
  - lib/compass/compiler.rb
693
655
  - lib/compass/compiler.rbc
694
656
  - lib/compass/configuration/adapters.rb
@@ -716,36 +678,22 @@ files:
716
678
  - lib/compass/errors.rb
717
679
  - lib/compass/errors.rbc
718
680
  - lib/compass/exec/command_option_parser.rb
719
- - lib/compass/exec/command_option_parser.rbc
720
681
  - lib/compass/exec/global_options_parser.rb
721
- - lib/compass/exec/global_options_parser.rbc
722
682
  - lib/compass/exec/helpers.rb
723
- - lib/compass/exec/helpers.rbc
724
683
  - lib/compass/exec/project_options_parser.rb
725
- - lib/compass/exec/project_options_parser.rbc
726
684
  - lib/compass/exec/sub_command_ui.rb
727
- - lib/compass/exec/sub_command_ui.rbc
728
685
  - lib/compass/exec/switch_ui.rb
729
686
  - lib/compass/exec.rb
730
- - lib/compass/exec.rbc
731
687
  - lib/compass/frameworks.rb
732
688
  - lib/compass/frameworks.rbc
733
689
  - lib/compass/grid_builder.rb
734
- - lib/compass/grid_builder.rbc
735
690
  - lib/compass/installers/bare_installer.rb
736
- - lib/compass/installers/bare_installer.rbc
737
691
  - lib/compass/installers/base.rb
738
- - lib/compass/installers/base.rbc
739
692
  - lib/compass/installers/manifest.rb
740
- - lib/compass/installers/manifest.rbc
741
693
  - lib/compass/installers/manifest_installer.rb
742
- - lib/compass/installers/manifest_installer.rbc
743
694
  - lib/compass/installers/template_context.rb
744
- - lib/compass/installers/template_context.rbc
745
695
  - lib/compass/installers.rb
746
- - lib/compass/installers.rbc
747
696
  - lib/compass/logger.rb
748
- - lib/compass/logger.rbc
749
697
  - lib/compass/quick_cache.rb
750
698
  - lib/compass/quick_cache.rbc
751
699
  - lib/compass/rails.rb
@@ -759,7 +707,6 @@ files:
759
707
  - lib/compass/sass_extensions/functions/display.rbc
760
708
  - lib/compass/sass_extensions/functions/enumerate.rb
761
709
  - lib/compass/sass_extensions/functions/enumerate.rbc
762
- - lib/compass/sass_extensions/functions/env.rbc
763
710
  - lib/compass/sass_extensions/functions/font_files.rb
764
711
  - lib/compass/sass_extensions/functions/font_files.rbc
765
712
  - lib/compass/sass_extensions/functions/gradient_support.rb
@@ -794,14 +741,12 @@ files:
794
741
  - lib/compass/sass_extensions/sprites/image.rb
795
742
  - lib/compass/sass_extensions/sprites/image.rbc
796
743
  - lib/compass/sass_extensions/sprites/image_methods.rb
797
- - lib/compass/sass_extensions/sprites/image_methods.rbc
798
- - lib/compass/sass_extensions/sprites/image_row.rbc
799
- - lib/compass/sass_extensions/sprites/layout_methods.rbc
800
- - lib/compass/sass_extensions/sprites/row_fitter.rbc
744
+ - lib/compass/sass_extensions/sprites/image_row.rb
745
+ - lib/compass/sass_extensions/sprites/layout_methods.rb
746
+ - lib/compass/sass_extensions/sprites/row_fitter.rb
801
747
  - lib/compass/sass_extensions/sprites/sprite_map.rb
802
748
  - lib/compass/sass_extensions/sprites/sprite_map.rbc
803
749
  - lib/compass/sass_extensions/sprites/sprite_methods.rb
804
- - lib/compass/sass_extensions/sprites/sprite_methods.rbc
805
750
  - lib/compass/sass_extensions/sprites/sprites.rbc
806
751
  - lib/compass/sass_extensions/sprites.rb
807
752
  - lib/compass/sass_extensions/sprites.rbc
@@ -818,12 +763,15 @@ files:
818
763
  - lib/compass/version.rbc
819
764
  - lib/compass.rb
820
765
  - lib/compass.rbc
821
- - test/fixtures/extensions/only_stylesheets/compass_init.rb
822
- - test/fixtures/extensions/only_stylesheets/scss/only_stylesheets/foo.scss
823
766
  - test/fixtures/sprites/public/images/bad_extensions/ten-by-ten.gif
824
767
  - test/fixtures/sprites/public/images/bad_extensions/twenty-by-twenty.jpg
825
768
  - test/fixtures/sprites/public/images/colors/blue.png
826
769
  - test/fixtures/sprites/public/images/colors/yellow.png
770
+ - test/fixtures/sprites/public/images/image_row/large.png
771
+ - test/fixtures/sprites/public/images/image_row/large_square.png
772
+ - test/fixtures/sprites/public/images/image_row/medium.png
773
+ - test/fixtures/sprites/public/images/image_row/small.png
774
+ - test/fixtures/sprites/public/images/image_row/tall.png
827
775
  - test/fixtures/sprites/public/images/ko/default_background.png
828
776
  - test/fixtures/sprites/public/images/ko/starbg26x27.png
829
777
  - test/fixtures/sprites/public/images/nested/squares/ten-by-ten.png
@@ -915,7 +863,6 @@ files:
915
863
  - test/fixtures/stylesheets/compass/css/stretching.css
916
864
  - test/fixtures/stylesheets/compass/css/text_shadow.css
917
865
  - test/fixtures/stylesheets/compass/css/transform.css
918
- - test/fixtures/stylesheets/compass/css/user-interface.css
919
866
  - test/fixtures/stylesheets/compass/css/utilities.css
920
867
  - test/fixtures/stylesheets/compass/css/vertical_rhythm.css
921
868
  - test/fixtures/stylesheets/compass/images/100x150.gif
@@ -1170,7 +1117,7 @@ files:
1170
1117
  - test/fixtures/stylesheets/compass/images/flag/za.png
1171
1118
  - test/fixtures/stylesheets/compass/images/flag/zm.png
1172
1119
  - test/fixtures/stylesheets/compass/images/flag/zw.png
1173
- - test/fixtures/stylesheets/compass/images/flag-s03c3b29b35.png
1120
+ - test/fixtures/stylesheets/compass/images/flag-s8c3c755a68.png
1174
1121
  - test/fixtures/stylesheets/compass/sass/border_radius.scss
1175
1122
  - test/fixtures/stylesheets/compass/sass/box.sass
1176
1123
  - test/fixtures/stylesheets/compass/sass/box_shadow.scss
@@ -1192,10 +1139,8 @@ files:
1192
1139
  - test/fixtures/stylesheets/compass/sass/stretching.sass
1193
1140
  - test/fixtures/stylesheets/compass/sass/text_shadow.scss
1194
1141
  - test/fixtures/stylesheets/compass/sass/transform.scss
1195
- - test/fixtures/stylesheets/compass/sass/user-interface.scss
1196
1142
  - test/fixtures/stylesheets/compass/sass/utilities.scss
1197
1143
  - test/fixtures/stylesheets/compass/sass/vertical_rhythm.scss
1198
- - test/fixtures/stylesheets/envtest/tmp/env.css
1199
1144
  - test/fixtures/stylesheets/error/config.rb
1200
1145
  - test/fixtures/stylesheets/error/sass/screen.sass
1201
1146
  - test/fixtures/stylesheets/image_urls/config.rb
@@ -1210,57 +1155,32 @@ files:
1210
1155
  - test/fixtures/stylesheets/relative/sass/ie.sass
1211
1156
  - test/fixtures/stylesheets/relative/sass/print.sass
1212
1157
  - test/fixtures/stylesheets/relative/sass/screen.sass
1213
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/config.rb
1214
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/ie.scss
1215
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/print.scss
1216
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/screen.scss
1217
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/ie.css
1218
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/print.css
1219
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/screen.css
1220
1158
  - test/fixtures/stylesheets/valid/config.rb
1221
1159
  - test/fixtures/stylesheets/valid/sass/simple.sass
1222
1160
  - test/helpers/command_line.rb
1223
- - test/helpers/command_line.rbc
1224
1161
  - test/helpers/diff.rb
1225
- - test/helpers/diff.rbc
1226
1162
  - test/helpers/io.rb
1227
- - test/helpers/io.rbc
1228
1163
  - test/helpers/rails.rb
1229
- - test/helpers/rails.rbc
1230
1164
  - test/helpers/test_case.rb
1231
- - test/helpers/test_case.rbc
1232
1165
  - test/integrations/compass_test.rb
1233
- - test/integrations/compass_test.rbc
1234
1166
  - test/integrations/rails_integration_test.rb
1235
- - test/integrations/rails_integration_test.rbc
1236
1167
  - test/integrations/sprites_test.rb
1237
- - test/integrations/sprites_test.rbc
1238
1168
  - test/integrations/test_rails_helper.rb
1239
1169
  - test/test_helper.rb
1240
- - test/test_helper.rbc
1170
+ - test/tmp/compass_rails/public/images/selectors-sef52c5c63a.png
1241
1171
  - test/units/actions_test.rb
1242
- - test/units/actions_test.rbc
1243
1172
  - test/units/command_line_test.rb
1244
- - test/units/command_line_test.rbc
1245
1173
  - test/units/compass_png_test.rb
1246
- - test/units/compass_png_test.rbc
1247
1174
  - test/units/configuration_test.rb
1248
- - test/units/configuration_test.rbc
1249
- - test/units/rails_configuration_test.rbc
1175
+ - test/units/rails_configuration_test.rb
1250
1176
  - test/units/sass_extensions_test.rb
1251
- - test/units/sass_extensions_test.rbc
1252
1177
  - test/units/sprites/engine_test.rb
1253
- - test/units/sprites/engine_test.rbc
1254
- - test/units/sprites/image_row_test.rbc
1178
+ - test/units/sprites/image_row_test.rb
1255
1179
  - test/units/sprites/image_test.rb
1256
- - test/units/sprites/image_test.rbc
1257
1180
  - test/units/sprites/importer_test.rb
1258
- - test/units/sprites/importer_test.rbc
1259
- - test/units/sprites/row_fitter_test.rbc
1181
+ - test/units/sprites/row_fitter_test.rb
1260
1182
  - test/units/sprites/sprite_command_test.rb
1261
- - test/units/sprites/sprite_command_test.rbc
1262
1183
  - test/units/sprites/sprite_map_test.rb
1263
- - test/units/sprites/sprite_map_test.rbc
1264
1184
  - features/command_line.feature
1265
1185
  - features/extensions.feature
1266
1186
  - features/rails_integration.feature
@@ -1280,33 +1200,30 @@ required_ruby_version: !ruby/object:Gem::Requirement
1280
1200
  requirements:
1281
1201
  - - ">="
1282
1202
  - !ruby/object:Gem::Version
1283
- hash: 3
1284
- segments:
1285
- - 0
1286
1203
  version: "0"
1287
1204
  required_rubygems_version: !ruby/object:Gem::Requirement
1288
1205
  none: false
1289
1206
  requirements:
1290
- - - ">="
1207
+ - - ">"
1291
1208
  - !ruby/object:Gem::Version
1292
- hash: 3
1293
- segments:
1294
- - 0
1295
- version: "0"
1209
+ version: 1.3.1
1296
1210
  requirements: []
1297
1211
 
1298
1212
  rubyforge_project:
1299
- rubygems_version: 1.4.2
1213
+ rubygems_version: 1.5.3
1300
1214
  signing_key:
1301
1215
  specification_version: 3
1302
1216
  summary: A Real Stylesheet Framework
1303
1217
  test_files:
1304
- - test/fixtures/extensions/only_stylesheets/compass_init.rb
1305
- - test/fixtures/extensions/only_stylesheets/scss/only_stylesheets/foo.scss
1306
1218
  - test/fixtures/sprites/public/images/bad_extensions/ten-by-ten.gif
1307
1219
  - test/fixtures/sprites/public/images/bad_extensions/twenty-by-twenty.jpg
1308
1220
  - test/fixtures/sprites/public/images/colors/blue.png
1309
1221
  - test/fixtures/sprites/public/images/colors/yellow.png
1222
+ - test/fixtures/sprites/public/images/image_row/large.png
1223
+ - test/fixtures/sprites/public/images/image_row/large_square.png
1224
+ - test/fixtures/sprites/public/images/image_row/medium.png
1225
+ - test/fixtures/sprites/public/images/image_row/small.png
1226
+ - test/fixtures/sprites/public/images/image_row/tall.png
1310
1227
  - test/fixtures/sprites/public/images/ko/default_background.png
1311
1228
  - test/fixtures/sprites/public/images/ko/starbg26x27.png
1312
1229
  - test/fixtures/sprites/public/images/nested/squares/ten-by-ten.png
@@ -1398,7 +1315,6 @@ test_files:
1398
1315
  - test/fixtures/stylesheets/compass/css/stretching.css
1399
1316
  - test/fixtures/stylesheets/compass/css/text_shadow.css
1400
1317
  - test/fixtures/stylesheets/compass/css/transform.css
1401
- - test/fixtures/stylesheets/compass/css/user-interface.css
1402
1318
  - test/fixtures/stylesheets/compass/css/utilities.css
1403
1319
  - test/fixtures/stylesheets/compass/css/vertical_rhythm.css
1404
1320
  - test/fixtures/stylesheets/compass/images/100x150.gif
@@ -1653,7 +1569,7 @@ test_files:
1653
1569
  - test/fixtures/stylesheets/compass/images/flag/za.png
1654
1570
  - test/fixtures/stylesheets/compass/images/flag/zm.png
1655
1571
  - test/fixtures/stylesheets/compass/images/flag/zw.png
1656
- - test/fixtures/stylesheets/compass/images/flag-s03c3b29b35.png
1572
+ - test/fixtures/stylesheets/compass/images/flag-s8c3c755a68.png
1657
1573
  - test/fixtures/stylesheets/compass/sass/border_radius.scss
1658
1574
  - test/fixtures/stylesheets/compass/sass/box.sass
1659
1575
  - test/fixtures/stylesheets/compass/sass/box_shadow.scss
@@ -1675,10 +1591,8 @@ test_files:
1675
1591
  - test/fixtures/stylesheets/compass/sass/stretching.sass
1676
1592
  - test/fixtures/stylesheets/compass/sass/text_shadow.scss
1677
1593
  - test/fixtures/stylesheets/compass/sass/transform.scss
1678
- - test/fixtures/stylesheets/compass/sass/user-interface.scss
1679
1594
  - test/fixtures/stylesheets/compass/sass/utilities.scss
1680
1595
  - test/fixtures/stylesheets/compass/sass/vertical_rhythm.scss
1681
- - test/fixtures/stylesheets/envtest/tmp/env.css
1682
1596
  - test/fixtures/stylesheets/error/config.rb
1683
1597
  - test/fixtures/stylesheets/error/sass/screen.sass
1684
1598
  - test/fixtures/stylesheets/image_urls/config.rb
@@ -1693,57 +1607,32 @@ test_files:
1693
1607
  - test/fixtures/stylesheets/relative/sass/ie.sass
1694
1608
  - test/fixtures/stylesheets/relative/sass/print.sass
1695
1609
  - test/fixtures/stylesheets/relative/sass/screen.sass
1696
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/config.rb
1697
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/ie.scss
1698
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/print.scss
1699
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/screen.scss
1700
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/ie.css
1701
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/print.css
1702
- - test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/screen.css
1703
1610
  - test/fixtures/stylesheets/valid/config.rb
1704
1611
  - test/fixtures/stylesheets/valid/sass/simple.sass
1705
1612
  - test/helpers/command_line.rb
1706
- - test/helpers/command_line.rbc
1707
1613
  - test/helpers/diff.rb
1708
- - test/helpers/diff.rbc
1709
1614
  - test/helpers/io.rb
1710
- - test/helpers/io.rbc
1711
1615
  - test/helpers/rails.rb
1712
- - test/helpers/rails.rbc
1713
1616
  - test/helpers/test_case.rb
1714
- - test/helpers/test_case.rbc
1715
1617
  - test/integrations/compass_test.rb
1716
- - test/integrations/compass_test.rbc
1717
1618
  - test/integrations/rails_integration_test.rb
1718
- - test/integrations/rails_integration_test.rbc
1719
1619
  - test/integrations/sprites_test.rb
1720
- - test/integrations/sprites_test.rbc
1721
1620
  - test/integrations/test_rails_helper.rb
1722
1621
  - test/test_helper.rb
1723
- - test/test_helper.rbc
1622
+ - test/tmp/compass_rails/public/images/selectors-sef52c5c63a.png
1724
1623
  - test/units/actions_test.rb
1725
- - test/units/actions_test.rbc
1726
1624
  - test/units/command_line_test.rb
1727
- - test/units/command_line_test.rbc
1728
1625
  - test/units/compass_png_test.rb
1729
- - test/units/compass_png_test.rbc
1730
1626
  - test/units/configuration_test.rb
1731
- - test/units/configuration_test.rbc
1732
- - test/units/rails_configuration_test.rbc
1627
+ - test/units/rails_configuration_test.rb
1733
1628
  - test/units/sass_extensions_test.rb
1734
- - test/units/sass_extensions_test.rbc
1735
1629
  - test/units/sprites/engine_test.rb
1736
- - test/units/sprites/engine_test.rbc
1737
- - test/units/sprites/image_row_test.rbc
1630
+ - test/units/sprites/image_row_test.rb
1738
1631
  - test/units/sprites/image_test.rb
1739
- - test/units/sprites/image_test.rbc
1740
1632
  - test/units/sprites/importer_test.rb
1741
- - test/units/sprites/importer_test.rbc
1742
- - test/units/sprites/row_fitter_test.rbc
1633
+ - test/units/sprites/row_fitter_test.rb
1743
1634
  - test/units/sprites/sprite_command_test.rb
1744
- - test/units/sprites/sprite_command_test.rbc
1745
1635
  - test/units/sprites/sprite_map_test.rb
1746
- - test/units/sprites/sprite_map_test.rbc
1747
1636
  - features/command_line.feature
1748
1637
  - features/extensions.feature
1749
1638
  - features/rails_integration.feature