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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c52ceda522600a7c27924568e13e52147fa979c6
4
- data.tar.gz: c117234c52ede1f20f499052ec7325e924db42f9
3
+ metadata.gz: 4762d261cf55e1a67ed451c6c37758a1c5459aab
4
+ data.tar.gz: 5951586070f155d4de063c2bc3f409b3bbefa0ea
5
5
  SHA512:
6
- metadata.gz: 5446d12668ea3e082c28e8a7a1b3919c5fe6ebbc040528b9a29061b644acfc8540976c040dae2511088657c186efca76386d7f9d4b67576c2b0446c44b81b359
7
- data.tar.gz: e395d43e3f1bdc2a9f6fa83258fa560d854f4343a316a4f094a5b910f4751066a7269bc31f56891a23dd60bff4756c11684f7c154928c032a8e7ca5a17841dc6
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
- agent = Agent.new 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9'
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
@@ -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;
@@ -1,3 +1,3 @@
1
1
  module UserAgent
2
- VERSION = '1.2.4'
2
+ VERSION = '1.2.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: babu3009-user-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'babu3009, original dev: TJ Holowaychuk'