browser_sniffer 1.0.9 → 1.0.10

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: 798ed5bece3c3713af35cf2ebae47a46cff3ec97
4
- data.tar.gz: bff2f3b2618aabe43b69c7d86d6ca0a75bc288b8
3
+ metadata.gz: 0a90cb0be928013ffb4c8178bf61ab8971fd4dde
4
+ data.tar.gz: 399bda7bf4c46e86494512d02717f6f08ab849de
5
5
  SHA512:
6
- metadata.gz: 68f13df7e450e232022623d15b846377d87121ca653630905b8ebb20cb3b0c1a39dc7d9d9328b870457834a0dfaafa21a9888646501a33f6df9966ffc499457e
7
- data.tar.gz: 92db74403a16ecafac340ee053a079ca271d723259e5772858f4348478a7ccce2115df86a53cef0d6c26bfb45c537d42265c2cf6d78707125bbdc36fe6d02f53
6
+ metadata.gz: c4c70085b4c0db5fc27d502a3d4c57ee6bbc456a60ca2f820e2d97fe25d0b3f89cfaaaafee6116fab5c800a6d8b752aa72b90a0a274d2cf389e81a10f7cf82ab
7
+ data.tar.gz: c345aa20b7658f59265abbdadba10028105ccd3258974cd4f4de5bc0dec62048c81cf03ccf5c8a59b514c3262c6cc8a217629cf6439b3bffaa5020a8c49d58c1
@@ -86,7 +86,7 @@ class BrowserSniffer
86
86
  ], [[:name, 'Chrome'], :version, :major, [:type, :chrome]], [
87
87
  /version\/((\d+)?[\w\.]+).+?mobile\/\w+\s(safari)/i # Mobile Safari
88
88
  ], [:version, :major, [:name, 'Mobile Safari'], [:type, :safari]], [
89
- /Mozilla\/5.0 \((?:iPhone|iPod(?: Touch)?);(.*)AppleWebKit\/((\d+)?[\w\.]+).+?(mobile)\/\w?/i # ios webview
89
+ /Mozilla\/5.0 \((?:iPhone|iPad|iPod(?: Touch)?);(.*)AppleWebKit\/((\d+)?[\w\.]+).+?(mobile)\/\w?/i # ios webview
90
90
  ], [:version, :major, [:name, 'Mobile Safari'], [:type, :safari]], [
91
91
  /version\/((\d+)?[\w\.]+).+?(mobile\s?safari|safari)/i # Safari & Safari Mobile
92
92
  ], [:version, :major, :name, [:type, :safari]], [
@@ -1,3 +1,3 @@
1
1
  class BrowserSniffer
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  end
@@ -421,6 +421,20 @@ class BrowserSnifferTest < MiniTest::Unit::TestCase
421
421
  :browser_name => 'Mobile Safari',
422
422
  :major_browser_version => 537
423
423
  },
424
+ :ipad_ios10_webview => {
425
+ :user_agent => "Mozilla/5.0 (iPad; CPU OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) FxiOS/6.1 Mobile/14D27 Safari/602.4.6",
426
+ :form_factor => :tablet,
427
+ :ios? => true,
428
+ :android? => false,
429
+ :desktop? => false,
430
+ :engine => :webkit,
431
+ :major_engine_version => 602,
432
+ :os => :ios,
433
+ :os_version => '10.2.1',
434
+ :browser => :safari,
435
+ :browser_name => 'Mobile Safari',
436
+ :major_browser_version => 602
437
+ },
424
438
  :ipad_ios5 => {
425
439
  :user_agent => "Mozilla/5.0 (iPad; CPU OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3",
426
440
  :form_factor => :tablet,
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.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-06 00:00:00.000000000 Z
11
+ date: 2017-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.2.3
83
+ rubygems_version: 2.5.2
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Parses user agent strings and boils it all down to a few simple classifications.