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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 245fd450da6d03b745adaa88b6205b4b31c77e1d4b1c9cb8b6dd48608236ca9f
4
- data.tar.gz: 04f83a20bdd3ebee8f55db0ff309b1fed91b24a98713cf72717e7b63508c8435
3
+ metadata.gz: e1d2a14cbaa027eb267424ec34f049c2a383471036e9dad156d40c26a5b78fd6
4
+ data.tar.gz: a4fcca71e6189f943587910085a966a8fe7f5673600271b85f87cd82467b0281
5
5
  SHA512:
6
- metadata.gz: f7822eef7d29417d29471dc227397f053027371ff8ef9ca58de46d033366569b29fcfc7cdc9d9aa63471632e70f3c0c303dee30ca6629102713ad9d648c66131
7
- data.tar.gz: 05bc07aa67180d1ab9d2eb585733d62867598978d291a57b508b70e10fd970cab65b47413056b56b5e08b5b6df8bd434c78dd9e8fa39d50daccc94f1a8441533
6
+ metadata.gz: 8abab760e9d58a527f5dc971ccbc93d1d524c38ccd7e6ef01fb2ca5536c9558f9e7811a2c63f1efcf6b3ddb2d4976cfc142454d86b49f9f1f455428888f61f74
7
+ data.tar.gz: f4f0d813479f3d374e6a1104211052c0954768ff7af20525175dfb7971ed569f353ba3122f6e3595944d04cda1fc76519bcbded668388e5a05dceb352405983c
@@ -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], [
@@ -1,3 +1,3 @@
1
1
  class BrowserSniffer
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -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.1
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-03-10 00:00:00.000000000 Z
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: