rails_exception_handler_admin 0.0.4 → 0.1.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 (69) hide show
  1. checksums.yaml +9 -9
  2. data/Rakefile +8 -25
  3. data/app/controllers/rails_exception_handler_admin/error_messages_controller.rb +49 -27
  4. data/app/views/layouts/rails_exception_handler_admin/application.html.erb +9 -2
  5. data/app/views/rails_exception_handler_admin/error_messages/index.html.erb +45 -41
  6. data/config/routes.rb +1 -1
  7. data/db/migrate/20130904021511_create_rails_exception_handler_admin_error_messages.rb +1 -0
  8. data/{test/dummy/db → db}/schema.rb +0 -0
  9. data/lib/rails_exception_handler_admin/engine.rb +8 -0
  10. data/lib/rails_exception_handler_admin/version.rb +1 -1
  11. data/lib/tasks/db.rake +22 -0
  12. data/lib/tasks/rails_exception_handler_admin.rake +4 -0
  13. metadata +81 -120
  14. data/app/models/rails_exception_handler_admin/error_message.rb +0 -8
  15. data/lib/tasks/rails_exception_handler_admin_tasks.rake +0 -4
  16. data/test/dummy/README.rdoc +0 -261
  17. data/test/dummy/Rakefile +0 -7
  18. data/test/dummy/app/assets/javascripts/application.js +0 -15
  19. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  20. data/test/dummy/app/controllers/application_controller.rb +0 -3
  21. data/test/dummy/app/helpers/application_helper.rb +0 -2
  22. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  23. data/test/dummy/config.ru +0 -4
  24. data/test/dummy/config/application.rb +0 -59
  25. data/test/dummy/config/boot.rb +0 -10
  26. data/test/dummy/config/database.yml +0 -19
  27. data/test/dummy/config/environment.rb +0 -5
  28. data/test/dummy/config/environments/development.rb +0 -37
  29. data/test/dummy/config/environments/production.rb +0 -67
  30. data/test/dummy/config/environments/test.rb +0 -37
  31. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  32. data/test/dummy/config/initializers/inflections.rb +0 -15
  33. data/test/dummy/config/initializers/mime_types.rb +0 -5
  34. data/test/dummy/config/initializers/secret_token.rb +0 -7
  35. data/test/dummy/config/initializers/session_store.rb +0 -8
  36. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  37. data/test/dummy/config/locales/en.yml +0 -5
  38. data/test/dummy/config/routes.rb +0 -4
  39. data/test/dummy/db/development.sqlite3 +0 -0
  40. data/test/dummy/log/development.log +0 -8507
  41. data/test/dummy/public/404.html +0 -26
  42. data/test/dummy/public/422.html +0 -26
  43. data/test/dummy/public/500.html +0 -25
  44. data/test/dummy/public/favicon.ico +0 -0
  45. data/test/dummy/script/rails +0 -6
  46. data/test/dummy/tmp/cache/assets/C89/2A0/sprockets%2F2c79634b4a97412b19066956a82e8fb1 +0 -0
  47. data/test/dummy/tmp/cache/assets/CE6/4C0/sprockets%2F6adb651c91678901768e281924bbf3bb +0 -0
  48. data/test/dummy/tmp/cache/assets/CF0/C30/sprockets%2F045d3fe09d5945aa96887d0a3d965d27 +0 -0
  49. data/test/dummy/tmp/cache/assets/D32/A00/sprockets%2Fb1c19c2036c96339e29bc6312dd2e2bc +0 -0
  50. data/test/dummy/tmp/cache/assets/D39/650/sprockets%2F6919f37ad5ec037ac6003ff3bc122e58 +0 -0
  51. data/test/dummy/tmp/cache/assets/D3C/A70/sprockets%2Fbd892106a2953d917a22693c2e6edcac +0 -0
  52. data/test/dummy/tmp/cache/assets/D48/580/sprockets%2F16d3da8990f91f0ba8d9d66c522a681e +0 -0
  53. data/test/dummy/tmp/cache/assets/D4C/7D0/sprockets%2F76d2a31085c54ebb3cbc0a51d11b45b1 +0 -0
  54. data/test/dummy/tmp/cache/assets/D53/7F0/sprockets%2F1ded99859dd896437cfa0190dfee2361 +0 -0
  55. data/test/dummy/tmp/cache/assets/D78/BD0/sprockets%2F81183a6bac758ebebfb39658f08ae904 +0 -0
  56. data/test/dummy/tmp/cache/assets/DB4/4F0/sprockets%2F3abaca86fb1a1a8156f13a9330aeb48a +0 -0
  57. data/test/dummy/tmp/cache/assets/DC8/6D0/sprockets%2F0d21f0a634d0c2e8ac8ff3cb269f9a7c +0 -0
  58. data/test/dummy/tmp/cache/assets/DCD/330/sprockets%2F41708e640a86f20ecd4beceeb698b5ab +0 -0
  59. data/test/dummy/tmp/cache/assets/DEF/B30/sprockets%2F3a3df0ecdfe03c02f2b69a37ed24c91c +0 -0
  60. data/test/dummy/tmp/cache/assets/E03/6D0/sprockets%2F5c54089b13f5b9edd4af57ebf0bd5c5e +0 -0
  61. data/test/dummy/tmp/cache/assets/E70/C40/sprockets%2Ff562d5c6a78aefe8cebaed239de85e3f +0 -0
  62. data/test/dummy/tmp/pids/server.pid +0 -1
  63. data/test/fixtures/rails_exception_handler_admin/error_messages.yml +0 -29
  64. data/test/functional/rails_exception_handler_admin/error_messages_controller_test.rb +0 -51
  65. data/test/integration/navigation_test.rb +0 -10
  66. data/test/rails_exception_handler_admin_test.rb +0 -7
  67. data/test/test_helper.rb +0 -15
  68. data/test/unit/helpers/rails_exception_handler_admin/error_messages_helper_test.rb +0 -6
  69. data/test/unit/rails_exception_handler_admin/error_message_test.rb +0 -9
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/404.html -->
21
- <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- </div>
24
- </body>
25
- </html>
File without changes
@@ -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'
@@ -1 +0,0 @@
1
- 2102
@@ -1,29 +0,0 @@
1
- # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
-
3
- one:
4
- class_name: MyString
5
- message: MyString
6
- trace: MyString
7
- params: MyString
8
- target_url: MyString
9
- referer_url: MyString
10
- user_agent: MyString
11
- user_info: MyString
12
- app_name: MyString
13
- doc_root: MyString
14
- created_at: 2013-09-03
15
- updated_at: 2013-09-03
16
-
17
- two:
18
- class_name: MyString
19
- message: MyString
20
- trace: MyString
21
- params: MyString
22
- target_url: MyString
23
- referer_url: MyString
24
- user_agent: MyString
25
- user_info: MyString
26
- app_name: MyString
27
- doc_root: MyString
28
- created_at: 2013-09-03
29
- updated_at: 2013-09-03
@@ -1,51 +0,0 @@
1
- require 'test_helper'
2
-
3
- module RailsExceptionHandlerAdmin
4
- class ErrorMessagesControllerTest < ActionController::TestCase
5
- setup do
6
- @error_message = error_messages(:one)
7
- end
8
-
9
- test "should get index" do
10
- get :index
11
- assert_response :success
12
- assert_not_nil assigns(:error_messages)
13
- end
14
-
15
- test "should get new" do
16
- get :new
17
- assert_response :success
18
- end
19
-
20
- test "should create error_message" do
21
- assert_difference('ErrorMessage.count') do
22
- post :create, error_message: { app_name: @error_message.app_name, class_name: @error_message.class_name, created_at: @error_message.created_at, doc_root: @error_message.doc_root, message: @error_message.message, params: @error_message.params, referer_url: @error_message.referer_url, target_url: @error_message.target_url, trace: @error_message.trace, updated_at: @error_message.updated_at, user_agent: @error_message.user_agent, user_info: @error_message.user_info }
23
- end
24
-
25
- assert_redirected_to error_message_path(assigns(:error_message))
26
- end
27
-
28
- test "should show error_message" do
29
- get :show, id: @error_message
30
- assert_response :success
31
- end
32
-
33
- test "should get edit" do
34
- get :edit, id: @error_message
35
- assert_response :success
36
- end
37
-
38
- test "should update error_message" do
39
- put :update, id: @error_message, error_message: { app_name: @error_message.app_name, class_name: @error_message.class_name, created_at: @error_message.created_at, doc_root: @error_message.doc_root, message: @error_message.message, params: @error_message.params, referer_url: @error_message.referer_url, target_url: @error_message.target_url, trace: @error_message.trace, updated_at: @error_message.updated_at, user_agent: @error_message.user_agent, user_info: @error_message.user_info }
40
- assert_redirected_to error_message_path(assigns(:error_message))
41
- end
42
-
43
- test "should destroy error_message" do
44
- assert_difference('ErrorMessage.count', -1) do
45
- delete :destroy, id: @error_message
46
- end
47
-
48
- assert_redirected_to error_messages_path
49
- end
50
- end
51
- end
@@ -1,10 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NavigationTest < ActionDispatch::IntegrationTest
4
- fixtures :all
5
-
6
- # test "the truth" do
7
- # assert true
8
- # end
9
- end
10
-
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class RailsExceptionHandlerAdminTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, RailsExceptionHandlerAdmin
6
- end
7
- end
data/test/test_helper.rb DELETED
@@ -1,15 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
- end
@@ -1,6 +0,0 @@
1
- require 'test_helper'
2
-
3
- module RailsExceptionHandlerAdmin
4
- class ErrorMessagesHelperTest < ActionView::TestCase
5
- end
6
- end
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- module RailsExceptionHandlerAdmin
4
- class ErrorMessageTest < ActiveSupport::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
8
- end
9
- end