useragent 0.4.5 → 0.4.6

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/webkit.rb +31 -30
  2. metadata +4 -4
@@ -26,35 +26,36 @@ class UserAgent
26
26
  end
27
27
 
28
28
  BuildVersions = {
29
- "85.7" => "1.0",
30
- "85.8.5" => "1.0.3",
31
- "85.8.2" => "1.0.3",
32
- "124" => "1.2",
33
- "125.2" => "1.2.2",
34
- "125.4" => "1.2.3",
35
- "125.5.5" => "1.2.4",
36
- "125.5.6" => "1.2.4",
37
- "125.5.7" => "1.2.4",
38
- "312.1.1" => "1.3",
39
- "312.1" => "1.3",
40
- "312.5" => "1.3.1",
41
- "312.5.1" => "1.3.1",
42
- "312.5.2" => "1.3.1",
43
- "312.8" => "1.3.2",
44
- "312.8.1" => "1.3.2",
45
- "412" => "2.0",
46
- "412.6" => "2.0",
47
- "412.6.2" => "2.0",
48
- "412.7" => "2.0.1",
49
- "416.11" => "2.0.2",
50
- "416.12" => "2.0.2",
51
- "417.9" => "2.0.3",
52
- "418" => "2.0.3",
53
- "418.8" => "2.0.4",
54
- "418.9" => "2.0.4",
55
- "418.9.1" => "2.0.4",
56
- "419" => "2.0.4",
57
- "425.13" => "2.2"
29
+ "85.7" => "1.0",
30
+ "85.8.5" => "1.0.3",
31
+ "85.8.2" => "1.0.3",
32
+ "124" => "1.2",
33
+ "125.2" => "1.2.2",
34
+ "125.4" => "1.2.3",
35
+ "125.5.5" => "1.2.4",
36
+ "125.5.6" => "1.2.4",
37
+ "125.5.7" => "1.2.4",
38
+ "312.1.1" => "1.3",
39
+ "312.1" => "1.3",
40
+ "312.5" => "1.3.1",
41
+ "312.5.1" => "1.3.1",
42
+ "312.5.2" => "1.3.1",
43
+ "312.8" => "1.3.2",
44
+ "312.8.1" => "1.3.2",
45
+ "412" => "2.0",
46
+ "412.6" => "2.0",
47
+ "412.6.2" => "2.0",
48
+ "412.7" => "2.0.1",
49
+ "416.11" => "2.0.2",
50
+ "416.12" => "2.0.2",
51
+ "417.9" => "2.0.3",
52
+ "418" => "2.0.3",
53
+ "418.8" => "2.0.4",
54
+ "418.9" => "2.0.4",
55
+ "418.9.1" => "2.0.4",
56
+ "419" => "2.0.4",
57
+ "425.13" => "2.2",
58
+ "534.52.7" => "5.1.2"
58
59
  }.freeze
59
60
 
60
61
  # Prior to Safari 3, the user agent did not include a version number
@@ -102,7 +103,7 @@ class UserAgent
102
103
  elsif platform == 'Symbian'
103
104
  application.comment[0]
104
105
  elsif application
105
- OperatingSystems.normalize_os(application.comment[2])
106
+ application.comment[2].nil? ? OperatingSystems.normalize_os(application.comment[1]) : OperatingSystems.normalize_os(application.comment[2])
106
107
  else
107
108
  nil
108
109
  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: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 5
10
- version: 0.4.5
9
+ - 6
10
+ version: 0.4.6
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-11-02 00:00:00 -05:00
18
+ date: 2012-01-27 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency