spob_browser_detector 1.0.4 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/spob_browser_detector/detector.rb +5 -0
- metadata +10 -11
- data/.gitignore +0 -8
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
@@ -192,6 +192,11 @@ module SpobBrowserDetector
|
|
192
192
|
return match.nil? ? '0' : match[1]
|
193
193
|
end
|
194
194
|
|
195
|
+
def resolve_version_for_ie_ce
|
196
|
+
match = /.*msie (.*); windows nt 5.1/.match( @ua )
|
197
|
+
return match.nil? ? '0' : match[1]
|
198
|
+
end
|
199
|
+
|
195
200
|
def resolve_version_for_firefox
|
196
201
|
match = /.*\((.*); u;.*firefox\/(.*) \(.net.*/.match( @ua )
|
197
202
|
if match.nil?
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spob_browser_detector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- C. Jason Harrelson (midas)
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-01 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -45,7 +45,6 @@ extra_rdoc_files:
|
|
45
45
|
- README.rdoc
|
46
46
|
files:
|
47
47
|
- .document
|
48
|
-
- .gitignore
|
49
48
|
- History.txt
|
50
49
|
- LICENSE
|
51
50
|
- README.rdoc
|
@@ -64,8 +63,8 @@ homepage: http://github.com/midas/browser_detector
|
|
64
63
|
licenses: []
|
65
64
|
|
66
65
|
post_install_message:
|
67
|
-
rdoc_options:
|
68
|
-
|
66
|
+
rdoc_options: []
|
67
|
+
|
69
68
|
require_paths:
|
70
69
|
- lib
|
71
70
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -94,7 +93,7 @@ signing_key:
|
|
94
93
|
specification_version: 3
|
95
94
|
summary: Determines the name and version of the browser currently making a request.
|
96
95
|
test_files:
|
97
|
-
- test/test_helper.rb
|
98
|
-
- test/browser_detector_test.rb
|
99
|
-
- test/browser_detector/rails/view_helpers_test.rb
|
100
96
|
- test/browser_detector/detector_test.rb
|
97
|
+
- test/browser_detector/rails/view_helpers_test.rb
|
98
|
+
- test/browser_detector_test.rb
|
99
|
+
- test/test_helper.rb
|