compass-querystring_cachebuster 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in compass-querystring_cachebuster.gemspec
4
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "compass/querystring_cachebuster/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "compass-querystring_cachebuster"
7
+ s.version = Compass::QuerystringCachebuster::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Micah Geisel"]
10
+ s.email = ["micah@botandrose.com"]
11
+ s.homepage = "http://github.com/botandrose/compass-querystring_cachebuster"
12
+ s.summary = %q{Adds Rails-style querystring cachebusters to compass sprites.}
13
+ s.description = %q{Adds Rails-style querystring cachebusters to compass sprites.}
14
+
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
+ s.require_paths = ["lib"]
19
+ end
@@ -0,0 +1,21 @@
1
+ module Compass::SassExtensions::Functions::Sprites
2
+ def sprite_url(map)
3
+ verify_map(map, "sprite-url")
4
+ map.generate
5
+ image_url(Sass::Script::String.new("#{map.path}.png"),
6
+ Sass::Script::Bool.new(false),
7
+ Sass::Script::Bool.new(true))
8
+ end
9
+ end
10
+
11
+ module Compass
12
+ module SassExtensions
13
+ module Sprites
14
+ class Base < Sass::Script::Literal
15
+ def filename
16
+ File.join(Compass.configuration.images_path, "#{path}.png")
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,5 @@
1
+ module Compass
2
+ module QuerystringCachebuster
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: compass-querystring_cachebuster
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Micah Geisel
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-05-25 00:00:00 Z
19
+ dependencies: []
20
+
21
+ description: Adds Rails-style querystring cachebusters to compass sprites.
22
+ email:
23
+ - micah@botandrose.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - .gitignore
32
+ - Gemfile
33
+ - Rakefile
34
+ - compass-querystring_cachebuster.gemspec
35
+ - lib/compass/querystring_cachebuster.rb
36
+ - lib/compass/querystring_cachebuster/version.rb
37
+ homepage: http://github.com/botandrose/compass-querystring_cachebuster
38
+ licenses: []
39
+
40
+ post_install_message:
41
+ rdoc_options: []
42
+
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ hash: 3
51
+ segments:
52
+ - 0
53
+ version: "0"
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ requirements: []
64
+
65
+ rubyforge_project:
66
+ rubygems_version: 1.8.3
67
+ signing_key:
68
+ specification_version: 3
69
+ summary: Adds Rails-style querystring cachebusters to compass sprites.
70
+ test_files: []
71
+