browser_sniffer 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/browser_sniffer.gemspec +2 -0
- data/lib/browser_sniffer/patterns.rb +1 -1
- data/lib/browser_sniffer/version.rb +1 -1
- data/test/browser_sniffer_test.rb +14 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1d2a14cbaa027eb267424ec34f049c2a383471036e9dad156d40c26a5b78fd6
|
4
|
+
data.tar.gz: a4fcca71e6189f943587910085a966a8fe7f5673600271b85f87cd82467b0281
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8abab760e9d58a527f5dc971ccbc93d1d524c38ccd7e6ef01fb2ca5536c9558f9e7811a2c63f1efcf6b3ddb2d4976cfc142454d86b49f9f1f455428888f61f74
|
7
|
+
data.tar.gz: f4f0d813479f3d374e6a1104211052c0954768ff7af20525175dfb7971ed569f353ba3122f6e3595944d04cda1fc76519bcbded668388e5a05dceb352405983c
|
data/browser_sniffer.gemspec
CHANGED
@@ -17,6 +17,8 @@ Gem::Specification.new do |spec|
|
|
17
17
|
|
18
18
|
spec.required_ruby_version = ">= 1.9.3"
|
19
19
|
|
20
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
21
|
+
|
20
22
|
spec.add_development_dependency "bundler"
|
21
23
|
spec.add_development_dependency "minitest"
|
22
24
|
spec.add_development_dependency "rake"
|
@@ -332,7 +332,7 @@ class BrowserSniffer
|
|
332
332
|
/(gnu)\s?([\w\.]+)*/i # GNU
|
333
333
|
], [:name, :version, [:type, :linux]], [
|
334
334
|
/(cros)\s[\w]+\s([\w\.]+\w)/i # Chromium OS
|
335
|
-
], [[:name, 'Chromium OS'], :version],[
|
335
|
+
], [[:name, 'Chromium OS'], :version, [:type, :chromium_os]],[
|
336
336
|
# Solaris
|
337
337
|
/(sunos)\s?([\w\.]+\d)*/i # Solaris
|
338
338
|
], [[:name, 'Solaris'], :version], [
|
@@ -544,7 +544,20 @@ class BrowserSnifferTest < Minitest::Test
|
|
544
544
|
:os_version => nil,
|
545
545
|
:browser => nil,
|
546
546
|
:major_browser_version => nil
|
547
|
-
}
|
547
|
+
},
|
548
|
+
:chromiumos_chrome => {
|
549
|
+
:user_agent => "Mozilla/5.0 (X11; CrOS x86_64 10066.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36",
|
550
|
+
:form_factor => :desktop,
|
551
|
+
:ios? => false,
|
552
|
+
:android? => false,
|
553
|
+
:desktop? => true,
|
554
|
+
:engine => :webkit,
|
555
|
+
:major_engine_version => 537,
|
556
|
+
:os => :chromium_os,
|
557
|
+
:os_version => '10066.0.0',
|
558
|
+
:browser => :chrome,
|
559
|
+
:major_browser_version => 81,
|
560
|
+
},
|
548
561
|
}
|
549
562
|
|
550
563
|
AGENTS.each do |agent, attributes|
|
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.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -79,7 +79,8 @@ homepage: https://github.com/Shopify/browser_sniffer
|
|
79
79
|
licenses:
|
80
80
|
- GPLv2
|
81
81
|
- MIT
|
82
|
-
metadata:
|
82
|
+
metadata:
|
83
|
+
allowed_push_host: https://rubygems.org
|
83
84
|
post_install_message:
|
84
85
|
rdoc_options: []
|
85
86
|
require_paths:
|