useragent 0.4.2 → 0.4.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 +32 -10
@@ -21,7 +21,7 @@ class UserAgent
21
21
  agents = []
22
22
  while m = string.to_s.match(MATCHER)
23
23
  agents << new(m[1], m[2], m[4])
24
- string = string.sub(m[0], '').strip
24
+ string = string[m[0].length..-1].strip
25
25
  end
26
26
  Browsers.extend(agents)
27
27
  agents
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useragent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 4
9
- - 2
10
- version: 0.4.2
8
+ - 3
9
+ version: 0.4.3
11
10
  platform: ruby
12
11
  authors:
13
12
  - Joshua Peek
@@ -15,10 +14,35 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-07-07 00:00:00 -05:00
17
+ date: 2011-07-25 00:00:00 -05:00
19
18
  default_executable:
20
- dependencies: []
21
-
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rake
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ type: :development
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: rspec
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
44
+ type: :development
45
+ version_requirements: *id002
22
46
  description: " HTTP User Agent parser\n"
23
47
  email: josh@joshpeek.com
24
48
  executables: []
@@ -55,7 +79,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
79
  requirements:
56
80
  - - ">="
57
81
  - !ruby/object:Gem::Version
58
- hash: 3
59
82
  segments:
60
83
  - 0
61
84
  version: "0"
@@ -64,14 +87,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
87
  requirements:
65
88
  - - ">="
66
89
  - !ruby/object:Gem::Version
67
- hash: 3
68
90
  segments:
69
91
  - 0
70
92
  version: "0"
71
93
  requirements: []
72
94
 
73
95
  rubyforge_project:
74
- rubygems_version: 1.5.2
96
+ rubygems_version: 1.3.7
75
97
  signing_key:
76
98
  specification_version: 3
77
99
  summary: HTTP User Agent parser