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.
@@ -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
@@ -1,4 +1,5 @@
1
- ---
2
- :patch: 0
1
+ ---
3
2
  :major: 1
4
3
  :minor: 1
4
+ :patch: 1
5
+ :build:
@@ -28,7 +28,7 @@ module Rack
28
28
  end
29
29
 
30
30
  def kick_it
31
- [301, {'Location' => @options[:redirect]}, 'Fail browser is fail']
31
+ [301, {'Location' => @options[:redirect], 'Content-Type' => 'text/html'}, 'Fail browser is fail']
32
32
  end
33
33
  end
34
34
  end
@@ -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.0
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
- extra_rdoc_files:
25
- - README.markdown
26
- files:
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
- - --charset=UTF-8
39
- require_paths:
32
+ rdoc_options: []
33
+ require_paths:
40
34
  - lib
41
- required_ruby_version: !ruby/object:Gem::Requirement
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
46
- version:
47
- required_rubygems_version: !ruby/object:Gem::Requirement
48
- requirements:
49
- - - ">="
50
- - !ruby/object:Gem::Version
51
- version: "0"
52
- version:
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.3.5
49
+ rubygems_version: 1.8.10
57
50
  signing_key:
58
- specification_version: 2
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: []
@@ -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