useragent 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/user_agent.rb +2 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51aa24d6a524743862c56ab432b88b4e3cf47de9
4
- data.tar.gz: de584ebbb72e57c6d7e2754b576bf395551a7eb5
3
+ metadata.gz: 96d4c326dbf2832b5851d5da2e1dd32fb8014918
4
+ data.tar.gz: 0f6d567a382f9952042263eadfd8b02eec870c74
5
5
  SHA512:
6
- metadata.gz: deb3a0828a300e60e5a440e15922da7c18f4219b55fb23dbf516ce1dd7e2f695f4f4d2a7cdb061da3ba157e0706133789c9d77cb46d91985267014889ecb6734
7
- data.tar.gz: 741f86b6dfa3d46ceaf09c5fc5ae4e0d3c1d0f55d385c4730f3bbb8b0467cc1a5e85443e86eb1fb0b567189041adda2c4e9b6a048f9ac9bc95145c8fd09da183
6
+ metadata.gz: ed16ad54f08a1de0c19d7da8bf5bf331edf8d2311c7efc59489d35f41482dc3ccdd33c0441af4d5d6ff92eefa199848358deeaeab880e6d53a9b1f4ba9a7f49e
7
+ data.tar.gz: c40a58ecd7f6b42ef7616177aa63af8a87cd68f8ea387598651b1776d59a34f60edcd4799774cff8a66a005dd6b1c66826e58310d26f4a4b967de7ba0c46aabc
data/lib/user_agent.rb CHANGED
@@ -6,7 +6,8 @@ require 'user_agent/version'
6
6
  class UserAgent
7
7
  # http://www.texsoft.it/index.php?m=sw.php.useragent
8
8
  MATCHER = %r{
9
- ^([^/\s]+) # Product
9
+ ^['"]* # Possible opening quote(s)
10
+ ([^/\s]+) # Product
10
11
  /?([^\s,]*) # Version
11
12
  (\s\(([^\)]*)\)|,gzip\(gfe\))? # Comment
12
13
  }x.freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useragent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Peek
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-14 00:00:00.000000000 Z
12
+ date: 2015-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake