rack-html5 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,6 @@
1
1
  = rack-html5
2
2
 
3
- This is work in progress.
4
-
5
- Rack::Html5 detects the browser and its version by parsing the user agent. It then matches the features available for the current request.
3
+ Rack::Html5 detects the browser and its version by parsing the user agent and adds a HTTP header to the current request for each feature the browser supports.
6
4
 
7
5
  == Usage
8
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -34,7 +34,7 @@ module Rack # :nodoc:
34
34
  @env['HTTP_X_DETECTED_VERSION'] = version
35
35
  @env['HTTP_X_DETECTED_BROWSER'] = browser.to_s
36
36
  @features.each do |feature|
37
- @env["HTTP_X_SUPPORTS_HTML5_#{feature.upcase}"] = "true"
37
+ @env["HTTP_X_SUPPORTS_HTML5_#{feature.to_s.upcase}"] = "true"
38
38
  end
39
39
  end
40
40
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rack-html5}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christian Felder (masone)"]
@@ -26,7 +26,6 @@ Gem::Specification.new do |s|
26
26
  "lib/rack/html5.rb",
27
27
  "rack-html5.gemspec",
28
28
  "rake/jeweler.rb",
29
- "rake/rdoc.rb",
30
29
  "rake/test.rb",
31
30
  "test/rack/html5_test.rb",
32
31
  "test/test_helper.rb"
@@ -1,2 +1,3 @@
1
+ require 'rubygems'
1
2
  require 'test/unit'
2
- require 'shoulda'
3
+ require 'shoulda'
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-html5
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 0
8
- - 1
9
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Christian Felder (masone)
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 3
28
30
  segments:
29
31
  - 0
30
32
  version: "0"
@@ -49,7 +51,6 @@ files:
49
51
  - lib/rack/html5.rb
50
52
  - rack-html5.gemspec
51
53
  - rake/jeweler.rb
52
- - rake/rdoc.rb
53
54
  - rake/test.rb
54
55
  - test/rack/html5_test.rb
55
56
  - test/test_helper.rb
@@ -67,6 +68,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
68
  requirements:
68
69
  - - ">="
69
70
  - !ruby/object:Gem::Version
71
+ hash: 3
70
72
  segments:
71
73
  - 0
72
74
  version: "0"
@@ -75,6 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
77
  requirements:
76
78
  - - ">="
77
79
  - !ruby/object:Gem::Version
80
+ hash: 3
78
81
  segments:
79
82
  - 0
80
83
  version: "0"
@@ -1,16 +0,0 @@
1
- require 'hanna/rdoctask'
2
-
3
- desc 'Generate RDoc documentation'
4
- Rake::RDocTask.new(:rdoc) do |rdoc|
5
- rdoc.rdoc_files.include('README.rdoc').
6
- include('*.rb').
7
- include('lib/**/*.rb').
8
- exclude('test/*').
9
- exclude('rake/*').
10
- exclude('pkg/*')
11
-
12
- rdoc.main = "README.rdoc" # page to start on
13
- rdoc.title = "Rack::Html5"
14
-
15
- rdoc.rdoc_dir = 'doc' # rdoc output folder
16
- end