brauser 3.3.1 → 3.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3768c1d24d04b260cbd5717b09d7463e23eac76
4
- data.tar.gz: 12fc0c6085ee5c9702ec3ece64445bbb4ee1ce84
3
+ metadata.gz: 0c199ed2bb20255c6bfe075a1a0b651dc1d3b7ec
4
+ data.tar.gz: f9c6e8d66a881d7ccbae6c8bcd4c6e520f022464
5
5
  SHA512:
6
- metadata.gz: 403a97fe91ca77468464d3f9d64ee87598a4da8d1deec0b5041353189ab17af764fac3445e1d11ba99f40688240e5ddf573b964384827836356e06b5c0820659
7
- data.tar.gz: 6ab8f650cf663dd1a785aa0fe1cee2ee3bc873108377d4a6e4d4be29042a3a167a7157b79d68c4efa8190d80cf7034b5016ead91ea480f33e2eee8023d7d0e87
6
+ metadata.gz: 709a5a19e9a881bc10000ce9b7d41a91785ae4158d72b42a94aae0e96b270bc0530e7996551a8a18f236dbd6a47e4858c81b7df4fd696917da79022f80156ff4
7
+ data.tar.gz: 02435f0e763bec43834ec856e6072f3e1baf371d00036ed745d10a952ee31e0fac8bb70231baa605f7f912a613eb90dc6c92aad4cf3b7373a92ca422d19af19f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 3.3.2 / 2014-05-22
2
+
3
+ * Added definitions for Microsoft Internet Explorer 11.
4
+
1
5
  ### 3.3.1 / 2014-05-11
2
6
 
3
7
  * Dropped support for Ruby < 2.1, even though the code is compatible yet.
data/brauser.gemspec CHANGED
@@ -25,5 +25,5 @@ Gem::Specification.new do |gem|
25
25
 
26
26
  gem.required_ruby_version = ">= 1.9.3"
27
27
 
28
- gem.add_dependency("lazier", "~> 3.5.4")
28
+ gem.add_dependency("lazier", "~> 3.5.5")
29
29
  end
@@ -480,9 +480,9 @@
480
480
  </div>
481
481
 
482
482
  <div id="footer">
483
- Generated on Sun May 11 14:23:58 2014 by
483
+ Generated on Thu May 22 12:11:28 2014 by
484
484
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
485
- 0.8.7.4 (ruby-2.1.0).
485
+ 0.8.7.4 (ruby-2.1.2).
486
486
  </div>
487
487
 
488
488
  </body>
@@ -184,7 +184,9 @@
184
184
  <span class='id identifier rubyid_version'>version</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_version'>version</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span> <span class='op'>+</span> <span class='int'>4</span>
185
185
  <span class='id identifier rubyid_version'>version</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</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>
186
186
  <span class='rbrace'>}</span><span class='rbracket'>]</span><span class='comma'>,</span>
187
- <span class='lbracket'>[</span><span class='symbol'>:msie</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Microsoft Internet Explorer</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_proc'>proc</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='const'>Brauser</span><span class='op'>::</span><span class='const'>Definition</span><span class='period'>.</span><span class='id identifier rubyid_disambiguate_browser'>disambiguate_browser</span><span class='lparen'>(</span><span class='id identifier rubyid_agent'>agent</span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>msie</span><span class='regexp_end'>/i</span></span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>opera</span><span class='regexp_end'>/i</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(.+MSIE )([a-z0-9.]+)</span><span class='regexp_end'>/i</span></span><span class='rbracket'>]</span>
187
+ <span class='lbracket'>[</span><span class='symbol'>:msie</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Microsoft Internet Explorer</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_proc'>proc</span> <span class='lbrace'>{</span>
188
+ <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='const'>Brauser</span><span class='op'>::</span><span class='const'>Definition</span><span class='period'>.</span><span class='id identifier rubyid_disambiguate_browser'>disambiguate_browser</span><span class='lparen'>(</span><span class='id identifier rubyid_agent'>agent</span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>trident|msie</span><span class='regexp_end'>/i</span></span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>opera</span><span class='regexp_end'>/i</span></span><span class='rparen'>)</span>
189
+ <span class='rbrace'>}</span><span class='comma'>,</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(.+MSIE |trident.+rv:)([a-z0-9.]+)</span><span class='regexp_end'>/i</span></span><span class='rbracket'>]</span>
188
190
  <span class='rbracket'>]</span></pre></dd>
