brauser 3.2.2 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.travis-gemfile +2 -2
- data/CHANGELOG.md +4 -0
- data/Gemfile +4 -4
- data/README.md +1 -0
- data/brauser.gemspec +2 -1
- data/doc/Brauser.html +3 -3
- data/doc/Brauser/Browser.html +252 -252
- data/doc/Brauser/BrowserMethods.html +3 -3
- data/doc/Brauser/BrowserMethods/Attributes.html +20 -20
- data/doc/Brauser/BrowserMethods/General.html +3 -3
- data/doc/Brauser/BrowserMethods/General/ClassMethods.html +27 -27
- data/doc/Brauser/BrowserMethods/Parsing.html +18 -18
- data/doc/Brauser/BrowserMethods/PartialQuerying.html +40 -38
- data/doc/Brauser/BrowserMethods/Querying.html +126 -21
- data/doc/Brauser/BrowserMethods/Register.html +3 -3
- data/doc/Brauser/BrowserMethods/Register/ClassMethods.html +5 -5
- data/doc/Brauser/Chainers.html +14 -13
- data/doc/Brauser/Definition.html +33 -23
- data/doc/Brauser/Hooks.html +3 -3
- data/doc/Brauser/Hooks/RubyOnRails.html +3 -3
- data/doc/Brauser/Queries.html +20 -19
- data/doc/Brauser/Query.html +15 -15
- data/doc/Brauser/Version.html +4 -4
- data/doc/_index.html +4 -4
- data/doc/css/style.css +1 -1
- data/doc/file.README.html +5 -4
- data/doc/frames.html +5 -7
- data/doc/index.html +5 -4
- data/doc/js/app.js +7 -2
- data/doc/method_list.html +17 -11
- data/doc/top-level-namespace.html +3 -3
- data/lib/brauser/browser.rb +59 -27
- data/lib/brauser/definition.rb +4 -3
- data/lib/brauser/query.rb +4 -2
- data/lib/brauser/version.rb +1 -1
- data/spec/brauser/browser_spec.rb +16 -0
- data/spec/supported.yml +3 -0
- metadata +9 -5
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Brauser::BrowserMethods::Register
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -125,9 +125,9 @@
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on
|
128
|
+
Generated on Sat Nov 16 10:49:21 2013 by
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
|
-
0.8.7 (ruby-2.0.0).
|
130
|
+
0.8.7.3 (ruby-2.0.0).
|
131
131
|
</div>
|
132
132
|
|
133
133
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Brauser::BrowserMethods::Register::ClassMethods
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -664,7 +664,7 @@
|
|
664
664
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>xh</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Xshosa</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
665
665
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ji</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Yiddish</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
666
666
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>zu</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Zulu</span><span class='tstring_end'>"</span></span>
|
667
|
-
<span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier
|
667
|
+
<span class='rbrace'>}</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_code'>code</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='op'>|</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Definition</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_code'>code</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_code'>code</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
|
668
668
|
<span class='kw'>end</span></pre>
|
669
669
|
</td>
|
670
670
|
</tr>
|
@@ -749,7 +749,7 @@
|
|
749
749
|
<span class='lbracket'>[</span><span class='symbol'>:linux</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Linux</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>linux</span><span class='regexp_end'>/i</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
750
750
|
<span class='lbracket'>[</span><span class='symbol'>:osx</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Apple MacOS X</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>mac|macintosh|mac os x</span><span class='regexp_end'>/i</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
751
751
|
<span class='lbracket'>[</span><span class='symbol'>:windows</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Microsoft Windows</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>windows</span><span class='regexp_end'>/i</span></span><span class='rbracket'>]</span>
|
752
|
-
<span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier
|
752
|
+
<span class='rbracket'>]</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_platform'>platform</span><span class='op'>|</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Definition</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:new</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_platform'>platform</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
|
753
753
|
<span class='kw'>end</span></pre>
|
754
754
|
</td>
|
755
755
|
</tr>
|
@@ -761,9 +761,9 @@
|
|
761
761
|
</div>
|
762
762
|
|
763
763
|
<div id="footer">
|
764
|
-
Generated on
|
764
|
+
Generated on Sat Nov 16 10:49:21 2013 by
|
765
765
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
766
|
-
0.8.7 (ruby-2.0.0).
|
766
|
+
0.8.7.3 (ruby-2.0.0).
|
767
767
|
</div>
|
768
768
|
|
769
769
|
</body>
|
data/doc/Brauser/Chainers.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Brauser::Chainers
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -277,13 +277,13 @@
|
|
277
277
|
<pre class="lines">
|
278
278
|
|
279
279
|
|
280
|
-
47
|
281
280
|
48
|
282
281
|
49
|
283
|
-
50
|
282
|
+
50
|
283
|
+
51</pre>
|
284
284
|
</td>
|
285
285
|
<td>
|
286
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
286
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 48</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='ivar'>@result</span> <span class='op'>=</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>
|
@@ -480,13 +480,13 @@
|
|
480
480
|
<pre class="lines">
|
481
481
|
|
482
482
|
|
483
|
-
38
|
484
483
|
39
|
485
484
|
40
|
486
|
-
41
|
485
|
+
41
|
486
|
+
42</pre>
|
487
487
|
</td>
|
488
488
|
<td>
|
489
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
489
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 39</span>
|
490
490
|
|
491
491
|
<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>
|
492
492
|
<span class='ivar'>@result</span> <span class='op'>=</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>
|
@@ -529,7 +529,8 @@
|
|
529
529
|
|
530
530
|
|
531
531
|
—
|
532
|
-
<div class='inline'><p>A string in the form <code>operator version && ...</code> (example: <code>>= 7 && < 4</code>) or an hash with specific version to match against,
|
532
|
+
<div class='inline'><p>A string in the form <code>operator version && ...</code> (example: <code>>= 7 && < 4</code>) or an hash with specific version to match against,
|
533
|
+
in form <code>{:operator => version}</code>, where operator is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p>
|
533
534
|
</div>
|
534
535
|
|
535
536
|
</li>
|
@@ -560,13 +561,13 @@
|
|
560
561
|
<pre class="lines">
|
561
562
|
|
562
563
|
|
563
|
-
29
|
564
564
|
30
|
565
565
|
31
|
566
|
-
32
|
566
|
+
32
|
567
|
+
33</pre>
|
567
568
|
</td>
|
568
569
|
<td>
|
569
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
570
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 30</span>
|
570
571
|
|
571
572
|
<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>
|
572
573
|
<span class='ivar'>@result</span> <span class='op'>=</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>
|
@@ -582,9 +583,9 @@
|
|
582
583
|
</div>
|
583
584
|
|
584
585
|
<div id="footer">
|
585
|
-
Generated on
|
586
|
+
Generated on Sat Nov 16 10:49:21 2013 by
|
586
587
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
587
|
-
0.8.7 (ruby-2.0.0).
|
588
|
+
0.8.7.3 (ruby-2.0.0).
|
588
589
|
</div>
|
589
590
|
|
590
591
|
</body>
|
data/doc/Brauser/Definition.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Brauser::Definition
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -489,7 +489,8 @@ This class represents a detection of the current user browser.</p>
|
|
489
489
|
50
|
490
490
|
51
|
491
491
|
52
|
492
|
-
53
|
492
|
+
53
|
493
|
+
54</pre>
|
493
494
|
</td>
|
494
495
|
<td>
|
495
496
|
<pre class="code"><span class="info file"># File 'lib/brauser/definition.rb', line 19</span>
|
@@ -517,13 +518,14 @@ This class represents a detection of the current user browser.</p>
|
|
517
518
|
</span> <span class='comment'># @return [Object|NilClass] A match if matcher succeeded, `nil` otherwise.
|
518
519
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
519
520
|
<span class='id identifier rubyid_matcher'>matcher</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span> <span class='op'>||</span> <span class='symbol'>:primary</span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='kw'>nil</span>
|
521
|
+
<span class='id identifier rubyid_target'>target</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
|
520
522
|
|
521
523
|
<span class='kw'>if</span> <span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Regexp</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
522
|
-
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier
|
524
|
+
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='rparen'>)</span>
|
523
525
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:call</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
524
526
|
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
525
|
-
<span class='kw'>elsif</span> <span class='id identifier rubyid_matcher'>matcher</span>
|
526
|
-
<span class='id identifier
|
527
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>==</span> <span class='id identifier rubyid_matcher'>matcher</span>
|
528
|
+
<span class='id identifier rubyid_target'>target</span>
|
527
529
|
<span class='kw'>else</span>
|
528
530
|
<span class='kw'>nil</span>
|
529
531
|
<span class='kw'>end</span>
|
@@ -612,7 +614,8 @@ This class represents a detection of the current user browser.</p>
|
|
612
614
|
50
|
613
615
|
51
|
614
616
|
52
|
615
|
-
53
|
617
|
+
53
|
618
|
+
54</pre>
|
616
619
|
</td>
|
617
620
|
<td>
|
618
621
|
<pre class="code"><span class="info file"># File 'lib/brauser/definition.rb', line 19</span>
|
@@ -640,13 +643,14 @@ This class represents a detection of the current user browser.</p>
|
|
640
643
|
</span> <span class='comment'># @return [Object|NilClass] A match if matcher succeeded, `nil` otherwise.
|
641
644
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
642
645
|
<span class='id identifier rubyid_matcher'>matcher</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span> <span class='op'>||</span> <span class='symbol'>:primary</span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='kw'>nil</span>
|
646
|
+
<span class='id identifier rubyid_target'>target</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
|
643
647
|
|
644
648
|
<span class='kw'>if</span> <span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Regexp</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
645
|
-
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier
|
649
|
+
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='rparen'>)</span>
|
646
650
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:call</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
647
651
|
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
648
|
-
<span class='kw'>elsif</span> <span class='id identifier rubyid_matcher'>matcher</span>
|
649
|
-
<span class='id identifier
|
652
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>==</span> <span class='id identifier rubyid_matcher'>matcher</span>
|
653
|
+
<span class='id identifier rubyid_target'>target</span>
|
650
654
|
<span class='kw'>else</span>
|
651
655
|
<span class='kw'>nil</span>
|
652
656
|
<span class='kw'>end</span>
|
@@ -735,7 +739,8 @@ This class represents a detection of the current user browser.</p>
|
|
735
739
|
50
|
736
740
|
51
|
737
741
|
52
|
738
|
-
53
|
742
|
+
53
|
743
|
+
54</pre>
|
739
744
|
</td>
|
740
745
|
<td>
|
741
746
|
<pre class="code"><span class="info file"># File 'lib/brauser/definition.rb', line 19</span>
|
@@ -763,13 +768,14 @@ This class represents a detection of the current user browser.</p>
|
|
763
768
|
</span> <span class='comment'># @return [Object|NilClass] A match if matcher succeeded, `nil` otherwise.
|
764
769
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
765
770
|
<span class='id identifier rubyid_matcher'>matcher</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span> <span class='op'>||</span> <span class='symbol'>:primary</span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='kw'>nil</span>
|
771
|
+
<span class='id identifier rubyid_target'>target</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
|
766
772
|
|
767
773
|
<span class='kw'>if</span> <span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Regexp</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
768
|
-
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier
|
774
|
+
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='rparen'>)</span>
|
769
775
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:call</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
770
776
|
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
771
|
-
<span class='kw'>elsif</span> <span class='id identifier rubyid_matcher'>matcher</span>
|
772
|
-
<span class='id identifier
|
777
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>==</span> <span class='id identifier rubyid_matcher'>matcher</span>
|
778
|
+
<span class='id identifier rubyid_target'>target</span>
|
773
779
|
<span class='kw'>else</span>
|
774
780
|
<span class='kw'>nil</span>
|
775
781
|
<span class='kw'>end</span>
|
@@ -858,7 +864,8 @@ This class represents a detection of the current user browser.</p>
|
|
858
864
|
50
|
859
865
|
51
|
860
866
|
52
|
861
|
-
53
|
867
|
+
53
|
868
|
+
54</pre>
|
862
869
|
</td>
|
863
870
|
<td>
|
864
871
|
<pre class="code"><span class="info file"># File 'lib/brauser/definition.rb', line 19</span>
|
@@ -886,13 +893,14 @@ This class represents a detection of the current user browser.</p>
|
|
886
893
|
</span> <span class='comment'># @return [Object|NilClass] A match if matcher succeeded, `nil` otherwise.
|
887
894
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
888
895
|
<span class='id identifier rubyid_matcher'>matcher</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span> <span class='op'>||</span> <span class='symbol'>:primary</span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='kw'>nil</span>
|
896
|
+
<span class='id identifier rubyid_target'>target</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
|
889
897
|
|
890
898
|
<span class='kw'>if</span> <span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Regexp</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
891
|
-
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier
|
899
|
+
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='rparen'>)</span>
|
892
900
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:call</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
893
901
|
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
894
|
-
<span class='kw'>elsif</span> <span class='id identifier rubyid_matcher'>matcher</span>
|
895
|
-
<span class='id identifier
|
902
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>==</span> <span class='id identifier rubyid_matcher'>matcher</span>
|
903
|
+
<span class='id identifier rubyid_target'>target</span>
|
896
904
|
<span class='kw'>else</span>
|
897
905
|
<span class='kw'>nil</span>
|
898
906
|
<span class='kw'>end</span>
|
@@ -998,20 +1006,22 @@ This class represents a detection of the current user browser.</p>
|
|
998
1006
|
49
|
999
1007
|
50
|
1000
1008
|
51
|
1001
|
-
52
|
1009
|
+
52
|
1010
|
+
53</pre>
|
1002
1011
|
</td>
|
1003
1012
|
<td>
|
1004
1013
|
<pre class="code"><span class="info file"># File 'lib/brauser/definition.rb', line 40</span>
|
1005
1014
|
|
1006
1015
|
<span class='kw'>def</span> <span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
1007
1016
|
<span class='id identifier rubyid_matcher'>matcher</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span> <span class='op'>||</span> <span class='symbol'>:primary</span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='kw'>nil</span>
|
1017
|
+
<span class='id identifier rubyid_target'>target</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
|
1008
1018
|
|
1009
1019
|
<span class='kw'>if</span> <span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Regexp</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
1010
|
-
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier
|
1020
|
+
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='rparen'>)</span>
|
1011
1021
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:call</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
1012
1022
|
<span class='id identifier rubyid_matcher'>matcher</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
1013
|
-
<span class='kw'>elsif</span> <span class='id identifier rubyid_matcher'>matcher</span>
|
1014
|
-
<span class='id identifier
|
1023
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>==</span> <span class='id identifier rubyid_matcher'>matcher</span>
|
1024
|
+
<span class='id identifier rubyid_target'>target</span>
|
1015
1025
|
<span class='kw'>else</span>
|
1016
1026
|
<span class='kw'>nil</span>
|
1017
1027
|
<span class='kw'>end</span>
|
@@ -1026,9 +1036,9 @@ This class represents a detection of the current user browser.</p>
|
|
1026
1036
|
</div>
|
1027
1037
|
|
1028
1038
|
<div id="footer">
|
1029
|
-
Generated on
|
1039
|
+
Generated on Sat Nov 16 10:49:22 2013 by
|
1030
1040
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1031
|
-
0.8.7 (ruby-2.0.0).
|
1041
|
+
0.8.7.3 (ruby-2.0.0).
|
1032
1042
|
</div>
|
1033
1043
|
|
1034
1044
|
</body>
|
data/doc/Brauser/Hooks.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Brauser::Hooks
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -116,9 +116,9 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Sat Nov 16 10:49:21 2013 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
|
-
0.8.7 (ruby-2.0.0).
|
121
|
+
0.8.7.3 (ruby-2.0.0).
|
122
122
|
</div>
|
123
123
|
|
124
124
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Brauser::Hooks::RubyOnRails
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -323,9 +323,9 @@
|
|
323
323
|
</div>
|
324
324
|
|
325
325
|
<div id="footer">
|
326
|
-
Generated on
|
326
|
+
Generated on Sat Nov 16 10:49:21 2013 by
|
327
327
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
328
|
-
0.8.7 (ruby-2.0.0).
|
328
|
+
0.8.7.3 (ruby-2.0.0).
|
329
329
|
</div>
|
330
330
|
|
331
331
|
</body>
|
data/doc/Brauser/Queries.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Brauser::Queries
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -279,12 +279,12 @@
|
|
279
279
|
<pre class="lines">
|
280
280
|
|
281
281
|
|
282
|
-
|
283
|
-
|
284
|
-
|
282
|
+
98
|
283
|
+
99
|
284
|
+
100</pre>
|
285
285
|
</td>
|
286
286
|
<td>
|
287
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
287
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 98</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='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</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='op'>:</span> <span class='ivar'>@result</span>
|
@@ -402,12 +402,12 @@
|
|
402
402
|
<pre class="lines">
|
403
403
|
|
404
404
|
|
405
|
-
66
|
406
405
|
67
|
407
|
-
68
|
406
|
+
68
|
407
|
+
69</pre>
|
408
408
|
</td>
|
409
409
|
<td>
|
410
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
410
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 67</span>
|
411
411
|
|
412
412
|
<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>
|
413
413
|
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</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='op'>:</span> <span class='ivar'>@result</span>
|
@@ -482,12 +482,12 @@
|
|
482
482
|
<pre class="lines">
|
483
483
|
|
484
484
|
|
485
|
-
|
486
|
-
|
487
|
-
|
485
|
+
88
|
486
|
+
89
|
487
|
+
90</pre>
|
488
488
|
</td>
|
489
489
|
<td>
|
490
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
490
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 88</span>
|
491
491
|
|
492
492
|
<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>
|
493
493
|
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</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='op'>:</span> <span class='ivar'>@result</span>
|
@@ -531,7 +531,8 @@
|
|
531
531
|
|
532
532
|
|
533
533
|
—
|
534
|
-
<div class='inline'><p>A string in the form <code>operator version && ...</code> (example: <code>>= 7 && < 4</code>) or an hash with specific version to match against,
|
534
|
+
<div class='inline'><p>A string in the form <code>operator version && ...</code> (example: <code>>= 7 && < 4</code>) or an hash with specific version to match against,
|
535
|
+
in form <code>{:operator => version}</code>, where operator is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p>
|
535
536
|
</div>
|
536
537
|
|
537
538
|
</li>
|
@@ -562,12 +563,12 @@
|
|
562
563
|
<pre class="lines">
|
563
564
|
|
564
565
|
|
565
|
-
|
566
|
-
|
567
|
-
|
566
|
+
78
|
567
|
+
79
|
568
|
+
80</pre>
|
568
569
|
</td>
|
569
570
|
<td>
|
570
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
571
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 78</span>
|
571
572
|
|
572
573
|
<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>
|
573
574
|
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</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='op'>:</span> <span class='ivar'>@result</span>
|
@@ -582,9 +583,9 @@
|
|
582
583
|
</div>
|
583
584
|
|
584
585
|
<div id="footer">
|
585
|
-
Generated on
|
586
|
+
Generated on Sat Nov 16 10:49:21 2013 by
|
586
587
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
587
|
-
0.8.7 (ruby-2.0.0).
|
588
|
+
0.8.7.3 (ruby-2.0.0).
|
588
589
|
</div>
|
589
590
|
|
590
591
|
</body>
|
data/doc/Brauser/Query.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Brauser::Query
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -305,13 +305,13 @@ Brauser::Browser.new.is(:msie).v(">= 7").on?(:windows)
|
|
305
305
|
<pre class="lines">
|
306
306
|
|
307
307
|
|
308
|
-
124
|
309
|
-
125
|
310
308
|
126
|
311
|
-
127
|
309
|
+
127
|
310
|
+
128
|
311
|
+
129</pre>
|
312
312
|
</td>
|
313
313
|
<td>
|
314
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
314
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 126</span>
|
315
315
|
|
316
316
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
317
317
|
<span class='ivar'>@target</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span>
|
@@ -371,8 +371,6 @@ Brauser::Browser.new.is(:msie).v(">= 7").on?(:windows)
|
|
371
371
|
<pre class="lines">
|
372
372
|
|
373
373
|
|
374
|
-
113
|
375
|
-
114
|
376
374
|
115
|
377
375
|
116
|
378
376
|
117
|
@@ -386,10 +384,12 @@ Brauser::Browser.new.is(:msie).v(">= 7").on?(:windows)
|
|
386
384
|
125
|
387
385
|
126
|
388
386
|
127
|
389
|
-
128
|
387
|
+
128
|
388
|
+
129
|
389
|
+
130</pre>
|
390
390
|
</td>
|
391
391
|
<td>
|
392
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
392
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 115</span>
|
393
393
|
|
394
394
|
<span class='kw'>class</span> <span class='const'>Query</span>
|
395
395
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:target</span>
|
@@ -456,8 +456,6 @@ Brauser::Browser.new.is(:msie).v(">= 7").on?(:windows)
|
|
456
456
|
<pre class="lines">
|
457
457
|
|
458
458
|
|
459
|
-
113
|
460
|
-
114
|
461
459
|
115
|
462
460
|
116
|
463
461
|
117
|
@@ -471,10 +469,12 @@ Brauser::Browser.new.is(:msie).v(">= 7").on?(:windows)
|
|
471
469
|
125
|
472
470
|
126
|
473
471
|
127
|
474
|
-
128
|
472
|
+
128
|
473
|
+
129
|
474
|
+
130</pre>
|
475
475
|
</td>
|
476
476
|
<td>
|
477
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
477
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 115</span>
|
478
478
|
|
479
479
|
<span class='kw'>class</span> <span class='const'>Query</span>
|
480
480
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:target</span>
|
@@ -503,9 +503,9 @@ 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 Sat Nov 16 10:49:21 2013 by
|
507
507
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
508
|
-
0.8.7 (ruby-2.0.0).
|
508
|
+
0.8.7.3 (ruby-2.0.0).
|
509
509
|
</div>
|
510
510
|
|
511
511
|
</body>
|