rack-denyie 1.1.2 → 1.1.3
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/README.rdoc +5 -1
- data/VERSION +1 -1
- data/lib/rack-denyie.rb +3 -3
- data/rack-denyie.gemspec +2 -2
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
= Rack::DenyIE
|
2
2
|
===
|
3
3
|
|
4
|
-
==== 12.
|
4
|
+
==== 12.04.09
|
5
5
|
|
6
6
|
- v1.1.2 ~ Fixed issue with ERB binding
|
7
|
+
|
8
|
+
|
9
|
+
==== 12.03.09
|
10
|
+
|
7
11
|
- v1.1.1 ~ Removed an unnecessary class / Cleaned up some of the code
|
8
12
|
- v1.1 ~ Fixed CSS issues with IE 4/5 / Rewrote Tests
|
9
13
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.3
|
data/lib/rack-denyie.rb
CHANGED
@@ -11,7 +11,7 @@ module Rack
|
|
11
11
|
DEFAULT_SITE = "this site"
|
12
12
|
DEFAULT_TEMPLATE_PATH = ::File.join(::File.dirname(__FILE__), 'html', 'default.erb')
|
13
13
|
|
14
|
-
DEFAULT_REDIRECT_MESSAGE = "Your browser is unsupported."
|
14
|
+
DEFAULT_REDIRECT_MESSAGE = ["Your browser is unsupported."]
|
15
15
|
|
16
16
|
def initialize(app, options = {})
|
17
17
|
@app = app
|
@@ -25,7 +25,7 @@ module Rack
|
|
25
25
|
|
26
26
|
def call(env)
|
27
27
|
status, @headers, content = @app.call(env)
|
28
|
-
is_unsupported?(env) && is_content_html? ? act_on_ie : @
|
28
|
+
is_unsupported?(env) && is_content_html? ? act_on_ie : [status, @headers, content]
|
29
29
|
end
|
30
30
|
|
31
31
|
private
|
@@ -59,7 +59,7 @@ module Rack
|
|
59
59
|
# Displays the template
|
60
60
|
def display_template
|
61
61
|
response = (::File.extname(@options[:template]) == ".erb") ? ProcessERB.new(@options).bound : ::File.read(@options[:template])
|
62
|
-
[200, @headers, response]
|
62
|
+
[200, @headers, [response]]
|
63
63
|
end
|
64
64
|
|
65
65
|
end
|
data/rack-denyie.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rack-denyie}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Brad Whitcomb"]
|
12
|
-
s.date = %q{2009-12-
|
12
|
+
s.date = %q{2009-12-07}
|
13
13
|
s.description = %q{Rack middleware that denies specified versions of IE.}
|
14
14
|
s.email = %q{brad@digitalstarstudios.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-denyie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brad Whitcomb
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-07 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|