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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7127f6382030de8e90415d15e0dd502705a1165
4
- data.tar.gz: cdf4c0462a662f2f79b9af8db0c2b52be4919de6
3
+ metadata.gz: 557533e37c55a363ab5ef6eedac73022d665d25a
4
+ data.tar.gz: 9a6c2d44a4c78ad76aecac81f5a47bb08877eec5
5
5
  SHA512:
6
- metadata.gz: 6c402ca3ae9b0982dd209d06a1e9de7f821814d09f2e0615ef9091ec605702602f111e3b4fea7044441df7c3b8846bd1f2bf3ba4f0a77c41741781c60984e53d
7
- data.tar.gz: 98a5d36a3e34a590c4c6f8b356294ffe6212a5accd75e590397b8b96f31329a6d81a12bf073a709dafec126c26304db8ed2040cab8d275d1aa21e199e2b2ce95
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+)?[\w\.]+)/i # Internet Explorer
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]], [
@@ -1,3 +1,3 @@
1
1
  class BrowserSniffer
2
- VERSION = "1.0.12"
2
+ VERSION = "1.0.13"
3
3
  end
@@ -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.12
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-03-28 00:00:00.000000000 Z
11
+ date: 2017-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler