brauser 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/brauser.gemspec CHANGED
@@ -24,5 +24,5 @@ Gem::Specification.new do |gem|
24
24
 
25
25
  gem.required_ruby_version = ">= 1.9.3"
26
26
 
27
- gem.add_dependency("lazier", "~> 2.6.4")
27
+ gem.add_dependency("lazier", "~> 2.6.5")
28
28
  end
data/doc/Brauser.html CHANGED
@@ -120,7 +120,7 @@
120
120
  </div>
121
121
 
122
122
  <div id="footer">
123
- Generated on Fri Feb 8 08:12:31 2013 by
123
+ Generated on Wed Feb 13 11:29:25 2013 by
124
124
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
125
125
  0.8.4.1 (ruby-1.9.3).
126
126
  </div>
@@ -489,20 +489,20 @@
489
489
  <pre class="lines">
490
490
 
491
491
 
492
- 743
493
- 744
494
- 745
495
- 746
496
- 747
497
- 748
498
- 749
499
- 750
500
492
  751
501
493
  752
502
- 753</pre>
494
+ 753
495
+ 754
496
+ 755
497
+ 756
498
+ 757
499
+ 758
500
+ 759
501
+ 760
502
+ 761</pre>
503
503
  </td>
504
504
  <td>
505
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 743</span>
505
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 751</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'>&quot;</span><span class='tstring_end'>&quot;</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'>&quot;</span><span class='tstring_end'>&quot;</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_register_default_browsers'>register_default_browsers</span>
@@ -630,18 +630,18 @@ browser.is_msie_gt_4_1__on_windows?
630
630
  <pre class="lines">
631
631
 
632
632
 
633
- 772
634
- 773
635
- 774
636
- 775
637
- 776
638
- 777
639
- 778
640
- 779
641
- 780</pre>
633
+ 780
634
+ 781
635
+ 782
636
+ 783
637
+ 784
638
+ 785
639
+ 786
640
+ 787
641
+ 788</pre>
642
642
  </td>
643
643
  <td>
644
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 772</span>
644
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 780</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'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
647
647
  <span class='kw'>begin</span>
@@ -706,14 +706,6 @@ browser.is_msie_gt_4_1__on_windows?
706
706
  <pre class="lines">
707
707
 
708
708
 
709
- 720
710
- 721
711
- 722
712
- 723
713
- 724
714
- 725
715
- 726
716
- 727
717
709
  728
718
710
  729
719
711
  730
@@ -830,10 +822,18 @@ browser.is_msie_gt_4_1__on_windows?
830
822
  841
831
823
  842
832
824
  843
833
- 844</pre>
825
+ 844
826
+ 845
827
+ 846
828
+ 847
829
+ 848
830
+ 849
831
+ 850
832
+ 851
833
+ 852</pre>
834
834
  </td>
835
835
  <td>
836
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 720</span>
836
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 728</span>
837
837
 
838
838
  <span class='kw'>class</span> <span class='const'>Browser</span>
839
839
  <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:agent</span>
@@ -1013,14 +1013,6 @@ browser.is_msie_gt_4_1__on_windows?
1013
1013
  <pre class="lines">
1014
1014
 
1015
1015
 
1016
- 720
1017
- 721
1018
- 722
1019
- 723
1020
- 724
1021
- 725
1022
- 726
1023
- 727
1024
1016
  728
1025
1017
  729
1026
1018
  730
@@ -1137,10 +1129,18 @@ browser.is_msie_gt_4_1__on_windows?
1137
1129
  841
1138
1130
  842
1139
1131
  843
1140
- 844</pre>
1132
+ 844
1133
+ 845
1134
+ 846
1135
+ 847
1136
+ 848
1137
+ 849
1138
+ 850
1139
+ 851
1140
+ 852</pre>
1141
1141
  </td>
1142
1142
  <td>
1143
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 720</span>
1143
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 728</span>
1144
1144
 
1145
1145
  <span class='kw'>class</span> <span class='const'>Browser</span>
1146
1146
  <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:agent</span>
@@ -1316,14 +1316,6 @@ browser.is_msie_gt_4_1__on_windows?
1316
1316
  <pre class="lines">
1317
1317
 
1318
1318
 
1319
- 720
1320
- 721
1321
- 722
1322
- 723
1323
- 724
1324
- 725
1325
- 726
1326
- 727
1327
1319
  728
1328
1320
  729
1329
1321
  730
@@ -1440,10 +1432,18 @@ browser.is_msie_gt_4_1__on_windows?
1440
1432
  841
1441
1433
  842
1442
1434
  843
