lemonade 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,23 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 0.3.3
5
+
6
+ * Fixed Rails 3.0 integration (Beta 4)
7
+
8
+
9
+ 0.3.2
10
+ -----
11
+
12
+ * Fixed 0.3.1 composition
13
+
14
+
15
+ 0.3.1
16
+ -----
17
+
18
+ * Fixed rendering of images with RGBA values (no dark borders anymore)
19
+ * (buggy composition)
20
+
4
21
 
5
22
  0.3.0
6
23
  -----
data/README.md CHANGED
@@ -103,6 +103,15 @@ Note on Patches/Pull Requests
103
103
  * Send me a pull request. Bonus points for topic branches.
104
104
 
105
105
 
106
+ Rails 3 Troubleshooting
107
+ -----------------------
108
+
109
+ If you want to use Lemonade with Rails 3 Please use this compass and haml versions in your Gemfile
110
+
111
+ gem 'compass', '0.10.2'
112
+ gem 'haml-edge', '3.1.49', :require => 'haml'
113
+
114
+
106
115
  Copyright
107
116
  ---------
108
117
 
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ begin
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "lemonade"
8
8
  gem.summary = "On the fly sprite generator for Sass/Compass"
9
- gem.description = "Generates sprites on the fly by using `background: sprite-image(\"sprites/logo.png\")`."
9
+ gem.description = "Generates sprites on the fly by using `background: sprite-image(\"sprites/logo.png\")`. No Photoshop, no RMagick, no Rake task, save your time and have a lemonade."
10
10
  gem.email = "gems@hagenburger.net"
11
11
  gem.homepage = "http://github.com/hagenburger/lemonade"
12
12
  gem.authors = ["Nico Hagenburger"]
data/TODO.md CHANGED
@@ -1,5 +1,4 @@
1
1
  Todo
2
2
  ====
3
3
 
4
- * Rails 3 support (currently Rails 2.3.x, Staticmatic, command line/`compass watch`)
5
4
  * Remove Compass from requirements (should work with Sass only)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{lemonade}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
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-30}
13
- s.description = %q{Generates sprites on the fly by using `background: sprite-image("sprites/logo.png")`.}
12
+ s.date = %q{2010-07-04}
13
+ s.description = %q{Generates sprites on the fly by using `background: sprite-image("sprites/logo.png")`. No Photoshop, no RMagick, no Rake task, save your time and have a lemonade.}
14
14
  s.email = %q{gems@hagenburger.net}
15
15
  s.extra_rdoc_files = [
16
16
  "README.md"
@@ -5,9 +5,34 @@ module Lemonade
5
5
  end
6
6
  end
7
7
 
8
+
9
+
10
+
8
11
  require 'rubygems'
9
12
  require 'compass'
10
- require 'sass/plugin'
13
+
14
+
15
+ # Rails 3.0.0.beta.2+
16
+ if defined?(ActiveSupport) && Haml::Util.has?(:public_method, ActiveSupport, :on_load)
17
+ require 'haml/template/options'
18
+ require 'sass/plugin/configuration'
19
+ ActiveSupport.on_load(:before_initialize) do
20
+ require 'sass'
21
+ require 'sass/plugin'
22
+
23
+ module Sass
24
+ module Plugin
25
+ alias_method :update_stylesheets_without_lemonade, :update_stylesheets
26
+ def update_stylesheets
27
+ if update_stylesheets_without_lemonade
28
+ Lemonade::generate_sprites
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+
11
36
  require 'chunky_png'
12
37
  require File.dirname(__FILE__) + '/lemonade/sass_extensions/functions/lemonade'
13
38
  require File.dirname(__FILE__) + '/lemonade/lemonade'
@@ -26,17 +51,6 @@ module Compass
26
51
  end
27
52
  end
28
53
 
29
- module Sass
30
- module Plugin
31
- alias_method :update_stylesheets_without_lemonade, :update_stylesheets
32
- def update_stylesheets
33
- if update_stylesheets_without_lemonade
34
- Lemonade::generate_sprites
35
- end
36
- end
37
- end
38
- end
39
-
40
54
  module Sass
41
55
  class Engine
42
56
  alias_method :render_without_lemonade, :render
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nico Hagenburger
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-30 00:00:00 +02:00
17
+ date: 2010-07-04 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -73,7 +73,7 @@ dependencies:
73
73
  version: 1.2.9
74
74
  type: :development
75
75
  version_requirements: *id004
76
- description: "Generates sprites on the fly by using `background: sprite-image(\"sprites/logo.png\")`."
76
+ description: "Generates sprites on the fly by using `background: sprite-image(\"sprites/logo.png\")`. No Photoshop, no RMagick, no Rake task, save your time and have a lemonade."
77
77
  email: gems@hagenburger.net
78
78
  executables: []
79
79