browser_sniffer 1.0.7 → 1.0.8

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: 9f93aafcb13b51eb02e24a774f70ba70324a00be
4
- data.tar.gz: de5b77af69dc86126213fae36538ec97822cde9d
3
+ metadata.gz: c2ec274c989cf948ba647dc221899b75c7201985
4
+ data.tar.gz: eb69b04bb41efc5a033beadc057f902e76d439cb
5
5
  SHA512:
6
- metadata.gz: 97de90a5846f3693c6cb2944619a001fcf403ec5e88f8cfb1e5bf7ce99d4180deab372afd74fa2eb69858813f76d1967cd58b4f692487937cb1c78032a0739a3
7
- data.tar.gz: 4d5a00d50aa403c810a16d1e6c6b726c0bb6eb5d1112b59e63307d58335656117a9b9bbe950aeb2723445a8605e5b36d92b72f5804441d91e8dda781b867986e
6
+ metadata.gz: 45fbef9b6ecd64a85adc5bb002aac9d3eabdb5580223cf5cc5eef980aae3702b4d20ebdf8b4b8a169a5c24308e4f6c50b3f205ff90404f9a176b351dac86279c
7
+ data.tar.gz: 338300b795181c6e3901af7ad098da36959b02ec655b3f381b5f03e6d5d25a1f3001ef0079f4a38dee096e495762bc6769579108efe890af83a41a907516f18f
@@ -1,6 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 1.9.2
5
- - jruby-19mode
3
+ - 1.9
4
+ - 2.0
5
+ - 2.1
6
+ - jruby
7
+
8
+ before_install: gem update bundler
6
9
  script: bundle exec rake test
@@ -35,6 +35,7 @@ class BrowserSniffer
35
35
  'NT 6.1' => '7',
36
36
  'NT 6.2' => '8',
37
37
  'NT 6.3' => '8.1',
38
+ 'NT 10.0' => '10',
38
39
  'ARM' => 'RT'
39
40
  }
40
41
  }
@@ -62,6 +63,8 @@ class BrowserSniffer
62
63
  ], [:name, :version, :major, [:type, :ie]], [
63
64
  /Mozilla\/5.0.*Windows NT 6\.\d.*Trident\/7\.\d.*rv:(\d+)\.\d*/i #IE11 on Win7
64
65
  ], [:major, [:version, 7], [:name, 'Internet Explorer'], [:type, :ie]], [
66
+ /Mozilla\/5.0.*Windows NT 10\.\d.*Trident\/7\.\d.*rv:(\d+)\.\d*.*like\sGecko/i #IE11 on Win10
67
+ ], [:major, [:version, 10], [:name, 'Internet Explorer'], [:type, :ie]], [
65
68
  # Webkit/KHTML based
66
69
  /(rekonq)\/?((\d+)[\w\.]+)*/i, # Rekonq
67
70
  /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt)\/((\d+)?[\w\.-]+)/i # Chromium/Flock/RockMelt/Midori/Epiphany/Silk/Skyfire/Bolt
@@ -1,3 +1,3 @@
1
1
  class BrowserSniffer
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
@@ -1 +1,2 @@
1
- # using the default shipit config
1
+ fetch:
2
+ - fetch-gem-version browser_sniffer Shopify/browser_sniffer
@@ -490,6 +490,20 @@ class BrowserSnifferTest < MiniTest::Unit::TestCase
490
490
  :os_version => "8.1",
491
491
  :browser => :ie,
492
492
  :major_browser_version => 11
493
+ },
494
+ :win10_ie11 => {
495
+ :user_agent => "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; rv:11.0) like Gecko",
496
+ :form_factor => :desktop,
497
+ :ios? => false,
498
+ :ie11? => true,
499
+ :android? => false,
500
+ :desktop? => true,
501
+ :engine => :trident,
502
+ :major_engine_version => 7,
503
+ :os => :windows,
504
+ :os_version => "10",
505
+ :browser => :ie,
506
+ :major_browser_version => 11
493
507
  }
494
508
  }
495
509
 
metadata CHANGED
@@ -1,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browser_sniffer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10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z4bUVFlTATif4mi1vO3lidRkdHRtM7UePSn2rUpOi0gtXBP3bLu5
29
- YjHJN7wx5cugMEyroKITG5gL0Nxtu21qtOlHX4Hc4KdE2JqzCPOsS4zsZGhgwhPs
30
- fl3hbtVFTqbOlwL9vy1fudXcolIE/ZTcxQ+er07ZFZdKCXayR9PPs64heamfn0fp
31
- TConQSX2BnZdhIEYW+cKzEC/bLc=
32
- -----END CERTIFICATE-----
33
- date: 2014-08-05 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2016-02-22 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: bundler
@@ -102,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
80
  version: '0'
103
81
  requirements: []
104
82
  rubyforge_project:
105
- rubygems_version: 2.2.2
83
+ rubygems_version: 2.2.3
106
84
  signing_key:
107
85
  specification_version: 4
108
86
  summary: Parses user agent strings and boils it all down to a few simple classifications.
Binary file
data.tar.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- W���x ��ϡ��1�C�$f��6v�稈�"Io@��^=������Y�И-+�p�-��t-� ���$qêdĤ�)��a�C��E�����/r0{ ^�W��S+���pz�U�0�fD'4�<
2
- �.(�cW3��ӷ��Л~qۖ/�z��/p;����ԓ�]63��)��**(���w��Ch_��"jk������+b�49���] k�d��r��KD�:�fؘ������.����m=�Ze�p
metadata.gz.sig DELETED
Binary file