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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -4
  3. data/README.md +75 -0
  4. data/config.ru +7 -0
  5. data/config/crawler-user-agents.json +750 -0
  6. data/lib/tasks/voight_kampff.rake +9 -7
  7. data/lib/voight_kampff.rb +3 -29
  8. data/lib/voight_kampff/engine.rb +0 -5
  9. data/lib/voight_kampff/rack_request.rb +11 -0
  10. data/lib/voight_kampff/test.rb +18 -59
  11. data/lib/voight_kampff/version.rb +1 -1
  12. data/spec/controllers/replicants_controller_spec.rb +31 -0
  13. data/spec/internal/app/controllers/replicants_controller.rb +13 -0
  14. data/spec/internal/config/routes.rb +4 -0
  15. data/spec/internal/log/.gitignore +1 -0
  16. data/{tests/test_app → spec/internal}/public/favicon.ico +0 -0
  17. data/spec/lib/voight_kampff/rack_request_spec.rb +33 -0
  18. data/spec/lib/voight_kampff/test_spec.rb +28 -0
  19. data/spec/lib/voight_kampff_spec.rb +27 -0
  20. data/spec/spec_helper.rb +11 -0
  21. data/spec/support/humans.rb +9 -0
  22. data/spec/support/replicants.rb +5 -0
  23. data/voight_kampff.gemspec +4 -5
  24. metadata +30 -70
  25. data/.autotest +0 -22
  26. data/CHANGELOG.rdoc +0 -16
  27. data/README.markdown +0 -63
  28. data/Rakefile +0 -20
  29. data/config/initializers/extend_action_dispatch_request.rb +0 -46
  30. data/config/user_agents.yml +0 -12438
  31. data/lib/voight_kampff/base.rb +0 -7
  32. data/lib/voight_kampff/user_agents_parser.rb +0 -54
  33. data/tests/spec/minitest_helper.rb +0 -2
  34. data/tests/spec/voight_kampff_spec.rb +0 -10
  35. data/tests/test_app/.gitignore +0 -15
  36. data/tests/test_app/Gemfile +0 -39
  37. data/tests/test_app/Rakefile +0 -7
  38. data/tests/test_app/app/controllers/application_controller.rb +0 -3
  39. data/tests/test_app/app/helpers/application_helper.rb +0 -2
  40. data/tests/test_app/app/mailers/.gitkeep +0 -0
  41. data/tests/test_app/app/models/.gitkeep +0 -0
  42. data/tests/test_app/app/views/layouts/application.html.erb +0 -14
  43. data/tests/test_app/config.ru +0 -4
  44. data/tests/test_app/config/application.rb +0 -62
  45. data/tests/test_app/config/boot.rb +0 -6
  46. data/tests/test_app/config/database.yml +0 -25
  47. data/tests/test_app/config/environment.rb +0 -5
  48. data/tests/test_app/config/environments/development.rb +0 -37
  49. data/tests/test_app/config/environments/production.rb +0 -67
  50. data/tests/test_app/config/environments/test.rb +0 -37
  51. data/tests/test_app/config/initializers/backtrace_silencers.rb +0 -7
  52. data/tests/test_app/config/initializers/inflections.rb +0 -15
  53. data/tests/test_app/config/initializers/mime_types.rb +0 -5
  54. data/tests/test_app/config/initializers/secret_token.rb +0 -7
  55. data/tests/test_app/config/initializers/session_store.rb +0 -8
  56. data/tests/test_app/config/initializers/wrap_parameters.rb +0 -14
  57. data/tests/test_app/config/locales/en.yml +0 -5
  58. data/tests/test_app/config/routes.rb +0 -58
  59. data/tests/test_app/lib/assets/.gitkeep +0 -0
  60. data/tests/test_app/lib/tasks/.gitkeep +0 -0
  61. data/tests/test_app/log/.gitkeep +0 -0
  62. data/tests/test_app/public/404.html +0 -26
  63. data/tests/test_app/public/422.html +0 -26
  64. data/tests/test_app/public/500.html +0 -25
  65. data/tests/test_app/public/index.html +0 -241
  66. data/tests/test_app/public/robots.txt +0 -5
  67. data/tests/test_app/script/rails +0 -6
  68. data/tests/test_app/test/fixtures/.gitkeep +0 -0
  69. data/tests/test_app/test/functional/.gitkeep +0 -0
  70. data/tests/test_app/test/integration/.gitkeep +0 -0
  71. data/tests/test_app/test/performance/browsing_test.rb +0 -12
  72. data/tests/test_app/test/test_helper.rb +0 -13
  73. data/tests/test_app/test/unit/.gitkeep +0 -0
  74. data/tests/test_app/vendor/assets/javascripts/.gitkeep +0 -0
  75. data/tests/test_app/vendor/assets/stylesheets/.gitkeep +0 -0
  76. data/tests/test_app/vendor/plugins/.gitkeep +0 -0
@@ -1,5 +0,0 @@
1
- # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
- #
3
- # To ban all spiders from the entire site uncomment the next two lines:
4
- # User-Agent: *
5
- # Disallow: /
@@ -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