removed unnedded class tests are green runs in 1.8.7 adm 1.9.2

This commit is contained in:
Scott Davis 2011-03-03 01:15:22 -05:00
parent c0a0b638b1
commit 1d6e316685
4 changed files with 4241 additions and 12 deletions

View File

@ -1,7 +1,7 @@
PATH PATH
remote: . remote: .
specs: specs:
compass (0.11.beta.2.a486129) compass (0.11.beta.2.c0a0b63)
chunky_png (~> 0.12.0) chunky_png (~> 0.12.0)
sass (>= 3.1.0.alpha.218) sass (>= 3.1.0.alpha.218)

2974
Rakefile.compiled.rbc Normal file

File diff suppressed because it is too large Load Diff

View File

@ -13,11 +13,7 @@ module Compass::SassExtensions::Functions::Sprites
end end
end end
class SpriteMap < Compass::SassExtensions::Sprites::Base # Creates a Compass::SassExtensions::Sprites::Base object. A sprite map, when used in a property is the same
end
# Creates a SpriteMap object. A sprite map, when used in a property is the same
# as calling sprite-url. So the following background properties are equivalent: # as calling sprite-url. So the following background properties are equivalent:
# #
# $icons: sprite-map("icons/*.png"); # $icons: sprite-map("icons/*.png");
@ -28,7 +24,7 @@ module Compass::SassExtensions::Functions::Sprites
# the first time it is converted to a url. Simply constructing it has no side-effects. # the first time it is converted to a url. Simply constructing it has no side-effects.
def sprite_map(glob, kwargs = {}) def sprite_map(glob, kwargs = {})
kwargs.extend VariableReader kwargs.extend VariableReader
SpriteMap.from_uri(glob, self, kwargs) Compass::SassExtensions::Sprites::Base.from_uri(glob, self, kwargs)
end end
Sass::Script::Functions.declare :sprite_map, [:glob], :var_kwargs => true Sass::Script::Functions.declare :sprite_map, [:glob], :var_kwargs => true
@ -41,7 +37,7 @@ module Compass::SassExtensions::Functions::Sprites
# #
# background: url('/images/icons.png?12345678') 0 -24px no-repeat; # background: url('/images/icons.png?12345678') 0 -24px no-repeat;
def sprite(map, sprite, offset_x = ZERO, offset_y = ZERO) def sprite(map, sprite, offset_x = ZERO, offset_y = ZERO)
unless map.is_a?(SpriteMap) unless map.is_a?(Compass::SassExtensions::Sprites::Base)
missing_sprite!("sprite") missing_sprite!("sprite")
end end
unless sprite.is_a?(Sass::Script::String) unless sprite.is_a?(Sass::Script::String)
@ -58,7 +54,7 @@ module Compass::SassExtensions::Functions::Sprites
# Returns the name of a sprite map # Returns the name of a sprite map
# The name is derived from the folder than contains the sprites. # The name is derived from the folder than contains the sprites.
def sprite_map_name(map) def sprite_map_name(map)
unless map.is_a?(SpriteMap) unless map.is_a?(Compass::SassExtensions::Sprites::Base)
missing_sprite!("sprite-map-name") missing_sprite!("sprite-map-name")
end end
Sass::Script::String.new(map.name) Sass::Script::String.new(map.name)
@ -67,7 +63,7 @@ module Compass::SassExtensions::Functions::Sprites
# Returns the path to the original image file for the sprite with the given name # Returns the path to the original image file for the sprite with the given name
def sprite_file(map, sprite) def sprite_file(map, sprite)
unless map.is_a?(SpriteMap) unless map.is_a?(Compass::SassExtensions::Sprites::Base)
missing_sprite!("sprite-file") missing_sprite!("sprite-file")
end end
if image = map.image_for(sprite.value) if image = map.image_for(sprite.value)
@ -80,7 +76,7 @@ module Compass::SassExtensions::Functions::Sprites
# Returns a url to the sprite image. # Returns a url to the sprite image.
def sprite_url(map) def sprite_url(map)
unless map.is_a?(SpriteMap) unless map.is_a?(Compass::SassExtensions::Sprites::Base)
missing_sprite!("sprite-url") missing_sprite!("sprite-url")
end end
map.generate map.generate
@ -110,7 +106,7 @@ module Compass::SassExtensions::Functions::Sprites
# #
# background-position: 3px -36px; # background-position: 3px -36px;
def sprite_position(map, sprite = nil, offset_x = ZERO, offset_y = ZERO) def sprite_position(map, sprite = nil, offset_x = ZERO, offset_y = ZERO)
unless map.is_a?(SpriteMap) unless map.is_a?(Compass::SassExtensions::Sprites::Base)
missing_sprite!("sprite-position") missing_sprite!("sprite-position")
end end
unless sprite && sprite.is_a?(Sass::Script::String) unless sprite && sprite.is_a?(Sass::Script::String)

1259
lib/compass/version.rbc Normal file

File diff suppressed because it is too large Load Diff