browser_sniffer 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/browser_sniffer/patterns.rb +2 -0
- data/lib/browser_sniffer/version.rb +1 -1
- data/test/browser_sniffer_test.rb +14 -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: 798ed5bece3c3713af35cf2ebae47a46cff3ec97
|
4
|
+
data.tar.gz: bff2f3b2618aabe43b69c7d86d6ca0a75bc288b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68f13df7e450e232022623d15b846377d87121ca653630905b8ebb20cb3b0c1a39dc7d9d9328b870457834a0dfaafa21a9888646501a33f6df9966ffc499457e
|
7
|
+
data.tar.gz: 92db74403a16ecafac340ee053a079ca271d723259e5772858f4348478a7ccce2115df86a53cef0d6c26bfb45c537d42265c2cf6d78707125bbdc36fe6d02f53
|
@@ -61,6 +61,8 @@ class BrowserSniffer
|
|
61
61
|
], [:name, :version, :major], [
|
62
62
|
/(?:ms|\()(ie)\s((\d+)?[\w\.]+)/i # Internet Explorer
|
63
63
|
], [:name, :version, :major, [:type, :ie]], [
|
64
|
+
/Edge\/(\d+).\d+/i #Edge
|
65
|
+
], [:major, [:version, 10], [:name, 'Edge'], [:type, :edge]], [
|
64
66
|
/Mozilla\/5.0.*Windows NT 6\.\d.*Trident\/7\.\d.*rv:(\d+)\.\d*/i #IE11 on Win7
|
65
67
|
], [:major, [:version, 7], [:name, 'Internet Explorer'], [:type, :ie]], [
|
66
68
|
/Mozilla\/5.0.*Windows NT 10\.\d.*Trident\/7\.\d.*rv:(\d+)\.\d*.*like\sGecko/i #IE11 on Win10
|
@@ -504,6 +504,20 @@ class BrowserSnifferTest < MiniTest::Unit::TestCase
|
|
504
504
|
:os_version => "10",
|
505
505
|
:browser => :ie,
|
506
506
|
:major_browser_version => 11
|
507
|
+
},
|
508
|
+
:win10_edge12 => {
|
509
|
+
:user_agent => "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136",
|
510
|
+
:form_factor => :desktop,
|
511
|
+
:ios? => false,
|
512
|
+
:ie11? => false,
|
513
|
+
:android? => false,
|
514
|
+
:desktop? => true,
|
515
|
+
:engine => :webkit,
|
516
|
+
:major_engine_version => 537,
|
517
|
+
:os => :windows,
|
518
|
+
:os_version => "10",
|
519
|
+
:browser => :edge,
|
520
|
+
:major_browser_version => 12
|
507
521
|
}
|
508
522
|
}
|
509
523
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: browser_sniffer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|