1443
- 844</pre>
1435
+ 844
1436
+ 845
1437
+ 846
1438
+ 847
1439
+ 848
1440
+ 849
1441
+ 850
1442
+ 851
1443
+ 852</pre>
1444
1444
  </td>
1445
1445
  <td>
1446
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 720</span>
1446
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 728</span>
1447
1447
 
1448
1448
  <span class='kw'>class</span> <span class='const'>Browser</span>
1449
1449
  <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:agent</span>
@@ -1619,14 +1619,6 @@ browser.is_msie_gt_4_1__on_windows?
1619
1619
  <pre class="lines">
1620
1620
 
1621
1621
 
1622
- 720
1623
- 721
1624
- 722
1625
- 723
1626
- 724
1627
- 725
1628
- 726
1629
- 727
1630
1622
  728
1631
1623
  729
1632
1624
  730
@@ -1743,10 +1735,18 @@ browser.is_msie_gt_4_1__on_windows?
1743
1735
  841
1744
1736
  842
1745
1737
  843
1746
- 844</pre>
1738
+ 844
1739
+ 845
1740
+ 846
1741
+ 847
1742
+ 848
1743
+ 849
1744
+ 850
1745
+ 851
1746
+ 852</pre>
1747
1747
  </td>
1748
1748
  <td>
1749
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 720</span>
1749
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 728</span>
1750
1750
 
1751
1751
  <span class='kw'>class</span> <span class='const'>Browser</span>
1752
1752
  <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:agent</span>
@@ -1922,14 +1922,6 @@ browser.is_msie_gt_4_1__on_windows?
1922
1922
  <pre class="lines">
1923
1923
 
1924
1924
 
1925
- 720
1926
- 721
1927
- 722
1928
- 723
1929
- 724
1930
- 725
1931
- 726
1932
- 727
1933
1925
  728
1934
1926
  729
1935
1927
  730
@@ -2046,10 +2038,18 @@ browser.is_msie_gt_4_1__on_windows?
2046
2038
  841
2047
2039
  842
2048
2040
  843
2049
- 844</pre>
2041
+ 844
2042
+ 845
2043
+ 846
2044
+ 847
2045
+ 848
2046
+ 849
2047
+ 850
2048
+ 851
2049
+ 852</pre>
2050
2050
  </td>
2051
2051
  <td>
2052
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 720</span>
2052
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 728</span>
2053
2053
 
2054
2054
  <span class='kw'>class</span> <span class='const'>Browser</span>
2055
2055
  <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:agent</span>
@@ -2225,14 +2225,6 @@ browser.is_msie_gt_4_1__on_windows?
2225
2225
  <pre class="lines">
2226
2226
 
2227
2227
 
2228
- 720
2229
- 721
2230
- 722
2231
- 723
2232
- 724
2233
- 725
2234
- 726
2235
- 727
2236
2228
  728
2237
2229
  729
2238
2230
  730
@@ -2349,10 +2341,18 @@ browser.is_msie_gt_4_1__on_windows?
2349
2341
  841
2350
2342
  842
2351
2343
  843
2352
- 844</pre>
2344
+ 844
2345
+ 845
2346
+ 846
2347
+ 847
2348
+ 848
2349
+ 849
2350
+ 850
2351
+ 851
2352
+ 852</pre>
2353
2353
  </td>
2354
2354
  <td>
2355
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 720</span>
2355
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 728</span>
2356
2356
 
2357
2357
  <span class='kw'>class</span> <span class='const'>Browser</span>
2358
2358
  <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:agent</span>
@@ -2540,12 +2540,12 @@ browser.is_msie_gt_4_1__on_windows?
2540
2540
  <pre class="lines">
2541
2541
 
2542
2542
 
2543
- 787
2544
- 788
2545
- 789</pre>
2543
+ 795
2544
+ 796
2545
+ 797</pre>
2546
2546
  </td>
2547
2547
  <td>
2548
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 787</span>
2548
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 795</span>
2549
2549
 
2550
2550
  <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
2551
2551
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_classes'>classes</span>
@@ -2560,7 +2560,7 @@ browser.is_msie_gt_4_1__on_windows?
2560
2560
  </div>
2561
2561
 
2562
2562
  <div id="footer">
2563
- Generated on Fri Feb 8 08:12:33 2013 by
2563
+ Generated on Wed Feb 13 11:29:27 2013 by
2564
2564
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2565
2565
  0.8.4.1 (ruby-1.9.3).
2566
2566
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Fri Feb 8 08:12:32 2013 by
119
+ Generated on Wed Feb 13 11:29:25 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.4.1 (ruby-1.9.3).
122
122
  </div>
