file cleanup
This commit is contained in:
parent
f7d0079f27
commit
a9b6d8cfde
@ -1,7 +1,7 @@
|
|||||||
PATH
|
PATH
|
||||||
remote: .
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
compass (0.11.beta.3.691c671)
|
compass (0.11.beta.3.01b9cd3)
|
||||||
chunky_png (~> 1.1.0)
|
chunky_png (~> 1.1.0)
|
||||||
sass (>= 3.1.0.alpha.249)
|
sass (>= 3.1.0.alpha.249)
|
||||||
|
|
||||||
@ -109,6 +109,7 @@ GEM
|
|||||||
rspec-core (~> 2.0.1)
|
rspec-core (~> 2.0.1)
|
||||||
rspec-expectations (~> 2.0.1)
|
rspec-expectations (~> 2.0.1)
|
||||||
ruby-json (1.1.2)
|
ruby-json (1.1.2)
|
||||||
|
ruby-prof (0.9.2)
|
||||||
rubyzip (0.9.4)
|
rubyzip (0.9.4)
|
||||||
sass (3.1.0.alpha.249)
|
sass (3.1.0.alpha.249)
|
||||||
term-ansicolor (1.0.5)
|
term-ansicolor (1.0.5)
|
||||||
@ -131,5 +132,6 @@ DEPENDENCIES
|
|||||||
rails (~> 3.0.0.rc)
|
rails (~> 3.0.0.rc)
|
||||||
rcov
|
rcov
|
||||||
rspec (~> 2.0.0)
|
rspec (~> 2.0.0)
|
||||||
|
ruby-prof
|
||||||
rubyzip
|
rubyzip
|
||||||
sass (= 3.1.0.alpha.249)
|
sass (= 3.1.0.alpha.249)
|
||||||
|
@ -3,3 +3,4 @@ end
|
|||||||
|
|
||||||
require 'compass/sass_extensions/functions'
|
require 'compass/sass_extensions/functions'
|
||||||
require 'compass/sass_extensions/monkey_patches'
|
require 'compass/sass_extensions/monkey_patches'
|
||||||
|
require 'compass/sass_extensions/sprites'
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
require 'digest/md5'
|
|
||||||
require 'compass/sass_extensions/sprites/base'
|
|
||||||
|
|
||||||
module Compass::SassExtensions::Functions::Sprites
|
module Compass::SassExtensions::Functions::Sprites
|
||||||
ZERO = Sass::Script::Number::new(0)
|
ZERO = Sass::Script::Number::new(0)
|
||||||
|
|
||||||
|
12
lib/compass/sass_extensions/sprites.rb
Normal file
12
lib/compass/sass_extensions/sprites.rb
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
require 'digest/md5'
|
||||||
|
require 'compass/sass_extensions/sprites/image'
|
||||||
|
require 'compass/sass_extensions/sprites/base'
|
||||||
|
require 'compass/sass_extensions/sprites/engines'
|
||||||
|
|
||||||
|
module Compass
|
||||||
|
module SassExtensions
|
||||||
|
module Sprites
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -46,6 +46,7 @@ $#{name}-sprite-dimensions: false !default;
|
|||||||
$#{name}-position: 0% !default;
|
$#{name}-position: 0% !default;
|
||||||
$#{name}-spacing: 0 !default;
|
$#{name}-spacing: 0 !default;
|
||||||
$#{name}-repeat: no-repeat !default;
|
$#{name}-repeat: no-repeat !default;
|
||||||
|
$#{name}-prefix: '' !default;
|
||||||
|
|
||||||
#{skip_overrides ? "$#{name}-sprites: sprite-map(\"#{uri}\");" : generate_overrides(uri, name, images) }
|
#{skip_overrides ? "$#{name}-sprites: sprite-map(\"#{uri}\");" : generate_overrides(uri, name, images) }
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
||||||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
|
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'compass'
|
require 'compass'
|
||||||
require 'rspec'
|
require 'rspec'
|
||||||
|
@ -88,7 +88,7 @@ describe Compass::Sprites do
|
|||||||
}
|
}
|
||||||
CSS
|
CSS
|
||||||
image_size('squares-*.png').should == [20, 30]
|
image_size('squares-*.png').should == [20, 30]
|
||||||
image_md5('squares-*.png').should == 'd1aff60ac2f10dcc9859309d36f7e9a0'
|
image_md5('squares-*.png').should == 'fcc93d7b279c2ad6898fbca49cbd01e1'
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should generate sprite classes with dimensions" do
|
it "should generate sprite classes with dimensions" do
|
||||||
@ -311,7 +311,7 @@ describe Compass::Sprites do
|
|||||||
}
|
}
|
||||||
CSS
|
CSS
|
||||||
image_size('squares-*.png').should == [20, 30]
|
image_size('squares-*.png').should == [20, 30]
|
||||||
image_md5('squares-*.png').should == 'd1aff60ac2f10dcc9859309d36f7e9a0'
|
image_md5('squares-*.png').should == '652b67f5e9092520d6f26caae7e18012'
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should use position adjustments in mixins" do
|
it "should use position adjustments in mixins" do
|
||||||
@ -349,7 +349,7 @@ describe Compass::Sprites do
|
|||||||
}
|
}
|
||||||
CSS
|
CSS
|
||||||
image_size('squares-*.png').should == [20, 30]
|
image_size('squares-*.png').should == [20, 30]
|
||||||
image_md5('squares-*.png').should == 'd1aff60ac2f10dcc9859309d36f7e9a0'
|
image_md5('squares-*.png').should == '652b67f5e9092520d6f26caae7e18012'
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should repeat the image" do
|
it "should repeat the image" do
|
||||||
@ -396,7 +396,7 @@ describe Compass::Sprites do
|
|||||||
}
|
}
|
||||||
CSS
|
CSS
|
||||||
image_size('squares-*.png').should == [30, 30]
|
image_size('squares-*.png').should == [30, 30]
|
||||||
image_md5('squares-*.png').should == '33b385d541ce887441606e75467fd7ef'
|
image_md5('squares-*.png').should == '2fb19ef9c83018c93c6f147af3a56cb2'
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should provide a nice errors for lemonade's old users" do
|
it "should provide a nice errors for lemonade's old users" do
|
||||||
|
Loading…
Reference in New Issue
Block a user