lemonade 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{lemonade}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nico Hagenburger"]
12
- s.date = %q{2010-06-25}
12
+ s.date = %q{2010-06-30}
13
13
  s.description = %q{Generates sprites on the fly by using `background: sprite-image("sprites/logo.png")`.}
14
14
  s.email = %q{gems@hagenburger.net}
15
15
  s.extra_rdoc_files = [
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
41
41
  s.homepage = %q{http://github.com/hagenburger/lemonade}
42
42
  s.rdoc_options = ["--charset=UTF-8"]
43
43
  s.require_paths = ["lib"]
44
- s.rubygems_version = %q{1.3.6}
44
+ s.rubygems_version = %q{1.3.7}
45
45
  s.summary = %q{On the fly sprite generator for Sass/Compass}
46
46
  s.test_files = [
47
47
  "spec/lemonade_spec.rb",
@@ -52,7 +52,7 @@ Gem::Specification.new do |s|
52
52
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
53
53
  s.specification_version = 3
54
54
 
55
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
55
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
56
56
  s.add_runtime_dependency(%q<haml>, [">= 3.0.0"])
57
57
  s.add_runtime_dependency(%q<compass>, [">= 0.10.0"])
58
58
  s.add_runtime_dependency(%q<chunky_png>, [">= 0.7.3"])
@@ -8,10 +8,17 @@ module Lemonade
8
8
  file = File.join(Compass.configuration.images_path, image[:file])
9
9
  single_image = ChunkyPNG::Image.from_file(file)
10
10
  x = (sprite[:width] - image[:width]) * image[:x]
11
- sprite_image.compose single_image, x, image[:y]
11
+ # The following line is buggy (too dark anti-aliasing):
12
+ # sprite_image.compose single_image, x, image[:y]
13
+ # This works as expected:
14
+ 0.upto image[:width] - 1 do |xx|
15
+ 0.upto image[:height] - 1 do |yy|
16
+ sprite_image[x + xx, y + yy] = single_image[xx, yy]
17
+ end
18
+ end
12
19
  end
13
20
  file = File.join(Compass.configuration.images_path, "#{ sprite_name }.png")
14
- sprite_image.save file#, :fast_rgba
21
+ sprite_image.save file
15
22
  end
16
23
  $lemonade_sprites = nil
17
24
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nico Hagenburger
@@ -14,13 +14,14 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-25 00:00:00 +02:00
17
+ date: 2010-06-30 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: haml
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
24
25
  requirements:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
@@ -35,6 +36,7 @@ dependencies:
35
36
  name: compass
36
37
  prerelease: false
37
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
38
40
  requirements:
39
41
  - - ">="
40
42
  - !ruby/object:Gem::Version
@@ -49,6 +51,7 @@ dependencies:
49
51
  name: chunky_png
50
52
  prerelease: false
51
53
  requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
52
55
  requirements:
53
56
  - - ">="
54
57
  - !ruby/object:Gem::Version
@@ -63,6 +66,7 @@ dependencies:
63
66
  name: rspec
64
67
  prerelease: false
65
68
  requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
66
70
  requirements:
67
71
  - - ">="
68
72
  - !ruby/object:Gem::Version
@@ -113,6 +117,7 @@ rdoc_options:
113
117
  require_paths:
114
118
  - lib
115
119
  required_ruby_version: !ruby/object:Gem::Requirement
120
+ none: false
116
121
  requirements:
117
122
  - - ">="
118
123
  - !ruby/object:Gem::Version
@@ -120,6 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
125
  - 0
121
126
  version: "0"
122
127
  required_rubygems_version: !ruby/object:Gem::Requirement
128
+ none: false
123
129
  requirements:
124
130
  - - ">="
125
131
  - !ruby/object:Gem::Version
@@ -129,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
135
  requirements: []
130
136
 
131
137
  rubyforge_project:
132
- rubygems_version: 1.3.6
138
+ rubygems_version: 1.3.7
133
139
  signing_key:
134
140
  specification_version: 3
135
141
  summary: On the fly sprite generator for Sass/Compass