useragent 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/user_agent/browsers/all.rb +10 -1
  2. metadata +4 -4
@@ -36,6 +36,14 @@ class UserAgent
36
36
  application.version
37
37
  end
38
38
 
39
+ def platform
40
+ nil
41
+ end
42
+
43
+ def os
44
+ nil
45
+ end
46
+
39
47
  def respond_to?(symbol)
40
48
  detect_product(symbol) ? true : super
41
49
  end
@@ -55,7 +63,8 @@ class UserAgent
55
63
  true
56
64
  elsif detect_product('Mobile')
57
65
  true
58
- elsif application.comment.detect { |k, v| k =~ /^IEMobile/ }
66
+ elsif application.comment &&
67
+ application.comment.detect { |k, v| k =~ /^IEMobile/ }
59
68
  true
60
69
  else
61
70
  false
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useragent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Peek
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-29 00:00:00 -05:00
18
+ date: 2011-07-07 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21