189
191
 
190
192
  <dt id="MINOR_DESKTOP_BROWSERS-constant" class="">MINOR_DESKTOP_BROWSERS =
@@ -378,9 +380,9 @@
378
380
  </div>
379
381
 
380
382
  <div id="footer">
381
- Generated on Sun May 11 14:23:58 2014 by
383
+ Generated on Thu May 22 12:11:28 2014 by
382
384
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
383
- 0.8.7.4 (ruby-2.1.0).
385
+ 0.8.7.4 (ruby-2.1.2).
384
386
  </div>
385
387
 
386
388
  </body>
@@ -520,9 +520,9 @@
520
520
  </div>
521
521
 
522
522
  <div id="footer">
523
- Generated on Sun May 11 14:23:58 2014 by
523
+ Generated on Thu May 22 12:11:28 2014 by
524
524
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
525
- 0.8.7.4 (ruby-2.1.0).
525
+ 0.8.7.4 (ruby-2.1.2).
526
526
  </div>
527
527
 
528
528
  </body>
@@ -125,9 +125,9 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Sun May 11 14:23:58 2014 by
128
+ Generated on Thu May 22 12:11:27 2014 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
- 0.8.7.4 (ruby-2.1.0).
130
+ 0.8.7.4 (ruby-2.1.2).
131
131
  </div>
132
132
 
133
133
  </body>
@@ -341,9 +341,9 @@
341
341
  </div>
342
342
 
343
343
  <div id="footer">
344
- Generated on Sun May 11 14:23:58 2014 by
344
+ Generated on Thu May 22 12:11:27 2014 by
345
345
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
346
- 0.8.7.4 (ruby-2.1.0).
346
+ 0.8.7.4 (ruby-2.1.2).
347
347
  </div>
348
348
 
349
349
  </body>
@@ -616,9 +616,9 @@ in form <code>{:operator =&gt; version}</code>, where operator is one of <code>:
616
616
  </div>
617
617
 
618
618
  <div id="footer">
619
- Generated on Sun May 11 14:23:58 2014 by
619
+ Generated on Thu May 22 12:11:28 2014 by
620
620
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
621
- 0.8.7.4 (ruby-2.1.0).
621
+ 0.8.7.4 (ruby-2.1.2).
622
622
  </div>
623
623
 
624
624
  </body>
@@ -685,9 +685,9 @@ in form <code>{:operator =&gt; version}</code>, where operator is one of <code>:
685
685
  </div>
686
686
 
687
687
  <div id="footer">
688
- Generated on Sun May 11 14:23:58 2014 by
688
+ Generated on Thu May 22 12:11:28 2014 by
689
689
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
690
- 0.8.7.4 (ruby-2.1.0).
690
+ 0.8.7.4 (ruby-2.1.2).
691
691
  </div>
692
692
 
693
693
  </body>
@@ -507,9 +507,9 @@
507
507
  </div>
508
508
 
509
509
  <div id="footer">
510
- Generated on Sun May 11 14:23:58 2014 by
510
+ Generated on Thu May 22 12:11:28 2014 by
511
511
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
512
- 0.8.7.4 (ruby-2.1.0).
512
+ 0.8.7.4 (ruby-2.1.2).
513
513
  </div>
514
514
 
515
515
  </body>
@@ -125,9 +125,9 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Sun May 11 14:23:58 2014 by
128
+ Generated on Thu May 22 12:11:28 2014 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
- 0.8.7.4 (ruby-2.1.0).
130
+ 0.8.7.4 (ruby-2.1.2).
131
131
  </div>
132
132
 
133
133
  </body>
@@ -118,9 +118,9 @@
118
118
  </div>
119
119
 
120
120
  <div id="footer">
121
- Generated on Sun May 11 14:23:58 2014 by
121
+ Generated on Thu May 22 12:11:27 2014 by
122
122
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
123
- 0.8.7.4 (ruby-2.1.0).
123
+ 0.8.7.4 (ruby-2.1.2).
124
124
  </div>
125
125
 
126
126
  </body>
@@ -1997,9 +1997,9 @@ in form <code>{:operator =&gt; version}</code>, where operator is one of <code>:
1997
1997
  </div>
