simplificator_infrastructure 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2488fa6de583fff2a4ee356a34f0ffbdf81518a
|
4
|
+
data.tar.gz: 467dea62026b080987e5442c462e623333e379a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2dd3697d7172570ebf30b4592fa5c501b3faae688771b9d5d415f4cf4ef2faec0f5a36a6c266849b04b3340f664a3ebe13d923a9706d5d958dc3c9921a22742
|
7
|
+
data.tar.gz: 2676f85682feb6a8ec4ec9db2bdc173ef3789cb979b0508e2e98fc1996a1679845892f652f7e101f08a141796728c59147467d94c9bc20e8fc69e9cc455e6130
|
@@ -11,7 +11,7 @@ class SimplificatorInfrastructure::ErrorsController < ActionController::Base
|
|
11
11
|
render template_for_status_code, status: error_summary.status_code, content_type: 'text/html'
|
12
12
|
end
|
13
13
|
format.json do
|
14
|
-
render json: {message:
|
14
|
+
render json: {message: "An error occured"}, status: error_summary.status_code
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -2935,3 +2935,96 @@ Started GET "/assets/application-823e88bf1231c4323ee1d35731d8f1b6.css?body=1" fo
|
|
2935
2935
|
|
2936
2936
|
|
2937
2937
|
Started GET "/assets/application-6003a83c88a1f90ef300f4f20d8f3218.js?body=1" for ::1 at 2015-01-22 09:11:20 +0100
|
2938
|
+
|
2939
|
+
|
2940
|
+
Started GET "/api/lists.json" for ::1 at 2015-01-22 11:13:38 +0100
|
2941
|
+
|
2942
|
+
ActionController::RoutingError (No route matches [GET] "/api/lists.json"):
|
2943
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
2944
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
2945
|
+
railties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'
|
2946
|
+
railties (4.2.0) lib/rails/rack/logger.rb:20:in `block in call'
|
2947
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
2948
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in `tagged'
|
2949
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `tagged'
|
2950
|
+
railties (4.2.0) lib/rails/rack/logger.rb:20:in `call'
|
2951
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
2952
|
+
rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
|
2953
|
+
rack (1.6.0) lib/rack/runtime.rb:18:in `call'
|
2954
|
+
activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
2955
|
+
rack (1.6.0) lib/rack/lock.rb:17:in `call'
|
2956
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in `call'
|
2957
|
+
rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
|
2958
|
+
railties (4.2.0) lib/rails/engine.rb:518:in `call'
|
2959
|
+
railties (4.2.0) lib/rails/application.rb:164:in `call'
|
2960
|
+
rack (1.6.0) lib/rack/lock.rb:17:in `call'
|
2961
|
+
rack (1.6.0) lib/rack/content_length.rb:15:in `call'
|
2962
|
+
rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
|
2963
|
+
/Users/pascal/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
|
2964
|
+
/Users/pascal/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
|
2965
|
+
/Users/pascal/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
|
2966
|
+
|
2967
|
+
|
2968
|
+
Processing by SimplificatorInfrastructure::ErrorsController#render_error as */*
|
2969
|
+
Rendered /Users/pascal/repositories/simplificator/simplificator_infrastructure/app/views/errors/404.html.erb within layouts/simplificator_infrastructure/errors (1.2ms)
|
2970
|
+
Completed 404 Not Found in 16ms (Views: 13.1ms)
|
2971
|
+
|
2972
|
+
|
2973
|
+
Started GET "/de/sessions" for ::1 at 2015-01-22 14:58:32 +0100
|
2974
|
+
|
2975
|
+
ActionController::RoutingError (No route matches [GET] "/de/sessions"):
|
2976
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
2977
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
2978
|
+
railties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'
|
2979
|
+
railties (4.2.0) lib/rails/rack/logger.rb:20:in `block in call'
|
2980
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
2981
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in `tagged'
|
2982
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `tagged'
|
2983
|
+
railties (4.2.0) lib/rails/rack/logger.rb:20:in `call'
|
2984
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
2985
|
+
rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
|
2986
|
+
rack (1.6.0) lib/rack/runtime.rb:18:in `call'
|
2987
|
+
activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
2988
|
+
rack (1.6.0) lib/rack/lock.rb:17:in `call'
|
2989
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in `call'
|
2990
|
+
rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
|
2991
|
+
railties (4.2.0) lib/rails/engine.rb:518:in `call'
|
2992
|
+
railties (4.2.0) lib/rails/application.rb:164:in `call'
|
2993
|
+
rack (1.6.0) lib/rack/lock.rb:17:in `call'
|
2994
|
+
rack (1.6.0) lib/rack/content_length.rb:15:in `call'
|
2995
|
+
rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
|
2996
|
+
/Users/pascal/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
|
2997
|
+
/Users/pascal/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
|
2998
|
+
/Users/pascal/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
|
2999
|
+
|
3000
|
+
|
3001
|
+
Processing by SimplificatorInfrastructure::ErrorsController#render_error as HTML
|
3002
|
+
Rendered /Users/pascal/repositories/simplificator/simplificator_infrastructure/app/views/errors/404.html.erb within layouts/simplificator_infrastructure/errors (1.3ms)
|
3003
|
+
Completed 404 Not Found in 13ms (Views: 11.2ms)
|
3004
|
+
|
3005
|
+
|
3006
|
+
Started GET "/assets/simplificator_infrastructure/errors-928ba3bb41870ff2506534e889b5a343.css?body=1" for ::1 at 2015-01-22 14:58:32 +0100
|
3007
|
+
|
3008
|
+
|
3009
|
+
Started GET "/assets/simplificator_infrastructure/application-6003a83c88a1f90ef300f4f20d8f3218.js?body=1" for ::1 at 2015-01-22 14:58:32 +0100
|
3010
|
+
|
3011
|
+
|
3012
|
+
Started GET "/assets/simplificator_infrastructure/application-680fe1d8377d3b30ccc6040ff6efb0f6.css?body=1" for ::1 at 2015-01-22 14:58:32 +0100
|
3013
|
+
|
3014
|
+
|
3015
|
+
Started GET "/assets/simplificator_infrastructure/errors/error_404-1b456d7204a73d7e2b991d63e1bb0bb6.png" for ::1 at 2015-01-22 14:58:32 +0100
|
3016
|
+
|
3017
|
+
|
3018
|
+
Started GET "/assets/simplificator_infrastructure/errors/logo-48573dc0d89ffec82bd936f919c7b96d.png" for ::1 at 2015-01-22 14:58:32 +0100
|
3019
|
+
|
3020
|
+
|
3021
|
+
Started GET "/" for ::1 at 2015-01-22 14:58:32 +0100
|
3022
|
+
Processing by ErrorPreviewsController#index as HTML
|
3023
|
+
Rendered error_previews/index.html.erb within layouts/application (0.1ms)
|
3024
|
+
Completed 200 OK in 11ms (Views: 11.0ms)
|
3025
|
+
|
3026
|
+
|
3027
|
+
Started GET "/assets/application-823e88bf1231c4323ee1d35731d8f1b6.css?body=1" for ::1 at 2015-01-22 14:58:32 +0100
|
3028
|
+
|
3029
|
+
|
3030
|
+
Started GET "/assets/application-6003a83c88a1f90ef300f4f20d8f3218.js?body=1" for ::1 at 2015-01-22 14:58:32 +0100
|
data/test/dummy/log/test.log
CHANGED
@@ -1497,3 +1497,73 @@ SimplificatorInfrastructure::ErrorSummaryTest: test_locale:_check_params_if_not_
|
|
1497
1497
|
--------------------------------------------------------------------------------------------------------
|
1498
1498
|
SimplificatorInfrastructure::ErrorSummaryTest: test_locale:_check_accept_header_if_not_in_path_or_params
|
1499
1499
|
--------------------------------------------------------------------------------------------------------
|
1500
|
+
----------------------------------------------------------------------
|
1501
|
+
SimplificatorInfrastructure::ErrorSummaryTest: test_locale:_check_path
|
1502
|
+
----------------------------------------------------------------------
|
1503
|
+
-------------------------------------------------------------------------------
|
1504
|
+
SimplificatorInfrastructure::ErrorSummaryTest: test_extracts_exception_from_env
|
1505
|
+
-------------------------------------------------------------------------------
|
1506
|
+
----------------------------------------------------------------------------
|
1507
|
+
SimplificatorInfrastructure::ErrorSummaryTest: test_extracts_params_from_env
|
1508
|
+
----------------------------------------------------------------------------
|
1509
|
+
-----------------------------------------------------------------------------------------
|
1510
|
+
SimplificatorInfrastructure::ErrorSummaryTest: test_determines_status_code_from_exception
|
1511
|
+
-----------------------------------------------------------------------------------------
|
1512
|
+
--------------------------------------------------------------------------------------------------------
|
1513
|
+
SimplificatorInfrastructure::ErrorSummaryTest: test_locale:_check_accept_header_if_not_in_path_or_params
|
1514
|
+
--------------------------------------------------------------------------------------------------------
|
1515
|
+
---------------------------------------------------------------------------------------
|
1516
|
+
SimplificatorInfrastructure::ErrorSummaryTest: test_locale:_check_params_if_not_in_path
|
1517
|
+
---------------------------------------------------------------------------------------
|
1518
|
+
-----------------------------------------------------------------------------------------------------------------
|
1519
|
+
SimplificatorInfrastructure::ErrorSummaryTest: test_locale:_use_default_if_not_in_path_or_params_or_accept_header
|
1520
|
+
-----------------------------------------------------------------------------------------------------------------
|
1521
|
+
---------------------------------------------------------------
|
1522
|
+
ErrorPreviewsControllerTest: test_renders_html_for_pdf_requests
|
1523
|
+
---------------------------------------------------------------
|
1524
|
+
Started GET "/error_previews/preview.pdf?code=404" for 127.0.0.1 at 2015-01-23 09:14:34 +0100
|
1525
|
+
Processing by ErrorPreviewsController#preview as PDF
|
1526
|
+
Parameters: {"code"=>"404"}
|
1527
|
+
Completed 404 Not Found in 0ms
|
1528
|
+
|
1529
|
+
ActionController::RoutingError (Was asked to raise generate a 404):
|
1530
|
+
app/controllers/error_previews_controller.rb:9:in `preview'
|
1531
|
+
test/integration/error_previews_controller_test.rb:17:in `block in <class:ErrorPreviewsControllerTest>'
|
1532
|
+
|
1533
|
+
|
1534
|
+
Processing by SimplificatorInfrastructure::ErrorsController#render_error as PDF
|
1535
|
+
Parameters: {"code"=>"404"}
|
1536
|
+
Rendered /Users/pascal/repositories/simplificator/simplificator_infrastructure/app/views/errors/404.html.erb within layouts/simplificator_infrastructure/errors (10.6ms)
|
1537
|
+
Completed 404 Not Found in 27ms (Views: 25.8ms)
|
1538
|
+
-------------------------------------
|
1539
|
+
ErrorPreviewsControllerTest: test_500
|
1540
|
+
-------------------------------------
|
1541
|
+
Started GET "/error_previews/preview" for 127.0.0.1 at 2015-01-23 09:14:34 +0100
|
1542
|
+
Processing by ErrorPreviewsController#preview as HTML
|
1543
|
+
Completed 500 Internal Server Error in 0ms
|
1544
|
+
|
1545
|
+
RuntimeError (some generic exception):
|
1546
|
+
app/controllers/error_previews_controller.rb:8:in `preview'
|
1547
|
+
test/integration/error_previews_controller_test.rb:5:in `block in <class:ErrorPreviewsControllerTest>'
|
1548
|
+
|
1549
|
+
|
1550
|
+
Processing by SimplificatorInfrastructure::ErrorsController#render_error as HTML
|
1551
|
+
Rendered /Users/pascal/repositories/simplificator/simplificator_infrastructure/app/views/errors/generic_error.html.erb within layouts/simplificator_infrastructure/errors (1.8ms)
|
1552
|
+
Completed 500 Internal Server Error in 4ms (Views: 3.4ms)
|
1553
|
+
-------------------------------------
|
1554
|
+
ErrorPreviewsControllerTest: test_404
|
1555
|
+
-------------------------------------
|
1556
|
+
Started GET "/error_previews/preview?code=404" for 127.0.0.1 at 2015-01-23 09:14:34 +0100
|
1557
|
+
Processing by ErrorPreviewsController#preview as HTML
|
1558
|
+
Parameters: {"code"=>"404"}
|
1559
|
+
Completed 404 Not Found in 0ms
|
1560
|
+
|
1561
|
+
ActionController::RoutingError (Was asked to raise generate a 404):
|
1562
|
+
app/controllers/error_previews_controller.rb:9:in `preview'
|
1563
|
+
test/integration/error_previews_controller_test.rb:11:in `block in <class:ErrorPreviewsControllerTest>'
|
1564
|
+
|
1565
|
+
|
1566
|
+
Processing by SimplificatorInfrastructure::ErrorsController#render_error as HTML
|
1567
|
+
Parameters: {"code"=>"404"}
|
1568
|
+
Rendered /Users/pascal/repositories/simplificator/simplificator_infrastructure/app/views/errors/404.html.erb within layouts/simplificator_infrastructure/errors (0.8ms)
|
1569
|
+
Completed 404 Not Found in 2ms (Views: 1.3ms)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplificator_infrastructure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pascal Betz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|