the-architect-sprite_generator 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sprite_generator.rb +2 -2
- data/test/units/test_sprite_generator.rb +0 -2
- metadata +1 -1
data/lib/sprite_generator.rb
CHANGED
@@ -112,8 +112,8 @@ protected
|
|
112
112
|
'full_filename' => filename,
|
113
113
|
'file_basename' => file_basename,
|
114
114
|
'variation_name' => file_basename.gsub(/^#{basename}#{@delimiter}/, ''),
|
115
|
-
'width' => @tile ? tile.columns : image.columns,
|
116
|
-
'height' => @tile ? tile.rows : image.rows,
|
115
|
+
'width' => @tile ? @tile.columns : image.columns,
|
116
|
+
'height' => @tile ? @tile.rows : image.rows,
|
117
117
|
'type' => :image
|
118
118
|
}
|
119
119
|
end
|
@@ -29,8 +29,6 @@ class SpriteGeneratorTest < Test::Unit::TestCase
|
|
29
29
|
template = %q{ {{top}} }
|
30
30
|
generator = SpriteGenerator.new(@all_images_path, @output, nil, { :template => template, :distribution => :vertical })
|
31
31
|
css = generator.create
|
32
|
-
`open #{@output}`
|
33
|
-
sleep 1
|
34
32
|
assert css.include?('240')
|
35
33
|
end
|
36
34
|
|