voight_kampff 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/voight_kampff/test.rb +1 -1
- data/lib/voight_kampff/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c6adf1c9f085e2e6635957d63cd8cab207f3a07
|
4
|
+
data.tar.gz: 6e2949e6c89a8c2f3aafe2f07a726788a60711c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e36f897ff189876f736676aca23c5fbc948562f28fd16887ca9daba33da98fc5b779d6e5a3823c9c11d0b1faa2731dc51257c6c227c0150ad9e6882e69607945
|
7
|
+
data.tar.gz: cc62b19d3b66917f1d8afc91f74b0ba447d7dff859cb8e0622e30fa50632325363fb30d17dc256c9e77734a3a919d5a750b08ccbd5df040cf2c8ed2074535b0f
|
data/lib/voight_kampff/test.rb
CHANGED
@@ -12,7 +12,7 @@ module VoightKampff
|
|
12
12
|
load_crawlers
|
13
13
|
|
14
14
|
@agent ||= @@crawlers.find do |crawler|
|
15
|
-
user_agent_string =~ Regexp.new(crawler['pattern'], Regexp::IGNORECASE)
|
15
|
+
self.user_agent_string =~ Regexp.new(crawler['pattern'], Regexp::IGNORECASE)
|
16
16
|
end || {}
|
17
17
|
end
|
18
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voight_kampff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Crownoble
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -122,3 +122,4 @@ signing_key:
|
|
122
122
|
specification_version: 4
|
123
123
|
summary: Voight-Kampff bot detection
|
124
124
|
test_files: []
|
125
|
+
has_rdoc:
|