sprite 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/sprite/styles/sass_mixin_generator.rb +12 -2
- data/sprite.gemspec +1 -1
- metadata +12 -7
data/Gemfile.lock
CHANGED
@@ -10,7 +10,7 @@ module Sprite
|
|
10
10
|
# write the sass mixins to disk
|
11
11
|
File.open(File.join(Sprite.root, path), 'w') do |f|
|
12
12
|
|
13
|
-
f.puts "= sprite($
|
13
|
+
f.puts "= sprite($group-name, $image-name, $offset: 0)"
|
14
14
|
sprite_files.each do |sprite_file, sprites|
|
15
15
|
background_url = @builder.background_url(sprite_file)
|
16
16
|
sprites.each do |sprite|
|
@@ -23,8 +23,18 @@ module Sprite
|
|
23
23
|
background_offset = "#{sprite[:x]}px \#{#{sprite[:y]}+$offset}px"
|
24
24
|
end
|
25
25
|
|
26
|
-
f.puts %{if $
|
26
|
+
f.puts %{if $group-name == "#{sprite[:group]}" and $image-name == "#{sprite[:name]}"}
|
27
27
|
f.puts " background: #{background_url} no-repeat #{background_offset}"
|
28
|
+
f.puts " +sprite-dimensions($group-name, $image-name)"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
f.puts "\n= sprite-dimensions($group-name, $image-name)"
|
33
|
+
sprite_files.each do |sprite_file, sprites|
|
34
|
+
background_url = @builder.background_url(sprite_file)
|
35
|
+
sprites.each do |sprite|
|
36
|
+
f << " @"
|
37
|
+
f.puts %{if $group-name == "#{sprite[:group]}" and $image-name == "#{sprite[:name]}"}
|
28
38
|
f.puts " width: #{sprite[:width]}px"
|
29
39
|
f.puts " height: #{sprite[:height]}px"
|
30
40
|
end
|
data/sprite.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2012-06-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
17
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,7 +22,12 @@ dependencies:
|
|
22
22
|
version: '2.0'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements:
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '2.0'
|
26
31
|
description: sprite is a ruby executable that to easily generate sprites along with
|
27
32
|
css, sass
|
28
33
|
email: railsjedi@gmail.com
|
@@ -122,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
122
127
|
version: '0'
|
123
128
|
segments:
|
124
129
|
- 0
|
125
|
-
hash: -
|
130
|
+
hash: -111215513587068376
|
126
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
132
|
none: false
|
128
133
|
requirements:
|
@@ -131,10 +136,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
136
|
version: '0'
|
132
137
|
segments:
|
133
138
|
- 0
|
134
|
-
hash: -
|
139
|
+
hash: -111215513587068376
|
135
140
|
requirements: []
|
136
141
|
rubyforge_project: none
|
137
|
-
rubygems_version: 1.8.
|
142
|
+
rubygems_version: 1.8.21
|
138
143
|
signing_key:
|
139
144
|
specification_version: 3
|
140
145
|
summary: generate your css and sass sprites automagically
|