tuning 0.2.4 → 0.3.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/README.md +0 -2
- data/lib/tuning/action_controller/base.rb +0 -4
- data/lib/tuning/version.rb +1 -1
- data/test/dummy/app/views/layouts/application.html.erb +11 -11
- data/test/dummy/log/test.log +190 -0
- metadata +2 -12
- data/test/dummy/app/views/pages/_dummy.html.erb +0 -0
- data/test/dummy/app/views/pages/defined.html.erb +0 -3
- data/test/dummy/app/views/pages/empty.html.erb +0 -0
- data/test/dummy/app/views/pages/index.html.erb +0 -1
- data/test/dummy/app/views/pages/variable.html.erb +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ccdf6743e408ee68f181557d5c909389c58b52d
|
|
4
|
+
data.tar.gz: 77cf15c2b95be8ade4c131d2fbc7604a07f786c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e0a976e1a6f8bab5fa1592f0936883fd65e3206a1184969d477f09508ee6b59294944a527ae7cc42e89d1c1bc56e2dd327d4f8a96214ce3a93253e4f2fcdc43e
|
|
7
|
+
data.tar.gz: 7999d6551c93e101dafbab93e2c28dd90fefe3f3ae9ff6418114a03466b3abecc5ef205039e8f72370f2bbfcf29fcae377269925e116fa41b990661903285aef
|
data/README.md
CHANGED
|
@@ -43,8 +43,6 @@ Use unprocessable_entity to respond with status 422 and show 422.html (if format
|
|
|
43
43
|
unprocessable_entity
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
NOTE: If any exception is raised, error will be called to force debug information in development.
|
|
47
|
-
|
|
48
46
|
## Views
|
|
49
47
|
|
|
50
48
|
Use content_tag_if if you want wrap content into some tag if certain condition it's true:
|
data/lib/tuning/version.rb
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
<head>
|
|
4
|
+
<title>Dummy</title>
|
|
5
|
+
<%= stylesheet_link_tag 'application', media: 'all' %>
|
|
6
|
+
<%= javascript_include_tag 'application' %>
|
|
7
|
+
<%= csrf_meta_tags %>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
|
|
11
|
+
<%= yield %>
|
|
12
|
+
|
|
13
|
+
</body>
|
|
14
14
|
</html>
|
data/test/dummy/log/test.log
CHANGED
|
@@ -13390,3 +13390,193 @@ Processing by StatusController#error_action as HTML
|
|
|
13390
13390
|
Rendered public/500.html (0.5ms)
|
|
13391
13391
|
Completed 500 Internal Server Error in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
|
|
13392
13392
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
13393
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
13394
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
|
13395
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
13396
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
13397
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
13398
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
13399
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
13400
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
13401
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
13402
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
13403
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
13404
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
13405
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
13406
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
13407
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
13408
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
13409
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
13410
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
13411
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
13412
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
13413
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
13414
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
13415
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
13416
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
|
13417
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
13418
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
13419
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
13420
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
13421
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
13422
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
13423
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
13424
|
+
-----------------------------------------
|
|
13425
|
+
ContentTagIfTest: test_attributes_options
|
|
13426
|
+
-----------------------------------------
|
|
13427
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
13428
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13429
|
+
--------------------------------------
|
|
13430
|
+
ContentTagIfTest: test_false_condition
|
|
13431
|
+
--------------------------------------
|
|
13432
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
13433
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13434
|
+
-------------------------------------
|
|
13435
|
+
ContentTagIfTest: test_true_condition
|
|
13436
|
+
-------------------------------------
|
|
13437
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
13438
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13439
|
+
------------------------------------------
|
|
13440
|
+
ActiveTrailTest: test_active_trail_in_path
|
|
13441
|
+
------------------------------------------
|
|
13442
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
13443
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13444
|
+
----------------------------------------------
|
|
13445
|
+
ActiveTrailTest: test_active_trail_not_in_path
|
|
13446
|
+
----------------------------------------------
|
|
13447
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
13448
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
13449
|
+
-----------------------------------------------
|
|
13450
|
+
ActiveTrailTest: test_active_trail_same_as_path
|
|
13451
|
+
-----------------------------------------------
|
|
13452
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
13453
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
13454
|
+
--------------------------
|
|
13455
|
+
StatusTest: test_not_found
|
|
13456
|
+
--------------------------
|
|
13457
|
+
Started GET "/not_found.json" for 127.0.0.1 at 2015-02-22 14:58:17 -0200
|
|
13458
|
+
Processing by StatusController#not_found_action as JSON
|
|
13459
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
|
|
13460
|
+
Started GET "/not_found" for 127.0.0.1 at 2015-02-22 14:58:17 -0200
|
|
13461
|
+
Processing by StatusController#not_found_action as HTML
|
|
13462
|
+
Rendered public/404.html (0.5ms)
|
|
13463
|
+
Completed 404 Not Found in 13ms (Views: 12.9ms | ActiveRecord: 0.0ms)
|
|
13464
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
13465
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
13466
|
+
----------------------
|
|
13467
|
+
StatusTest: test_error
|
|
13468
|
+
----------------------
|
|
13469
|
+
Started GET "/error.json" for 127.0.0.1 at 2015-02-22 14:58:17 -0200
|
|
13470
|
+
Processing by StatusController#error_action as JSON
|
|
13471
|
+
Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
|
|
13472
|
+
Started GET "/error" for 127.0.0.1 at 2015-02-22 14:58:17 -0200
|
|
13473
|
+
Processing by StatusController#error_action as HTML
|
|
13474
|
+
Rendered public/500.html (0.5ms)
|
|
13475
|
+
Completed 500 Internal Server Error in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
|
|
13476
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
13477
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13478
|
+
------------------------------
|
|
13479
|
+
StatusTest: test_access_denied
|
|
13480
|
+
------------------------------
|
|
13481
|
+
Started GET "/access_denied.json" for 127.0.0.1 at 2015-02-22 14:58:17 -0200
|
|
13482
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
13483
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
13484
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
13485
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
13486
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
|
13487
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
13488
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
13489
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
13490
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
13491
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
13492
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
13493
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
13494
|
+
-------------------------------------
|
|
13495
|
+
StatusTest: test_unprocessable_entity
|
|
13496
|
+
-------------------------------------
|
|
13497
|
+
Started GET "/unprocessable_entity.json" for 127.0.0.1 at 2015-02-22 15:02:38 -0200
|
|
13498
|
+
Processing by StatusController#unprocessable_entity_action as JSON
|
|
13499
|
+
Completed 422 Unprocessable Entity in 0ms (ActiveRecord: 0.0ms)
|
|
13500
|
+
Started GET "/unprocessable_entity" for 127.0.0.1 at 2015-02-22 15:02:38 -0200
|
|
13501
|
+
Processing by StatusController#unprocessable_entity_action as HTML
|
|
13502
|
+
Rendered public/422.html (1.7ms)
|
|
13503
|
+
Completed 422 Unprocessable Entity in 13ms (Views: 12.7ms | ActiveRecord: 0.0ms)
|
|
13504
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
13505
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13506
|
+
--------------------------
|
|
13507
|
+
StatusTest: test_forbidden
|
|
13508
|
+
--------------------------
|
|
13509
|
+
Started GET "/forbidden.json" for 127.0.0.1 at 2015-02-22 15:02:38 -0200
|
|
13510
|
+
Processing by StatusController#forbidden_action as JSON
|
|
13511
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
|
13512
|
+
Started GET "/forbidden" for 127.0.0.1 at 2015-02-22 15:02:38 -0200
|
|
13513
|
+
Processing by StatusController#forbidden_action as HTML
|
|
13514
|
+
Rendered public/422.html (0.1ms)
|
|
13515
|
+
Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
|
13516
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
13517
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13518
|
+
--------------------------
|
|
13519
|
+
StatusTest: test_not_found
|
|
13520
|
+
--------------------------
|
|
13521
|
+
Started GET "/not_found.json" for 127.0.0.1 at 2015-02-22 15:02:38 -0200
|
|
13522
|
+
Processing by StatusController#not_found_action as JSON
|
|
13523
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
|
13524
|
+
Started GET "/not_found" for 127.0.0.1 at 2015-02-22 15:02:38 -0200
|
|
13525
|
+
Processing by StatusController#not_found_action as HTML
|
|
13526
|
+
Rendered public/404.html (0.4ms)
|
|
13527
|
+
Completed 404 Not Found in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
|
|
13528
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
13529
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13530
|
+
-----------------------------
|
|
13531
|
+
StatusTest: test_unauthorized
|
|
13532
|
+
-----------------------------
|
|
13533
|
+
Started GET "/unauthorized.json" for 127.0.0.1 at 2015-02-22 15:02:38 -0200
|
|
13534
|
+
Processing by StatusController#unauthorized_action as JSON
|
|
13535
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
|
13536
|
+
Started GET "/unauthorized" for 127.0.0.1 at 2015-02-22 15:02:38 -0200
|
|
13537
|
+
Processing by StatusController#unauthorized_action as HTML
|
|
13538
|
+
Rendered public/422.html (0.1ms)
|
|
13539
|
+
Completed 401 Unauthorized in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
|
13540
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
13541
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13542
|
+
----------------------
|
|
13543
|
+
StatusTest: test_error
|
|
13544
|
+
----------------------
|
|
13545
|
+
Started GET "/error.json" for 127.0.0.1 at 2015-02-22 15:02:38 -0200
|
|
13546
|
+
Processing by StatusController#error_action as JSON
|
|
13547
|
+
Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
|
|
13548
|
+
Started GET "/error" for 127.0.0.1 at 2015-02-22 15:02:38 -0200
|
|
13549
|
+
Processing by StatusController#error_action as HTML
|
|
13550
|
+
Rendered public/500.html (0.4ms)
|
|
13551
|
+
Completed 500 Internal Server Error in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
|
|
13552
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
13553
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
13554
|
+
-----------------------------------------------
|
|
13555
|
+
ActiveTrailTest: test_active_trail_same_as_path
|
|
13556
|
+
-----------------------------------------------
|
|
13557
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
13558
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13559
|
+
----------------------------------------------
|
|
13560
|
+
ActiveTrailTest: test_active_trail_not_in_path
|
|
13561
|
+
----------------------------------------------
|
|
13562
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
13563
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
13564
|
+
------------------------------------------
|
|
13565
|
+
ActiveTrailTest: test_active_trail_in_path
|
|
13566
|
+
------------------------------------------
|
|
13567
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
13568
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13569
|
+
-----------------------------------------
|
|
13570
|
+
ContentTagIfTest: test_attributes_options
|
|
13571
|
+
-----------------------------------------
|
|
13572
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
13573
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13574
|
+
-------------------------------------
|
|
13575
|
+
ContentTagIfTest: test_true_condition
|
|
13576
|
+
-------------------------------------
|
|
13577
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
13578
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
13579
|
+
--------------------------------------
|
|
13580
|
+
ContentTagIfTest: test_false_condition
|
|
13581
|
+
--------------------------------------
|
|
13582
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tuning
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Museways
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-02-
|
|
11
|
+
date: 2015-02-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -69,11 +69,6 @@ files:
|
|
|
69
69
|
- test/dummy/app/controllers/status_controller.rb
|
|
70
70
|
- test/dummy/app/helpers/application_helper.rb
|
|
71
71
|
- test/dummy/app/views/layouts/application.html.erb
|
|
72
|
-
- test/dummy/app/views/pages/_dummy.html.erb
|
|
73
|
-
- test/dummy/app/views/pages/defined.html.erb
|
|
74
|
-
- test/dummy/app/views/pages/empty.html.erb
|
|
75
|
-
- test/dummy/app/views/pages/index.html.erb
|
|
76
|
-
- test/dummy/app/views/pages/variable.html.erb
|
|
77
72
|
- test/dummy/bin/bundle
|
|
78
73
|
- test/dummy/bin/rails
|
|
79
74
|
- test/dummy/bin/rake
|
|
@@ -149,11 +144,6 @@ test_files:
|
|
|
149
144
|
- test/dummy/app/controllers/status_controller.rb
|
|
150
145
|
- test/dummy/app/helpers/application_helper.rb
|
|
151
146
|
- test/dummy/app/views/layouts/application.html.erb
|
|
152
|
-
- test/dummy/app/views/pages/_dummy.html.erb
|
|
153
|
-
- test/dummy/app/views/pages/defined.html.erb
|
|
154
|
-
- test/dummy/app/views/pages/empty.html.erb
|
|
155
|
-
- test/dummy/app/views/pages/index.html.erb
|
|
156
|
-
- test/dummy/app/views/pages/variable.html.erb
|
|
157
147
|
- test/dummy/bin/bundle
|
|
158
148
|
- test/dummy/bin/rails
|
|
159
149
|
- test/dummy/bin/rake
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<%= render partial: 'pages/dummy' %>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<% seo_options name: 'other' %>
|