voight_kampff 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/voight_kampff/test.rb +1 -1
- data/lib/voight_kampff/version.rb +1 -1
- metadata +4 -4
data/lib/voight_kampff/test.rb
CHANGED
@@ -17,7 +17,7 @@ module VoightKampff
|
|
17
17
|
if agent['string_match'] == 'regex'
|
18
18
|
@user_agent_string =~ Regexp.new(agent['string'], Regexp::IGNORECASE)
|
19
19
|
else
|
20
|
-
@user_agent_string.casecmp(agent['string'].to_s) == 0
|
20
|
+
@user_agent_string.to_s.casecmp(agent['string'].to_s) == 0
|
21
21
|
end
|
22
22
|
end || {}
|
23
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voight_kampff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httpclient
|
@@ -37,10 +37,10 @@ files:
|
|
37
37
|
- config/user_agents.yml
|
38
38
|
- config/initializers/extend_action_dispatch_requset.rb
|
39
39
|
- lib/voight_kampff.rb
|
40
|
-
- lib/voight_kampff/engine.rb
|
41
|
-
- lib/voight_kampff/test.rb
|
42
40
|
- lib/voight_kampff/user_agents_parser.rb
|
43
41
|
- lib/voight_kampff/version.rb
|
42
|
+
- lib/voight_kampff/test.rb
|
43
|
+
- lib/voight_kampff/engine.rb
|
44
44
|
- lib/tasks/voight_kampff.rake
|
45
45
|
homepage: https://github.com/biola/Voight-Kampff
|
46
46
|
licenses: []
|