@@ -476,7 +476,7 @@
476
476
  </div>
477
477
 
478
478
  <div id="footer">
479
- Generated on Fri Feb 8 08:12:32 2013 by
479
+ Generated on Wed Feb 13 11:29:26 2013 by
480
480
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
481
481
  0.8.4.1 (ruby-1.9.3).
482
482
  </div>
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Fri Feb 8 08:12:32 2013 by
128
+ Generated on Wed Feb 13 11:29:25 2013 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.8.4.1 (ruby-1.9.3).
131
131
  </div>
@@ -520,7 +520,7 @@
520
520
  </div>
521
521
 
522
522
  <div id="footer">
523
- Generated on Fri Feb 8 08:12:32 2013 by
523
+ Generated on Wed Feb 13 11:29:26 2013 by
524
524
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
525
525
  0.8.4.1 (ruby-1.9.3).
526
526
  </div>
@@ -231,12 +231,12 @@
231
231
  <pre class="lines">
232
232
 
233
233
 
234
- 492
235
- 493
236
- 494</pre>
234
+ 500
235
+ 501
236
+ 502</pre>
237
237
  </td>
238
238
  <td>
239
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 492</span>
239
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 500</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'>&quot;</span><span class='tstring_end'>&quot;</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'>&quot;</span><span class='tstring_content'>,</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</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,18 +309,18 @@
309
309
  <pre class="lines">
310
310
 
311
311
 
312
- 478
313
- 479
314
- 480
315
- 481
316
- 482
317
- 483
318
- 484
319
- 485
320
- 486</pre>
312
+ 486
313
+ 487
314
+ 488
315
+ 489
316
+ 490
317
+ 491
318
+ 492
319
+ 493
320
+ 494</pre>
321
321
  </td>
322
322
  <td>
323
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 478</span>
323
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 486</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 Fri Feb 8 08:12:32 2013 by
344
+ Generated on Wed Feb 13 11:29:26 2013 by
345
345
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
346
346
  0.8.4.1 (ruby-1.9.3).
347
347
  </div>
@@ -277,13 +277,13 @@
277
277
  <pre class="lines">
278
278
 
279
279
 
280
- 615
281
- 616
282
- 617
283
- 618</pre>
280
+ 623
281
+ 624
282
+ 625
283
+ 626</pre>
284
284
  </td>
285
285
  <td>
286
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 615</span>
286
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 623</span>
287
287
 
288
288
  <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>
289
289
  <span class='kw'>self</span><span class='period'>.</span><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>
@@ -400,22 +400,22 @@
400
400
  <pre class="lines">
401
401
 
402
402
 
403
- 569
404
- 570
405
- 571
406
- 572
407
- 573
408
- 574
409
- 575
410
- 576
411
403
  577
412
404
  578
413
405
  579
414
406
  580
415
- 581</pre>
407
+ 581
408
+ 582
409
+ 583
410
+ 584
411
+ 585
412
+ 586
413
+ 587
414
+ 588
415
+ 589</pre>
416
416
  </td>
417
417
  <td>
418
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 569</span>
418
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 577</span>
419
419
 
420
420
  <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>
421
421
  <span class='kw'>self</span><span class='period'>.</span><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>
@@ -498,13 +498,13 @@
498
498
  <pre class="lines">
499
499
 
500
500
 
501
- 606
502
- 607
503
- 608
504
- 609</pre>
501
+ 614
502
+ 615
503
+ 616
504
+ 617</pre>
505
505
  </td>
506
506
  <td>
507
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 606</span>
507
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 614</span>
508
508
 
509
509
  <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>
510
510
  <span class='kw'>self</span><span class='period'>.</span><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>
@@ -578,23 +578,23 @@
578
578
  <pre class="lines">
579
579
 
580
580
 
581
- 587
582
- 588
583
- 589
584
- 590
585
- 591
586
- 592
587
- 593
588
- 594
589
581
  595
590
582
  596
591
583
  597
592
584
  598
593
585
  599
594
- 600</pre>
586
+ 600
587
+ 601
588
+ 602
589
+ 603
590
+ 604
591
+ 605
592
+ 606
593
+ 607
594
+ 608</pre>
595
595
  </td>
596
596
  <td>
597
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 587</span>
597
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 595</span>
598
598
 
599
599
  <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>
600
600
  <span class='kw'>self</span><span class='period'>.</span><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>
@@ -620,7 +620,7 @@
620
620
  </div>
621
621
 
622
622
  <div id="footer">
623
- Generated on Fri Feb 8 08:12:32 2013 by
623
+ Generated on Wed Feb 13 11:29:26 2013 by
624
624
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
625
625
  0.8.4.1 (ruby-1.9.3).
