detect_browser_os 0.3.0 → 0.4.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: cca0ee8db626587063c07c47301185da1e7ad1b2
4
- data.tar.gz: a7c5f10413097c7f28a341c87720f67c9f38a44c
3
+ metadata.gz: f3ff0999dc05f0c151f70b82723df18d7f3aba59
4
+ data.tar.gz: 8be9acb212bc643eb951ac5e1e248b4767e474e3
5
5
  SHA512:
6
- metadata.gz: dca40dd1131ba9a56f2550f7b12a7cd5ff70174b17ec45637b838fe00201449d53a52ed53dcde0c37407cf31c4309c9d1fdf642316024350c2f9a0a4d8933095
7
- data.tar.gz: 245e37d56b9474e2097b65ba17bdac2ae5b2e3def3af7c326b4190be43d81349d0bd4133e32a0a1cace6772c150a988fed5fdb53532432936216b78faa3628c2
6
+ metadata.gz: ff463dfb6d70326c79ec986f58a243b1bd3a43cc32058b81e201f77fa5878c7abd7af9bcb9bc1c6260bbf51bbb04d485de8ec89a2a058e56e7a7618cd0f9a11e
7
+ data.tar.gz: 7d539e3e680fce33817415bdf21c45b8b9dcd3727f7348a4584d0bdc8bb0a2243a08979f92c7b7e2523d056db653ed92015290f7f0b56cbd48a8f3c91d9223e6
@@ -32,9 +32,10 @@ def detect_browser(user_agent = request.user_agent)
32
32
  o.join(" ")
33
33
  when /webtv/ ; "gecko"
34
34
  when /msie (\d+)/ ; "ie ie#{$1}"
35
+ when /edge\/(\d+)/ ; "gecko edge edge#{$1}"
35
36
  when /trident/ ; "gecko ie#{(ua.match(/rv:(\d+)/) || ['',''])[1]}"
36
37
  when %r{firefox/3.5} ; "gecko ff3 ff3_5"
37
- when %r{firefox} ; "gecko ff#{(ua.match(/firefox\/(\d+)/) || ['',''])[1]}"
38
+ when %r{firefox} ; "gecko firefox ff#{(ua.match(/firefox\/(\d+)/) || ['',''])[1]}"
38
39
  when /konqueror/ ; "konqueror"
39
40
  when /applewebkit\/([\d.]+).? \([^)]*\) ?(?:version\/(\d+))?.*$/
40
41
  o = %W(webkit)
@@ -1,3 +1,3 @@
1
1
  module DetectBrowserOs
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: detect_browser_os
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Sonnek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-04 00:00:00.000000000 Z
11
+ date: 2016-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thoughtbot-shoulda
@@ -76,11 +76,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project: detect_browser_os
79
- rubygems_version: 2.4.6
79
+ rubygems_version: 2.6.6
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: detect end users browser and operating system.
83
83
  test_files:
84
84
  - test/helper.rb
85
85
  - test/test_detect_browser_os.rb
86
- has_rdoc: