voight_kampff 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fda1e6dfa4eb9d13fc6e97ed8a017e6c3e0a75a
4
- data.tar.gz: 82792de66dc04e759c31937bd098839ba6841e10
3
+ metadata.gz: 8be7ae7a0a8bf8bcbfdc9f57328074da1392463c
4
+ data.tar.gz: 9a9b7e9651cf58ba4452eb040f2e8229b38cbc2f
5
5
  SHA512:
6
- metadata.gz: f10cf36a22e05ad573a979fd7e3ded7aa77a9da4fc1ea5b912e4548bab8719509f8d564bd68bea8807c5e78b623c75edc04d4188498ac8ab58dae47780c99127
7
- data.tar.gz: 0d3500dd716f6ff8310d2ffede85bc3c813d6d370a1993fe075c90052212b270d56964bc1b7fdaf8f6bc9cb0e564a7a0d37025c187fe2943c4b50cfb5b04c396
6
+ metadata.gz: e7a65d1b32de3ecc12093db12aaa84831089e69bc0c9542002d19eaaeea192ab283b0a1c7fba3207e387f4424af824cdbabc10f25cad2e330b79520767b1e409
7
+ data.tar.gz: 15667e91a1c0ab7ae468ca64fadd0dc92b779f7c55189b268dff968d38657dbea81862f1f69133ebbcb0c7184d278917e0eeb32c9d2619fe0bbcb14625eda14d
data/MIT-LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2013 by Biola University
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
data/README.markdown CHANGED
@@ -1,6 +1,6 @@
1
1
  Voight-Kampff
2
2
  =============
3
- [![Build Status](https://travis-ci.org/nbit001/voight-kampff.png?branch=master)](https://travis-ci.org/nbit001/voight-kampff)
3
+ [![Build Status](https://travis-ci.org/biola/Voight-Kampff.png?branch=master)](https://travis-ci.org/biola/Voight-Kampff)
4
4
 
5
5
  Voight-Kampff relies on [user agent](http://en.wikipedia.org/wiki/User_agent) list for its detection. It can easily tell you if a request is coming from a crawler, spider or bot. This can be especially helpful in analytics such as page hit tracking.
6
6
 
@@ -69,8 +69,9 @@ module VoightKampff
69
69
  @@agents ||= []
70
70
  if @@agents.empty?
71
71
 
72
- base_paths = [VoightKampff.root]
72
+ base_paths = []
73
73
  base_paths << Rails.root if defined? Rails
74
+ base_paths << VoightKampff.root
74
75
  rel_path = ['config', 'user_agents.yml']
75
76
 
76
77
  base_paths.any? do |base_path|
@@ -1,3 +1,3 @@
1
1
  module VoightKampff
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voight_kampff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.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: 2013-07-15 00:00:00.000000000 Z
11
+ date: 2014-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.6.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.6.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4.7'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rdoc
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.4.2
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 2.4.2
69
69
  description: Voight-Kampff detects bots, spiders, crawlers and replicants
@@ -72,14 +72,15 @@ executables: []
72
72
  extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
- - .autotest
76
- - .gitignore
75
+ - ".autotest"
76
+ - ".gitignore"
77
77
  - CHANGELOG.rdoc
78
78
  - Gemfile
79
79
  - Gemfile.lock
80
+ - MIT-LICENSE
80
81
  - README.markdown
81
82
  - Rakefile
82
- - config/initializers/extend_action_dispatch_requset.rb
83
+ - config/initializers/extend_action_dispatch_request.rb
83
84
  - config/user_agents.yml
84
85
  - lib/tasks/voight_kampff.rake
85
86
  - lib/voight_kampff.rb
@@ -146,17 +147,17 @@ require_paths:
146
147
  - lib
147
148
  required_ruby_version: !ruby/object:Gem::Requirement
148
149
  requirements:
149
- - - '>='
150
+ - - ">="
150
151
  - !ruby/object:Gem::Version
151
152
  version: '0'
152
153
  required_rubygems_version: !ruby/object:Gem::Requirement
153
154
  requirements:
154
- - - '>='
155
+ - - ">="
155
156
  - !ruby/object:Gem::Version
156
157
  version: '0'
157
158
  requirements: []
158
159
  rubyforge_project:
159
- rubygems_version: 2.0.3
160
+ rubygems_version: 2.2.2
160
161
  signing_key:
161
162
  specification_version: 4
162
163
  summary: Voight-Kampff bot detection