sprite 0.2.4 → 0.2.5
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 +1 -1
- data/lib/sprite/styles/stylus_generator.rb +3 -4
- data/sprite.gemspec +1 -1
- metadata +10 -4
data/Gemfile.lock
CHANGED
@@ -24,7 +24,7 @@ module Sprite
|
|
24
24
|
end
|
25
25
|
|
26
26
|
f.puts %{if $group_name == "#{sprite[:group]}" and $image_name == "#{sprite[:name]}"}
|
27
|
-
f.puts " background: #{background_url} repeat #{background_offset}"
|
27
|
+
f.puts " background: #{background_url} no-repeat #{background_offset}"
|
28
28
|
f.puts " width: #{sprite[:width]}px"
|
29
29
|
f.puts " height: #{sprite[:height]}px"
|
30
30
|
end
|
@@ -20,15 +20,14 @@ module Sprite
|
|
20
20
|
f << "else "
|
21
21
|
end
|
22
22
|
add_else = true
|
23
|
-
|
24
23
|
if sprite[:align] == 'horizontal'
|
25
|
-
background_offset = "
|
24
|
+
background_offset = "#{sprite[:x]}px+offset #{sprite[:y]}px"
|
26
25
|
else
|
27
|
-
background_offset = "#{sprite[:x]}px
|
26
|
+
background_offset = "#{sprite[:x]}px #{sprite[:y]}px+offset"
|
28
27
|
end
|
29
28
|
|
30
29
|
f.puts %{if group_name == "#{sprite[:group]}" and image_name == "#{sprite[:name]}"}
|
31
|
-
f.puts " background: #{background_url} repeat #{background_offset}"
|
30
|
+
f.puts " background: #{background_url} no-repeat #{background_offset}"
|
32
31
|
f.puts " width: #{sprite[:width]}px"
|
33
32
|
f.puts " height: #{sprite[:height]}px"
|
34
33
|
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.5
|
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: 2011-09-
|
13
|
+
date: 2011-09-26 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
17
|
-
requirement: &
|
17
|
+
requirement: &2156399840 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: '2.0'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2156399840
|
26
26
|
description: sprite is a ruby executable that to easily generate sprites along with
|
27
27
|
css, sass
|
28
28
|
email: railsjedi@gmail.com
|
@@ -120,12 +120,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
120
|
- - ! '>='
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
|
+
segments:
|
124
|
+
- 0
|
125
|
+
hash: -3621232792259402431
|
123
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
127
|
none: false
|
125
128
|
requirements:
|
126
129
|
- - ! '>='
|
127
130
|
- !ruby/object:Gem::Version
|
128
131
|
version: '0'
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
hash: -3621232792259402431
|
129
135
|
requirements: []
|
130
136
|
rubyforge_project: none
|
131
137
|
rubygems_version: 1.8.6
|