1998
1998
 
1999
1999
  <div id="footer">
2000
- Generated on Sun May 11 14:23:59 2014 by
2000
+ Generated on Thu May 22 12:11:28 2014 by
2001
2001
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2002
- 0.8.7.4 (ruby-2.1.0).
2002
+ 0.8.7.4 (ruby-2.1.2).
2003
2003
  </div>
2004
2004
 
2005
2005
  </body>
@@ -1226,9 +1226,9 @@ This class represents a detection of the current user browser.</p>
1226
1226
  </div>
1227
1227
 
1228
1228
  <div id="footer">
1229
- Generated on Sun May 11 14:23:59 2014 by
1229
+ Generated on Thu May 22 12:11:28 2014 by
1230
1230
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1231
- 0.8.7.4 (ruby-2.1.0).
1231
+ 0.8.7.4 (ruby-2.1.2).
1232
1232
  </div>
1233
1233
 
1234
1234
  </body>
@@ -323,9 +323,9 @@
323
323
  </div>
324
324
 
325
325
  <div id="footer">
326
- Generated on Sun May 11 14:23:58 2014 by
326
+ Generated on Thu May 22 12:11:27 2014 by
327
327
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
328
- 0.8.7.4 (ruby-2.1.0).
328
+ 0.8.7.4 (ruby-2.1.2).
329
329
  </div>
330
330
 
331
331
  </body>
@@ -116,9 +116,9 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Sun May 11 14:23:58 2014 by
119
+ Generated on Thu May 22 12:11:27 2014 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
- 0.8.7.4 (ruby-2.1.0).
121
+ 0.8.7.4 (ruby-2.1.2).
122
122
  </div>
123
123
 
124
124
  </body>
@@ -503,9 +503,9 @@ Brauser::Browser.new.is(:msie).version("&gt;= 7").on?(:windows)
503
503
  </div>
504
504
 
505
505
  <div id="footer">
506
- Generated on Sun May 11 14:23:58 2014 by
506
+ Generated on Thu May 22 12:11:28 2014 by
507
507
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
508
- 0.8.7.4 (ruby-2.1.0).
508
+ 0.8.7.4 (ruby-2.1.2).
509
509
  </div>
510
510
 
511
511
  </body>
@@ -589,9 +589,9 @@ in form <code>{:operator =&gt; version}</code>, where operator is one of <code>:
589
589
  </div>
590
590
 
591
591
  <div id="footer">
592
- Generated on Sun May 11 14:23:58 2014 by
592
+ Generated on Thu May 22 12:11:27 2014 by
593
593
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
594
- 0.8.7.4 (ruby-2.1.0).
594
+ 0.8.7.4 (ruby-2.1.2).
595
595
  </div>
596
596
 
597
597
  </body>
@@ -589,9 +589,9 @@ in form <code>{:operator =&gt; version}</code>, where operator is one of <code>:
589
589
  </div>
590
590
 
591
591
  <div id="footer">
592
- Generated on Sun May 11 14:23:58 2014 by
592
+ Generated on Thu May 22 12:11:27 2014 by
593
593
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
594
- 0.8.7.4 (ruby-2.1.0).
594
+ 0.8.7.4 (ruby-2.1.2).
595
595
  </div>
596
596
 
597
597
  </body>
@@ -118,9 +118,9 @@
118
118
  </div>
119
119
 
120
120
  <div id="footer">
121
- Generated on Sun May 11 14:23:58 2014 by
121
+ Generated on Thu May 22 12:11:27 2014 by
122
122
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
123
- 0.8.7.4 (ruby-2.1.0).
123
+ 0.8.7.4 (ruby-2.1.2).
124
124
  </div>
125
125
 
126
126
  </body>
@@ -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,9 +180,9 @@
180
180
  </div>
181
181
 
182
182
  <div id="footer">
183
- Generated on Sun May 11 14:23:58 2014 by
183
+ Generated on Thu May 22 12:11:27 2014 by
184
184
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
- 0.8.7.4 (ruby-2.1.0).
185
+ 0.8.7.4 (ruby-2.1.2).
186
186
  </div>
187
187
 
188
188
  </body>
