useragent 0.8.1 → 0.8.2

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: 578e455222323d0c5fcc463b1b0cb2c349ad2df9
4
- data.tar.gz: 50f22bcd7469ba90f4ef42cd098d36e19c937c1c
3
+ metadata.gz: 99cedd000e16075b199fd6ab6c14146b51e51ecd
4
+ data.tar.gz: fbf04f87a4d07b173857c4d85218750865df9cb2
5
5
  SHA512:
6
- metadata.gz: e82e4a08f86def642e8d41ae7f938ff11393c3e3047c7045c8033df301d61c9281801afbb906809a19418425de8c60058965f7fc5c795ffc854e6142c0013753
7
- data.tar.gz: 45840759712d99fe573834bf988ea278e2a4af448c09c60c6c44b71ca070b13a5c747cf9ece81e54758e3572339d312d65f38e62e2b7a280f949a5058e441629
6
+ metadata.gz: 2e9e0628db48bf4d39912e7aa585ecfe344387414ec89d3c628532347347b5b3d242c4f6e89e89fdd70c673f4e263549611e200bf6b1c5c2d89bb66da647f34b
7
+ data.tar.gz: bd136a29b94b54fd3b87a6fbfc75fd9c209aecde68b6749e155bf8fc20319de9a58041052d2d6c6e90a8d2a522c139eddbdb9aca099d70f2fe76ac946ae71f78
@@ -2,7 +2,7 @@ class UserAgent
2
2
  module Browsers
3
3
  module Opera
4
4
  def self.extend?(agent)
5
- agent.first.product == 'Opera' ||
5
+ (agent.first && agent.first.product == 'Opera') ||
6
6
  (agent.application && agent.application.product == 'Opera')
7
7
  end
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useragent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Peek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-07 00:00:00.000000000 Z
11
+ date: 2013-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake