useragent 0.2.2 → 0.2.3

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.rb +1 -1
  2. metadata +3 -3
@@ -12,7 +12,7 @@ class UserAgent
12
12
 
13
13
  def self.parse(string)
14
14
  agents = []
15
- while m = string.match(MATCHER)
15
+ while m = string.to_s.match(MATCHER)
16
16
  agents << new(m[1], m[2], m[4])
17
17
  string = string.sub(m[0], '').strip
18
18
  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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Peek