rack-noie6 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/README.md +35 -0
- data/VERSION.yml +3 -2
- data/lib/noie6.rb +1 -1
- data/rack-noie6.gemspec +39 -0
- metadata +28 -36
- data/README.markdown +0 -46
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# rack-noie6
|
2
|
+
|
3
|
+
rack-noie6 does _everyone_ a favor: it shows the way out of your website to poor souls out there using Internet Explorer 6 (or a user configurable minimum).
|
4
|
+
|
5
|
+
Originally developed by [juliocesar](http://github.com/juliocesar), [sant0sk1](http://github.com/sant0sk1) forked and gemified for easier distribution, [wjessop](http://github.com/wjessop) added the minimum version option, and [robomc](https://github.com/robomc) made it pass `Rack::Lint`.
|
6
|
+
|
7
|
+
# usage
|
8
|
+
|
9
|
+
gem install rack-noie6
|
10
|
+
require "noie6"
|
11
|
+
|
12
|
+
and
|
13
|
+
|
14
|
+
use Rack::NoIE6, redirect: "/noieplease.html"
|
15
|
+
|
16
|
+
the above will redirect to a page noieplease.html in your website. You can redirect to
|
17
|
+
a URL as well, like so
|
18
|
+
|
19
|
+
use Rack::NoIE6, redirect: "http://slashdot.org"
|
20
|
+
|
21
|
+
or let the default kick in
|
22
|
+
|
23
|
+
use Rack::NoIE6
|
24
|
+
|
25
|
+
You can even specify a minimum version of IE like so
|
26
|
+
|
27
|
+
use Rack::NoIE6, redirect: "http://slashdot.org", minimum: 6.0
|
28
|
+
|
29
|
+
# disclaimer
|
30
|
+
|
31
|
+
The default URL points to Microsoft's IE upgrade page.
|
32
|
+
|
33
|
+
# license
|
34
|
+
|
35
|
+
MIT
|
data/VERSION.yml
CHANGED
data/lib/noie6.rb
CHANGED
data/rack-noie6.gemspec
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "rack-noie6"
|
8
|
+
s.version = "1.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Jerod Santo", "Julio Cesar Ody", "Will Jessop"]
|
12
|
+
s.date = "2011-12-10"
|
13
|
+
s.email = "jerod.santo@gmail.com"
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"README.md"
|
16
|
+
]
|
17
|
+
s.files = [
|
18
|
+
"README.md",
|
19
|
+
"Rakefile",
|
20
|
+
"VERSION.yml",
|
21
|
+
"lib/noie6.rb",
|
22
|
+
"rack-noie6.gemspec",
|
23
|
+
"test/noie6_test.rb"
|
24
|
+
]
|
25
|
+
s.homepage = "http://github.com/sant0sk1/rack-noie6"
|
26
|
+
s.require_paths = ["lib"]
|
27
|
+
s.rubygems_version = "1.8.10"
|
28
|
+
s.summary = "A Rack middleware to redirect IE6 users out of your website"
|
29
|
+
|
30
|
+
if s.respond_to? :specification_version then
|
31
|
+
s.specification_version = 3
|
32
|
+
|
33
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
34
|
+
else
|
35
|
+
end
|
36
|
+
else
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
metadata
CHANGED
@@ -1,61 +1,53 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-noie6
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- Jerod Santo
|
8
9
|
- Julio Cesar Ody
|
9
10
|
- Will Jessop
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
|
14
|
-
date: 2009-05-30 00:00:00 -05:00
|
15
|
-
default_executable:
|
14
|
+
date: 2011-12-10 00:00:00.000000000 Z
|
16
15
|
dependencies: []
|
17
|
-
|
18
16
|
description:
|
19
17
|
email: jerod.santo@gmail.com
|
20
18
|
executables: []
|
21
|
-
|
22
19
|
extensions: []
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
- README.markdown
|
20
|
+
extra_rdoc_files:
|
21
|
+
- README.md
|
22
|
+
files:
|
23
|
+
- README.md
|
28
24
|
- Rakefile
|
29
25
|
- VERSION.yml
|
30
26
|
- lib/noie6.rb
|
27
|
+
- rack-noie6.gemspec
|
31
28
|
- test/noie6_test.rb
|
32
|
-
has_rdoc: true
|
33
29
|
homepage: http://github.com/sant0sk1/rack-noie6
|
34
30
|
licenses: []
|
35
|
-
|
36
31
|
post_install_message:
|
37
|
-
rdoc_options:
|
38
|
-
|
39
|
-
require_paths:
|
32
|
+
rdoc_options: []
|
33
|
+
require_paths:
|
40
34
|
- lib
|
41
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
35
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
+
none: false
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
53
47
|
requirements: []
|
54
|
-
|
55
48
|
rubyforge_project:
|
56
|
-
rubygems_version: 1.
|
49
|
+
rubygems_version: 1.8.10
|
57
50
|
signing_key:
|
58
|
-
specification_version:
|
51
|
+
specification_version: 3
|
59
52
|
summary: A Rack middleware to redirect IE6 users out of your website
|
60
|
-
test_files:
|
61
|
-
- test/noie6_test.rb
|
53
|
+
test_files: []
|
data/README.markdown
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
# rack-noie6
|
2
|
-
|
3
|
-
rack-noie6 does _everyone_ a favor: it shows the way out of your website to poor souls out there using Internet Explorer 6 (or a user configurable minimum).
|
4
|
-
|
5
|
-
Originally developed by [juliocesar](http://github.com/juliocesar), [sant0sk1](http://github.com/sant0sk1) forked and gemified for easier distribution and [wjessop](http://github.com/wjessop) added the minimum version option.
|
6
|
-
|
7
|
-
# general usage
|
8
|
-
|
9
|
-
just
|
10
|
-
|
11
|
-
gem install sant0sk1-rack-noie6 --source http://gems.github.com
|
12
|
-
require 'noie6'
|
13
|
-
|
14
|
-
and
|
15
|
-
|
16
|
-
use Rack::NoIE6, :redirect => '/noieplease.html'
|
17
|
-
|
18
|
-
the above will redirect to a page noieplease.html in your website. You can redirect to
|
19
|
-
a URL as well, like so
|
20
|
-
|
21
|
-
use Rack::NoIE6, :redirect => 'http://slashdot.org'
|
22
|
-
|
23
|
-
or let the default kick in
|
24
|
-
|
25
|
-
use Rack::NoIE6
|
26
|
-
|
27
|
-
You can even specify a minimum version of IE like so
|
28
|
-
|
29
|
-
use Rack::NoIE6, :redirect => 'http://slashdot.org', :minimum => 6.0
|
30
|
-
|
31
|
-
# Rails usage
|
32
|
-
|
33
|
-
inside environment.rb's Rails::Initializer.run
|
34
|
-
|
35
|
-
config.gem 'sant0sk1-rack-noie6', :lib => 'noie6'
|
36
|
-
config.middleware.use "Rack::NoIE6"
|
37
|
-
|
38
|
-
Piece o' cake!
|
39
|
-
|
40
|
-
# disclaimer
|
41
|
-
|
42
|
-
The default URL points to Microsoft's IE8 upgrade page.
|
43
|
-
|
44
|
-
# license
|
45
|
-
|
46
|
-
MIT
|