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.
@@ -0,0 +1,270 @@
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: Test::Unit::TestCase</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/test_helper_rb.html?TB_iframe=true&amp;height=550&amp;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
+ <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
+
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-c-fixtures">::fixtures</a></li>
73
+
74
+ <li><a href="#method-c-must">::must</a></li>
75
+
76
+ </ul>
77
+ </div>
78
+
79
+
80
+ <!-- Included Modules -->
81
+
82
+ </div>
83
+
84
+ <div id="project-metadata">
85
+
86
+
87
+ <div id="fileindex-section" class="section project-section">
88
+ <h3 class="section-header">Files</h3>
89
+ <ul>
90
+
91
+ <li class="file"><a href="../../Gemfile.html">Gemfile</a></li>
92
+
93
+ <li class="file"><a href="../../Rakefile.html">Rakefile</a></li>
94
+
95
+ </ul>
96
+ </div>
97
+
98
+
99
+ <div id="classindex-section" class="section project-section">
100
+ <h3 class="section-header">Class Index
101
+ <span class="search-toggle"><img src="../../images/find.png"
102
+ height="16" width="16" alt="[+]"
103
+ title="show/hide quicksearch" /></span></h3>
104
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
105
+ <fieldset>
106
+ <legend>Quicksearch</legend>
107
+ <input type="text" name="quicksearch" value=""
108
+ class="quicksearch-field" />
109
+ </fieldset>
110
+ </form>
111
+
112
+ <ul class="link-list">
113
+
114
+ <li><a href="../../Test.html">Test</a></li>
115
+
116
+ <li><a href="../../Test/Unit.html">Test::Unit</a></li>
117
+
118
+ <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
119
+
120
+ <li><a href="../../BrowserDetectMock.html">BrowserDetectMock</a></li>
121
+
122
+ <li><a href="../../BrowserDetectMock/req;.html">BrowserDetectMock::req;</a></li>
123
+
124
+ <li><a href="../../BrowserDetect.html">BrowserDetect</a></li>
125
+
126
+ <li><a href="../../BrowserDetectHelperTest.html">BrowserDetectHelperTest</a></li>
127
+
128
+ </ul>
129
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
130
+ </div>
131
+
132
+
133
+ </div>
134
+ </div>
135
+
136
+ <div id="documentation">
137
+ <h1 class="class">Test::Unit::TestCase</h1>
138
+
139
+ <div id="description">
140
+ <p>
141
+ @ see <a href="http://gist.github.com/316780">gist.github.com/316780</a>
142
+ Used to fix a minor minitest/unit incompatibility in flexmock
143
+ AssertionFailedError = Class.new(StandardError)
144
+ </p>
145
+ <hr style="height: 1px"></hr><p>
146
+ @see <a
147
+ href="http://push.cx/2007/fixtures-in-ruby-unit-tests">push.cx/2007/fixtures-in-ruby-unit-tests</a>
148
+ </p>
149
+
150
+ </div>
151
+
152
+ <!-- Constants -->
153
+
154
+
155
+ <!-- Attributes -->
156
+
157
+
158
+ <!-- Methods -->
159
+
160
+ <div id="public-class-method-details" class="method-section section">
161
+ <h3 class="section-header">Public Class Methods</h3>
162
+
163
+
164
+ <div id="fixtures-method" class="method-detail ">
165
+ <a name="method-c-fixtures"></a>
166
+
167
+ <div class="method-heading">
168
+
169
+ <span class="method-name">fixtures</span><span
170
+ class="method-args">(*args)</span>
171
+ <span class="method-click-advice">click to toggle source</span>
172
+
173
+ </div>
174
+
175
+ <div class="method-description">
176
+
177
+
178
+
179
+
180
+
181
+ <div class="method-source-code"
182
+ id="fixtures-source">
183
+ <pre>
184
+ <span class="ruby-comment cmt"># File test/test_helper.rb, line 33</span>
185
+ 33: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fixtures</span> *<span class="ruby-identifier">args</span>
186
+ 34: [<span class="ruby-identifier">args</span>].<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fixture</span><span class="ruby-operator">|</span>
187
+ 35: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
188
+ 36: <span class="ruby-comment cmt"># add a method name for this fixture type</span>
189
+ 37: <span class="ruby-identifier">define_method</span>(<span class="ruby-identifier">fixture</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span>
190
+ 38: <span class="ruby-comment cmt"># load and cache the YAML</span>
191
+ 39: <span class="ruby-identifier">@@fixtures</span>[<span class="ruby-identifier">fixture</span>] <span class="ruby-operator">||=</span> <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load_file</span>(<span class="ruby-node">&quot;./fixtures/#{fixture.to_s}.yml&quot;</span>)
192
+ 40: <span class="ruby-identifier">@@fixtures</span>[<span class="ruby-identifier">fixture</span>][<span class="ruby-identifier">item</span>.<span class="ruby-identifier">to_s</span>]
193
+ 41: <span class="ruby-keyword kw">end</span>
194
+ 42: <span class="ruby-keyword kw">end</span>
195
+ 43: <span class="ruby-keyword kw">end</span>
196
+ 44: <span class="ruby-keyword kw">end</span></pre>
197
+ </div>
198
+
199
+ </div>
200
+
201
+
202
+
203
+
204
+ </div>
205
+
206
+
207
+ <div id="must-method" class="method-detail ">
208
+ <a name="method-c-must"></a>
209
+
210
+ <div class="method-heading">
211
+
212
+ <span class="method-name">must</span><span
213
+ class="method-args">(name, &block)</span>
214
+ <span class="method-click-advice">click to toggle source</span>
215
+
216
+ </div>
217
+
218
+ <div class="method-description">
219
+
220
+
221
+
222
+
223
+
224
+ <div class="method-source-code"
225
+ id="must-source">
226
+ <pre>
227
+ <span class="ruby-comment cmt"># File test/test_helper.rb, line 14</span>
228
+ 14: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">must</span>(<span class="ruby-identifier">name</span>, &amp;<span class="ruby-identifier">block</span>)
229
+ 15: <span class="ruby-identifier">test_name</span> = <span class="ruby-node">&quot;test_#{name.gsub(/\s+/,'_')}&quot;</span>.<span class="ruby-identifier">to_sym</span>
230
+ 16: <span class="ruby-identifier">defined</span> = <span class="ruby-identifier">instance_method</span>(<span class="ruby-identifier">test_name</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">false</span>
231
+ 17: <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;#{test_name} is already defined in #{self}&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">defined</span>
232
+ 18: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
233
+ 19: <span class="ruby-identifier">define_method</span>(<span class="ruby-identifier">test_name</span>, &amp;<span class="ruby-identifier">block</span>)
234
+ 20: <span class="ruby-keyword kw">else</span>
235
+ 21: <span class="ruby-identifier">define_method</span>(<span class="ruby-identifier">test_name</span>) <span class="ruby-keyword kw">do</span>
236
+ 22: <span class="ruby-identifier">flunk</span> <span class="ruby-node">&quot;No implementation provided for #{name}&quot;</span>
237
+ 23: <span class="ruby-keyword kw">end</span>
238
+ 24: <span class="ruby-keyword kw">end</span>
239
+ 25: <span class="ruby-keyword kw">end</span></pre>
240
+ </div>
241
+
242
+ </div>
243
+
244
+
245
+
246
+
247
+ </div>
248
+
249
+
250
+ </div>
251
+
252
+
253
+ </div>
254
+
255
+
256
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
257
+
258
+ <p>Disabled; run with --debug to generate this.</p>
259
+
260
+ </div>
261
+
262
+ <div id="validator-badges">
263
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
264
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
265
+ Rdoc Generator</a> 1.1.6</small>.</p>
266
+ </div>
267
+
268
+ </body>
269
+ </html>
270
+
@@ -0,0 +1,54 @@
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
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: browser_detect_test.rb [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="../js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="../js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="../js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2010-11-02 11:00:56 -0700</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>../lib/browser_detect/browser_detect_helper</li>
35
+
36
+ </ul>
37
+ </dd>
38
+
39
+
40
+
41
+ </dl>
42
+ </div>
43
+
44
+ <div id="documentation">
45
+
46
+ <div class="description">
47
+ <h2>Description</h2>
48
+
49
+ </div>
50
+
51
+ </div>
52
+ </body>
53
+ </html>
54
+
@@ -0,0 +1,58 @@
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
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: test_helper.rb [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="../js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="../js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="../js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2010-11-02 11:00:56 -0700</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>rubygems</li>
35
+
36
+ <li>test/unit</li>
37
+
38
+ <li>yaml</li>
39
+
40
+ </ul>
41
+ </dd>
42
+
43
+
44
+
45
+ </dl>
46
+ </div>
47
+
48
+ <div id="documentation">
49
+
50
+ <div class="description">
51
+ <h2>Description</h2>
52
+
53
+ </div>
54
+
55
+ </div>
56
+ </body>
57
+ </html>
58
+
data/doc/_index.html ADDED
@@ -0,0 +1,94 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>BrowserDetect Documentation</title>
7
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+
27
+ <span class="title"></span>
28
+
29
+
30
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
31
+ </div>
32
+
33
+ <div id="search">
34
+ <a id="class_list_link" href="#">Class List</a>
35
+ <a id="method_list_link" href="#">Method List</a>
36
+ <a id ="file_list_link" href="#">File List</a>
37
+ </div>
38
+
39
+ <div class="clear"></div>
40
+ </div>
41
+
42
+ <iframe id="search_frame"></iframe>
43
+
44
+ <div id="content"><div id="listing">
45
+ <h1 class="noborder title">BrowserDetect Documentation</h1>
46
+ <h1 class="alphaindex">Alphabetic Index</h1>
47
+
48
+
49
+ <h2>File Listing</h2>
50
+ <ul id="files">
51
+
52
+
53
+ <li class="r1"><a href="index.html" title="README">README</a></li>
54
+
55
+
56
+ </ul>
57
+
58
+ <div class="clear"></div>
59
+
60
+ <h2>Namespace Listing A-Z</h2>
61
+
62
+
63
+
64
+
65
+ <table>
66
+ <tr>
67
+ <td valign='top' width="33%">
68
+
69
+
70
+ <ul id="alpha_B" class="alpha">
71
+ <li class="letter">B</li>
72
+ <ul>
73
+
74
+ <li>
75
+ <span class='object_link'><a href="BrowserDetect.html" title="BrowserDetect (module)">BrowserDetect</a></span>
76
+
77
+ </li>
78
+
79
+ </ul>
80
+ </ul>
81
+
82
+ </td>
83
+ </tr>
84
+ </table>
85
+ </div></div>
86
+
87
+ <div id="footer">
88
+ Generated on Wed Nov 3 16:31:07 2010 by
89
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
90
+ 0.6.1 (ruby-1.9.2).
91
+ </div>
92
+
93
+ </body>
94
+ </html>