voight_kampff 0.1.4 → 0.2.0
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 +7 -0
- data/.autotest +22 -0
- data/.gitignore +7 -0
- data/CHANGELOG.rdoc +16 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +28 -0
- data/README.markdown +63 -0
- data/Rakefile +20 -0
- data/config/initializers/extend_action_dispatch_requset.rb +4 -4
- data/lib/tasks/voight_kampff.rake +1 -0
- data/lib/voight_kampff/base.rb +7 -0
- data/lib/voight_kampff/test.rb +8 -8
- data/lib/voight_kampff/user_agents_parser.rb +1 -1
- data/lib/voight_kampff/version.rb +1 -3
- data/lib/voight_kampff.rb +4 -4
- data/tests/spec/minitest_helper.rb +2 -0
- data/tests/spec/voight_kampff_spec.rb +10 -0
- data/tests/test_app/.gitignore +15 -0
- data/tests/test_app/Gemfile +39 -0
- data/tests/test_app/Gemfile.lock +123 -0
- data/tests/test_app/Rakefile +7 -0
- data/tests/test_app/app/controllers/application_controller.rb +3 -0
- data/tests/test_app/app/helpers/application_helper.rb +2 -0
- data/tests/test_app/app/mailers/.gitkeep +0 -0
- data/tests/test_app/app/models/.gitkeep +0 -0
- data/tests/test_app/app/views/layouts/application.html.erb +14 -0
- data/tests/test_app/config/application.rb +62 -0
- data/tests/test_app/config/boot.rb +6 -0
- data/tests/test_app/config/database.yml +25 -0
- data/tests/test_app/config/environment.rb +5 -0
- data/tests/test_app/config/environments/development.rb +37 -0
- data/tests/test_app/config/environments/production.rb +67 -0
- data/tests/test_app/config/environments/test.rb +37 -0
- data/tests/test_app/config/initializers/backtrace_silencers.rb +7 -0
- data/tests/test_app/config/initializers/inflections.rb +15 -0
- data/tests/test_app/config/initializers/mime_types.rb +5 -0
- data/tests/test_app/config/initializers/secret_token.rb +7 -0
- data/tests/test_app/config/initializers/session_store.rb +8 -0
- data/tests/test_app/config/initializers/wrap_parameters.rb +14 -0
- data/tests/test_app/config/locales/en.yml +5 -0
- data/tests/test_app/config/routes.rb +58 -0
- data/tests/test_app/config.ru +4 -0
- data/tests/test_app/doc/README_FOR_APP +2 -0
- data/tests/test_app/lib/assets/.gitkeep +0 -0
- data/tests/test_app/lib/tasks/.gitkeep +0 -0
- data/tests/test_app/log/.gitkeep +0 -0
- data/tests/test_app/public/404.html +26 -0
- data/tests/test_app/public/422.html +26 -0
- data/tests/test_app/public/500.html +25 -0
- data/tests/test_app/public/favicon.ico +0 -0
- data/tests/test_app/public/index.html +241 -0
- data/tests/test_app/public/robots.txt +5 -0
- data/tests/test_app/script/rails +6 -0
- data/tests/test_app/test/fixtures/.gitkeep +0 -0
- data/tests/test_app/test/functional/.gitkeep +0 -0
- data/tests/test_app/test/integration/.gitkeep +0 -0
- data/tests/test_app/test/performance/browsing_test.rb +12 -0
- data/tests/test_app/test/test_helper.rb +13 -0
- data/tests/test_app/test/unit/.gitkeep +0 -0
- data/tests/test_app/vendor/assets/javascripts/.gitkeep +0 -0
- data/tests/test_app/vendor/assets/stylesheets/.gitkeep +0 -0
- data/tests/test_app/vendor/plugins/.gitkeep +0 -0
- data/voight_kampff.gemspec +30 -0
- metadata +116 -22
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
$:.unshift File.expand_path('../lib', __FILE__)
|
|
3
|
+
require 'voight_kampff/version'
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |s|
|
|
6
|
+
s.name = 'voight_kampff'
|
|
7
|
+
s.summary = "Voight-Kampff bot detection"
|
|
8
|
+
s.description = 'Voight-Kampff detects bots, spiders, crawlers and replicants'
|
|
9
|
+
|
|
10
|
+
s.licenses = ['MIT']
|
|
11
|
+
|
|
12
|
+
s.author = "Adam Crownoble"
|
|
13
|
+
s.email = "adam@obledesign.com"
|
|
14
|
+
s.homepage = "https://github.com/biola/Voight-Kampff"
|
|
15
|
+
|
|
16
|
+
# so that rubygems does not uses the actual object
|
|
17
|
+
s.version = VoightKampff::VERSION.dup
|
|
18
|
+
s.platform = Gem::Platform::RUBY.dup
|
|
19
|
+
s.files = `git ls-files`.split("\n")
|
|
20
|
+
s.files.reject! { |fn| fn.match(/\.travis.yml/) }
|
|
21
|
+
s.test_files = `git ls-files -- {tests}/**/*`.split("\n")
|
|
22
|
+
s.require_path = 'lib'
|
|
23
|
+
|
|
24
|
+
s.add_dependency 'httpclient', '~> 2.2'
|
|
25
|
+
|
|
26
|
+
# Nokogiri 1.6.0 has dropped support for Ruby 1.8.7
|
|
27
|
+
s.add_dependency 'nokogiri', (RUBY_VERSION.match("1.8.7") ? '1.5.10' : '~> 1.6.0')
|
|
28
|
+
s.add_development_dependency 'minitest', '~> 4.7'
|
|
29
|
+
s.add_development_dependency 'rdoc', '>= 2.4.2'
|
|
30
|
+
end
|
metadata
CHANGED
|
@@ -1,69 +1,163 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: voight_kampff
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.2.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Adam Crownoble
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2013-07-15 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: httpclient
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
|
-
- -
|
|
17
|
+
- - ~>
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 2.
|
|
19
|
+
version: '2.2'
|
|
22
20
|
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
|
-
- -
|
|
24
|
+
- - ~>
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 2.
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
version: '2.2'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: nokogiri
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ~>
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 1.6.0
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ~>
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 1.6.0
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: minitest
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ~>
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '4.7'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ~>
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '4.7'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rdoc
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 2.4.2
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - '>='
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 2.4.2
|
|
69
|
+
description: Voight-Kampff detects bots, spiders, crawlers and replicants
|
|
32
70
|
email: adam@obledesign.com
|
|
33
71
|
executables: []
|
|
34
72
|
extensions: []
|
|
35
73
|
extra_rdoc_files: []
|
|
36
74
|
files:
|
|
37
|
-
-
|
|
75
|
+
- .autotest
|
|
76
|
+
- .gitignore
|
|
77
|
+
- CHANGELOG.rdoc
|
|
78
|
+
- Gemfile
|
|
79
|
+
- Gemfile.lock
|
|
80
|
+
- README.markdown
|
|
81
|
+
- Rakefile
|
|
38
82
|
- config/initializers/extend_action_dispatch_requset.rb
|
|
83
|
+
- config/user_agents.yml
|
|
84
|
+
- lib/tasks/voight_kampff.rake
|
|
39
85
|
- lib/voight_kampff.rb
|
|
86
|
+
- lib/voight_kampff/base.rb
|
|
87
|
+
- lib/voight_kampff/engine.rb
|
|
88
|
+
- lib/voight_kampff/test.rb
|
|
40
89
|
- lib/voight_kampff/user_agents_parser.rb
|
|
41
90
|
- lib/voight_kampff/version.rb
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
91
|
+
- tests/spec/minitest_helper.rb
|
|
92
|
+
- tests/spec/voight_kampff_spec.rb
|
|
93
|
+
- tests/test_app/.gitignore
|
|
94
|
+
- tests/test_app/Gemfile
|
|
95
|
+
- tests/test_app/Gemfile.lock
|
|
96
|
+
- tests/test_app/Rakefile
|
|
97
|
+
- tests/test_app/app/controllers/application_controller.rb
|
|
98
|
+
- tests/test_app/app/helpers/application_helper.rb
|
|
99
|
+
- tests/test_app/app/mailers/.gitkeep
|
|
100
|
+
- tests/test_app/app/models/.gitkeep
|
|
101
|
+
- tests/test_app/app/views/layouts/application.html.erb
|
|
102
|
+
- tests/test_app/config.ru
|
|
103
|
+
- tests/test_app/config/application.rb
|
|
104
|
+
- tests/test_app/config/boot.rb
|
|
105
|
+
- tests/test_app/config/database.yml
|
|
106
|
+
- tests/test_app/config/environment.rb
|
|
107
|
+
- tests/test_app/config/environments/development.rb
|
|
108
|
+
- tests/test_app/config/environments/production.rb
|
|
109
|
+
- tests/test_app/config/environments/test.rb
|
|
110
|
+
- tests/test_app/config/initializers/backtrace_silencers.rb
|
|
111
|
+
- tests/test_app/config/initializers/inflections.rb
|
|
112
|
+
- tests/test_app/config/initializers/mime_types.rb
|
|
113
|
+
- tests/test_app/config/initializers/secret_token.rb
|
|
114
|
+
- tests/test_app/config/initializers/session_store.rb
|
|
115
|
+
- tests/test_app/config/initializers/wrap_parameters.rb
|
|
116
|
+
- tests/test_app/config/locales/en.yml
|
|
117
|
+
- tests/test_app/config/routes.rb
|
|
118
|
+
- tests/test_app/doc/README_FOR_APP
|
|
119
|
+
- tests/test_app/lib/assets/.gitkeep
|
|
120
|
+
- tests/test_app/lib/tasks/.gitkeep
|
|
121
|
+
- tests/test_app/log/.gitkeep
|
|
122
|
+
- tests/test_app/public/404.html
|
|
123
|
+
- tests/test_app/public/422.html
|
|
124
|
+
- tests/test_app/public/500.html
|
|
125
|
+
- tests/test_app/public/favicon.ico
|
|
126
|
+
- tests/test_app/public/index.html
|
|
127
|
+
- tests/test_app/public/robots.txt
|
|
128
|
+
- tests/test_app/script/rails
|
|
129
|
+
- tests/test_app/test/fixtures/.gitkeep
|
|
130
|
+
- tests/test_app/test/functional/.gitkeep
|
|
131
|
+
- tests/test_app/test/integration/.gitkeep
|
|
132
|
+
- tests/test_app/test/performance/browsing_test.rb
|
|
133
|
+
- tests/test_app/test/test_helper.rb
|
|
134
|
+
- tests/test_app/test/unit/.gitkeep
|
|
135
|
+
- tests/test_app/vendor/assets/javascripts/.gitkeep
|
|
136
|
+
- tests/test_app/vendor/assets/stylesheets/.gitkeep
|
|
137
|
+
- tests/test_app/vendor/plugins/.gitkeep
|
|
138
|
+
- voight_kampff.gemspec
|
|
45
139
|
homepage: https://github.com/biola/Voight-Kampff
|
|
46
|
-
licenses:
|
|
140
|
+
licenses:
|
|
141
|
+
- MIT
|
|
142
|
+
metadata: {}
|
|
47
143
|
post_install_message:
|
|
48
144
|
rdoc_options: []
|
|
49
145
|
require_paths:
|
|
50
146
|
- lib
|
|
51
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
|
-
none: false
|
|
53
148
|
requirements:
|
|
54
|
-
- -
|
|
149
|
+
- - '>='
|
|
55
150
|
- !ruby/object:Gem::Version
|
|
56
151
|
version: '0'
|
|
57
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
|
-
none: false
|
|
59
153
|
requirements:
|
|
60
|
-
- -
|
|
154
|
+
- - '>='
|
|
61
155
|
- !ruby/object:Gem::Version
|
|
62
156
|
version: '0'
|
|
63
157
|
requirements: []
|
|
64
158
|
rubyforge_project:
|
|
65
|
-
rubygems_version:
|
|
159
|
+
rubygems_version: 2.0.3
|
|
66
160
|
signing_key:
|
|
67
|
-
specification_version:
|
|
161
|
+
specification_version: 4
|
|
68
162
|
summary: Voight-Kampff bot detection
|
|
69
163
|
test_files: []
|