browser_detect 0.0.1 → 0.0.4

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,207 @@
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>Class: BrowserDetectHelperTest</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="class">
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&amp;height=550&amp;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
+ <div id="parent-class-section" class="section">
56
+ <h3 class="section-header">Parent</h3>
57
+
58
+ <p class="link"><a href="Test/Unit/TestCase.html">Test::Unit::TestCase</a></p>
59
+
60
+ </div>
61
+
62
+
63
+ <!-- Namespace Contents -->
64
+
65
+
66
+ <!-- Method Quickref -->
67
+
68
+ <div id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+ <ul class="link-list">
71
+
72
+ <li><a href="#method-i-mock_browser">#mock_browser</a></li>
73
+
74
+ </ul>
75
+ </div>
76
+
77
+
78
+ <!-- Included Modules -->
79
+
80
+ </div>
81
+
82
+ <div id="project-metadata">
83
+
84
+
85
+ <div id="fileindex-section" class="section project-section">
86
+ <h3 class="section-header">Files</h3>
87
+ <ul>
88
+
89
+ <li class="file"><a href="./Gemfile.html">Gemfile</a></li>
90
+
91
+ <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
92
+
93
+ </ul>
94
+ </div>
95
+
96
+
97
+ <div id="classindex-section" class="section project-section">
98
+ <h3 class="section-header">Class Index
99
+ <span class="search-toggle"><img src="./images/find.png"
100
+ height="16" width="16" alt="[+]"
101
+ title="show/hide quicksearch" /></span></h3>
102
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
103
+ <fieldset>
104
+ <legend>Quicksearch</legend>
105
+ <input type="text" name="quicksearch" value=""
106
+ class="quicksearch-field" />
107
+ </fieldset>
108
+ </form>
109
+
110
+ <ul class="link-list">
111
+
112
+ <li><a href="./Test.html">Test</a></li>
113
+
114
+ <li><a href="./Test/Unit.html">Test::Unit</a></li>
115
+
116
+ <li><a href="./Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
117
+
118
+ <li><a href="./BrowserDetectMock.html">BrowserDetectMock</a></li>
119
+
120
+ <li><a href="./BrowserDetectMock/req;.html">BrowserDetectMock::req;</a></li>
121
+
122
+ <li><a href="./BrowserDetect.html">BrowserDetect</a></li>
123
+
124
+ <li><a href="./BrowserDetectHelperTest.html">BrowserDetectHelperTest</a></li>
125
+
126
+ </ul>
127
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
128
+ </div>
129
+
130
+
131
+ </div>
132
+ </div>
133
+
134
+ <div id="documentation">
135
+ <h1 class="class">BrowserDetectHelperTest</h1>
136
+
137
+ <div id="description">
138
+
139
+ </div>
140
+
141
+ <!-- Constants -->
142
+
143
+
144
+ <!-- Attributes -->
145
+
146
+
147
+ <!-- Methods -->
148
+
149
+ <div id="public-instance-method-details" class="method-section section">
150
+ <h3 class="section-header">Public Instance Methods</h3>
151
+
152
+
153
+ <div id="mock-browser-method" class="method-detail ">
154
+ <a name="method-i-mock_browser"></a>
155
+
156
+ <div class="method-heading">
157
+
158
+ <span class="method-name">mock_browser</span><span
159
+ class="method-args">(ua=nil)</span>
160
+ <span class="method-click-advice">click to toggle source</span>
161
+
162
+ </div>
163
+
164
+ <div class="method-description">
165
+
166
+
167
+
168
+
169
+
170
+ <div class="method-source-code"
171
+ id="mock-browser-source">
172
+ <pre>
173
+ <span class="ruby-comment cmt"># File test/browser_detect_test.rb, line 7</span>
174
+ 7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mock_browser</span>(<span class="ruby-identifier">ua</span>=<span class="ruby-keyword kw">nil</span>)
175
+ 8: <span class="ruby-constant">BrowserDetectMock</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">ua</span>)
176
+ 9: <span class="ruby-keyword kw">end</span></pre>
177
+ </div>
178
+
179
+ </div>
180
+
181
+
182
+
183
+
184
+ </div>
185
+
186
+
187
+ </div>
188
+
189
+
190
+ </div>
191
+
192
+
193
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
194
+
195
+ <p>Disabled; run with --debug to generate this.</p>
196
+
197
+ </div>
198
+
199
+ <div id="validator-badges">
200
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
201
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
202
+ Rdoc Generator</a> 1.1.6</small>.</p>
203
+ </div>
204
+
205
+ </body>
206
+ </html>
207
+
@@ -0,0 +1,313 @@
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>Class: BrowserDetectMock</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="class">
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&amp;height=550&amp;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
+ <div id="parent-class-section" class="section">
56
+ <h3 class="section-header">Parent</h3>
57
+
58
+ <p class="link">Object</p>
59
+
60
+ </div>
61
+
62
+
63
+ <!-- Namespace Contents -->
64
+
65
+ <div id="namespace-list-section" class="section">
66
+ <h3 class="section-header">Namespace</h3>
67
+ <ul class="link-list">
68
+
69
+ <li><span class="type">MODULE</span> <a href="BrowserDetectMock/req;.html">BrowserDetectMock::req;</a></li>
70
+
71
+ </ul>
72
+ </div>
73
+
74
+
75
+ <!-- Method Quickref -->
76
+
77
+ <div id="method-list-section" class="section">
78
+ <h3 class="section-header">Methods</h3>
79
+ <ul class="link-list">
80
+
81
+ <li><a href="#method-c-new">::new</a></li>
82
+
83
+ <li><a href="#method-i-mock_req">#mock_req</a></li>
84
+
85
+ <li><a href="#method-i-request">#request</a></li>
86
+
87
+ </ul>
88
+ </div>
89
+
90
+
91
+ <!-- Included Modules -->
92
+
93
+ <div id="includes-section" class="section">
94
+ <h3 class="section-header">Included Modules</h3>
95
+ <ul class="link-list">
96
+
97
+
98
+ <li><a class="include" href="BrowserDetect.html">BrowserDetect</a></li>
99
+
100
+
101
+
102
+ <li><span class="include">BrowserDetectHelper</span></li>
103
+
104
+
105
+ </ul>
106
+ </div>
107
+
108
+ </div>
109
+
110
+ <div id="project-metadata">
111
+
112
+
113
+ <div id="fileindex-section" class="section project-section">
114
+ <h3 class="section-header">Files</h3>
115
+ <ul>
116
+
117
+ <li class="file"><a href="./Gemfile.html">Gemfile</a></li>
118
+
119
+ <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
120
+
121
+ </ul>
122
+ </div>
123
+
124
+
125
+ <div id="classindex-section" class="section project-section">
126
+ <h3 class="section-header">Class Index
127
+ <span class="search-toggle"><img src="./images/find.png"
128
+ height="16" width="16" alt="[+]"
129
+ title="show/hide quicksearch" /></span></h3>
130
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
131
+ <fieldset>
132
+ <legend>Quicksearch</legend>
133
+ <input type="text" name="quicksearch" value=""
134
+ class="quicksearch-field" />
135
+ </fieldset>
136
+ </form>
137
+
138
+ <ul class="link-list">
139
+
140
+ <li><a href="./Test.html">Test</a></li>
141
+
142
+ <li><a href="./Test/Unit.html">Test::Unit</a></li>
143
+
144
+ <li><a href="./Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
145
+
146
+ <li><a href="./BrowserDetectMock.html">BrowserDetectMock</a></li>
147
+
148
+ <li><a href="./BrowserDetectMock/req;.html">BrowserDetectMock::req;</a></li>
149
+
150
+ <li><a href="./BrowserDetect.html">BrowserDetect</a></li>
151
+
152
+ <li><a href="./BrowserDetectHelperTest.html">BrowserDetectHelperTest</a></li>
153
+
154
+ </ul>
155
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
156
+ </div>
157
+
158
+
159
+ </div>
160
+ </div>
161
+
162
+ <div id="documentation">
163
+ <h1 class="class">BrowserDetectMock</h1>
164
+
165
+ <div id="description">
166
+
167
+ </div>
168
+
169
+ <!-- Constants -->
170
+
171
+
172
+ <!-- Attributes -->
173
+
174
+
175
+ <!-- Methods -->
176
+
177
+ <div id="public-class-method-details" class="method-section section">
178
+ <h3 class="section-header">Public Class Methods</h3>
179
+
180
+
181
+ <div id="new-method" class="method-detail ">
182
+ <a name="method-c-new"></a>
183
+
184
+ <div class="method-heading">
185
+
186
+ <span class="method-name">new</span><span
187
+ class="method-args">(user_agent=nil)</span>
188
+ <span class="method-click-advice">click to toggle source</span>
189
+
190
+ </div>
191
+
192
+ <div class="method-description">
193
+
194
+
195
+
196
+
197
+
198
+ <div class="method-source-code"
199
+ id="new-source">
200
+ <pre>
201
+ <span class="ruby-comment cmt"># File test/browser_detect_test.rb, line 41</span>
202
+ 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">user_agent</span>=<span class="ruby-keyword kw">nil</span>)
203
+ 42: <span class="ruby-ivar">@user_agent</span> = <span class="ruby-identifier">user_agent</span>
204
+ 43: <span class="ruby-keyword kw">end</span></pre>
205
+ </div>
206
+
207
+ </div>
208
+
209
+
210
+
211
+
212
+ </div>
213
+
214
+
215
+ </div>
216
+
217
+ <div id="public-instance-method-details" class="method-section section">
218
+ <h3 class="section-header">Public Instance Methods</h3>
219
+
220
+
221
+ <div id="mock-req-method" class="method-detail ">
222
+ <a name="method-i-mock_req"></a>
223
+
224
+ <div class="method-heading">
225
+
226
+ <span class="method-name">mock_req</span><span
227
+ class="method-args">()</span>
228
+ <span class="method-click-advice">click to toggle source</span>
229
+
230
+ </div>
231
+
232
+ <div class="method-description">
233
+
234
+
235
+
236
+
237
+
238
+ <div class="method-source-code"
239
+ id="mock-req-source">
240
+ <pre>
241
+ <span class="ruby-comment cmt"># File test/browser_detect_test.rb, line 49</span>
242
+ 49: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mock_req</span>
243
+ 50: <span class="ruby-identifier">req</span> = <span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>
244
+ 51: <span class="ruby-identifier">metaclass</span> = <span class="ruby-keyword kw">class</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">req</span>; <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">end</span>
245
+ 52: <span class="ruby-identifier">user_agent</span> = <span class="ruby-ivar">@user_agent</span>
246
+ 53: <span class="ruby-identifier">metaclass</span>.<span class="ruby-identifier">send</span> <span class="ruby-value">:define_method</span>, <span class="ruby-value">:env</span>, <span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span> { {<span class="ruby-value str">'HTTP_USER_AGENT'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">user_agent</span>} }
247
+ 54: <span class="ruby-identifier">req</span>
248
+ 55: <span class="ruby-keyword kw">end</span></pre>
249
+ </div>
250
+
251
+ </div>
252
+
253
+
254
+
255
+
256
+ </div>
257
+
258
+
259
+ <div id="request-method" class="method-detail ">
260
+ <a name="method-i-request"></a>
261
+
262
+ <div class="method-heading">
263
+
264
+ <span class="method-name">request</span><span
265
+ class="method-args">()</span>
266
+ <span class="method-click-advice">click to toggle source</span>
267
+
268
+ </div>
269
+
270
+ <div class="method-description">
271
+
272
+
273
+
274
+
275
+
276
+ <div class="method-source-code"
277
+ id="request-source">
278
+ <pre>
279
+ <span class="ruby-comment cmt"># File test/browser_detect_test.rb, line 45</span>
280
+ 45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request</span>
281
+ 46: <span class="ruby-ivar">@req</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">mock_req</span>
282
+ 47: <span class="ruby-keyword kw">end</span></pre>
283
+ </div>
284
+
285
+ </div>
286
+
287
+
288
+
289
+
290
+ </div>
291
+
292
+
293
+ </div>
294
+
295
+
296
+ </div>
297
+
298
+
299
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
300
+
301
+ <p>Disabled; run with --debug to generate this.</p>
302
+
303
+ </div>
304
+
305
+ <div id="validator-badges">
306
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
307
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
308
+ Rdoc Generator</a> 1.1.6</small>.</p>
309
+ </div>
310
+
311
+ </body>
312
+ </html>
313
+