browser_detect 0.0.1 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.yardopts +5 -0
- data/README.md +77 -0
- data/VERSION +1 -0
- data/browser_detect.gemspec +12 -11
- data/doc/BrowserDetect.html +456 -0
- data/doc/BrowserDetectHelperTest.html +207 -0
- data/doc/BrowserDetectMock.html +313 -0
- data/doc/BrowserDetectMock/req;.html +151 -0
- data/doc/Test.html +157 -0
- data/doc/Test/Unit.html +160 -0
- data/doc/Test/Unit/TestCase.html +270 -0
- data/doc/Test/browser_detect_test_rb.html +54 -0
- data/doc/Test/test_helper_rb.html +58 -0
- data/doc/_index.html +94 -0
- data/doc/class_list.html +36 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +53 -0
- data/doc/css/style.css +307 -0
- data/doc/file.README.html +144 -0
- data/doc/file_list.html +38 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +144 -0
- data/doc/init_rb.html +54 -0
- data/doc/js/app.js +202 -0
- data/doc/js/full_list.js +149 -0
- data/doc/js/jquery.js +154 -0
- data/doc/lib/version_rb.html +52 -0
- data/doc/method_list.html +67 -0
- data/doc/top-level-namespace.html +88 -0
- data/init.rb +5 -0
- data/lib/browser_detect.rb +73 -2
- data/lib/railtie.rb +13 -0
- data/test/browser_detect_test.rb +55 -0
- data/test/fixtures/user_agents.yml +47 -0
- data/test/test_helper.rb +45 -0
- metadata +43 -10
- data/README +0 -0
- data/lib/browser_detect/browser_detect_helper.rb +0 -43
- data/lib/browser_detect/version.rb +0 -3
@@ -0,0 +1,151 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Module: BrowserDetectMock::req;</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../js/jquery.js" type="text/javascript"
|
13
|
+
charset="utf-8"></script>
|
14
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
15
|
+
charset="utf-8"></script>
|
16
|
+
<script src="../js/quicksearch.js" type="text/javascript"
|
17
|
+
charset="utf-8"></script>
|
18
|
+
<script src="../js/darkfish.js" type="text/javascript"
|
19
|
+
charset="utf-8"></script>
|
20
|
+
|
21
|
+
</head>
|
22
|
+
<body class="module">
|
23
|
+
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="../index.html">Home</a>
|
29
|
+
<a href="../index.html#classes">Classes</a>
|
30
|
+
<a href="../index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="file-metadata">
|
36
|
+
<div id="file-list-section" class="section">
|
37
|
+
<h3 class="section-header">In Files</h3>
|
38
|
+
<div class="section-body">
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li><a href="../test/browser_detect_test_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="test/browser_detect_test.rb">test/browser_detect_test.rb</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<div id="class-metadata">
|
52
|
+
|
53
|
+
<!-- Parent Class -->
|
54
|
+
|
55
|
+
|
56
|
+
<!-- Namespace Contents -->
|
57
|
+
|
58
|
+
|
59
|
+
<!-- Method Quickref -->
|
60
|
+
|
61
|
+
|
62
|
+
<!-- Included Modules -->
|
63
|
+
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<div id="project-metadata">
|
67
|
+
|
68
|
+
|
69
|
+
<div id="fileindex-section" class="section project-section">
|
70
|
+
<h3 class="section-header">Files</h3>
|
71
|
+
<ul>
|
72
|
+
|
73
|
+
<li class="file"><a href="../Gemfile.html">Gemfile</a></li>
|
74
|
+
|
75
|
+
<li class="file"><a href="../Rakefile.html">Rakefile</a></li>
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
|
81
|
+
<div id="classindex-section" class="section project-section">
|
82
|
+
<h3 class="section-header">Class Index
|
83
|
+
<span class="search-toggle"><img src="../images/find.png"
|
84
|
+
height="16" width="16" alt="[+]"
|
85
|
+
title="show/hide quicksearch" /></span></h3>
|
86
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
87
|
+
<fieldset>
|
88
|
+
<legend>Quicksearch</legend>
|
89
|
+
<input type="text" name="quicksearch" value=""
|
90
|
+
class="quicksearch-field" />
|
91
|
+
</fieldset>
|
92
|
+
</form>
|
93
|
+
|
94
|
+
<ul class="link-list">
|
95
|
+
|
96
|
+
<li><a href="../Test.html">Test</a></li>
|
97
|
+
|
98
|
+
<li><a href="../Test/Unit.html">Test::Unit</a></li>
|
99
|
+
|
100
|
+
<li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
101
|
+
|
102
|
+
<li><a href="../BrowserDetectMock.html">BrowserDetectMock</a></li>
|
103
|
+
|
104
|
+
<li><a href="../BrowserDetectMock/req;.html">BrowserDetectMock::req;</a></li>
|
105
|
+
|
106
|
+
<li><a href="../BrowserDetect.html">BrowserDetect</a></li>
|
107
|
+
|
108
|
+
<li><a href="../BrowserDetectHelperTest.html">BrowserDetectHelperTest</a></li>
|
109
|
+
|
110
|
+
</ul>
|
111
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
112
|
+
</div>
|
113
|
+
|
114
|
+
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
|
118
|
+
<div id="documentation">
|
119
|
+
<h1 class="module">BrowserDetectMock::req;</h1>
|
120
|
+
|
121
|
+
<div id="description">
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
<!-- Constants -->
|
126
|
+
|
127
|
+
|
128
|
+
<!-- Attributes -->
|
129
|
+
|
130
|
+
|
131
|
+
<!-- Methods -->
|
132
|
+
|
133
|
+
|
134
|
+
</div>
|
135
|
+
|
136
|
+
|
137
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
138
|
+
|
139
|
+
<p>Disabled; run with --debug to generate this.</p>
|
140
|
+
|
141
|
+
</div>
|
142
|
+
|
143
|
+
<div id="validator-badges">
|
144
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
145
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
146
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
</body>
|
150
|
+
</html>
|
151
|
+
|
data/doc/Test.html
ADDED
@@ -0,0 +1,157 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Module: Test</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="./js/jquery.js" type="text/javascript"
|
13
|
+
charset="utf-8"></script>
|
14
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
15
|
+
charset="utf-8"></script>
|
16
|
+
<script src="./js/quicksearch.js" type="text/javascript"
|
17
|
+
charset="utf-8"></script>
|
18
|
+
<script src="./js/darkfish.js" type="text/javascript"
|
19
|
+
charset="utf-8"></script>
|
20
|
+
|
21
|
+
</head>
|
22
|
+
<body class="module">
|
23
|
+
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="./index.html">Home</a>
|
29
|
+
<a href="./index.html#classes">Classes</a>
|
30
|
+
<a href="./index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="file-metadata">
|
36
|
+
<div id="file-list-section" class="section">
|
37
|
+
<h3 class="section-header">In Files</h3>
|
38
|
+
<div class="section-body">
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
</ul>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<div id="class-metadata">
|
49
|
+
|
50
|
+
<!-- Parent Class -->
|
51
|
+
|
52
|
+
|
53
|
+
<!-- Namespace Contents -->
|
54
|
+
|
55
|
+
<div id="namespace-list-section" class="section">
|
56
|
+
<h3 class="section-header">Namespace</h3>
|
57
|
+
<ul class="link-list">
|
58
|
+
|
59
|
+
<li><span class="type">MODULE</span> <a href="Test/Unit.html">Test::Unit</a></li>
|
60
|
+
|
61
|
+
</ul>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
|
65
|
+
<!-- Method Quickref -->
|
66
|
+
|
67
|
+
|
68
|
+
<!-- Included Modules -->
|
69
|
+
|
70
|
+
</div>
|
71
|
+
|
72
|
+
<div id="project-metadata">
|
73
|
+
|
74
|
+
|
75
|
+
<div id="fileindex-section" class="section project-section">
|
76
|
+
<h3 class="section-header">Files</h3>
|
77
|
+
<ul>
|
78
|
+
|
79
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a></li>
|
80
|
+
|
81
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a></li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
</div>
|
85
|
+
|
86
|
+
|
87
|
+
<div id="classindex-section" class="section project-section">
|
88
|
+
<h3 class="section-header">Class Index
|
89
|
+
<span class="search-toggle"><img src="./images/find.png"
|
90
|
+
height="16" width="16" alt="[+]"
|
91
|
+
title="show/hide quicksearch" /></span></h3>
|
92
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
93
|
+
<fieldset>
|
94
|
+
<legend>Quicksearch</legend>
|
95
|
+
<input type="text" name="quicksearch" value=""
|
96
|
+
class="quicksearch-field" />
|
97
|
+
</fieldset>
|
98
|
+
</form>
|
99
|
+
|
100
|
+
<ul class="link-list">
|
101
|
+
|
102
|
+
<li><a href="./Test.html">Test</a></li>
|
103
|
+
|
104
|
+
<li><a href="./Test/Unit.html">Test::Unit</a></li>
|
105
|
+
|
106
|
+
<li><a href="./Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
107
|
+
|
108
|
+
<li><a href="./BrowserDetectMock.html">BrowserDetectMock</a></li>
|
109
|
+
|
110
|
+
<li><a href="./BrowserDetectMock/req;.html">BrowserDetectMock::req;</a></li>
|
111
|
+
|
112
|
+
<li><a href="./BrowserDetect.html">BrowserDetect</a></li>
|
113
|
+
|
114
|
+
<li><a href="./BrowserDetectHelperTest.html">BrowserDetectHelperTest</a></li>
|
115
|
+
|
116
|
+
</ul>
|
117
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
118
|
+
</div>
|
119
|
+
|
120
|
+
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div id="documentation">
|
125
|
+
<h1 class="module">Test</h1>
|
126
|
+
|
127
|
+
<div id="description">
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
<!-- Constants -->
|
132
|
+
|
133
|
+
|
134
|
+
<!-- Attributes -->
|
135
|
+
|
136
|
+
|
137
|
+
<!-- Methods -->
|
138
|
+
|
139
|
+
|
140
|
+
</div>
|
141
|
+
|
142
|
+
|
143
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
144
|
+
|
145
|
+
<p>Disabled; run with --debug to generate this.</p>
|
146
|
+
|
147
|
+
</div>
|
148
|
+
|
149
|
+
<div id="validator-badges">
|
150
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
151
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
152
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
153
|
+
</div>
|
154
|
+
|
155
|
+
</body>
|
156
|
+
</html>
|
157
|
+
|
data/doc/Test/Unit.html
ADDED
@@ -0,0 +1,160 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Module: Test::Unit</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../js/jquery.js" type="text/javascript"
|
13
|
+
charset="utf-8"></script>
|
14
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
15
|
+
charset="utf-8"></script>
|
16
|
+
<script src="../js/quicksearch.js" type="text/javascript"
|
17
|
+
charset="utf-8"></script>
|
18
|
+
<script src="../js/darkfish.js" type="text/javascript"
|
19
|
+
charset="utf-8"></script>
|
20
|
+
|
21
|
+
</head>
|
22
|
+
<body class="module">
|
23
|
+
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="../index.html">Home</a>
|
29
|
+
<a href="../index.html#classes">Classes</a>
|
30
|
+
<a href="../index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="file-metadata">
|
36
|
+
<div id="file-list-section" class="section">
|
37
|
+
<h3 class="section-header">In Files</h3>
|
38
|
+
<div class="section-body">
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li><a href="../test/test_helper_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="test/test_helper.rb">test/test_helper.rb</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<div id="class-metadata">
|
52
|
+
|
53
|
+
<!-- Parent Class -->
|
54
|
+
|
55
|
+
|
56
|
+
<!-- Namespace Contents -->
|
57
|
+
|
58
|
+
<div id="namespace-list-section" class="section">
|
59
|
+
<h3 class="section-header">Namespace</h3>
|
60
|
+
<ul class="link-list">
|
61
|
+
|
62
|
+
<li><span class="type">CLASS</span> <a href="Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
63
|
+
|
64
|
+
</ul>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
<!-- Method Quickref -->
|
69
|
+
|
70
|
+
|
71
|
+
<!-- Included Modules -->
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<div id="project-metadata">
|
76
|
+
|
77
|
+
|
78
|
+
<div id="fileindex-section" class="section project-section">
|
79
|
+
<h3 class="section-header">Files</h3>
|
80
|
+
<ul>
|
81
|
+
|
82
|
+
<li class="file"><a href="../Gemfile.html">Gemfile</a></li>
|
83
|
+
|
84
|
+
<li class="file"><a href="../Rakefile.html">Rakefile</a></li>
|
85
|
+
|
86
|
+
</ul>
|
87
|
+
</div>
|
88
|
+
|
89
|
+
|
90
|
+
<div id="classindex-section" class="section project-section">
|
91
|
+
<h3 class="section-header">Class Index
|
92
|
+
<span class="search-toggle"><img src="../images/find.png"
|
93
|
+
height="16" width="16" alt="[+]"
|
94
|
+
title="show/hide quicksearch" /></span></h3>
|
95
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
96
|
+
<fieldset>
|
97
|
+
<legend>Quicksearch</legend>
|
98
|
+
<input type="text" name="quicksearch" value=""
|
99
|
+
class="quicksearch-field" />
|
100
|
+
</fieldset>
|
101
|
+
</form>
|
102
|
+
|
103
|
+
<ul class="link-list">
|
104
|
+
|
105
|
+
<li><a href="../Test.html">Test</a></li>
|
106
|
+
|
107
|
+
<li><a href="../Test/Unit.html">Test::Unit</a></li>
|
108
|
+
|
109
|
+
<li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
110
|
+
|
111
|
+
<li><a href="../BrowserDetectMock.html">BrowserDetectMock</a></li>
|
112
|
+
|
113
|
+
<li><a href="../BrowserDetectMock/req;.html">BrowserDetectMock::req;</a></li>
|
114
|
+
|
115
|
+
<li><a href="../BrowserDetect.html">BrowserDetect</a></li>
|
116
|
+
|
117
|
+
<li><a href="../BrowserDetectHelperTest.html">BrowserDetectHelperTest</a></li>
|
118
|
+
|
119
|
+
</ul>
|
120
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
|
124
|
+
</div>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
<div id="documentation">
|
128
|
+
<h1 class="module">Test::Unit</h1>
|
129
|
+
|
130
|
+
<div id="description">
|
131
|
+
|
132
|
+
</div>
|
133
|
+
|
134
|
+
<!-- Constants -->
|
135
|
+
|
136
|
+
|
137
|
+
<!-- Attributes -->
|
138
|
+
|
139
|
+
|
140
|
+
<!-- Methods -->
|
141
|
+
|
142
|
+
|
143
|
+
</div>
|
144
|
+
|
145
|
+
|
146
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
147
|
+
|
148
|
+
<p>Disabled; run with --debug to generate this.</p>
|
149
|
+
|
150
|
+
</div>
|
151
|
+
|
152
|
+
<div id="validator-badges">
|
153
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
154
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
155
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
156
|
+
</div>
|
157
|
+
|
158
|
+
</body>
|
159
|
+
</html>
|
160
|
+
|