626
626
  </div>
@@ -277,12 +277,12 @@
277
277
  <pre class="lines">
278
278
 
279
279
 
280
- 700
281
- 701
282
- 702</pre>
280
+ 708
281
+ 709
282
+ 710</pre>
283
283
  </td>
284
284
  <td>
285
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 700</span>
285
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 708</span>
286
286
 
287
287
  <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>
288
288
  <span class='kw'>self</span><span class='period'>.</span><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>
@@ -398,12 +398,12 @@
398
398
  <pre class="lines">
399
399
 
400
400
 
401
- 676
402
- 677
403
- 678</pre>
401
+ 684
402
+ 685
403
+ 686</pre>
404
404
  </td>
405
405
  <td>
406
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 676</span>
406
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 684</span>
407
407
 
408
408
  <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>
409
409
  <span class='kw'>self</span><span class='period'>.</span><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>
@@ -476,12 +476,12 @@
476
476
  <pre class="lines">
477
477
 
478
478
 
479
- 692
480
- 693
481
- 694</pre>
479
+ 700
480
+ 701
481
+ 702</pre>
482
482
  </td>
483
483
  <td>
484
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 692</span>
484
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 700</span>
485
485
 
486
486
  <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>
487
487
  <span class='kw'>self</span><span class='period'>.</span><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>
@@ -554,12 +554,12 @@
554
554
  <pre class="lines">
555
555
 
556
556
 
557
- 684
558
- 685
559
- 686</pre>
557
+ 692
558
+ 693
559
+ 694</pre>
560
560
  </td>
561
561
  <td>
562
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 684</span>
562
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 692</span>
563
563
 
564
564
  <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>
565
565
  <span class='kw'>self</span><span class='period'>.</span><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>
@@ -574,7 +574,7 @@
574
574
  </div>
575
575
 
576
576
  <div id="footer">
577
- Generated on Fri Feb 8 08:12:32 2013 by
577
+ Generated on Wed Feb 13 11:29:26 2013 by
578
578
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
579
579
  0.8.4.1 (ruby-1.9.3).
580
580
  </div>
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Fri Feb 8 08:12:32 2013 by
128
+ Generated on Wed Feb 13 11:29:25 2013 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.8.4.1 (ruby-1.9.3).
131
131
  </div>
@@ -1072,7 +1072,7 @@
1072
1072
  </div>
1073
1073
 
1074
1074
  <div id="footer">
1075
- Generated on Fri Feb 8 08:12:32 2013 by
1075
+ Generated on Wed Feb 13 11:29:25 2013 by
1076
1076
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1077
1077
  0.8.4.1 (ruby-1.9.3).
1078
1078
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Fri Feb 8 08:12:31 2013 by
119
+ Generated on Wed Feb 13 11:29:25 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.4.1 (ruby-1.9.3).
122
122
  </div>
@@ -323,7 +323,7 @@
323
323
  </div>
324
324
 
325
325
  <div id="footer">
326
- Generated on Fri Feb 8 08:12:32 2013 by
326
+ Generated on Wed Feb 13 11:29:25 2013 by
327
327
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
328
328
  0.8.4.1 (ruby-1.9.3).
329
329
  </div>
@@ -1725,7 +1725,7 @@ Brauser::Browser.new.is(:msie).v("&gt;= 7").on?(:windows)
1725
1725
  </div>
1726
1726
 
1727
1727
  <div id="footer">
1728
- Generated on Fri Feb 8 08:12:32 2013 by
1728
+ Generated on Wed Feb 13 11:29:26 2013 by
1729
1729
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1730
1730
  0.8.4.1 (ruby-1.9.3).
1731
1731
  </div>
@@ -149,7 +149,7 @@
149
149
 
150
150
  </div>
151
151
  </dt>
152
- <dd><pre class="code"><span class='int'>1</span></pre></dd>
152
+ <dd><pre class="code"><span class='int'>2</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 Fri Feb 8 08:12:32 2013 by
183
+ Generated on Wed Feb 13 11:29:25 2013 by
184
184
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
185
  0.8.4.1 (ruby-1.9.3).
186
186
  </div>
data/doc/_index.html CHANGED
@@ -266,7 +266,7 @@
266
266
  </div>
267
267
 
268
268
  <div id="footer">
269
- Generated on Fri Feb 8 08:12:31 2013 by
269
+ Generated on Wed Feb 13 11:29:25 2013 by
270
270
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
271
271
  0.8.4.1 (ruby-1.9.3).
272
272
  </div>
