browser_sniffer 1.0.12 → 1.0.13
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 +1 -1
- data/lib/browser_sniffer/version.rb +1 -1
- data/test/browser_sniffer_test.rb +13 -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: 557533e37c55a363ab5ef6eedac73022d665d25a
|
4
|
+
data.tar.gz: 9a6c2d44a4c78ad76aecac81f5a47bb08877eec5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dad67f37b49accceecbdf5faff75e7196786876444faf6eead4363fdb524a1d25645980ef32cfe6681d7d9f08bfed1ebcdad46b63189cc34ca1763df8362c91
|
7
|
+
data.tar.gz: cb954fed3a0fcbf6b783dd88f2aaaf6c44025075f454768481aa1d1a714c70c8ba843a6a4aebeb425ca82993199b15778f244abc42218155eb85e58a5aa42114
|
@@ -59,7 +59,7 @@ class BrowserSniffer
|
|
59
59
|
# Trident based
|
60
60
|
/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?((\d+)?[\w\.]*)/i # Avant/IEMobile/SlimBrowser/Baidu
|
61
61
|
], [:name, :version, :major], [
|
62
|
-
/(?:ms|\()(ie)\s((\d+)
|
62
|
+
/(?:ms|\()(ie)\s((\d+)[\w\.]+)/i # Internet Explorer
|
63
63
|
], [:name, :version, :major, [:type, :ie]], [
|
64
64
|
/Edge\/(\d+).\d+/i #Edge
|
65
65
|
], [:major, [:version, 10], [:name, 'Edge'], [:type, :edge]], [
|
@@ -532,6 +532,19 @@ class BrowserSnifferTest < MiniTest::Unit::TestCase
|
|
532
532
|
:os_version => "10",
|
533
533
|
:browser => :edge,
|
534
534
|
:major_browser_version => 12
|
535
|
+
},
|
536
|
+
:daum => {
|
537
|
+
:user_agent => "Mozilla/5.0 (compatible; MSIE or Firefox mutant;) Daum 4.1",
|
538
|
+
:form_factor => :desktop,
|
539
|
+
:ios? => false,
|
540
|
+
:android? => false,
|
541
|
+
:desktop? => true,
|
542
|
+
:engine => nil,
|
543
|
+
:major_engine_version => nil,
|
544
|
+
:os => nil,
|
545
|
+
:os_version => nil,
|
546
|
+
:browser => nil,
|
547
|
+
:major_browser_version => nil
|
535
548
|
}
|
536
549
|
}
|
537
550
|
|
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.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|