brauser 3.2.6 → 3.3.0
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +29 -0
- data/.travis-gemfile +1 -1
- data/.travis.yml +2 -1
- data/Gemfile +3 -3
- data/README.md +6 -6
- data/brauser.gemspec +1 -1
- data/doc/Brauser.html +7 -7
- data/doc/Brauser/Browseable.html +127 -0
- data/doc/Brauser/{BrowserMethods → Browseable}/Attributes.html +34 -30
- data/doc/Brauser/Browseable/DefaultDefinitions.html +387 -0
- data/doc/Brauser/{BrowserMethods → Browseable}/General.html +9 -9
- data/doc/Brauser/{BrowserMethods → Browseable}/General/ClassMethods.html +33 -33
- data/doc/Brauser/{BrowserMethods → Browseable}/Parsing.html +23 -23
- data/doc/Brauser/{BrowserMethods → Browseable}/PartialQuerying.html +59 -53
- data/doc/Brauser/{BrowserMethods → Browseable}/Querying.html +43 -37
- data/doc/Brauser/{BrowserMethods → Browseable}/Register.html +9 -9
- data/doc/Brauser/Browseable/Register/ClassMethods.html +516 -0
- data/doc/Brauser/Browser.html +787 -1362
- data/doc/Brauser/Definition.html +230 -40
- data/doc/Brauser/Hooks.html +4 -4
- data/doc/Brauser/Hooks/RubyOnRails.html +4 -4
- data/doc/Brauser/Query.html +53 -53
- data/doc/Brauser/{BrowserMethods.html → Queryable.html} +13 -11
- data/doc/Brauser/{Chainers.html → Queryable/Chainers.html} +51 -45
- data/doc/Brauser/{Queries.html → Queryable/Queries.html} +47 -41
- data/doc/Brauser/Version.html +6 -6
- data/doc/_index.html +41 -27
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +1 -0
- data/doc/file.README.html +10 -10
- data/doc/frames.html +1 -1
- data/doc/index.html +10 -10
- data/doc/method_list.html +68 -74
- data/doc/top-level-namespace.html +4 -4
- data/lib/brauser.rb +14 -3
- data/lib/brauser/browseable/attributes.rb +95 -0
- data/lib/brauser/browseable/general.rb +104 -0
- data/lib/brauser/browseable/parsing.rb +127 -0
- data/lib/brauser/browseable/partial_querying.rb +116 -0
- data/lib/brauser/browseable/querying.rb +63 -0
- data/lib/brauser/browseable/register.rb +73 -0
- data/lib/brauser/browser.rb +34 -741
- data/lib/brauser/definition.rb +30 -5
- data/lib/brauser/definitions/browsers.rb +66 -0
- data/lib/brauser/definitions/languages.rb +130 -0
- data/lib/brauser/definitions/platforms.rb +30 -0
- data/lib/brauser/query.rb +4 -99
- data/lib/brauser/queryable/chainers.rb +56 -0
- data/lib/brauser/queryable/queries.rb +60 -0
- data/lib/brauser/version.rb +3 -2
- data/spec/brauser/browser_spec.rb +26 -29
- data/spec/brauser/query_spec.rb +15 -13
- metadata +30 -17
- data/.bundle/install.log +0 -106
- data/doc/Brauser/BrowserMethods/Register/ClassMethods.html +0 -770
data/doc/Brauser/Version.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Brauser::Version
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!Brauser/Version.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -134,7 +134,7 @@
|
|
134
134
|
|
135
135
|
</div>
|
136
136
|
</dt>
|
137
|
-
<dd><pre class="code"><span class='int'>
|
137
|
+
<dd><pre class="code"><span class='int'>3</span></pre></dd>
|
138
138
|
|
139
139
|
<dt id="PATCH-constant" class="">PATCH =
|
140
140
|
<div class="docstring">
|
@@ -149,7 +149,7 @@
|
|
149
149
|
|
150
150
|
</div>
|
151
151
|
</dt>
|
152
|
-
<dd><pre class="code"><span class='int'>
|
152
|
+
<dd><pre class="code"><span class='int'>0</span></pre></dd>
|
153
153
|
|
154
154
|
<dt id="STRING-constant" class="">STRING =
|
155
155
|
<div class="docstring">
|
@@ -180,9 +180,9 @@
|
|
180
180
|
</div>
|
181
181
|
|
182
182
|
<div id="footer">
|
183
|
-
Generated on
|
183
|
+
Generated on Sat May 10 13:59:11 2014 by
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
185
|
-
0.8.7.
|
185
|
+
0.8.7.4 (ruby-2.1.0).
|
186
186
|
</div>
|
187
187
|
|
188
188
|
</body>
|
data/doc/_index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
6
|
<title>
|
7
|
-
Documentation by YARD 0.8.7.
|
7
|
+
Documentation by YARD 0.8.7.4
|
8
8
|
|
9
9
|
</title>
|
10
10
|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<script type="text/javascript" charset="utf-8">
|
16
16
|
hasFrames = window.top.frames.main ? true : false;
|
17
17
|
relpath = '';
|
18
|
-
framesUrl = "frames.html#!"
|
18
|
+
framesUrl = "frames.html#!_index.html";
|
19
19
|
</script>
|
20
20
|
|
21
21
|
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
<iframe id="search_frame"></iframe>
|
58
58
|
|
59
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.
|
59
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.4</h1>
|
60
60
|
<div id="listing">
|
61
61
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
62
62
|
|
@@ -85,9 +85,9 @@
|
|
85
85
|
<ul>
|
86
86
|
|
87
87
|
<li>
|
88
|
-
<span class='object_link'><a href="Brauser/
|
88
|
+
<span class='object_link'><a href="Brauser/Browseable/Attributes.html" title="Brauser::Browseable::Attributes (module)">Attributes</a></span>
|
89
89
|
|
90
|
-
<small>(Brauser::
|
90
|
+
<small>(Brauser::Browseable)</small>
|
91
91
|
|
92
92
|
</li>
|
93
93
|
|
@@ -105,14 +105,14 @@
|
|
105
105
|
</li>
|
106
106
|
|
107
107
|
<li>
|
108
|
-
<span class='object_link'><a href="Brauser/
|
108
|
+
<span class='object_link'><a href="Brauser/Browseable.html" title="Brauser::Browseable (module)">Browseable</a></span>
|
109
109
|
|
110
110
|
<small>(Brauser)</small>
|
111
111
|
|
112
112
|
</li>
|
113
113
|
|
114
114
|
<li>
|
115
|
-
<span class='object_link'><a href="Brauser/
|
115
|
+
<span class='object_link'><a href="Brauser/Browser.html" title="Brauser::Browser (class)">Browser</a></span>
|
116
116
|
|
117
117
|
<small>(Brauser)</small>
|
118
118
|
|
@@ -127,23 +127,23 @@
|
|
127
127
|
<ul>
|
128
128
|
|
129
129
|
<li>
|
130
|
-
<span class='object_link'><a href="Brauser/Chainers.html" title="Brauser::Chainers (module)">Chainers</a></span>
|
130
|
+
<span class='object_link'><a href="Brauser/Queryable/Chainers.html" title="Brauser::Queryable::Chainers (module)">Chainers</a></span>
|
131
131
|
|
132
|
-
<small>(Brauser)</small>
|
132
|
+
<small>(Brauser::Queryable)</small>
|
133
133
|
|
134
134
|
</li>
|
135
135
|
|
136
136
|
<li>
|
137
|
-
<span class='object_link'><a href="Brauser/
|
137
|
+
<span class='object_link'><a href="Brauser/Browseable/General/ClassMethods.html" title="Brauser::Browseable::General::ClassMethods (module)">ClassMethods</a></span>
|
138
138
|
|
139
|
-
<small>(Brauser::
|
139
|
+
<small>(Brauser::Browseable::General)</small>
|
140
140
|
|
141
141
|
</li>
|
142
142
|
|
143
143
|
<li>
|
144
|
-
<span class='object_link'><a href="Brauser/
|
144
|
+
<span class='object_link'><a href="Brauser/Browseable/Register/ClassMethods.html" title="Brauser::Browseable::Register::ClassMethods (module)">ClassMethods</a></span>
|
145
145
|
|
146
|
-
<small>(Brauser::
|
146
|
+
<small>(Brauser::Browseable::Register)</small>
|
147
147
|
|
148
148
|
</li>
|
149
149
|
|
@@ -155,6 +155,13 @@
|
|
155
155
|
<li class="letter">D</li>
|
156
156
|
<ul>
|
157
157
|
|
158
|
+
<li>
|
159
|
+
<span class='object_link'><a href="Brauser/Browseable/DefaultDefinitions.html" title="Brauser::Browseable::DefaultDefinitions (module)">DefaultDefinitions</a></span>
|
160
|
+
|
161
|
+
<small>(Brauser::Browseable)</small>
|
162
|
+
|
163
|
+
</li>
|
164
|
+
|
158
165
|
<li>
|
159
166
|
<span class='object_link'><a href="Brauser/Definition.html" title="Brauser::Definition (class)">Definition</a></span>
|
160
167
|
|
@@ -171,9 +178,9 @@
|
|
171
178
|
<ul>
|
172
179
|
|
173
180
|
<li>
|
174
|
-
<span class='object_link'><a href="Brauser/
|
181
|
+
<span class='object_link'><a href="Brauser/Browseable/General.html" title="Brauser::Browseable::General (module)">General</a></span>
|
175
182
|
|
176
|
-
<small>(Brauser::
|
183
|
+
<small>(Brauser::Browseable)</small>
|
177
184
|
|
178
185
|
</li>
|
179
186
|
|
@@ -201,16 +208,16 @@
|
|
201
208
|
<ul>
|
202
209
|
|
203
210
|
<li>
|
204
|
-
<span class='object_link'><a href="Brauser/
|
211
|
+
<span class='object_link'><a href="Brauser/Browseable/Parsing.html" title="Brauser::Browseable::Parsing (module)">Parsing</a></span>
|
205
212
|
|
206
|
-
<small>(Brauser::
|
213
|
+
<small>(Brauser::Browseable)</small>
|
207
214
|
|
208
215
|
</li>
|
209
216
|
|
210
217
|
<li>
|
211
|
-
<span class='object_link'><a href="Brauser/
|
218
|
+
<span class='object_link'><a href="Brauser/Browseable/PartialQuerying.html" title="Brauser::Browseable::PartialQuerying (module)">PartialQuerying</a></span>
|
212
219
|
|
213
|
-
<small>(Brauser::
|
220
|
+
<small>(Brauser::Browseable)</small>
|
214
221
|
|
215
222
|
</li>
|
216
223
|
|
@@ -226,9 +233,9 @@
|
|
226
233
|
<ul>
|
227
234
|
|
228
235
|
<li>
|
229
|
-
<span class='object_link'><a href="Brauser/Queries.html" title="Brauser::Queries (module)">Queries</a></span>
|
236
|
+
<span class='object_link'><a href="Brauser/Queryable/Queries.html" title="Brauser::Queryable::Queries (module)">Queries</a></span>
|
230
237
|
|
231
|
-
<small>(Brauser)</small>
|
238
|
+
<small>(Brauser::Queryable)</small>
|
232
239
|
|
233
240
|
</li>
|
234
241
|
|
@@ -240,9 +247,16 @@
|
|
240
247
|
</li>
|
241
248
|
|
242
249
|
<li>
|
243
|
-
<span class='object_link'><a href="Brauser/
|
250
|
+
<span class='object_link'><a href="Brauser/Queryable.html" title="Brauser::Queryable (module)">Queryable</a></span>
|
251
|
+
|
252
|
+
<small>(Brauser)</small>
|
253
|
+
|
254
|
+
</li>
|
255
|
+
|
256
|
+
<li>
|
257
|
+
<span class='object_link'><a href="Brauser/Browseable/Querying.html" title="Brauser::Browseable::Querying (module)">Querying</a></span>
|
244
258
|
|
245
|
-
<small>(Brauser::
|
259
|
+
<small>(Brauser::Browseable)</small>
|
246
260
|
|
247
261
|
</li>
|
248
262
|
|
@@ -255,9 +269,9 @@
|
|
255
269
|
<ul>
|
256
270
|
|
257
271
|
<li>
|
258
|
-
<span class='object_link'><a href="Brauser/
|
272
|
+
<span class='object_link'><a href="Brauser/Browseable/Register.html" title="Brauser::Browseable::Register (module)">Register</a></span>
|
259
273
|
|
260
|
-
<small>(Brauser::
|
274
|
+
<small>(Brauser::Browseable)</small>
|
261
275
|
|
262
276
|
</li>
|
263
277
|
|
@@ -295,9 +309,9 @@
|
|
295
309
|
</div>
|
296
310
|
|
297
311
|
<div id="footer">
|
298
|
-
Generated on
|
312
|
+
Generated on Sat May 10 13:59:10 2014 by
|
299
313
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
300
|
-
0.8.7.
|
314
|
+
0.8.7.4 (ruby-2.1.0).
|
301
315
|
</div>
|
302
316
|
|
303
317
|
</body>
|
data/doc/class_list.html
CHANGED
@@ -46,7 +46,7 @@
|
|
46
46
|
|
47
47
|
<ul id="full_list" class="class">
|
48
48
|
<li><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></li>
|
49
|
-
<li><a class='toggle'></a> <span class='object_link'><a href="Brauser.html" title="Brauser (module)">Brauser</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="Brauser/
|
49
|
+
<li><a class='toggle'></a> <span class='object_link'><a href="Brauser.html" title="Brauser (module)">Brauser</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><a class='toggle'></a> <span class='object_link'><a href="Brauser/Browseable.html" title="Brauser::Browseable (module)">Browseable</a></span><small class='search_info'>Brauser</small></li><ul><li><span class='object_link'><a href="Brauser/Browseable/Attributes.html" title="Brauser::Browseable::Attributes (module)">Attributes</a></span><small class='search_info'>Brauser::Browseable</small></li><li><span class='object_link'><a href="Brauser/Browseable/DefaultDefinitions.html" title="Brauser::Browseable::DefaultDefinitions (module)">DefaultDefinitions</a></span><small class='search_info'>Brauser::Browseable</small></li><li><a class='toggle'></a> <span class='object_link'><a href="Brauser/Browseable/General.html" title="Brauser::Browseable::General (module)">General</a></span><small class='search_info'>Brauser::Browseable</small></li><ul><li><span class='object_link'><a href="Brauser/Browseable/General/ClassMethods.html" title="Brauser::Browseable::General::ClassMethods (module)">ClassMethods</a></span><small class='search_info'>Brauser::Browseable::General</small></li></ul><li><span class='object_link'><a href="Brauser/Browseable/Parsing.html" title="Brauser::Browseable::Parsing (module)">Parsing</a></span><small class='search_info'>Brauser::Browseable</small></li><li><span class='object_link'><a href="Brauser/Browseable/PartialQuerying.html" title="Brauser::Browseable::PartialQuerying (module)">PartialQuerying</a></span><small class='search_info'>Brauser::Browseable</small></li><li><span class='object_link'><a href="Brauser/Browseable/Querying.html" title="Brauser::Browseable::Querying (module)">Querying</a></span><small class='search_info'>Brauser::Browseable</small></li><li><a class='toggle'></a> <span class='object_link'><a href="Brauser/Browseable/Register.html" title="Brauser::Browseable::Register (module)">Register</a></span><small class='search_info'>Brauser::Browseable</small></li><ul><li><span class='object_link'><a href="Brauser/Browseable/Register/ClassMethods.html" title="Brauser::Browseable::Register::ClassMethods (module)">ClassMethods</a></span><small class='search_info'>Brauser::Browseable::Register</small></li></ul></ul><li><span class='object_link'><a href="Brauser/Browser.html" title="Brauser::Browser (class)">Browser</a></span> < Object<small class='search_info'>Brauser</small></li><li><span class='object_link'><a href="Brauser/Definition.html" title="Brauser::Definition (class)">Definition</a></span> < Object<small class='search_info'>Brauser</small></li><li><a class='toggle'></a> <span class='object_link'><a href="Brauser/Hooks.html" title="Brauser::Hooks (module)">Hooks</a></span><small class='search_info'>Brauser</small></li><ul><li><span class='object_link'><a href="Brauser/Hooks/RubyOnRails.html" title="Brauser::Hooks::RubyOnRails (module)">RubyOnRails</a></span><small class='search_info'>Brauser::Hooks</small></li></ul><li><span class='object_link'><a href="Brauser/Query.html" title="Brauser::Query (class)">Query</a></span> < Object<small class='search_info'>Brauser</small></li><li><a class='toggle'></a> <span class='object_link'><a href="Brauser/Queryable.html" title="Brauser::Queryable (module)">Queryable</a></span><small class='search_info'>Brauser</small></li><ul><li><span class='object_link'><a href="Brauser/Queryable/Chainers.html" title="Brauser::Queryable::Chainers (module)">Chainers</a></span><small class='search_info'>Brauser::Queryable</small></li><li><span class='object_link'><a href="Brauser/Queryable/Queries.html" title="Brauser::Queryable::Queries (module)">Queries</a></span><small class='search_info'>Brauser::Queryable</small></li></ul><li><span class='object_link'><a href="Brauser/Version.html" title="Brauser::Version (module)">Version</a></span><small class='search_info'>Brauser</small></li></ul>
|
50
50
|
|
51
51
|
</ul>
|
52
52
|
</div>
|
data/doc/css/style.css
CHANGED
@@ -291,6 +291,7 @@ li.r2 { background: #fafafa; }
|
|
291
291
|
-moz-box-shadow: -2px 2px 6px #bbb;
|
292
292
|
z-index: 5000;
|
293
293
|
position: relative;
|
294
|
+
overflow-x: auto;
|
294
295
|
}
|
295
296
|
#toc.nofloat { float: none; max-width: none; border: none; padding: 0; margin: 20px 0; -webkit-box-shadow: none; -moz-box-shadow: none; }
|
296
297
|
#toc.nofloat.hidden { padding: 0; background: 0; margin-bottom: 5px; }
|
data/doc/file.README.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!
|
20
|
+
framesUrl = "frames.html#!file.README.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -146,7 +146,7 @@ browser.is?(:chrome, ">= 3", :windows)
|
|
146
146
|
|
147
147
|
<p>The method <code>is</code> is the only which supports direct internal propagation to version and platform.</p>
|
148
148
|
|
149
|
-
<p>The <code>v</code> method queries about the browser version. You can specify the comparison with an hash or a little expression.</p>
|
149
|
+
<p>The <code>version</code> (short: <code>v</code>) method queries about the browser version. You can specify the comparison with an hash or a little expression.</p>
|
150
150
|
|
151
151
|
<p>In the case of hash, the syntax is <code>{:operator => value}</code>, where <code>:operator</code> is one of <code>[:lt, :lte, :eq, :gte, :gt]</code> and value can be a Float or a String.</p>
|
152
152
|
|
@@ -156,7 +156,7 @@ browser.is?(:chrome, ">= 3", :windows)
|
|
156
156
|
|
157
157
|
<p><code>ruby
|
158
158
|
# Those two methods are equivalent.
|
159
|
-
browser.
|
159
|
+
browser.version?({lt: "2", gt: 1})
|
160
160
|
# => true
|
161
161
|
browser.is?("< 2 && > 1")
|
162
162
|
# => true
|
@@ -192,8 +192,8 @@ browser.accepts?(["de", "es"])
|
|
192
192
|
# These expressions are equivalent.
|
193
193
|
browser.is?(:chrome, {lt: "2"}, :osx)
|
194
194
|
browser.is(:chrome, {lt: "2"}, :osx).result
|
195
|
-
browser.is(:chrome).
|
196
|
-
browser.is(:chrome).
|
195
|
+
browser.is(:chrome).version({lt: "2"}).on?(:osx)
|
196
|
+
browser.is(:chrome).version({lt: "2"}).on(:osx).result
|
197
197
|
</code></p>
|
198
198
|
|
199
199
|
<p>Finally, Brauser support dynamic query operator to write simple queries without using concatenation.</p>
|
@@ -206,11 +206,11 @@ browser.is(:chrome).v({lt: "2"}).on(:osx).result
|
|
206
206
|
|
207
207
|
<p>```ruby
|
208
208
|
# These expressions are equivalent.
|
209
|
-
browser.is(:chrome).
|
209
|
+
browser.is(:chrome).version(“< 2 && > 1.2”).on(:osx).result
|
210
210
|
browser.is_chrome_v_lt_2_and_gt_1_2_on_osx.result</p>
|
211
211
|
|
212
212
|
<h1 id="these-expressions-are-equivalent">These expressions are equivalent.</h1>
|
213
|
-
<p>browser.is(:chrome).
|
213
|
+
<p>browser.is(:chrome).version(“< 2 && > 1.2”).on?(:osx)
|
214
214
|
browser.is_chrome_v_lt_2_and_gt_1_2_on_osx?
|
215
215
|
```</p>
|
216
216
|
|
@@ -270,9 +270,9 @@ Brauser::Browsers.add(:languages, ::Brauser::Definition.new(:it, "Italian"))
|
|
270
270
|
</div></div>
|
271
271
|
|
272
272
|
<div id="footer">
|
273
|
-
Generated on
|
273
|
+
Generated on Sat May 10 13:59:11 2014 by
|
274
274
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
275
|
-
0.8.7.
|
275
|
+
0.8.7.4 (ruby-2.1.0).
|
276
276
|
</div>
|
277
277
|
|
278
278
|
</body>
|
data/doc/frames.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
5
|
<head>
|
6
6
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
7
|
-
<title>Documentation by YARD 0.8.7.
|
7
|
+
<title>Documentation by YARD 0.8.7.4</title>
|
8
8
|
</head>
|
9
9
|
<script type="text/javascript" charset="utf-8">
|
10
10
|
window.onload = function() {
|
data/doc/index.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!
|
20
|
+
framesUrl = "frames.html#!file.README.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -146,7 +146,7 @@ browser.is?(:chrome, ">= 3", :windows)
|
|
146
146
|
|
147
147
|
<p>The method <code>is</code> is the only which supports direct internal propagation to version and platform.</p>
|
148
148
|
|
149
|
-
<p>The <code>v</code> method queries about the browser version. You can specify the comparison with an hash or a little expression.</p>
|
149
|
+
<p>The <code>version</code> (short: <code>v</code>) method queries about the browser version. You can specify the comparison with an hash or a little expression.</p>
|
150
150
|
|
151
151
|
<p>In the case of hash, the syntax is <code>{:operator => value}</code>, where <code>:operator</code> is one of <code>[:lt, :lte, :eq, :gte, :gt]</code> and value can be a Float or a String.</p>
|
152
152
|
|
@@ -156,7 +156,7 @@ browser.is?(:chrome, ">= 3", :windows)
|
|
156
156
|
|
157
157
|
<p><code>ruby
|
158
158
|
# Those two methods are equivalent.
|
159
|
-
browser.
|
159
|
+
browser.version?({lt: "2", gt: 1})
|
160
160
|
# => true
|
161
161
|
browser.is?("< 2 && > 1")
|
162
162
|
# => true
|
@@ -192,8 +192,8 @@ browser.accepts?(["de", "es"])
|
|
192
192
|
# These expressions are equivalent.
|
193
193
|
browser.is?(:chrome, {lt: "2"}, :osx)
|
194
194
|
browser.is(:chrome, {lt: "2"}, :osx).result
|
195
|
-
browser.is(:chrome).
|
196
|
-
browser.is(:chrome).
|
195
|
+
browser.is(:chrome).version({lt: "2"}).on?(:osx)
|
196
|
+
browser.is(:chrome).version({lt: "2"}).on(:osx).result
|
197
197
|
</code></p>
|
198
198
|
|
199
199
|
<p>Finally, Brauser support dynamic query operator to write simple queries without using concatenation.</p>
|
@@ -206,11 +206,11 @@ browser.is(:chrome).v({lt: "2"}).on(:osx).result
|
|
206
206
|
|
207
207
|
<p>```ruby
|
208
208
|
# These expressions are equivalent.
|
209
|
-
browser.is(:chrome).
|
209
|
+
browser.is(:chrome).version(“< 2 && > 1.2”).on(:osx).result
|
210
210
|
browser.is_chrome_v_lt_2_and_gt_1_2_on_osx.result</p>
|
211
211
|
|
212
212
|
<h1 id="these-expressions-are-equivalent">These expressions are equivalent.</h1>
|
213
|
-
<p>browser.is(:chrome).
|
213
|
+
<p>browser.is(:chrome).version(“< 2 && > 1.2”).on?(:osx)
|
214
214
|
browser.is_chrome_v_lt_2_and_gt_1_2_on_osx?
|
215
215
|
```</p>
|
216
216
|
|
@@ -270,9 +270,9 @@ Brauser::Browsers.add(:languages, ::Brauser::Definition.new(:it, "Italian"))
|
|
270
270
|
</div></div>
|
271
271
|
|
272
272
|
<div id="footer">
|
273
|
-
Generated on
|
273
|
+
Generated on Sat May 10 13:59:11 2014 by
|
274
274
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
275
|
-
0.8.7.
|
275
|
+
0.8.7.4 (ruby-2.1.0).
|
276
276
|
</div>
|
277
277
|
|
278
278
|
</body>
|
data/doc/method_list.html
CHANGED
@@ -54,50 +54,50 @@
|
|
54
54
|
|
55
55
|
|
56
56
|
<li class="r2 ">
|
57
|
-
<span class='object_link'><a href="Brauser/Chainers.html#accepts-instance_method" title="Brauser::Chainers#accepts (method)">#accepts</a></span>
|
58
|
-
<small>Brauser::Chainers</small>
|
57
|
+
<span class='object_link'><a href="Brauser/Queryable/Chainers.html#accepts-instance_method" title="Brauser::Queryable::Chainers#accepts (method)">#accepts</a></span>
|
58
|
+
<small>Brauser::Queryable::Chainers</small>
|
59
59
|
</li>
|
60
60
|
|
61
61
|
|
62
62
|
<li class="r1 ">
|
63
|
-
<span class='object_link'><a href="Brauser/
|
64
|
-
<small>Brauser::
|
63
|
+
<span class='object_link'><a href="Brauser/Browseable/PartialQuerying.html#accepts-instance_method" title="Brauser::Browseable::PartialQuerying#accepts (method)">#accepts</a></span>
|
64
|
+
<small>Brauser::Browseable::PartialQuerying</small>
|
65
65
|
</li>
|
66
66
|
|
67
67
|
|
68
68
|
<li class="r2 ">
|
69
|
-
<span class='object_link'><a href="Brauser/
|
70
|
-
<small>Brauser::
|
69
|
+
<span class='object_link'><a href="Brauser/Browseable/Querying.html#accepts%3F-instance_method" title="Brauser::Browseable::Querying#accepts? (method)">#accepts?</a></span>
|
70
|
+
<small>Brauser::Browseable::Querying</small>
|
71
71
|
</li>
|
72
72
|
|
73
73
|
|
74
74
|
<li class="r1 ">
|
75
|
-
<span class='object_link'><a href="Brauser/Queries.html#accepts%3F-instance_method" title="Brauser::Queries#accepts? (method)">#accepts?</a></span>
|
76
|
-
<small>Brauser::Queries</small>
|
75
|
+
<span class='object_link'><a href="Brauser/Queryable/Queries.html#accepts%3F-instance_method" title="Brauser::Queryable::Queries#accepts? (method)">#accepts?</a></span>
|
76
|
+
<small>Brauser::Queryable::Queries</small>
|
77
77
|
</li>
|
78
78
|
|
79
79
|
|
80
80
|
<li class="r2 ">
|
81
|
-
<span class='object_link'><a href="Brauser/
|
82
|
-
<small>Brauser::
|
81
|
+
<span class='object_link'><a href="Brauser/Browseable/Register/ClassMethods.html#add-instance_method" title="Brauser::Browseable::Register::ClassMethods#add (method)">#add</a></span>
|
82
|
+
<small>Brauser::Browseable::Register::ClassMethods</small>
|
83
83
|
</li>
|
84
84
|
|
85
85
|
|
86
86
|
<li class="r1 ">
|
87
|
-
<span class='object_link'><a href="Brauser/
|
88
|
-
<small>Brauser::
|
87
|
+
<span class='object_link'><a href="Brauser/Browseable/Register/ClassMethods.html#add_default_browsers-instance_method" title="Brauser::Browseable::Register::ClassMethods#add_default_browsers (method)">#add_default_browsers</a></span>
|
88
|
+
<small>Brauser::Browseable::Register::ClassMethods</small>
|
89
89
|
</li>
|
90
90
|
|
91
91
|
|
92
92
|
<li class="r2 ">
|
93
|
-
<span class='object_link'><a href="Brauser/
|
94
|
-
<small>Brauser::
|
93
|
+
<span class='object_link'><a href="Brauser/Browseable/Register/ClassMethods.html#add_default_languages-instance_method" title="Brauser::Browseable::Register::ClassMethods#add_default_languages (method)">#add_default_languages</a></span>
|
94
|
+
<small>Brauser::Browseable::Register::ClassMethods</small>
|
95
95
|
</li>
|
96
96
|
|
97
97
|
|
98
98
|
<li class="r1 ">
|
99
|
-
<span class='object_link'><a href="Brauser/
|
100
|
-
<small>Brauser::
|
99
|
+
<span class='object_link'><a href="Brauser/Browseable/Register/ClassMethods.html#add_default_platforms-instance_method" title="Brauser::Browseable::Register::ClassMethods#add_default_platforms (method)">#add_default_platforms</a></span>
|
100
|
+
<small>Brauser::Browseable::Register::ClassMethods</small>
|
101
101
|
</li>
|
102
102
|
|
103
103
|
|
@@ -114,20 +114,20 @@
|
|
114
114
|
|
115
115
|
|
116
116
|
<li class="r2 ">
|
117
|
-
<span class='object_link'><a href="Brauser/
|
118
|
-
<small>Brauser::
|
117
|
+
<span class='object_link'><a href="Brauser/Browseable/General/ClassMethods.html#browsers-instance_method" title="Brauser::Browseable::General::ClassMethods#browsers (method)">#browsers</a></span>
|
118
|
+
<small>Brauser::Browseable::General::ClassMethods</small>
|
119
119
|
</li>
|
120
120
|
|
121
121
|
|
122
122
|
<li class="r1 ">
|
123
|
-
<span class='object_link'><a href="Brauser/
|
124
|
-
<small>Brauser::
|
123
|
+
<span class='object_link'><a href="Brauser/Browseable/Attributes.html#classes-instance_method" title="Brauser::Browseable::Attributes#classes (method)">#classes</a></span>
|
124
|
+
<small>Brauser::Browseable::Attributes</small>
|
125
125
|
</li>
|
126
126
|
|
127
127
|
|
128
128
|
<li class="r2 ">
|
129
|
-
<span class='object_link'><a href="Brauser/
|
130
|
-
<small>Brauser::
|
129
|
+
<span class='object_link'><a href="Brauser/Browseable/General/ClassMethods.html#compare_versions-instance_method" title="Brauser::Browseable::General::ClassMethods#compare_versions (method)">#compare_versions</a></span>
|
130
|
+
<small>Brauser::Browseable::General::ClassMethods</small>
|
131
131
|
</li>
|
132
132
|
|
133
133
|
|
@@ -138,8 +138,8 @@
|
|
138
138
|
|
139
139
|
|
140
140
|
<li class="r2 ">
|
141
|
-
<span class='object_link'><a href="Brauser/
|
142
|
-
<small>Brauser::
|
141
|
+
<span class='object_link'><a href="Brauser/Query.html#initialize-instance_method" title="Brauser::Query#initialize (method)">#initialize</a></span>
|
142
|
+
<small>Brauser::Query</small>
|
143
143
|
</li>
|
144
144
|
|
145
145
|
|
@@ -150,32 +150,32 @@
|
|
150
150
|
|
151
151
|
|
152
152
|
<li class="r2 ">
|
153
|
-
<span class='object_link'><a href="Brauser/
|
154
|
-
<small>Brauser::
|
153
|
+
<span class='object_link'><a href="Brauser/Definition.html#initialize-instance_method" title="Brauser::Definition#initialize (method)">#initialize</a></span>
|
154
|
+
<small>Brauser::Definition</small>
|
155
155
|
</li>
|
156
156
|
|
157
157
|
|
158
158
|
<li class="r1 ">
|
159
|
-
<span class='object_link'><a href="Brauser/
|
160
|
-
<small>Brauser::
|
159
|
+
<span class='object_link'><a href="Brauser/Browseable/PartialQuerying.html#is-instance_method" title="Brauser::Browseable::PartialQuerying#is (method)">#is</a></span>
|
160
|
+
<small>Brauser::Browseable::PartialQuerying</small>
|
161
161
|
</li>
|
162
162
|
|
163
163
|
|
164
164
|
<li class="r2 ">
|
165
|
-
<span class='object_link'><a href="Brauser/Chainers.html#is-instance_method" title="Brauser::Chainers#is (method)">#is</a></span>
|
166
|
-
<small>Brauser::Chainers</small>
|
165
|
+
<span class='object_link'><a href="Brauser/Queryable/Chainers.html#is-instance_method" title="Brauser::Queryable::Chainers#is (method)">#is</a></span>
|
166
|
+
<small>Brauser::Queryable::Chainers</small>
|
167
167
|
</li>
|
168
168
|
|
169
169
|
|
170
170
|
<li class="r1 ">
|
171
|
-
<span class='object_link'><a href="Brauser/
|
172
|
-
<small>Brauser::
|
171
|
+
<span class='object_link'><a href="Brauser/Browseable/Querying.html#is%3F-instance_method" title="Brauser::Browseable::Querying#is? (method)">#is?</a></span>
|
172
|
+
<small>Brauser::Browseable::Querying</small>
|
173
173
|
</li>
|
174
174
|
|
175
175
|
|
176
176
|
<li class="r2 ">
|
177
|
-
<span class='object_link'><a href="Brauser/
|
178
|
-
<small>Brauser::
|
177
|
+
<span class='object_link'><a href="Brauser/Queryable/Queries.html#is%3F-instance_method" title="Brauser::Queryable::Queries#is? (method)">#is?</a></span>
|
178
|
+
<small>Brauser::Queryable::Queries</small>
|
179
179
|
</li>
|
180
180
|
|
181
181
|
|
@@ -186,14 +186,14 @@
|
|
186
186
|
|
187
187
|
|
188
188
|
<li class="r2 ">
|
189
|
-
<span class='object_link'><a href="Brauser/
|
190
|
-
<small>Brauser::
|
189
|
+
<span class='object_link'><a href="Brauser/Browser.html#languages-instance_method" title="Brauser::Browser#languages (method)">#languages</a></span>
|
190
|
+
<small>Brauser::Browser</small>
|
191
191
|
</li>
|
192
192
|
|
193
193
|
|
194
194
|
<li class="r1 ">
|
195
|
-
<span class='object_link'><a href="Brauser/
|
196
|
-
<small>Brauser::
|
195
|
+
<span class='object_link'><a href="Brauser/Browseable/General/ClassMethods.html#languages-instance_method" title="Brauser::Browseable::General::ClassMethods#languages (method)">#languages</a></span>
|
196
|
+
<small>Brauser::Browseable::General::ClassMethods</small>
|
197
197
|
</li>
|
198
198
|
|
199
199
|
|
@@ -216,38 +216,38 @@
|
|
216
216
|
|
217
217
|
|
218
218
|
<li class="r1 ">
|
219
|
-
<span class='object_link'><a href="Brauser/
|
220
|
-
<small>Brauser::
|
219
|
+
<span class='object_link'><a href="Brauser/Queryable/Chainers.html#on-instance_method" title="Brauser::Queryable::Chainers#on (method)">#on</a></span>
|
220
|
+
<small>Brauser::Queryable::Chainers</small>
|
221
221
|
</li>
|
222
222
|
|
223
223
|
|
224
224
|
<li class="r2 ">
|
225
|
-
<span class='object_link'><a href="Brauser/
|
226
|
-
<small>Brauser::
|
225
|
+
<span class='object_link'><a href="Brauser/Browseable/PartialQuerying.html#on-instance_method" title="Brauser::Browseable::PartialQuerying#on (method)">#on</a></span>
|
226
|
+
<small>Brauser::Browseable::PartialQuerying</small>
|
227
227
|
</li>
|
228
228
|
|
229
229
|
|
230
230
|
<li class="r1 ">
|
231
|
-
<span class='object_link'><a href="Brauser/
|
232
|
-
<small>Brauser::
|
231
|
+
<span class='object_link'><a href="Brauser/Browseable/Querying.html#on%3F-instance_method" title="Brauser::Browseable::Querying#on? (method)">#on?</a></span>
|
232
|
+
<small>Brauser::Browseable::Querying</small>
|
233
233
|
</li>
|
234
234
|
|
235
235
|
|
236
236
|
<li class="r2 ">
|
237
|
-
<span class='object_link'><a href="Brauser/Queries.html#on%3F-instance_method" title="Brauser::Queries#on? (method)">#on?</a></span>
|
238
|
-
<small>Brauser::Queries</small>
|
237
|
+
<span class='object_link'><a href="Brauser/Queryable/Queries.html#on%3F-instance_method" title="Brauser::Queryable::Queries#on? (method)">#on?</a></span>
|
238
|
+
<small>Brauser::Queryable::Queries</small>
|
239
239
|
</li>
|
240
240
|
|
241
241
|
|
242
242
|
<li class="r1 ">
|
243
|
-
<span class='object_link'><a href="Brauser/
|
244
|
-
<small>Brauser::
|
243
|
+
<span class='object_link'><a href="Brauser/Browseable/Parsing.html#parse_accept_language-instance_method" title="Brauser::Browseable::Parsing#parse_accept_language (method)">#parse_accept_language</a></span>
|
244
|
+
<small>Brauser::Browseable::Parsing</small>
|
245
245
|
</li>
|
246
246
|
|
247
247
|
|
248
248
|
<li class="r2 ">
|
249
|
-
<span class='object_link'><a href="Brauser/
|
250
|
-
<small>Brauser::
|
249
|
+
<span class='object_link'><a href="Brauser/Browseable/Parsing.html#parse_agent-instance_method" title="Brauser::Browseable::Parsing#parse_agent (method)">#parse_agent</a></span>
|
250
|
+
<small>Brauser::Browseable::Parsing</small>
|
251
251
|
</li>
|
252
252
|
|
253
253
|
|
@@ -258,14 +258,14 @@
|
|
258
258
|
|
259
259
|
|
260
260
|
<li class="r2 ">
|
261
|
-
<span class='object_link'><a href="Brauser/
|
262
|
-
<small>Brauser::
|
261
|
+
<span class='object_link'><a href="Brauser/Browseable/Attributes.html#platform_name-instance_method" title="Brauser::Browseable::Attributes#platform_name (method)">#platform_name</a></span>
|
262
|
+
<small>Brauser::Browseable::Attributes</small>
|
263
263
|
</li>
|
264
264
|
|
265
265
|
|
266
266
|
<li class="r1 ">
|
267
|
-
<span class='object_link'><a href="Brauser/
|
268
|
-
<small>Brauser::
|
267
|
+
<span class='object_link'><a href="Brauser/Browseable/General/ClassMethods.html#platforms-instance_method" title="Brauser::Browseable::General::ClassMethods#platforms (method)">#platforms</a></span>
|
268
|
+
<small>Brauser::Browseable::General::ClassMethods</small>
|
269
269
|
</li>
|
270
270
|
|
271
271
|
|
@@ -276,8 +276,8 @@
|
|
276
276
|
|
277
277
|
|
278
278
|
<li class="r1 ">
|
279
|
-
<span class='object_link'><a href="Brauser/
|
280
|
-
<small>Brauser::
|
279
|
+
<span class='object_link'><a href="Brauser/Browseable/Attributes.html#readable_name-instance_method" title="Brauser::Browseable::Attributes#readable_name (method)">#readable_name</a></span>
|
280
|
+
<small>Brauser::Browseable::Attributes</small>
|
281
281
|
</li>
|
282
282
|
|
283
283
|
|
@@ -294,8 +294,8 @@
|
|
294
294
|
|
295
295
|
|
296
296
|
<li class="r2 ">
|
297
|
-
<span class='object_link'><a href="Brauser/
|
298
|
-
<small>Brauser::
|
297
|
+
<span class='object_link'><a href="Brauser/Browseable/Querying.html#supported%3F-instance_method" title="Brauser::Browseable::Querying#supported? (method)">#supported?</a></span>
|
298
|
+
<small>Brauser::Browseable::Querying</small>
|
299
299
|
</li>
|
300
300
|
|
301
301
|
|
@@ -312,38 +312,32 @@
|
|
312
312
|
|
313
313
|
|
314
314
|
<li class="r1 ">
|
315
|
-
<span class='object_link'><a href="Brauser/
|
316
|
-
<small>Brauser::
|
315
|
+
<span class='object_link'><a href="Brauser/Queryable/Chainers.html#version-instance_method" title="Brauser::Queryable::Chainers#version (method)">#version</a></span>
|
316
|
+
<small>Brauser::Queryable::Chainers</small>
|
317
317
|
</li>
|
318
318
|
|
319
319
|
|
320
320
|
<li class="r2 ">
|
321
|
-
<span class='object_link'><a href="Brauser/
|
322
|
-
<small>Brauser::
|
321
|
+
<span class='object_link'><a href="Brauser/Browser.html#version-instance_method" title="Brauser::Browser#version (method)">#version</a></span>
|
322
|
+
<small>Brauser::Browser</small>
|
323
323
|
</li>
|
324
324
|
|
325
325
|
|
326
326
|
<li class="r1 ">
|
327
|
-
<span class='object_link'><a href="Brauser/
|
328
|
-
<small>Brauser::
|
327
|
+
<span class='object_link'><a href="Brauser/Browseable/Querying.html#version%3F-instance_method" title="Brauser::Browseable::Querying#version? (method)">#version?</a></span>
|
328
|
+
<small>Brauser::Browseable::Querying</small>
|
329
329
|
</li>
|
330
330
|
|
331
331
|
|
332
332
|
<li class="r2 ">
|
333
|
-
<span class='object_link'><a href="Brauser/
|
334
|
-
<small>Brauser::
|
333
|
+
<span class='object_link'><a href="Brauser/Queryable/Queries.html#version%3F-instance_method" title="Brauser::Queryable::Queries#version? (method)">#version?</a></span>
|
334
|
+
<small>Brauser::Queryable::Queries</small>
|
335
335
|
</li>
|
336
336
|
|
337
337
|
|
338
338
|
<li class="r1 ">
|
339
|
-
<span class='object_link'><a href="Brauser/
|
340
|
-
<small>Brauser::
|
341
|
-
</li>
|
342
|
-
|
343
|
-
|
344
|
-
<li class="r2 ">
|
345
|
-
<span class='object_link'><a href="Brauser/Browser.html#version-instance_method" title="Brauser::Browser#version (method)">#version</a></span>
|
346
|
-
<small>Brauser::Browser</small>
|
339
|
+
<span class='object_link'><a href="Brauser/Browseable/PartialQuerying.html#version_equals_to-instance_method" title="Brauser::Browseable::PartialQuerying#version_equals_to (method)">#version_equals_to</a></span>
|
340
|
+
<small>Brauser::Browseable::PartialQuerying</small>
|
347
341
|
</li>
|
348
342
|
|
349
343
|
|