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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f69cf2d44084d828233a9ba572469fc80fd0fb1
4
- data.tar.gz: 7b27952c2d2299f6c8b4ed06134a57bee214ec90
3
+ metadata.gz: 7beed7c3e58f48ae8eafe07647b5a697dda925e2
4
+ data.tar.gz: 849a89b1d719abca31f254653e12de26dc77ea85
5
5
  SHA512:
6
- metadata.gz: 9aee118761c02ab4e4d30aa3650e1c43cd7465e986b57f86faead6ddc9d2e00338a1e4e3543518e617efd44f0c660514c023c30dab963a1c22cfdd6bf6dc0b50
7
- data.tar.gz: 7d5c68eb6f3cd951858045e3f870d5bdda079c6ee9de44d0e0af1cb342e180a5780733331c60036d275ad8507a14eddadb124b6ff6556b022ca5bd3dd31d1040
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.2
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-20 00:00:00.000000000 Z
12
+ date: 2015-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake