browser_sniffer 1.0.10 → 1.0.11
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 +2 -0
- data/lib/browser_sniffer/version.rb +1 -1
- data/test/browser_sniffer_test.rb +3 -3
- 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: '0836c9c1cfb9fd0e8ff1f2e448aec9ec87b102d5'
|
4
|
+
data.tar.gz: 86f435ee0378f0ff9611c5442b0353ed3d6d10c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f88970f87c677ec7fd35211c6737510f2c6c3e1c723c60c777240af943cc5fe9dc7e6c70cb37bfd95d935bd595939c29e84cd08b4bb79b6fc0920266b0f2e6c
|
7
|
+
data.tar.gz: 98cf4890a875df3be1faf91e2edc8822ba1d7531c4b20966e9c0dcb6f048e5549224c600fb4e20a31a37799219d3f1e42f8ab878235c35cd35bf45e7e8ac25f9
|
@@ -84,6 +84,8 @@ class BrowserSniffer
|
|
84
84
|
], [[:name, 'Dolphin'], :version, :major], [
|
85
85
|
/((?:android.+)crmo|crios)\/((\d+)?[\w\.]+)/i # Chrome for Android/iOS
|
86
86
|
], [[:name, 'Chrome'], :version, :major, [:type, :chrome]], [
|
87
|
+
/(FxiOS)\/((\d+)?[\w\.]+)/i # Firefox for iOS
|
88
|
+
], [[:name, 'Mobile Firefox'], :version, :major, [:type, :firefox]], [
|
87
89
|
/version\/((\d+)?[\w\.]+).+?mobile\/\w+\s(safari)/i # Mobile Safari
|
88
90
|
], [:version, :major, [:name, 'Mobile Safari'], [:type, :safari]], [
|
89
91
|
/Mozilla\/5.0 \((?:iPhone|iPad|iPod(?: Touch)?);(.*)AppleWebKit\/((\d+)?[\w\.]+).+?(mobile)\/\w?/i # ios webview
|
@@ -431,9 +431,9 @@ class BrowserSnifferTest < MiniTest::Unit::TestCase
|
|
431
431
|
:major_engine_version => 602,
|
432
432
|
:os => :ios,
|
433
433
|
:os_version => '10.2.1',
|
434
|
-
:browser => :
|
435
|
-
:browser_name => 'Mobile
|
436
|
-
:major_browser_version =>
|
434
|
+
:browser => :firefox,
|
435
|
+
:browser_name => 'Mobile Firefox',
|
436
|
+
:major_browser_version => 6
|
437
437
|
},
|
438
438
|
:ipad_ios5 => {
|
439
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",
|
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.11
|
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-
|
11
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|