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 +4 -4
- data/lib/detect_browser_os.rb +2 -1
- data/lib/detect_browser_os/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3ff0999dc05f0c151f70b82723df18d7f3aba59
|
4
|
+
data.tar.gz: 8be9acb212bc643eb951ac5e1e248b4767e474e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff463dfb6d70326c79ec986f58a243b1bd3a43cc32058b81e201f77fa5878c7abd7af9bcb9bc1c6260bbf51bbb04d485de8ec89a2a058e56e7a7618cd0f9a11e
|
7
|
+
data.tar.gz: 7d539e3e680fce33817415bdf21c45b8b9dcd3727f7348a4584d0bdc8bb0a2243a08979f92c7b7e2523d056db653ed92015290f7f0b56cbd48a8f3c91d9223e6
|
data/lib/detect_browser_os.rb
CHANGED
@@ -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)
|
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.
|
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:
|
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.
|
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:
|