data/doc/Brauser.html CHANGED
@@ -121,9 +121,9 @@ 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 Sun May 11 14:23:58 2014 by
124
+ Generated on Thu May 22 12:11:27 2014 by
125
125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
- 0.8.7.4 (ruby-2.1.0).
126
+ 0.8.7.4 (ruby-2.1.2).
127
127
  </div>
128
128
 
129
129
  </body>
data/doc/_index.html CHANGED
@@ -309,9 +309,9 @@
309
309
  </div>
310
310
 
311
311
  <div id="footer">
312
- Generated on Sun May 11 14:23:58 2014 by
312
+ Generated on Thu May 22 12:11:27 2014 by
313
313
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
314
- 0.8.7.4 (ruby-2.1.0).
314
+ 0.8.7.4 (ruby-2.1.2).
315
315
  </div>
316
316
 
317
317
  </body>
data/doc/file.README.html CHANGED
@@ -270,9 +270,9 @@ Brauser::Browsers.add(:languages, ::Brauser::Definition.new(:it, "Italian"))
270
270
  </div></div>
271
271
 
272
272
  <div id="footer">
273
- Generated on Sun May 11 14:23:58 2014 by
273
+ Generated on Thu May 22 12:11:27 2014 by
274
274
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
275
- 0.8.7.4 (ruby-2.1.0).
275
+ 0.8.7.4 (ruby-2.1.2).
276
276
  </div>
277
277
 
278
278
  </body>
data/doc/index.html CHANGED
@@ -270,9 +270,9 @@ Brauser::Browsers.add(:languages, ::Brauser::Definition.new(:it, "Italian"))
270
270
  </div></div>
271
271
 
272
272
  <div id="footer">
273
- Generated on Sun May 11 14:23:58 2014 by
273
+ Generated on Thu May 22 12:11:27 2014 by
274
274
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
275
- 0.8.7.4 (ruby-2.1.0).
275
+ 0.8.7.4 (ruby-2.1.2).
276
276
  </div>
277
277
 
278
278
  </body>
@@ -103,9 +103,9 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Sun May 11 14:23:58 2014 by
106
+ Generated on Thu May 22 12:11:27 2014 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
- 0.8.7.4 (ruby-2.1.0).
108
+ 0.8.7.4 (ruby-2.1.2).
109
109
  </div>
110
110
 
111
111
  </body>
@@ -52,7 +52,9 @@ module Brauser
52
52
  version[0] = version[0].to_integer + 4
53
53
  version.join(".")
54
54
  }],
55
- [:msie, "Microsoft Internet Explorer", proc { |_, agent| Brauser::Definition.disambiguate_browser(agent, /msie/i, /opera/i) }, /(.+MSIE )([a-z0-9.]+)/i]
55
+ [:msie, "Microsoft Internet Explorer", proc {
56
+ |_, agent| Brauser::Definition.disambiguate_browser(agent, /trident|msie/i, /opera/i)
57
+ }, /(.+MSIE |trident.+rv:)([a-z0-9.]+)/i]
56
58
  ]
57
59
 
58
60
  # Default minor desktop browsers.
@@ -17,7 +17,7 @@ module Brauser
17
17
  MINOR = 3
18
18
 
19
19
  # The patch version.
20
- PATCH = 1
20
+ PATCH = 2
21
21
 
22
22
  # The current version of brauser.
23
23
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
@@ -272,6 +272,7 @@ describe Brauser::Browser do
272
272
  expect(recognize("Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 3.0)")).to eq([:msie_compatibility, "8.0", :windows])
273
273
 
274
274
  # Microsoft Internet Explorer
275
+ expect(recognize("Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko")).to eq([:msie, "11.0", :windows])
275
276
  expect(recognize("Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64;0)")).to eq([:msie, "10.0", :windows])
276
277
  expect(recognize("Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET CLR 1.1.4322; .NET4.0C; Tablet PC 2.0)")).to eq([:msie, "9.0", :windows])
277
278
  expect(recognize("Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 3.0)")).to eq([:msie, "8.0", :windows])
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.3.1
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shogun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-11 00:00:00.000000000 Z
11
+ date: 2014-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lazier
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.5.4
19
+ version: 3.5.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.5.4
26
+ version: 3.5.5
27
27
  description: A framework agnostic browser detection and querying helper.
28
28
  email:
29
29
  - shogun@cowtech.it