data/doc/file.README.html CHANGED
@@ -280,7 +280,7 @@ browser.register_language("it", "Italian")
280
280
  </div></div>
281
281
 
282
282
  <div id="footer">
283
- Generated on Fri Feb 8 08:12:31 2013 by
283
+ Generated on Wed Feb 13 11:29:25 2013 by
284
284
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
285
285
  0.8.4.1 (ruby-1.9.3).
286
286
  </div>
data/doc/index.html CHANGED
@@ -280,7 +280,7 @@ browser.register_language("it", "Italian")
280
280
  </div></div>
281
281
 
282
282
  <div id="footer">
283
- Generated on Fri Feb 8 08:12:31 2013 by
283
+ Generated on Wed Feb 13 11:29:25 2013 by
284
284
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
285
285
  0.8.4.1 (ruby-1.9.3).
286
286
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Fri Feb 8 08:12:31 2013 by
106
+ Generated on Wed Feb 13 11:29:25 2013 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.4.1 (ruby-1.9.3).
109
109
  </div>
@@ -448,14 +448,22 @@ module Brauser
448
448
  alias :meta :classes
449
449
 
450
450
  private
451
- # Stringifies a browser name.
451
+ # Stringifies a browser name(s).
452
452
  #
453
453
  # @param name [Boolean] If non falsy, the string to prepend to the name. If falsy, the name information will not be included.
454
454
  # @param block [Proc] A block to translate browser name.
455
- # @return [String|nil] The browser name or `nil`, if it was set to be skipped
455
+ # @return [String|Array|nil] The browser name(s) or `nil`, if it was set to be skipped
456
456
  def stringify_name(name, &block)
457
- name = "" if name == true
458
- !name ? nil : "#{name}#{block_given? ? yield(@name, @version, @platform) : (@name || self.parse_agent(@agent))}"
457
+ if !name then
458
+ nil
459
+ else
460
+ name = "" if name == true
461
+ self.parse_agent(@agent) if !@name
462
+ block ||= Proc.new {|name, *| name == :msie_compatibility ? [:msie_compatibility, :msie] : name }
463
+
464
+ names = block.call(@name, @version, @platform).ensure_array.collect {|n| "#{name}#{n}" }
465
+ names.length > 1 ? names : names.first
466
+ end
459
467
  end
460
468
 
461
469
  # Stringifies a browser version.
@@ -625,7 +633,7 @@ module Brauser
625
633
  def adjust_names(names)
626
634
  # Adjust names
627
635
  names = names.ensure_array.compact.collect {|n| n.ensure_string.to_sym }
628
- names << [:msie] if names.include?(:ie)
636
+ names << [:msie, :msie_compatibility] if names.include?(:ie)
629
637
  names << [:chromium] if names.include?(:chrome)
630
638
  names << [:chrome, :firefox, :safari, :opera, :msie] if names.include?(:capable)
631
639
  names << [:ipad, :android, :kindle] if names.include?(:tablet)
@@ -16,7 +16,7 @@ module Brauser
16
16
  MINOR = 0
17
17
 
18
18
  # The patch version.
19
- PATCH = 1
19
+ PATCH = 2
20
20
 
21
21
  # The current version of brauser.
22
22
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
@@ -648,8 +648,13 @@ describe Brauser::Browser do
648
648
  expect(browser.classes("@")).to eq("chrome@version-1@version-1_2@version-1_2_A@version-1_2_A_4@platform-osx")
649
649
  end
650
650
 
651
+ it "should handle msie compatibility" do
652
+ browser.instance_variable_set("@name", :msie_compatibility)
653
+ expect(browser.classes(false, true, false, false)).to eq(["msie_compatibility", "msie"])
654
+ end
655
+
651
656
  it "should transform name" do
652
- expect(browser.classes(" ", true, false, false) { |name, version, platform| name.to_s.upcase }).to eq("CHROME")
657
+ expect(browser.classes(" ", true, false, false) { |name, *| name.to_s.upcase }).to eq("CHROME")
653
658
  end
654
659
  end
655
660
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brauser
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-08 00:00:00.000000000 Z
12
+ date: 2013-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: lazier
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 2.6.4
21
+ version: 2.6.5
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 2.6.4
29
+ version: 2.6.5
30
30
  description: A framework agnostic browser detection and querying helper.
31
31
  email:
32
32
  - shogun_panda@me.com
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  segments:
105
105
  - 0
106
- hash: 3676812200537784547
106
+ hash: 4231717086042252965
107
107
  requirements: []
108
108
  rubyforge_project: brauser
109
109
  rubygems_version: 1.8.25