rack-environmental 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -6,7 +6,7 @@ begin
6
6
  require 'jeweler'
7
7
  Jeweler::Tasks.new do |s|
8
8
  s.name = "rack-environmental"
9
- s.version = "1.1.0"
9
+ s.version = "1.1.1"
10
10
  s.add_dependency 'rack-plastic', '>= 0.0.3'
11
11
  s.author = "Wyatt Greene"
12
12
  s.email = "techiferous@gmail.com"
@@ -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: #{options[:color] || default_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
@@ -6,6 +6,7 @@ use Rack::Environmental, :staging => { :url => /^staging.+$/ },
6
6
  :test => { :url => /^test.+$/ },
7
7
  :development => { :url => /^localhost.+$/,
8
8
  :style => :badge,
9
+ :color => "rgb(200, 20, 200);",
9
10
  :background => true }
10
11
 
11
12
  get '/' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-environmental
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wyatt Greene