brauser 3.2.3 → 3.2.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.
- checksums.yaml +4 -4
- data/doc/Brauser.html +1 -1
- data/doc/Brauser/Browser.html +28 -28
- data/doc/Brauser/BrowserMethods.html +1 -1
- data/doc/Brauser/BrowserMethods/Attributes.html +10 -10
- data/doc/Brauser/BrowserMethods/General.html +1 -1
- data/doc/Brauser/BrowserMethods/General/ClassMethods.html +13 -13
- data/doc/Brauser/BrowserMethods/Parsing.html +7 -7
- data/doc/Brauser/BrowserMethods/PartialQuerying.html +13 -13
- data/doc/Brauser/BrowserMethods/Querying.html +16 -16
- data/doc/Brauser/BrowserMethods/Register.html +1 -1
- data/doc/Brauser/BrowserMethods/Register/ClassMethods.html +2 -2
- data/doc/Brauser/Chainers.html +1 -1
- data/doc/Brauser/Definition.html +1 -1
- data/doc/Brauser/Hooks.html +1 -1
- data/doc/Brauser/Hooks/RubyOnRails.html +1 -1
- data/doc/Brauser/Queries.html +1 -1
- data/doc/Brauser/Query.html +1 -1
- data/doc/Brauser/Version.html +2 -2
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/brauser/browser.rb +4 -3
- data/lib/brauser/version.rb +1 -1
- data/spec/brauser/browser_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec85f0b7600348a48941af6166d62e160a64d00d
|
4
|
+
data.tar.gz: 1de83edeb17ff259939e7bd672c2268c17980b71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83837a8cdf9edc6f2ee0882e1144425588ddeb0c3919712001d97500788f5610e125509eba67cea18ab5f1b67f0807bf7417fda08ecc1c135c626b4be0f05d9a
|
7
|
+
data.tar.gz: 2c316b8dd31474c4efc9515da09b38fbe4a445b06719b37d9e1b87ed288f5580c125a03b4ed345d5df6dab75f69603576b80a5495f3cab7f74301f337fc7e108
|
data/doc/Brauser.html
CHANGED
@@ -121,7 +121,7 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Fri Nov 29 17:11:55 2013 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.8.7.3 (ruby-2.0.0).
|
127
127
|
</div>
|
data/doc/Brauser/Browser.html
CHANGED
@@ -489,7 +489,6 @@
|
|
489
489
|
<pre class="lines">
|
490
490
|
|
491
491
|
|
492
|
-
709
|
493
492
|
710
|
494
493
|
711
|
495
494
|
712
|
@@ -499,10 +498,11 @@
|
|
499
498
|
716
|
500
499
|
717
|
501
500
|
718
|
502
|
-
719
|
501
|
+
719
|
502
|
+
720</pre>
|
503
503
|
</td>
|
504
504
|
<td>
|
505
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
505
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 710</span>
|
506
506
|
|
507
507
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_agent'>agent</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_accept_language'>accept_language</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
508
508
|
<span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browser</span><span class='period'>.</span><span class='id identifier rubyid_add_default_browsers'>add_default_browsers</span>
|
@@ -630,7 +630,6 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
630
630
|
<pre class="lines">
|
631
631
|
|
632
632
|
|
633
|
-
738
|
634
633
|
739
|
635
634
|
740
|
636
635
|
741
|
@@ -638,10 +637,11 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
638
637
|
743
|
639
638
|
744
|
640
639
|
745
|
641
|
-
746
|
640
|
+
746
|
641
|
+
747</pre>
|
642
642
|
</td>
|
643
643
|
<td>
|
644
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
644
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 739</span>
|
645
645
|
|
646
646
|
<span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span><span class='id identifier rubyid_query'>query</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_arguments'>arguments</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
647
647
|
<span class='kw'>begin</span>
|
@@ -706,7 +706,6 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
706
706
|
<pre class="lines">
|
707
707
|
|
708
708
|
|
709
|
-
686
|
710
709
|
687
|
711
710
|
688
|
712
711
|
689
|
@@ -831,10 +830,11 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
831
830
|
808
|
832
831
|
809
|
833
832
|
810
|
834
|
-
811
|
833
|
+
811
|
834
|
+
812</pre>
|
835
835
|
</td>
|
836
836
|
<td>
|
837
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
837
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 687</span>
|
838
838
|
|
839
839
|
<span class='kw'>class</span> <span class='const'>Browser</span>
|
840
840
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:agent</span>
|
@@ -1015,7 +1015,6 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
1015
1015
|
<pre class="lines">
|
1016
1016
|
|
1017
1017
|
|
1018
|
-
686
|
1019
1018
|
687
|
1020
1019
|
688
|
1021
1020
|
689
|
@@ -1140,10 +1139,11 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
1140
1139
|
808
|
1141
1140
|
809
|
1142
1141
|
810
|
1143
|
-
811
|
1142
|
+
811
|
1143
|
+
812</pre>
|
1144
1144
|
</td>
|
1145
1145
|
<td>
|
1146
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
1146
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 687</span>
|
1147
1147
|
|
1148
1148
|
<span class='kw'>class</span> <span class='const'>Browser</span>
|
1149
1149
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:agent</span>
|
@@ -1320,7 +1320,6 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
1320
1320
|
<pre class="lines">
|
1321
1321
|
|
1322
1322
|
|
1323
|
-
686
|
1324
1323
|
687
|
1325
1324
|
688
|
1326
1325
|
689
|
@@ -1445,10 +1444,11 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
1445
1444
|
808
|
1446
1445
|
809
|
1447
1446
|
810
|
1448
|
-
811
|
1447
|
+
811
|
1448
|
+
812</pre>
|
1449
1449
|
</td>
|
1450
1450
|
<td>
|
1451
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
1451
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 687</span>
|
1452
1452
|
|
1453
1453
|
<span class='kw'>class</span> <span class='const'>Browser</span>
|
1454
1454
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:agent</span>
|
@@ -1625,7 +1625,6 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
1625
1625
|
<pre class="lines">
|
1626
1626
|
|
1627
1627
|
|
1628
|
-
686
|
1629
1628
|
687
|
1630
1629
|
688
|
1631
1630
|
689
|
@@ -1750,10 +1749,11 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
1750
1749
|
808
|
1751
1750
|
809
|
1752
1751
|
810
|
1753
|
-
811
|
1752
|
+
811
|
1753
|
+
812</pre>
|
1754
1754
|
</td>
|
1755
1755
|
<td>
|
1756
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
1756
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 687</span>
|
1757
1757
|
|
1758
1758
|
<span class='kw'>class</span> <span class='const'>Browser</span>
|
1759
1759
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:agent</span>
|
@@ -1930,7 +1930,6 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
1930
1930
|
<pre class="lines">
|
1931
1931
|
|
1932
1932
|
|
1933
|
-
686
|
1934
1933
|
687
|
1935
1934
|
688
|
1936
1935
|
689
|
@@ -2055,10 +2054,11 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
2055
2054
|
808
|
2056
2055
|
809
|
2057
2056
|
810
|
2058
|
-
811
|
2057
|
+
811
|
2058
|
+
812</pre>
|
2059
2059
|
</td>
|
2060
2060
|
<td>
|
2061
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
2061
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 687</span>
|
2062
2062
|
|
2063
2063
|
<span class='kw'>class</span> <span class='const'>Browser</span>
|
2064
2064
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:agent</span>
|
@@ -2235,7 +2235,6 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
2235
2235
|
<pre class="lines">
|
2236
2236
|
|
2237
2237
|
|
2238
|
-
686
|
2239
2238
|
687
|
2240
2239
|
688
|
2241
2240
|
689
|
@@ -2360,10 +2359,11 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
2360
2359
|
808
|
2361
2360
|
809
|
2362
2361
|
810
|
2363
|
-
811
|
2362
|
+
811
|
2363
|
+
812</pre>
|
2364
2364
|
</td>
|
2365
2365
|
<td>
|
2366
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
2366
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 687</span>
|
2367
2367
|
|
2368
2368
|
<span class='kw'>class</span> <span class='const'>Browser</span>
|
2369
2369
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:agent</span>
|
@@ -2552,12 +2552,12 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
2552
2552
|
<pre class="lines">
|
2553
2553
|
|
2554
2554
|
|
2555
|
-
753
|
2556
2555
|
754
|
2557
|
-
755
|
2556
|
+
755
|
2557
|
+
756</pre>
|
2558
2558
|
</td>
|
2559
2559
|
<td>
|
2560
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
2560
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 754</span>
|
2561
2561
|
|
2562
2562
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
2563
2563
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_classes'>classes</span>
|
@@ -2572,7 +2572,7 @@ browser.is_msie_v_gt_4_1_on_windows?
|
|
2572
2572
|
</div>
|
2573
2573
|
|
2574
2574
|
<div id="footer">
|
2575
|
-
Generated on
|
2575
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
2576
2576
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2577
2577
|
0.8.7.3 (ruby-2.0.0).
|
2578
2578
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.7.3 (ruby-2.0.0).
|
122
122
|
</div>
|
@@ -334,14 +334,14 @@
|
|
334
334
|
<pre class="lines">
|
335
335
|
|
336
336
|
|
337
|
-
395
|
338
337
|
396
|
339
338
|
397
|
340
339
|
398
|
341
|
-
399
|
340
|
+
399
|
341
|
+
400</pre>
|
342
342
|
</td>
|
343
343
|
<td>
|
344
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
344
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 396</span>
|
345
345
|
|
346
346
|
<span class='kw'>def</span> <span class='id identifier rubyid_classes'>classes</span><span class='lparen'>(</span><span class='id identifier rubyid_join'>join</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_version'>version</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>version-</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_platform'>platform</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>platform-</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
347
347
|
<span class='id identifier rubyid_platform'>platform</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>platform-</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_platform'>platform</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>TrueClass</span><span class='rparen'>)</span>
|
@@ -395,13 +395,13 @@
|
|
395
395
|
<pre class="lines">
|
396
396
|
|
397
397
|
|
398
|
-
374
|
399
398
|
375
|
400
399
|
376
|
401
|
-
377
|
400
|
+
377
|
401
|
+
378</pre>
|
402
402
|
</td>
|
403
403
|
<td>
|
404
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
404
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 375</span>
|
405
405
|
|
406
406
|
<span class='kw'>def</span> <span class='id identifier rubyid_platform_name'>platform_name</span>
|
407
407
|
<span class='id identifier rubyid_parse_agent'>parse_agent</span><span class='lparen'>(</span><span class='ivar'>@agent</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@platform</span>
|
@@ -454,13 +454,13 @@
|
|
454
454
|
<pre class="lines">
|
455
455
|
|
456
456
|
|
457
|
-
366
|
458
457
|
367
|
459
458
|
368
|
460
|
-
369
|
459
|
+
369
|
460
|
+
370</pre>
|
461
461
|
</td>
|
462
462
|
<td>
|
463
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
463
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 367</span>
|
464
464
|
|
465
465
|
<span class='kw'>def</span> <span class='id identifier rubyid_readable_name'>readable_name</span>
|
466
466
|
<span class='id identifier rubyid_parse_agent'>parse_agent</span><span class='lparen'>(</span><span class='ivar'>@agent</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@name</span>
|
@@ -476,7 +476,7 @@
|
|
476
476
|
</div>
|
477
477
|
|
478
478
|
<div id="footer">
|
479
|
-
Generated on
|
479
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
480
480
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
481
481
|
0.8.7.3 (ruby-2.0.0).
|
482
482
|
</div>
|
@@ -125,7 +125,7 @@
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on
|
128
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
130
|
0.8.7.3 (ruby-2.0.0).
|
131
131
|
</div>
|
@@ -254,12 +254,12 @@
|
|
254
254
|
<pre class="lines">
|
255
255
|
|
256
256
|
|
257
|
-
279
|
258
257
|
280
|
259
|
-
281
|
258
|
+
281
|
259
|
+
282</pre>
|
260
260
|
</td>
|
261
261
|
<td>
|
262
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
262
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 280</span>
|
263
263
|
|
264
264
|
<span class='kw'>def</span> <span class='id identifier rubyid_browsers'>browsers</span>
|
265
265
|
<span class='ivar'>@definitions</span><span class='lbracket'>[</span><span class='symbol'>:browsers</span><span class='rbracket'>]</span>
|
@@ -366,7 +366,6 @@
|
|
366
366
|
<pre class="lines">
|
367
367
|
|
368
368
|
|
369
|
-
307
|
370
369
|
308
|
371
370
|
309
|
372
371
|
310
|
@@ -376,10 +375,11 @@
|
|
376
375
|
314
|
377
376
|
315
|
378
377
|
316
|
379
|
-
317
|
378
|
+
317
|
379
|
+
318</pre>
|
380
380
|
</td>
|
381
381
|
<td>
|
382
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
382
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 308</span>
|
383
383
|
|
384
384
|
<span class='kw'>def</span> <span class='id identifier rubyid_compare_versions'>compare_versions</span><span class='lparen'>(</span><span class='id identifier rubyid_v1'>v1</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_operator'>operator</span> <span class='op'>=</span> <span class='symbol'>:eq</span><span class='comma'>,</span> <span class='id identifier rubyid_v2'>v2</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
385
385
|
<span class='id identifier rubyid_valid_results'>valid_results</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='label'>lt:</span> <span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>lte:</span> <span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='comma'>,</span> <span class='int'>0</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>eq:</span> <span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>gte:</span> <span class='lbracket'>[</span><span class='int'>0</span><span class='comma'>,</span> <span class='int'>1</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>gt:</span> <span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_operator'>operator</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
@@ -441,12 +441,12 @@
|
|
441
441
|
<pre class="lines">
|
442
442
|
|
443
443
|
|
444
|
-
297
|
445
444
|
298
|
446
|
-
299
|
445
|
+
299
|
446
|
+
300</pre>
|
447
447
|
</td>
|
448
448
|
<td>
|
449
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
449
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 298</span>
|
450
450
|
|
451
451
|
<span class='kw'>def</span> <span class='id identifier rubyid_languages'>languages</span>
|
452
452
|
<span class='ivar'>@definitions</span><span class='lbracket'>[</span><span class='symbol'>:languages</span><span class='rbracket'>]</span>
|
@@ -500,12 +500,12 @@
|
|
500
500
|
<pre class="lines">
|
501
501
|
|
502
502
|
|
503
|
-
288
|
504
503
|
289
|
505
|
-
290
|
504
|
+
290
|
505
|
+
291</pre>
|
506
506
|
</td>
|
507
507
|
<td>
|
508
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
508
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 289</span>
|
509
509
|
|
510
510
|
<span class='kw'>def</span> <span class='id identifier rubyid_platforms'>platforms</span>
|
511
511
|
<span class='ivar'>@definitions</span><span class='lbracket'>[</span><span class='symbol'>:platforms</span><span class='rbracket'>]</span>
|
@@ -520,7 +520,7 @@
|
|
520
520
|
</div>
|
521
521
|
|
522
522
|
<div id="footer">
|
523
|
-
Generated on
|
523
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
524
524
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
525
525
|
0.8.7.3 (ruby-2.0.0).
|
526
526
|
</div>
|
@@ -231,12 +231,12 @@
|
|
231
231
|
<pre class="lines">
|
232
232
|
|
233
233
|
|
234
|
-
461
|
235
234
|
462
|
236
|
-
463
|
235
|
+
463
|
236
|
+
464</pre>
|
237
237
|
</td>
|
238
238
|
<td>
|
239
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
239
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 462</span>
|
240
240
|
|
241
241
|
<span class='kw'>def</span> <span class='id identifier rubyid_parse_accept_language'>parse_accept_language</span><span class='lparen'>(</span><span class='id identifier rubyid_accept_language'>accept_language</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
242
242
|
<span class='id identifier rubyid_accept_language'>accept_language</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>;q=[\d.]+</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>,</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_l'>l</span><span class='op'>|</span> <span class='id identifier rubyid_l'>l</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_l'>l</span><span class='op'>|</span> <span class='id identifier rubyid_l'>l</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='rbrace'>}</span>
|
@@ -309,7 +309,6 @@
|
|
309
309
|
<pre class="lines">
|
310
310
|
|
311
311
|
|
312
|
-
447
|
313
312
|
448
|
314
313
|
449
|
315
314
|
450
|
@@ -317,10 +316,11 @@
|
|
317
316
|
452
|
318
317
|
453
|
319
318
|
454
|
320
|
-
455
|
319
|
+
455
|
320
|
+
456</pre>
|
321
321
|
</td>
|
322
322
|
<td>
|
323
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
323
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 448</span>
|
324
324
|
|
325
325
|
<span class='kw'>def</span> <span class='id identifier rubyid_parse_agent'>parse_agent</span><span class='lparen'>(</span><span class='id identifier rubyid_agent'>agent</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
326
326
|
<span class='id identifier rubyid_agent'>agent</span> <span class='op'>=</span> <span class='id identifier rubyid_agent'>agent</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
|
@@ -341,7 +341,7 @@
|
|
341
341
|
</div>
|
342
342
|
|
343
343
|
<div id="footer">
|
344
|
-
Generated on
|
344
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
345
345
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
346
346
|
0.8.7.3 (ruby-2.0.0).
|
347
347
|
</div>
|
@@ -277,14 +277,14 @@
|
|
277
277
|
<pre class="lines">
|
278
278
|
|
279
279
|
|
280
|
-
567
|
281
280
|
568
|
282
281
|
569
|
283
282
|
570
|
284
|
-
571
|
283
|
+
571
|
284
|
+
572</pre>
|
285
285
|
</td>
|
286
286
|
<td>
|
287
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
287
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 568</span>
|
288
288
|
|
289
289
|
<span class='kw'>def</span> <span class='id identifier rubyid_accepts'>accepts</span><span class='lparen'>(</span><span class='id identifier rubyid_langs'>langs</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
290
290
|
<span class='id identifier rubyid_parse_accept_language'>parse_accept_language</span><span class='lparen'>(</span><span class='ivar'>@accept_language</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@languages</span>
|
@@ -403,7 +403,6 @@ in form <code>{:operator => version}</code>, where operator is one of <code>:
|
|
403
403
|
<pre class="lines">
|
404
404
|
|
405
405
|
|
406
|
-
527
|
407
406
|
528
|
408
407
|
529
|
409
408
|
530
|
@@ -415,10 +414,11 @@ in form <code>{:operator => version}</code>, where operator is one of <code>:
|
|
415
414
|
536
|
416
415
|
537
|
417
416
|
538
|
418
|
-
539
|
417
|
+
539
|
418
|
+
540</pre>
|
419
419
|
</td>
|
420
420
|
<td>
|
421
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
421
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 528</span>
|
422
422
|
|
423
423
|
<span class='kw'>def</span> <span class='id identifier rubyid_is'>is</span><span class='lparen'>(</span><span class='id identifier rubyid_names'>names</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_versions'>versions</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_platforms'>platforms</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
424
424
|
<span class='id identifier rubyid_parse_agent'>parse_agent</span><span class='lparen'>(</span><span class='ivar'>@agent</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@name</span>
|
@@ -501,14 +501,14 @@ in form <code>{:operator => version}</code>, where operator is one of <code>:
|
|
501
501
|
<pre class="lines">
|
502
502
|
|
503
503
|
|
504
|
-
557
|
505
504
|
558
|
506
505
|
559
|
507
506
|
560
|
508
|
-
561
|
507
|
+
561
|
508
|
+
562</pre>
|
509
509
|
</td>
|
510
510
|
<td>
|
511
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
511
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 558</span>
|
512
512
|
|
513
513
|
<span class='kw'>def</span> <span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='id identifier rubyid_platforms'>platforms</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
514
514
|
<span class='id identifier rubyid_parse_agent'>parse_agent</span><span class='lparen'>(</span><span class='ivar'>@agent</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@platform</span>
|
@@ -584,15 +584,15 @@ in form <code>{:operator => version}</code>, where operator is one of <code>:
|
|
584
584
|
<pre class="lines">
|
585
585
|
|
586
586
|
|
587
|
-
546
|
588
587
|
547
|
589
588
|
548
|
590
589
|
549
|
591
590
|
550
|
592
|
-
551
|
591
|
+
551
|
592
|
+
552</pre>
|
593
593
|
</td>
|
594
594
|
<td>
|
595
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
595
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 547</span>
|
596
596
|
|
597
597
|
<span class='kw'>def</span> <span class='id identifier rubyid_v'>v</span><span class='lparen'>(</span><span class='id identifier rubyid_versions'>versions</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
598
598
|
<span class='id identifier rubyid_parse_agent'>parse_agent</span><span class='lparen'>(</span><span class='ivar'>@agent</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@version</span>
|
@@ -610,7 +610,7 @@ in form <code>{:operator => version}</code>, where operator is one of <code>:
|
|
610
610
|
</div>
|
611
611
|
|
612
612
|
<div id="footer">
|
613
|
-
Generated on
|
613
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
614
614
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
615
615
|
0.8.7.3 (ruby-2.0.0).
|
616
616
|
</div>
|
@@ -300,12 +300,12 @@
|
|
300
300
|
<pre class="lines">
|
301
301
|
|
302
302
|
|
303
|
-
656
|
304
303
|
657
|
305
|
-
658
|
304
|
+
658
|
305
|
+
659</pre>
|
306
306
|
</td>
|
307
307
|
<td>
|
308
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
308
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 657</span>
|
309
309
|
|
310
310
|
<span class='kw'>def</span> <span class='id identifier rubyid_accepts?'>accepts?</span><span class='lparen'>(</span><span class='id identifier rubyid_langs'>langs</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
311
311
|
<span class='id identifier rubyid_accepts'>accepts</span><span class='lparen'>(</span><span class='id identifier rubyid_langs'>langs</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
@@ -422,12 +422,12 @@ is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p>
|
|
422
422
|
<pre class="lines">
|
423
423
|
|
424
424
|
|
425
|
-
631
|
426
425
|
632
|
427
|
-
633
|
426
|
+
633
|
427
|
+
634</pre>
|
428
428
|
</td>
|
429
429
|
<td>
|
430
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
430
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 632</span>
|
431
431
|
|
432
432
|
<span class='kw'>def</span> <span class='id identifier rubyid_is?'>is?</span><span class='lparen'>(</span><span class='id identifier rubyid_names'>names</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_versions'>versions</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_platforms'>platforms</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
433
433
|
<span class='id identifier rubyid_is'>is</span><span class='lparen'>(</span><span class='id identifier rubyid_names'>names</span><span class='comma'>,</span> <span class='id identifier rubyid_versions'>versions</span><span class='comma'>,</span> <span class='id identifier rubyid_platforms'>platforms</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
@@ -500,12 +500,12 @@ is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p>
|
|
500
500
|
<pre class="lines">
|
501
501
|
|
502
502
|
|
503
|
-
648
|
504
503
|
649
|
505
|
-
650
|
504
|
+
650
|
505
|
+
651</pre>
|
506
506
|
</td>
|
507
507
|
<td>
|
508
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
508
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 649</span>
|
509
509
|
|
510
510
|
<span class='kw'>def</span> <span class='id identifier rubyid_on?'>on?</span><span class='lparen'>(</span><span class='id identifier rubyid_platforms'>platforms</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
511
511
|
<span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='id identifier rubyid_platforms'>platforms</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
@@ -576,14 +576,14 @@ is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p>
|
|
576
576
|
<pre class="lines">
|
577
577
|
|
578
578
|
|
579
|
-
664
|
580
579
|
665
|
581
580
|
666
|
582
581
|
667
|
583
|
-
668
|
582
|
+
668
|
583
|
+
669</pre>
|
584
584
|
</td>
|
585
585
|
<td>
|
586
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
586
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 665</span>
|
587
587
|
|
588
588
|
<span class='kw'>def</span> <span class='id identifier rubyid_supported?'>supported?</span><span class='lparen'>(</span><span class='id identifier rubyid_supported'>supported</span><span class='rparen'>)</span>
|
589
589
|
<span class='id identifier rubyid_supported'>supported</span> <span class='op'>=</span> <span class='const'>YAML</span><span class='period'>.</span><span class='id identifier rubyid_load_file'>load_file</span><span class='lparen'>(</span><span class='id identifier rubyid_supported'>supported</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_symbolize_keys'>symbolize_keys</span> <span class='kw'>if</span> <span class='id identifier rubyid_supported'>supported</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span>
|
@@ -659,12 +659,12 @@ in form <code>{:operator => version}</code>, where operator is one of <code>:
|
|
659
659
|
<pre class="lines">
|
660
660
|
|
661
661
|
|
662
|
-
640
|
663
662
|
641
|
664
|
-
642
|
663
|
+
642
|
664
|
+
643</pre>
|
665
665
|
</td>
|
666
666
|
<td>
|
667
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line
|
667
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 641</span>
|
668
668
|
|
669
669
|
<span class='kw'>def</span> <span class='id identifier rubyid_v?'>v?</span><span class='lparen'>(</span><span class='id identifier rubyid_versions'>versions</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
670
670
|
<span class='id identifier rubyid_v'>v</span><span class='lparen'>(</span><span class='id identifier rubyid_versions'>versions</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
@@ -679,7 +679,7 @@ in form <code>{:operator => version}</code>, where operator is one of <code>:
|
|
679
679
|
</div>
|
680
680
|
|
681
681
|
<div id="footer">
|
682
|
-
Generated on
|
682
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
683
683
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
684
684
|
0.8.7.3 (ruby-2.0.0).
|
685
685
|
</div>
|
@@ -125,7 +125,7 @@
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on
|
128
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
130
|
0.8.7.3 (ruby-2.0.0).
|
131
131
|
</div>
|
@@ -739,7 +739,7 @@
|
|
739
739
|
<span class='lbracket'>[</span><span class='symbol'>:symbian</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Symbian</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>s60|symb</span><span class='regexp_end'>/i</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
740
740
|
<span class='lbracket'>[</span><span class='symbol'>:windows_phone</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Microsoft Windows Phone</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>windows phone</span><span class='regexp_end'>/i</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
741
741
|
<span class='lbracket'>[</span><span class='symbol'>:kindle</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Nokia Symbian</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>kindle|silk</span><span class='regexp_end'>/i</span></span><span class='comma'>,</span> <span class='rbracket'>]</span><span class='comma'>,</span>
|
742
|
-
<span class='lbracket'>[</span><span class='symbol'>:ios</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Apple iOS</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_agent'>agent</span><span class='op'>|</span> <span class='lbracket'>[</span><span class='symbol'>:iphone</span><span class='comma'>,</span> <span class='symbol'>:ipad</span><span class='comma'>,</span> <span class='symbol'>:ipod</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_agent'>agent</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>ipad|iphone|ipod</span><span class='regexp_end'>/i</span></span> <span class='rbrace'>}</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
742
|
+
<span class='lbracket'>[</span><span class='symbol'>:ios</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Apple iOS</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_agent'>agent</span><span class='op'>|</span> <span class='lbracket'>[</span><span class='symbol'>:iphone</span><span class='comma'>,</span> <span class='symbol'>:ipad</span><span class='comma'>,</span> <span class='symbol'>:ipod</span><span class='comma'>,</span> <span class='symbol'>:chrome_ios</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_agent'>agent</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>ipad|iphone|ipod|crios</span><span class='regexp_end'>/i</span></span> <span class='rbrace'>}</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
743
743
|
<span class='lbracket'>[</span><span class='symbol'>:android</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Android</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>android</span><span class='regexp_end'>/i</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
744
744
|
<span class='lbracket'>[</span><span class='symbol'>:blackberry</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>RIM BlackBerry</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>blackberry</span><span class='regexp_end'>/i</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
745
745
|
<span class='lbracket'>[</span><span class='symbol'>:psp</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Sony Playstation Portable</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>psp</span><span class='regexp_end'>/i</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
@@ -761,7 +761,7 @@
|
|
761
761
|
</div>
|
762
762
|
|
763
763
|
<div id="footer">
|
764
|
-
Generated on
|
764
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
765
765
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
766
766
|
0.8.7.3 (ruby-2.0.0).
|
767
767
|
</div>
|
data/doc/Brauser/Chainers.html
CHANGED
@@ -583,7 +583,7 @@ in form <code>{:operator => version}</code>, where operator is one of <code>:
|
|
583
583
|
</div>
|
584
584
|
|
585
585
|
<div id="footer">
|
586
|
-
Generated on
|
586
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
587
587
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
588
588
|
0.8.7.3 (ruby-2.0.0).
|
589
589
|
</div>
|
data/doc/Brauser/Definition.html
CHANGED
@@ -1036,7 +1036,7 @@ This class represents a detection of the current user browser.</p>
|
|
1036
1036
|
</div>
|
1037
1037
|
|
1038
1038
|
<div id="footer">
|
1039
|
-
Generated on
|
1039
|
+
Generated on Fri Nov 29 17:11:57 2013 by
|
1040
1040
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1041
1041
|
0.8.7.3 (ruby-2.0.0).
|
1042
1042
|
</div>
|
data/doc/Brauser/Hooks.html
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Fri Nov 29 17:11:55 2013 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.7.3 (ruby-2.0.0).
|
122
122
|
</div>
|
@@ -323,7 +323,7 @@
|
|
323
323
|
</div>
|
324
324
|
|
325
325
|
<div id="footer">
|
326
|
-
Generated on
|
326
|
+
Generated on Fri Nov 29 17:11:55 2013 by
|
327
327
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
328
328
|
0.8.7.3 (ruby-2.0.0).
|
329
329
|
</div>
|
data/doc/Brauser/Queries.html
CHANGED
@@ -583,7 +583,7 @@ in form <code>{:operator => version}</code>, where operator is one of <code>:
|
|
583
583
|
</div>
|
584
584
|
|
585
585
|
<div id="footer">
|
586
|
-
Generated on
|
586
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
587
587
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
588
588
|
0.8.7.3 (ruby-2.0.0).
|
589
589
|
</div>
|
data/doc/Brauser/Query.html
CHANGED
@@ -503,7 +503,7 @@ Brauser::Browser.new.is(:msie).v(">= 7").on?(:windows)
|
|
503
503
|
</div>
|
504
504
|
|
505
505
|
<div id="footer">
|
506
|
-
Generated on
|
506
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
507
507
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
508
508
|
0.8.7.3 (ruby-2.0.0).
|
509
509
|
</div>
|
data/doc/Brauser/Version.html
CHANGED
@@ -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'>4</span></pre></dd>
|
153
153
|
|
154
154
|
<dt id="STRING-constant" class="">STRING =
|
155
155
|
<div class="docstring">
|
@@ -180,7 +180,7 @@
|
|
180
180
|
</div>
|
181
181
|
|
182
182
|
<div id="footer">
|
183
|
-
Generated on
|
183
|
+
Generated on Fri Nov 29 17:11:56 2013 by
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
185
185
|
0.8.7.3 (ruby-2.0.0).
|
186
186
|
</div>
|
data/doc/_index.html
CHANGED
@@ -295,7 +295,7 @@
|
|
295
295
|
</div>
|
296
296
|
|
297
297
|
<div id="footer">
|
298
|
-
Generated on
|
298
|
+
Generated on Fri Nov 29 17:11:55 2013 by
|
299
299
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
300
300
|
0.8.7.3 (ruby-2.0.0).
|
301
301
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -270,7 +270,7 @@ 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 Fri Nov 29 17:11:55 2013 by
|
274
274
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
275
275
|
0.8.7.3 (ruby-2.0.0).
|
276
276
|
</div>
|
data/doc/index.html
CHANGED
@@ -270,7 +270,7 @@ 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 Fri Nov 29 17:11:55 2013 by
|
274
274
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
275
275
|
0.8.7.3 (ruby-2.0.0).
|
276
276
|
</div>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on
|
106
|
+
Generated on Fri Nov 29 17:11:55 2013 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
108
|
0.8.7.3 (ruby-2.0.0).
|
109
109
|
</div>
|
data/lib/brauser/browser.rb
CHANGED
@@ -52,7 +52,7 @@ module Brauser
|
|
52
52
|
[:symbian, "Symbian", /s60|symb/i],
|
53
53
|
[:windows_phone, "Microsoft Windows Phone", /windows phone/i],
|
54
54
|
[:kindle, "Nokia Symbian", /kindle|silk/i, ],
|
55
|
-
[:ios, "Apple iOS", Proc.new { |_, agent| [:iphone, :ipad, :ipod].include?(name) || agent =~ /ipad|iphone|ipod/i }],
|
55
|
+
[:ios, "Apple iOS", Proc.new { |_, agent| [:iphone, :ipad, :ipod, :chrome_ios].include?(name) || agent =~ /ipad|iphone|ipod|crios/i }],
|
56
56
|
[:android, "Android", /android/i],
|
57
57
|
[:blackberry, "RIM BlackBerry", /blackberry/i],
|
58
58
|
[:psp, "Sony Playstation Portable", /psp/i],
|
@@ -195,7 +195,7 @@ module Brauser
|
|
195
195
|
[:chrome, "Google Chrome", /((chrome)|(chromium))/i, /(.+Chrom[a-z]+\/)([a-z0-9.]+)/i],
|
196
196
|
[:netscape, "Netscape Navigator", /(netscape|navigator)\//i, /((Netscape|Navigator)\/)([a-z0-9.]+)/i],
|
197
197
|
[:firefox, "Mozilla Firefox", /firefox/i, /(.+Firefox\/)([a-z0-9.]+)/i],
|
198
|
-
[:safari, "Apple Safari", Proc.new{ |_, agent| disambiguate_browser(agent, /safari/i, /((chrome)|(chromium))/i) }, /(.+Version\/)([a-z0-9.]+)/i],
|
198
|
+
[:safari, "Apple Safari", Proc.new{ |_, agent| disambiguate_browser(agent, /safari/i, /((chrome)|(chromium)|(crios))/i) }, /(.+Version\/)([a-z0-9.]+)/i],
|
199
199
|
].map { |browser| ::Brauser::Definition.send(:new, *browser) })
|
200
200
|
end
|
201
201
|
|
@@ -245,6 +245,7 @@ module Brauser
|
|
245
245
|
[:windows_phone, "Microsoft Windows Phone", /windows phone/i, /(.+IEMobile\/)([a-z0-9.]+)/i],
|
246
246
|
[:wii, "Nintendo Wii", /nintendo wii/, /(.+Nintendo Wii; U; ; )([a-z0-9.]+)/i],
|
247
247
|
|
248
|
+
[:chrome_ios, "Chrome iOS", /crios/i, /(.+CriOS\/)([a-z0-9.]+)/i],
|
248
249
|
[:ipod, "Apple iPod", /ipod/i, /(.+Version\/)([a-z0-9.]+)/i],
|
249
250
|
[:iphone, "Apple iPhone", /iphone/i, /(.+Version\/)([a-z0-9.]+)/i],
|
250
251
|
[:ipad, "Apple iPad", /ipad/i, /(.+Version\/)([a-z0-9.]+)/i],
|
@@ -257,7 +258,7 @@ module Brauser
|
|
257
258
|
#
|
258
259
|
# @param agent [String] The agent to match.
|
259
260
|
# @param positive_matcher [Regexp] The expression to match.
|
260
|
-
# @param
|
261
|
+
# @param negative_matcher [Regexp] The expression NOT to match.
|
261
262
|
# @return [Boolean] `true` if matching succeeded, `false otherwise`.
|
262
263
|
def disambiguate_browser(agent, positive_matcher, negative_matcher)
|
263
264
|
agent =~ positive_matcher && agent !~ negative_matcher
|
data/lib/brauser/version.rb
CHANGED
@@ -282,6 +282,10 @@ describe Brauser::Browser do
|
|
282
282
|
expect(recognize("Mozilla/5.0 (Windows; U; Win 9x 4.90; SG; rv:1.9.2.4) Gecko/20101104 Netscape/9.1.0285")).to eq([:netscape, "9.1.0285", :windows])
|
283
283
|
expect(recognize("Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.8pre) Gecko/20071001 Firefox/2.0.0.7 Navigator/9.0RC1")).to eq([:netscape, "9.0RC1", :osx])
|
284
284
|
|
285
|
+
# Chrome IOS
|
286
|
+
expect(recognize("Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en-gb) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3")).to eq([:chrome_ios, "19.0.1084.60", :ios])
|
287
|
+
expect(recognize("Mozilla/5.0 (iPad; U; CPU iPhone OS 5_1_1 like Mac OS X; en-gb) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/21.0.1180.82 Safari/536.5")).to eq([:chrome_ios, "21.0.1180.82", :ios])
|
288
|
+
|
285
289
|
# Apple iPhone
|
286
290
|
expect(recognize("Mozilla/5.0 (iPhone; U; fr; CPU iPhone OS 4_2_1 like Mac OS X; fr) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148a Safari/6533.18.5")).to eq([:iphone, "5.0.2", :ios])
|
287
291
|
expect(recognize("Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B5097d Safari/6531.22.7")).to eq([:iphone, "4.0.5", :ios])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brauser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shogun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lazier
|