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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a90cb0be928013ffb4c8178bf61ab8971fd4dde
4
- data.tar.gz: 399bda7bf4c46e86494512d02717f6f08ab849de
3
+ metadata.gz: '0836c9c1cfb9fd0e8ff1f2e448aec9ec87b102d5'
4
+ data.tar.gz: 86f435ee0378f0ff9611c5442b0353ed3d6d10c0
5
5
  SHA512:
6
- metadata.gz: c4c70085b4c0db5fc27d502a3d4c57ee6bbc456a60ca2f820e2d97fe25d0b3f89cfaaaafee6116fab5c800a6d8b752aa72b90a0a274d2cf389e81a10f7cf82ab
7
- data.tar.gz: c345aa20b7658f59265abbdadba10028105ccd3258974cd4f4de5bc0dec62048c81cf03ccf5c8a59b514c3262c6cc8a217629cf6439b3bffaa5020a8c49d58c1
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
@@ -1,3 +1,3 @@
1
1
  class BrowserSniffer
2
- VERSION = "1.0.10"
2
+ VERSION = "1.0.11"
3
3
  end
@@ -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 => :safari,
435
- :browser_name => 'Mobile Safari',
436
- :major_browser_version => 602
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.10
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-16 00:00:00.000000000 Z
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler