useragent 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,6 +53,8 @@ class UserAgent
53
53
  true
54
54
  elsif detect_product('Mobile')
55
55
  true
56
+ elsif application.comment.detect { |k, v| k =~ /^IEMobile/ }
57
+ true
56
58
  else
57
59
  false
58
60
  end
@@ -14,8 +14,8 @@ class UserAgent
14
14
  'Android'
15
15
  elsif detect_product('Chrome')
16
16
  'Chrome'
17
- elsif platform == 'webOS'
18
- 'webOS'
17
+ elsif platform == 'webOS' || platform == 'BlackBerry'
18
+ platform
19
19
  else
20
20
  'Safari'
21
21
  end
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: 23
5
- prerelease: false
4
+ hash: 21
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Peek
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  requirements: []
70
70
 
71
71
  rubyforge_project:
72
- rubygems_version: 1.3.7
72
+ rubygems_version: 1.4.1
73
73
  signing_key:
74
74
  specification_version: 3
75
75
  summary: HTTP User Agent parser