voight_kampff 0.1.2 → 0.1.3
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 +13 -8
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']) == 0
|
20
|
+
@user_agent_string.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.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-09-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httpclient
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>'
|
@@ -21,7 +21,12 @@ dependencies:
|
|
21
21
|
version: 2.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>'
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.1.0
|
25
30
|
description: Voight-Kampff is a Ruby gem that detects bots, spiders, crawlers and
|
26
31
|
replicants
|
27
32
|
email: adam@obledesign.com
|
@@ -32,12 +37,12 @@ files:
|
|
32
37
|
- config/user_agents.yml
|
33
38
|
- config/initializers/extend_action_dispatch_requset.rb
|
34
39
|
- lib/voight_kampff.rb
|
40
|
+
- lib/voight_kampff/engine.rb
|
41
|
+
- lib/voight_kampff/test.rb
|
35
42
|
- lib/voight_kampff/user_agents_parser.rb
|
36
43
|
- lib/voight_kampff/version.rb
|
37
|
-
- lib/voight_kampff/test.rb
|
38
|
-
- lib/voight_kampff/engine.rb
|
39
44
|
- lib/tasks/voight_kampff.rake
|
40
|
-
homepage: https://github.com/
|
45
|
+
homepage: https://github.com/biola/Voight-Kampff
|
41
46
|
licenses: []
|
42
47
|
post_install_message:
|
43
48
|
rdoc_options: []
|
@@ -57,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
62
|
version: '0'
|
58
63
|
requirements: []
|
59
64
|
rubyforge_project:
|
60
|
-
rubygems_version: 1.8.
|
65
|
+
rubygems_version: 1.8.24
|
61
66
|
signing_key:
|
62
67
|
specification_version: 3
|
63
68
|
summary: Voight-Kampff bot detection
|