web-console 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of web-console might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/web_console/request.rb +1 -1
- data/lib/web_console/version.rb +1 -1
- data/test/dummy/log/test.log +298 -0
- data/test/web_console/request_test.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f36d5c7c669507af4276ff85de8588553bafb4b3
|
4
|
+
data.tar.gz: 9908519e49c5c0c471037b129a42b8befa1256f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f359b6084e213e8cb8d8fc5401b33847bb452ec1a3ed8fcdf07a3a928d5cd84184ec28b0ba7de703c143337eccf392249335e27d45e58f2fbe16a6eb3d469e22
|
7
|
+
data.tar.gz: 806117cab90a04c6eba6f061e3a35285640670f89f278a2694b0fe5ac497cdc708531ebac180e627c2f699ce7a07a12d359e368ac50e7eb0eedd994a01880819
|
data/lib/web_console/request.rb
CHANGED
@@ -4,7 +4,7 @@ module WebConsole
|
|
4
4
|
# While most of the servers will return blank content type if none given,
|
5
5
|
# Puma will return text/plain.
|
6
6
|
cattr_accessor :acceptable_content_types
|
7
|
-
@@acceptable_content_types = [Mime::HTML, Mime::TEXT]
|
7
|
+
@@acceptable_content_types = [Mime::HTML, Mime::TEXT, Mime::URL_ENCODED_FORM]
|
8
8
|
|
9
9
|
# Configurable set of whitelisted networks.
|
10
10
|
cattr_accessor :whitelisted_ips
|
data/lib/web_console/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -191180,3 +191180,301 @@ WebConsole::RailtieTest: test_config.whitelisted_ips_sets_whitelisted_networks
|
|
191180
191180
|
------------------------------------------------------------------------
|
191181
191181
|
WebConsole::RailtieTest: test_config.whiny_request_removes_extra_logging
|
191182
191182
|
------------------------------------------------------------------------
|
191183
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
191184
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
191185
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
191186
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
191187
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
191188
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
191189
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
191190
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191191
|
+
-------------------------------------------------------------------------------
|
191192
|
+
WebConsole::MiddlewareTest: test_doesn't_render_console_in_non_html_application
|
191193
|
+
-------------------------------------------------------------------------------
|
191194
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191195
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
191196
|
+
-----------------------------------------------------------------------------------------
|
191197
|
+
WebConsole::MiddlewareTest: test_render_console_in_an_html_application_with_non_text/html
|
191198
|
+
-----------------------------------------------------------------------------------------
|
191199
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_markup.html (0.5ms)
|
191200
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/style.css within layouts/inlined_string (0.3ms)
|
191201
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_inner_console_markup.html within layouts/inlined_string (0.4ms)
|
191202
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_prompt_box_markup.html within layouts/inlined_string (0.4ms)
|
191203
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/console.js within layouts/javascript (13.8ms)
|
191204
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/main.js within layouts/javascript (0.4ms)
|
191205
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/index.html (27.2ms)
|
191206
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
191207
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191208
|
+
-------------------------------------------------------------------------------------------------
|
191209
|
+
WebConsole::MiddlewareTest: test_render_console_in_an_html_application_from_web_console.exception
|
191210
|
+
-------------------------------------------------------------------------------------------------
|
191211
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_markup.html (0.3ms)
|
191212
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/style.css within layouts/inlined_string (0.3ms)
|
191213
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_inner_console_markup.html within layouts/inlined_string (0.3ms)
|
191214
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_prompt_box_markup.html within layouts/inlined_string (0.3ms)
|
191215
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/console.js within layouts/javascript (8.2ms)
|
191216
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/main.js within layouts/javascript (0.3ms)
|
191217
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/error_page.js within layouts/javascript (0.4ms)
|
191218
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/index.html (19.2ms)
|
191219
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
191220
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
191221
|
+
---------------------------------------------------------------------------------
|
191222
|
+
WebConsole::MiddlewareTest: test_unavailable_sessions_can_occur_on_binding_switch
|
191223
|
+
---------------------------------------------------------------------------------
|
191224
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
191225
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191226
|
+
-------------------------------------------------------------------------------------------
|
191227
|
+
WebConsole::MiddlewareTest: test_prioritizes_web_console.exception_over_web_console.binding
|
191228
|
+
-------------------------------------------------------------------------------------------
|
191229
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191230
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191231
|
+
-------------------------------------------------------------------------------
|
191232
|
+
WebConsole::MiddlewareTest: test_doesn't_render_console_from_non_whitelisted_IP
|
191233
|
+
-------------------------------------------------------------------------------
|
191234
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191235
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191236
|
+
-----------------------------------------------------------------------------------------------
|
191237
|
+
WebConsole::MiddlewareTest: test_render_console_in_an_html_application_from_web_console.binding
|
191238
|
+
-----------------------------------------------------------------------------------------------
|
191239
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_markup.html (0.3ms)
|
191240
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/style.css within layouts/inlined_string (0.3ms)
|
191241
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_inner_console_markup.html within layouts/inlined_string (0.3ms)
|
191242
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_prompt_box_markup.html within layouts/inlined_string (0.2ms)
|
191243
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/console.js within layouts/javascript (7.8ms)
|
191244
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/main.js within layouts/javascript (0.2ms)
|
191245
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/index.html (14.0ms)
|
191246
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
191247
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191248
|
+
--------------------------------------------------------------------------------------------------------------
|
191249
|
+
WebConsole::MiddlewareTest: test_doesn't_render_console_without_a_web_console.binding_or_web_console.exception
|
191250
|
+
--------------------------------------------------------------------------------------------------------------
|
191251
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191252
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191253
|
+
--------------------------------------------------------------------------
|
191254
|
+
WebConsole::MiddlewareTest: test_can_evaluate_code_and_return_it_as_a_JSON
|
191255
|
+
--------------------------------------------------------------------------
|
191256
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191257
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191258
|
+
-------------------------------------------------------------------
|
191259
|
+
WebConsole::MiddlewareTest: test_can_switch_bindings_on_error_pages
|
191260
|
+
-------------------------------------------------------------------
|
191261
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191262
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191263
|
+
----------------------------------------------------------------------------------------
|
191264
|
+
WebConsole::MiddlewareTest: test_unavailable_sessions_respond_to_the_user_with_a_message
|
191265
|
+
----------------------------------------------------------------------------------------
|
191266
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191267
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
191268
|
+
--------------------------------------------------------------------------------
|
191269
|
+
WebConsole::RequestTest: test_#from_whitelited_ip?_is_truthy_for_whitelisted_IPs
|
191270
|
+
--------------------------------------------------------------------------------
|
191271
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191272
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191273
|
+
----------------------------------------------------------------------------------------
|
191274
|
+
WebConsole::RequestTest: test_#acceptable_content_type?_is_truthy_during_form_submission
|
191275
|
+
----------------------------------------------------------------------------------------
|
191276
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191277
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191278
|
+
----------------------------------------------------------------------------------------
|
191279
|
+
WebConsole::RequestTest: test_#acceptable_content_type?_is_truthy_for_blank_content_type
|
191280
|
+
----------------------------------------------------------------------------------------
|
191281
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191282
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
191283
|
+
------------------------------------------------------------------------------------------------
|
191284
|
+
WebConsole::RequestTest: test_#acceptable_content_type?_is_truthy_for_explicit_HTML_content_type
|
191285
|
+
------------------------------------------------------------------------------------------------
|
191286
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191287
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191288
|
+
---------------------------------------------------------------------------------------------
|
191289
|
+
WebConsole::RequestTest: test_#acceptable_content_type?_is_truthy_for_plain_text_content_type
|
191290
|
+
---------------------------------------------------------------------------------------------
|
191291
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191292
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191293
|
+
-------------------------------------------------------------------------------
|
191294
|
+
WebConsole::RequestTest: test_#from_whitelited_ip?_is_falsy_for_blacklisted_IPs
|
191295
|
+
-------------------------------------------------------------------------------
|
191296
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191297
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
191298
|
+
--------------------------------------------------------------------------------------------------------
|
191299
|
+
WebConsole::RequestTest: test_#acceptable_content_type?_is_falsy_for_non_blank_and_non_HTML_content_type
|
191300
|
+
--------------------------------------------------------------------------------------------------------
|
191301
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191302
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
191303
|
+
---------------------------------------------------------------
|
191304
|
+
WebConsole::WhitelistTest: test_localhost_is_always_whitelisted
|
191305
|
+
---------------------------------------------------------------
|
191306
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191307
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191308
|
+
---------------------------------------------------------------
|
191309
|
+
WebConsole::WhitelistTest: test_can_whitelist_multiple_networks
|
191310
|
+
---------------------------------------------------------------
|
191311
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
191312
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191313
|
+
------------------------------------------------------------
|
191314
|
+
WebConsole::WhitelistTest: test_can_whitelist_whole_networks
|
191315
|
+
------------------------------------------------------------
|
191316
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191317
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191318
|
+
--------------------------------------------------------
|
191319
|
+
WebConsole::WhitelistTest: test_can_whitelist_single_IPs
|
191320
|
+
--------------------------------------------------------
|
191321
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191322
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191323
|
+
---------------------------------------------------------------------------
|
191324
|
+
WebConsole::WhitelistTest: test_can_be_represented_in_a_human_readable_form
|
191325
|
+
---------------------------------------------------------------------------
|
191326
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191327
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
191328
|
+
----------------------------------------------------------
|
191329
|
+
WebConsole::HelperTest: test_renders_a_console_into_a_view
|
191330
|
+
----------------------------------------------------------
|
191331
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_markup.html (0.3ms)
|
191332
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/style.css within layouts/inlined_string (0.3ms)
|
191333
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_inner_console_markup.html within layouts/inlined_string (0.2ms)
|
191334
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_prompt_box_markup.html within layouts/inlined_string (0.2ms)
|
191335
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/console.js within layouts/javascript (7.2ms)
|
191336
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/main.js within layouts/javascript (0.2ms)
|
191337
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/index.html (14.2ms)
|
191338
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191339
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191340
|
+
------------------------------------------------------------------------------------------
|
191341
|
+
WebConsole::HelperTest: test_raises_an_error_when_trying_to_spawn_a_console_more_than_once
|
191342
|
+
------------------------------------------------------------------------------------------
|
191343
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191344
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191345
|
+
--------------------------------------------------------
|
191346
|
+
WebConsole::HelperTest: test_doesn't_hijack_current_view
|
191347
|
+
--------------------------------------------------------
|
191348
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_markup.html (0.3ms)
|
191349
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/style.css within layouts/inlined_string (0.2ms)
|
191350
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_inner_console_markup.html within layouts/inlined_string (0.2ms)
|
191351
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/_prompt_box_markup.html within layouts/inlined_string (0.3ms)
|
191352
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/console.js within layouts/javascript (7.2ms)
|
191353
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/main.js within layouts/javascript (0.3ms)
|
191354
|
+
Rendered /Users/genadi/Development/web-console/lib/web_console/templates/index.html (13.0ms)
|
191355
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191356
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
191357
|
+
------------------------------------------------------------------------------
|
191358
|
+
WebConsole::RailtieTest: test_config.whitelisted_ips_always_includes_localhost
|
191359
|
+
------------------------------------------------------------------------------
|
191360
|
+
[1m[35m (0.2ms)[0m begin transaction
|
191361
|
+
------------------------------------------------------------------------
|
191362
|
+
WebConsole::RailtieTest: test_config.whiny_request_removes_extra_logging
|
191363
|
+
------------------------------------------------------------------------
|
191364
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
191365
|
+
------------------------------------------------------------------------------
|
191366
|
+
WebConsole::RailtieTest: test_config.template_paths_prepend_paths_if_it_exists
|
191367
|
+
------------------------------------------------------------------------------
|
191368
|
+
[1m[35m (0.2ms)[0m begin transaction
|
191369
|
+
------------------------------------------------------------------------------
|
191370
|
+
WebConsole::RailtieTest: test_config.whitelisted_ips_sets_whitelisted_networks
|
191371
|
+
------------------------------------------------------------------------------
|
191372
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
191373
|
+
--------------------------------------------------------------------------------------
|
191374
|
+
WebConsole::RailtieTest: test_config.acceptable_content_types_adds_extra_content_types
|
191375
|
+
--------------------------------------------------------------------------------------
|
191376
|
+
[1m[35m (0.2ms)[0m begin transaction
|
191377
|
+
--------------------------------------------------------------------------
|
191378
|
+
WebConsole::WhinyRequestTest: test_#from_whitelited_ip?_logs_out_to_stderr
|
191379
|
+
--------------------------------------------------------------------------
|
191380
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
191381
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191382
|
+
-------------------------------------------------------------------------------
|
191383
|
+
WebConsole::WhinyRequestTest: test_#acceptable_content_type?_logs_out_to_stderr
|
191384
|
+
-------------------------------------------------------------------------------
|
191385
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191386
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191387
|
+
--------------------------------------------------------------------
|
191388
|
+
WebConsole::EvaluatorTest: test_preserves_the_session_in_the_binding
|
191389
|
+
--------------------------------------------------------------------
|
191390
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191391
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191392
|
+
-------------------------------------------------------------------------------------
|
191393
|
+
WebConsole::EvaluatorTest: test_no_backtrace_is_shown_if_exception_backtrace_is_blank
|
191394
|
+
-------------------------------------------------------------------------------------
|
191395
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191396
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191397
|
+
---------------------------------------------------------------------------------------
|
191398
|
+
WebConsole::EvaluatorTest: test_Evaluator_callers_are_cleaned_up_of_unneeded_backtraces
|
191399
|
+
---------------------------------------------------------------------------------------
|
191400
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191401
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191402
|
+
--------------------------------------------------------------------------
|
191403
|
+
WebConsole::EvaluatorTest: test_sending_input_returns_the_result_as_output
|
191404
|
+
--------------------------------------------------------------------------
|
191405
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191406
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191407
|
+
---------------------------------------------------------------------------
|
191408
|
+
WebConsole::EvaluatorTest: test_session_preservation_requires_same_bindings
|
191409
|
+
---------------------------------------------------------------------------
|
191410
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191411
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191412
|
+
-------------------------------------------------------------------
|
191413
|
+
WebConsole::EvaluatorTest: test_formats_exceptions_similarly_to_IRB
|
191414
|
+
-------------------------------------------------------------------
|
191415
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191416
|
+
[1m[35m (0.1ms)[0m begin transaction
|
191417
|
+
-------------------------------------------------------------
|
191418
|
+
WebConsole::SessionTest: test_find_returns_a_persisted_object
|
191419
|
+
-------------------------------------------------------------
|
191420
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191421
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191422
|
+
----------------------------------------------------------------------
|
191423
|
+
WebConsole::SessionTest: test_can_create_session_from_a_single_binding
|
191424
|
+
----------------------------------------------------------------------
|
191425
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
191426
|
+
[1m[35m (0.1ms)[0m begin transaction
|
191427
|
+
----------------------------------------------------
|
191428
|
+
WebConsole::SessionTest: test_can_switch_to_bindings
|
191429
|
+
----------------------------------------------------
|
191430
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191431
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191432
|
+
------------------------------------------------------------------
|
191433
|
+
WebConsole::SessionTest: test_can_create_session_from_an_exception
|
191434
|
+
------------------------------------------------------------------
|
191435
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191436
|
+
[1m[35m (0.1ms)[0m begin transaction
|
191437
|
+
---------------------------------------------------------------------------------
|
191438
|
+
WebConsole::SessionTest: test_can_evaluate_code_in_the_currently_selected_binding
|
191439
|
+
---------------------------------------------------------------------------------
|
191440
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191441
|
+
[1m[35m (0.1ms)[0m begin transaction
|
191442
|
+
---------------------------------------------------------------------
|
191443
|
+
WebConsole::SessionTest: test_returns_nil_when_a_session_is_not_found
|
191444
|
+
---------------------------------------------------------------------
|
191445
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191446
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191447
|
+
------------------------------------------------------------------------------------------------
|
191448
|
+
WebConsole::IntegrationTest: test_Exception#bindings_returns_all_the_bindings_for_a_custom_error
|
191449
|
+
------------------------------------------------------------------------------------------------
|
191450
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191451
|
+
[1m[35m (0.1ms)[0m begin transaction
|
191452
|
+
----------------------------------------------------------------------------------------------------
|
191453
|
+
WebConsole::IntegrationTest: test_Exception#bindings_returns_all_the_bindings_for_a_bad_custom_error
|
191454
|
+
----------------------------------------------------------------------------------------------------
|
191455
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191456
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191457
|
+
------------------------------------------------------------------------
|
191458
|
+
WebConsole::IntegrationTest: test_Exception#bindings_goes_down_the_stack
|
191459
|
+
------------------------------------------------------------------------
|
191460
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191461
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191462
|
+
------------------------------------------------------------------------------------------------
|
191463
|
+
WebConsole::IntegrationTest: test_Exception#bindings_is_empty_when_exception_is_still_not_raised
|
191464
|
+
------------------------------------------------------------------------------------------------
|
191465
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191466
|
+
[1m[35m (0.1ms)[0m begin transaction
|
191467
|
+
----------------------------------------------------------------------------------------
|
191468
|
+
WebConsole::IntegrationTest: test_re-raising_doesn't_lose_Exception#bindings_information
|
191469
|
+
----------------------------------------------------------------------------------------
|
191470
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191471
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191472
|
+
----------------------------------------------------------------------
|
191473
|
+
WebConsole::IntegrationTest: test_Exception#bindings_inside_of_an_eval
|
191474
|
+
----------------------------------------------------------------------
|
191475
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191476
|
+
[1m[35m (0.1ms)[0m begin transaction
|
191477
|
+
-----------------------------------------------------------------------------------------------------------
|
191478
|
+
WebConsole::IntegrationTest: test_Exception#bindings_returns_all_the_bindings_of_where_the_error_originated
|
191479
|
+
-----------------------------------------------------------------------------------------------------------
|
191480
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
@@ -31,6 +31,12 @@ module WebConsole
|
|
31
31
|
assert req.acceptable_content_type?
|
32
32
|
end
|
33
33
|
|
34
|
+
test '#acceptable_content_type? is truthy during form submission' do
|
35
|
+
req = request('http://example.com', 'CONTENT_TYPE' => 'application/x-www-form-urlencoded')
|
36
|
+
|
37
|
+
assert req.acceptable_content_type?
|
38
|
+
end
|
39
|
+
|
34
40
|
test '#acceptable_content_type? is truthy for blank content type' do
|
35
41
|
req = request('http://example.com', 'CONTENT_TYPE' => '')
|
36
42
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web-console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Somerville
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-
|
14
|
+
date: 2015-03-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
266
|
version: '0'
|
267
267
|
requirements: []
|
268
268
|
rubyforge_project:
|
269
|
-
rubygems_version: 2.
|
269
|
+
rubygems_version: 2.4.5
|
270
270
|
signing_key:
|
271
271
|
specification_version: 4
|
272
272
|
summary: A debugging tool for your Ruby on Rails applications.
|