voight_kampff 0.2.2 → 1.0.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 +4 -4
- data/Gemfile +0 -4
- data/README.md +75 -0
- data/config.ru +7 -0
- data/config/crawler-user-agents.json +750 -0
- data/lib/tasks/voight_kampff.rake +9 -7
- data/lib/voight_kampff.rb +3 -29
- data/lib/voight_kampff/engine.rb +0 -5
- data/lib/voight_kampff/rack_request.rb +11 -0
- data/lib/voight_kampff/test.rb +18 -59
- data/lib/voight_kampff/version.rb +1 -1
- data/spec/controllers/replicants_controller_spec.rb +31 -0
- data/spec/internal/app/controllers/replicants_controller.rb +13 -0
- data/spec/internal/config/routes.rb +4 -0
- data/spec/internal/log/.gitignore +1 -0
- data/{tests/test_app → spec/internal}/public/favicon.ico +0 -0
- data/spec/lib/voight_kampff/rack_request_spec.rb +33 -0
- data/spec/lib/voight_kampff/test_spec.rb +28 -0
- data/spec/lib/voight_kampff_spec.rb +27 -0
- data/spec/spec_helper.rb +11 -0
- data/spec/support/humans.rb +9 -0
- data/spec/support/replicants.rb +5 -0
- data/voight_kampff.gemspec +4 -5
- metadata +30 -70
- data/.autotest +0 -22
- data/CHANGELOG.rdoc +0 -16
- data/README.markdown +0 -63
- data/Rakefile +0 -20
- data/config/initializers/extend_action_dispatch_request.rb +0 -46
- data/config/user_agents.yml +0 -12438
- data/lib/voight_kampff/base.rb +0 -7
- data/lib/voight_kampff/user_agents_parser.rb +0 -54
- data/tests/spec/minitest_helper.rb +0 -2
- data/tests/spec/voight_kampff_spec.rb +0 -10
- data/tests/test_app/.gitignore +0 -15
- data/tests/test_app/Gemfile +0 -39
- data/tests/test_app/Rakefile +0 -7
- data/tests/test_app/app/controllers/application_controller.rb +0 -3
- data/tests/test_app/app/helpers/application_helper.rb +0 -2
- 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 +0 -14
- data/tests/test_app/config.ru +0 -4
- data/tests/test_app/config/application.rb +0 -62
- data/tests/test_app/config/boot.rb +0 -6
- data/tests/test_app/config/database.yml +0 -25
- data/tests/test_app/config/environment.rb +0 -5
- data/tests/test_app/config/environments/development.rb +0 -37
- data/tests/test_app/config/environments/production.rb +0 -67
- data/tests/test_app/config/environments/test.rb +0 -37
- data/tests/test_app/config/initializers/backtrace_silencers.rb +0 -7
- data/tests/test_app/config/initializers/inflections.rb +0 -15
- data/tests/test_app/config/initializers/mime_types.rb +0 -5
- data/tests/test_app/config/initializers/secret_token.rb +0 -7
- data/tests/test_app/config/initializers/session_store.rb +0 -8
- data/tests/test_app/config/initializers/wrap_parameters.rb +0 -14
- data/tests/test_app/config/locales/en.yml +0 -5
- data/tests/test_app/config/routes.rb +0 -58
- 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 +0 -26
- data/tests/test_app/public/422.html +0 -26
- data/tests/test_app/public/500.html +0 -25
- data/tests/test_app/public/index.html +0 -241
- data/tests/test_app/public/robots.txt +0 -5
- data/tests/test_app/script/rails +0 -6
- 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 +0 -12
- data/tests/test_app/test/test_helper.rb +0 -13
- 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/tests/test_app/script/rails
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
-
|
4
|
-
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
-
require File.expand_path('../../config/boot', __FILE__)
|
6
|
-
require 'rails/commands'
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
require 'rails/performance_test_help'
|
3
|
-
|
4
|
-
class BrowsingTest < ActionDispatch::PerformanceTest
|
5
|
-
# Refer to the documentation for all available options
|
6
|
-
# self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
|
7
|
-
# :output => 'tmp/performance', :formats => [:flat] }
|
8
|
-
|
9
|
-
def test_homepage
|
10
|
-
get '/'
|
11
|
-
end
|
12
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
ENV["RAILS_ENV"] = "test"
|
2
|
-
require File.expand_path('../../config/environment', __FILE__)
|
3
|
-
require 'rails/test_help'
|
4
|
-
|
5
|
-
class ActiveSupport::TestCase
|
6
|
-
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
7
|
-
#
|
8
|
-
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
9
|
-
# -- they do not yet inherit this setting
|
10
|
-
fixtures :all
|
11
|
-
|
12
|
-
# Add more helper methods to be used by all tests here...
|
13
|
-
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|