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 +4 -4
- data/lib/browser_sniffer/patterns.rb +1 -1
- data/lib/browser_sniffer/version.rb +1 -1
- data/test/browser_sniffer_test.rb +14 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a90cb0be928013ffb4c8178bf61ab8971fd4dde
|
4
|
+
data.tar.gz: 399bda7bf4c46e86494512d02717f6f08ab849de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]], [
|
@@ -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.
|
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:
|
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
|
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.
|