rack-environmental 1.1.0 → 1.1.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/CHANGELOG +4 -1
- data/Rakefile +1 -1
- data/lib/rack-environmental.rb +1 -1
- data/test/sinatraapp/app.rb +1 -0
- metadata +1 -1
data/CHANGELOG
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
1.1.1 (December 5, 2009)
|
2
|
+
* BUGFIX: :background option always produced a blue background. Now it uses :color.
|
3
|
+
|
1
4
|
1.1.0 (December 5, 2009)
|
2
5
|
* Added :background option.
|
3
6
|
|
@@ -5,7 +8,7 @@
|
|
5
8
|
* Updated gem dependency information.
|
6
9
|
|
7
10
|
1.0.4 (December 3, 2009)
|
8
|
-
* Refactored to (correctly) use rack-plastic gem.
|
11
|
+
* BUGFIX: Refactored to (correctly) use rack-plastic gem.
|
9
12
|
|
10
13
|
1.0.3 (December 3, 2009)
|
11
14
|
* Do not use this version. It has a wrong gem dependency.
|
data/Rakefile
CHANGED
data/lib/rack-environmental.rb
CHANGED
@@ -8,7 +8,7 @@ module Rack
|
|
8
8
|
add_to_top_of_web_page(doc, create_sticker(doc))
|
9
9
|
if @environment_options[:background]
|
10
10
|
body = doc.at_css("body")
|
11
|
-
background_style = "background-color: #{
|
11
|
+
background_style = "background-color: #{@environment_options[:color] || default_color};"
|
12
12
|
if body['style']
|
13
13
|
body['style'] << ";#{background_style}"
|
14
14
|
else
|
data/test/sinatraapp/app.rb
CHANGED