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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2ec274c989cf948ba647dc221899b75c7201985
4
- data.tar.gz: eb69b04bb41efc5a033beadc057f902e76d439cb
3
+ metadata.gz: 798ed5bece3c3713af35cf2ebae47a46cff3ec97
4
+ data.tar.gz: bff2f3b2618aabe43b69c7d86d6ca0a75bc288b8
5
5
  SHA512:
6
- metadata.gz: 45fbef9b6ecd64a85adc5bb002aac9d3eabdb5580223cf5cc5eef980aae3702b4d20ebdf8b4b8a169a5c24308e4f6c50b3f205ff90404f9a176b351dac86279c
7
- data.tar.gz: 338300b795181c6e3901af7ad098da36959b02ec655b3f381b5f03e6d5d25a1f3001ef0079f4a38dee096e495762bc6769579108efe890af83a41a907516f18f
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
@@ -1,3 +1,3 @@
1
1
  class BrowserSniffer
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
@@ -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.8
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-02-22 00:00:00.000000000 Z
11
+ date: 2016-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler