useragent 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/user_agent/browsers/opera.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7beed7c3e58f48ae8eafe07647b5a697dda925e2
|
4
|
+
data.tar.gz: 849a89b1d719abca31f254653e12de26dc77ea85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c90119ee052cc6b902fa4560c7e0282ddb06b597672d1280eb6ab9cd2f65783df79a56ed63e27a8b85319047c8c4f7823c038586d0eaaef0faa3c36de80faedd
|
7
|
+
data.tar.gz: d3754eb53dd810b258085a5afeaf108a6ee6de076b1cb0ab8a50a8c1ef5f241d5dc5be99993496fe6ad0efc95aa85f43c0cc487a2366ccac37cafc0bfeee69e7
|
@@ -13,11 +13,11 @@ class UserAgent
|
|
13
13
|
|
14
14
|
def version
|
15
15
|
if mini?
|
16
|
-
application.comment.detect{|c| c =~ /Opera Mini/}[/Opera Mini\/([\d\.]+)/, 1] rescue Version.new
|
16
|
+
Version.new(application.comment.detect{|c| c =~ /Opera Mini/}[/Opera Mini\/([\d\.]+)/, 1]) rescue Version.new
|
17
17
|
elsif product = detect_product('Version')
|
18
|
-
product.version
|
18
|
+
Version.new(product.version)
|
19
19
|
elsif product = detect_product('OPR')
|
20
|
-
product.version
|
20
|
+
Version.new(product.version)
|
21
21
|
else
|
22
22
|
super
|
23
23
|
end
|
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.13.
|
4
|
+
version: 0.13.3
|
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-03-
|
12
|
+
date: 2015-03-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|