rack-caniuse 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +1 -1
  2. data/lib/rack/caniuse.rb +1 -1
  3. metadata +6 -4
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > There is nothing permanent except change. — Heraclitus.
4
4
 
5
- CanIUse is a Rack middleware for browser compatibility checking inspired from [rack-noie](https://github.com/juliocesar/rack-noie). It checks if your user's browser supports the technologies your website relies on by using the [caniuse](http://caniuse.com/) [database](https://github.com/Fyrd/caniuse). It allows you to redirect those who have unsupported browser versions away from your website.
5
+ CanIUse is a Rack middleware for browser compatibility checking inspired from [rack-noie](https://github.com/juliocesar/rack-noie). It checks if your user's browser supports the technologies your website relies on by using the [caniuse](http://caniuse.com/) [database](https://github.com/Fyrd/caniuse). It allows you to redirect unsupported user agents away from your website.
6
6
 
7
7
  **Example**
8
8
 
@@ -47,7 +47,7 @@ module Rack
47
47
  browser_stats = info['stats'][name]
48
48
  support = browser_stats[version]
49
49
  unless support == 'y'
50
- unsupported_feautres << info['title']
50
+ unsupported_features << info['title']
51
51
  end
52
52
  end
53
53
  unless unsupported_features.empty?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-caniuse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,7 +43,9 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- description: ''
46
+ description: CanIUse checks if your user's browser supports the technologies your
47
+ website relies on by using the www.caniuse.org database. It allows you to redirect
48
+ unsupported user agents away from your website.
47
49
  email:
48
50
  - louis.mullie@gmail.com
49
51
  executables: []
@@ -191,7 +193,7 @@ files:
191
193
  - caniuse/features-json/xhr2.json
192
194
  - caniuse/features-json/xhtml.json
193
195
  - caniuse/features-json/xhtmlsmil.json
194
- homepage: ''
196
+ homepage: https://github.com/louismullie/rack-caniuse
195
197
  licenses: []
196
198
  post_install_message:
197
199
  rdoc_options: []
@@ -214,5 +216,5 @@ rubyforge_project:
214
216
  rubygems_version: 1.8.25
215
217
  signing_key:
216
218
  specification_version: 3
217
- summary: ''
219
+ summary: CanIUse is a Rack middleware for browser compatibility checking.
218
220
  test_files: []