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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 835360bfe1b297294600dfa7990d0cdae5608e41
4
- data.tar.gz: 94e6987ac6f3fa962c5b0b2857761e90b50f3336
3
+ metadata.gz: 0ccdf6743e408ee68f181557d5c909389c58b52d
4
+ data.tar.gz: 77cf15c2b95be8ade4c131d2fbc7604a07f786c9
5
5
  SHA512:
6
- metadata.gz: 65b76c46d3d2d343e0de497c0ba60ce95ce9e2c9867cb21a2615cdd4129a7fc29245c4382a2ddb8d67852471dd3f893d45b17d9c64d556186f66ec7ff078e4c8
7
- data.tar.gz: 2f07dd54907c0bb8ff5ca7afd29b54a33268b923425bf082d63e22daf5340fb84c41e5512c44152b2658a435c14ecbb74f5ce8067ee195772ebf522d3ff28f3e
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:
@@ -3,10 +3,6 @@ module Tuning
3
3
  module Base
4
4
  extend ActiveSupport::Concern
5
5
 
6
- included do
7
- rescue_from Exception, with: :error if Rails.env.development?
8
- end
9
-
10
6
  protected
11
7
 
12
8
  def error(exception=nil)
@@ -1,5 +1,5 @@
1
1
  module Tuning
2
2
 
3
- VERSION = '0.2.4'
3
+ VERSION = '0.3.0'
4
4
 
5
5
  end
@@ -1,14 +1,14 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <title><%= @title %></title>
5
- <meta name="description" content="<%= @description %>" />
6
- <meta name="keywords" content="<%= @keywords %>" />
7
- <%= csrf_meta_tags %>
8
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
9
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
10
- </head>
11
- <body>
12
- <%= yield %>
13
- </body>
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>
@@ -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
   (0.1ms) rollback transaction
13393
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
13394
+  (0.2ms) select sqlite_version(*)
13395
+  (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13396
+  (0.1ms) SELECT version FROM "schema_migrations"
13397
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
13398
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
13399
+  (0.1ms) select sqlite_version(*)
13400
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13401
+  (0.1ms) SELECT version FROM "schema_migrations"
13402
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
13403
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
13404
+  (0.1ms) select sqlite_version(*)
13405
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13406
+  (0.1ms) SELECT version FROM "schema_migrations"
13407
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
13408
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
13409
+  (0.1ms) select sqlite_version(*)
13410
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13411
+  (0.1ms) SELECT version FROM "schema_migrations"
13412
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
13413
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
13414
+  (0.1ms) select sqlite_version(*)
13415
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13416
+  (0.0ms) SELECT version FROM "schema_migrations"
13417
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
13418
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
13419
+  (0.1ms) select sqlite_version(*)
13420
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13421
+  (0.1ms) SELECT version FROM "schema_migrations"
13422
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
13423
+  (0.1ms) begin transaction
13424
+ -----------------------------------------
13425
+ ContentTagIfTest: test_attributes_options
13426
+ -----------------------------------------
13427
+  (0.2ms) rollback transaction
13428
+  (0.0ms) begin transaction
13429
+ --------------------------------------
13430
+ ContentTagIfTest: test_false_condition
13431
+ --------------------------------------
13432
+  (0.0ms) rollback transaction
13433
+  (0.0ms) begin transaction
13434
+ -------------------------------------
13435
+ ContentTagIfTest: test_true_condition
13436
+ -------------------------------------
13437
+  (0.0ms) rollback transaction
13438
+  (0.0ms) begin transaction
13439
+ ------------------------------------------
13440
+ ActiveTrailTest: test_active_trail_in_path
13441
+ ------------------------------------------
13442
+  (0.0ms) rollback transaction
13443
+  (0.0ms) begin transaction
13444
+ ----------------------------------------------
13445
+ ActiveTrailTest: test_active_trail_not_in_path
13446
+ ----------------------------------------------
13447
+  (0.0ms) rollback transaction
13448
+  (0.1ms) begin transaction
13449
+ -----------------------------------------------
13450
+ ActiveTrailTest: test_active_trail_same_as_path
13451
+ -----------------------------------------------
13452
+  (0.0ms) rollback transaction
13453
+  (0.1ms) 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
+  (0.1ms) rollback transaction
13465
+  (0.1ms) 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
+  (0.1ms) rollback transaction
13477
+  (0.0ms) 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
+  (0.1ms) rollback transaction
13483
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
13484
+  (0.1ms) select sqlite_version(*)
13485
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13486
+  (0.0ms) SELECT version FROM "schema_migrations"
13487
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
13488
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
13489
+  (0.1ms) select sqlite_version(*)
13490
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13491
+  (0.1ms) SELECT version FROM "schema_migrations"
13492
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
13493
+  (0.1ms) 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
+  (0.1ms) rollback transaction
13505
+  (0.0ms) 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
+  (0.1ms) rollback transaction
13517
+  (0.0ms) 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
+  (0.1ms) rollback transaction
13529
+  (0.0ms) 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
+  (0.1ms) rollback transaction
13541
+  (0.0ms) 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
+  (0.1ms) rollback transaction
13553
+  (0.1ms) begin transaction
13554
+ -----------------------------------------------
13555
+ ActiveTrailTest: test_active_trail_same_as_path
13556
+ -----------------------------------------------
13557
+  (0.0ms) rollback transaction
13558
+  (0.0ms) begin transaction
13559
+ ----------------------------------------------
13560
+ ActiveTrailTest: test_active_trail_not_in_path
13561
+ ----------------------------------------------
13562
+  (0.0ms) rollback transaction
13563
+  (0.1ms) begin transaction
13564
+ ------------------------------------------
13565
+ ActiveTrailTest: test_active_trail_in_path
13566
+ ------------------------------------------
13567
+  (0.0ms) rollback transaction
13568
+  (0.0ms) begin transaction
13569
+ -----------------------------------------
13570
+ ContentTagIfTest: test_attributes_options
13571
+ -----------------------------------------
13572
+  (0.1ms) rollback transaction
13573
+  (0.0ms) begin transaction
13574
+ -------------------------------------
13575
+ ContentTagIfTest: test_true_condition
13576
+ -------------------------------------
13577
+  (0.0ms) rollback transaction
13578
+  (0.0ms) begin transaction
13579
+ --------------------------------------
13580
+ ContentTagIfTest: test_false_condition
13581
+ --------------------------------------
13582
+  (0.0ms) rollback transaction
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.2.4
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-20 00:00:00.000000000 Z
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
@@ -1,3 +0,0 @@
1
- <% @title = 'title' %>
2
- <% @description = 'description' %>
3
- <% @keywords = 'keywords' %>
File without changes
@@ -1 +0,0 @@
1
- <%= render partial: 'pages/dummy' %>
@@ -1 +0,0 @@
1
- <% seo_options name: 'other' %>