babu3009-user-agent 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +5 -2
- data/lib/user-agent/agent.rb +2 -0
- data/lib/user-agent/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4762d261cf55e1a67ed451c6c37758a1c5459aab
|
4
|
+
data.tar.gz: 5951586070f155d4de063c2bc3f409b3bbefa0ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 749684f85edc00a5c2c94888317f0c0d0623a42262892b098f5433acdd27c61b85bdacb0f50653d9d59deb697a7b8aff91db3b98547f3e3bfd932b490057cab8
|
7
|
+
data.tar.gz: f4b5576683555300ccb6bfd8f7f1db70105b5b03dbc1c4db968bf6f424931d6d3170ab8f5e182441d0221e3f28b0ad07d5a33bbfe447d7057f30e822d09779b2
|
data/README.rdoc
CHANGED
@@ -5,11 +5,14 @@ User agent parser.
|
|
5
5
|
|
6
6
|
== Example
|
7
7
|
|
8
|
-
|
8
|
+
require 'user-agent'
|
9
|
+
|
10
|
+
agent = UserAgent.parse('Mozilla/5.0 (Windows; U; Windows NT 6.0; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9')
|
9
11
|
agent.name # => :Safari
|
10
12
|
agent.version # => '4.0.3'
|
11
13
|
agent.engine # => :webkit
|
12
14
|
agent.os # => :'Windows Vista'
|
15
|
+
agent.system_type # => :'64-bit'
|
13
16
|
agent.platform # => :Windows
|
14
17
|
agent.engine_version # => '531.9'
|
15
18
|
|
@@ -30,7 +33,7 @@ User agent parser.
|
|
30
33
|
|
31
34
|
(The MIT License)
|
32
35
|
|
33
|
-
Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>
|
36
|
+
Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca> and all other developers
|
34
37
|
|
35
38
|
Permission is hereby granted, free of charge, to any person obtaining
|
36
39
|
a copy of this software and associated documentation files (the
|
data/lib/user-agent/agent.rb
CHANGED
@@ -116,6 +116,8 @@ module UserAgent
|
|
116
116
|
:'Windows 2000'
|
117
117
|
when /windows phone os ([^;]+);/i;
|
118
118
|
:"Windows Phone OS #{$1}"
|
119
|
+
when /windows phone ([^;]+);/i;
|
120
|
+
:"Windows Phone #{$1}"
|
119
121
|
when /os x (\d+)[._](\d+)/i;
|
120
122
|
:"OS X #{$1}.#{$2}"
|
121
123
|
when /android ([^;]+);/i;
|
data/lib/user-agent/version.rb
CHANGED