useragent 0.14.0 → 0.15.0

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: 93997836a30bc37117159c86a311f712ee84ff89
4
- data.tar.gz: e53d51405082ca07154a69c1ef87d255e8ff3289
3
+ metadata.gz: 1138542b58b4caddfd38a411d1b5d181ff2d8578
4
+ data.tar.gz: afe9688cbc29778b3a123ce018acab04e904b5e5
5
5
  SHA512:
6
- metadata.gz: 785ed3e80709b62585e0a8e677346dae0ee862cecfb768ab30e39aa89e8f6ebe0c6f11d88e88784b6f75dbe5d8a6c5b09a73248bdf5f027d1d50385bbdfe4287
7
- data.tar.gz: 6a1b843c8ec68301bfe840d9df7d91261bb7ea74360e108a97cc7e0a1c5f84633a80e709a986ad46793dc24b4a9c6ec7df1974dcd200d6739cf4a2df2f2571e5
6
+ metadata.gz: e5934de9bb57ae0289df21b1a802a963f534562d18b38d2d2dd00dc11d063007dc16dd6c97b68089adca41b3cacf962cb8080d0a47fc409b265e07f18fff0122
7
+ data.tar.gz: 329be9f0a7e3a9e3574af41fde540c0753e8cc819a888bac0dd9dfa0bc5635d0457af5bf68b75d5c0569de44b9d4840a00e784f19110677abd311e874d186869
@@ -1,5 +1,6 @@
1
1
  require 'user_agent/browsers/base'
2
2
  require 'user_agent/browsers/chrome'
3
+ require 'user_agent/browsers/edge'
3
4
  require 'user_agent/browsers/gecko'
4
5
  require 'user_agent/browsers/internet_explorer'
5
6
  require 'user_agent/browsers/opera'
@@ -18,7 +19,7 @@ class UserAgent
18
19
  }.freeze
19
20
 
20
21
  def self.all
21
- [InternetExplorer, Opera, Chrome, ITunes, Webkit, Gecko, WindowsMediaPlayer, AppleCoreMedia, Libavformat]
22
+ [Edge, InternetExplorer, Opera, Chrome, ITunes, Webkit, Gecko, WindowsMediaPlayer, AppleCoreMedia, Libavformat]
22
23
  end
23
24
 
24
25
  def self.extend(array)
@@ -3,8 +3,7 @@ class UserAgent
3
3
  class Chrome < Base
4
4
  def self.extend?(agent)
5
5
  agent.detect { |useragent|
6
- useragent.product == 'Chrome' ||
7
- useragent.product == 'CriOS'
6
+ %w(Chrome CriOS).include?(useragent.product)
8
7
  }
9
8
  end
10
9
 
@@ -3,6 +3,7 @@ class UserAgent
3
3
  IOS_VERSION_REGEX = /CPU (?:iPhone |iPod )?OS ([\d_]+) like Mac OS X/
4
4
 
5
5
  Windows = {
6
+ "Windows NT 10.0" => "Windows 10",
6
7
  "Windows NT 6.3" => "Windows 8.1",
7
8
  "Windows NT 6.2" => "Windows 8",
8
9
  "Windows NT 6.1" => "Windows 7",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useragent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Peek
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-14 00:00:00.000000000 Z
12
+ date: 2015-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake