tuning 4.0.1.0 → 4.0.1.1
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 +6 -0
- data/lib/tuning/railtie.rb +39 -22
- data/lib/tuning/version.rb +1 -1
- data/test/dummy/config/database.yml +5 -2
- data/test/dummy/log/development.log +21 -0
- data/test/dummy/log/test.log +476 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1230f719f8a1a88ec9c4a108293e46a6ea56b9a0
|
4
|
+
data.tar.gz: 2c9bbe5ab5687f1d3ae37d581ba9e346f57bd2d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58d2496b78f1669c76e7b5c237e3b3d7f9f1cd7b81d7e9acf8689c8edad3861b3cd5645ed3a62ca1c7f21f672e958657ce1a28f907f220ed009bc96a204c11cd
|
7
|
+
data.tar.gz: dc88ac5caee3427896c8f5a1720f01be64bc0ab5c4acd099041afce424724722a59b4f0164ad27d9de6af3529314ca522845e8b8f0289976a5bce7621b3f6d2b
|
data/README.md
CHANGED
@@ -141,6 +141,12 @@ end
|
|
141
141
|
|
142
142
|
NOTE: Take a look at lib/tuning/locales to know the i18n keys.
|
143
143
|
|
144
|
+
## Contributing
|
145
|
+
|
146
|
+
Any issue, pull request, comment of any kind is more than welcome!
|
147
|
+
|
148
|
+
I will mainly ensure compatibility to PostgreSQL, AWS, Redis, Elasticsearch, FreeBSD and Memcached.
|
149
|
+
|
144
150
|
## Credits
|
145
151
|
|
146
152
|
This gem is maintained and funded by [mmontossi](https://github.com/mmontossi).
|
data/lib/tuning/railtie.rb
CHANGED
@@ -1,33 +1,50 @@
|
|
1
1
|
module Tuning
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
|
4
|
-
initializer 'tuning.
|
5
|
-
::ActionController::Base.include(
|
6
|
-
Tuning::Extensions::ActionController::Base
|
7
|
-
)
|
8
|
-
::ActionMailer::Base.include(
|
9
|
-
Tuning::Extensions::ActionMailer::Base
|
10
|
-
)
|
11
|
-
::ActionView::Base.include(
|
12
|
-
Tuning::Extensions::ActionView::Base
|
13
|
-
)
|
14
|
-
::ActionView::Template::Handlers.include(
|
15
|
-
Tuning::Extensions::ActionView::Handlers
|
16
|
-
)
|
17
|
-
::ActiveRecord::Base.include(
|
18
|
-
Tuning::Extensions::ActiveRecord::Base,
|
19
|
-
Tuning::Validations
|
20
|
-
)
|
4
|
+
initializer 'tuning.active_model' do
|
21
5
|
::ActiveModel::Model.include(
|
22
6
|
Tuning::Validations
|
23
7
|
)
|
24
8
|
end
|
25
9
|
|
26
|
-
initializer 'tuning.
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
10
|
+
initializer 'tuning.active_record' do
|
11
|
+
ActiveSupport.on_load :active_record do
|
12
|
+
::ActiveRecord::Base.include(
|
13
|
+
Tuning::Extensions::ActiveRecord::Base,
|
14
|
+
Tuning::Validations
|
15
|
+
)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
initializer 'tuning.action_controller' do
|
20
|
+
ActiveSupport.on_load :action_controller do
|
21
|
+
::ActionController::Base.include(
|
22
|
+
Tuning::Extensions::ActionController::Base
|
23
|
+
)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
initializer 'tuning.action_mailer' do
|
28
|
+
ActiveSupport.on_load :action_mailer do
|
29
|
+
::ActionMailer::Base.include(
|
30
|
+
Tuning::Extensions::ActionMailer::Base
|
31
|
+
)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
initializer 'tuning.action_view' do
|
36
|
+
ActiveSupport.on_load :action_view do
|
37
|
+
::ActionView::Base.include(
|
38
|
+
Tuning::Extensions::ActionView::Base
|
39
|
+
)
|
40
|
+
::ActionView::Template::Handlers.include(
|
41
|
+
Tuning::Extensions::ActionView::Handlers
|
42
|
+
)
|
43
|
+
::ActionView::Template.register_template_handler(
|
44
|
+
:ruby,
|
45
|
+
::ActionView::Template::Handlers::Ruby.new
|
46
|
+
)
|
47
|
+
end
|
31
48
|
end
|
32
49
|
|
33
50
|
end
|
data/lib/tuning/version.rb
CHANGED
@@ -18,4 +18,25 @@ WHERE c.contype = 'f'
|
|
18
18
|
AND t1.relname = 'users'
|
19
19
|
AND t3.nspname = ANY (current_schemas(false))
|
20
20
|
ORDER BY c.conname
|
21
|
+
[0m
|
22
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
23
|
+
[1m[35m (22.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
24
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
25
|
+
Migrating to CreateUsers (20161020200126)
|
26
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27
|
+
[1m[36m (20.2ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
28
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161020200126"]]
|
29
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
30
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
31
|
+
[1m[36m (1.8ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
32
|
+
FROM pg_constraint c
|
33
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
34
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
35
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
36
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
37
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
38
|
+
WHERE c.contype = 'f'
|
39
|
+
AND t1.relname = 'users'
|
40
|
+
AND t3.nspname = ANY (current_schemas(false))
|
41
|
+
ORDER BY c.conname
|
21
42
|
[0m
|
data/test/dummy/log/test.log
CHANGED
@@ -2963,3 +2963,479 @@ ControllerTest: test_callbacks
|
|
2963
2963
|
ControllerTest: test_render
|
2964
2964
|
---------------------------
|
2965
2965
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2966
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2967
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2968
|
+
--------------------------
|
2969
|
+
ValidationTest: test_count
|
2970
|
+
--------------------------
|
2971
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2972
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2973
|
+
----------------------------
|
2974
|
+
ValidationTest: test_methods
|
2975
|
+
----------------------------
|
2976
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2977
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2978
|
+
-------------------------------
|
2979
|
+
ValidationTest: test_complexity
|
2980
|
+
-------------------------------
|
2981
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2982
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2983
|
+
-------------------------
|
2984
|
+
ValidationTest: test_time
|
2985
|
+
-------------------------
|
2986
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2987
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2988
|
+
----------------------
|
2989
|
+
ViewTest: test_handler
|
2990
|
+
----------------------
|
2991
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2992
|
+
[1m[35mSQL (17.9ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "mario"], ["created_at", "2016-12-13 18:05:30.002952"], ["updated_at", "2016-12-13 18:05:30.002952"]]
|
2993
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2994
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2995
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "juan"], ["created_at", "2016-12-13 18:05:30.024212"], ["updated_at", "2016-12-13 18:05:30.024212"]]
|
2996
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2997
|
+
Started GET "/users.json" for 127.0.0.1 at 2016-12-13 15:05:30 -0300
|
2998
|
+
Processing by UsersController#index as JSON
|
2999
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3000
|
+
Rendered users/index.json.ruby (1.1ms)
|
3001
|
+
Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.3ms)
|
3002
|
+
Started GET "/users.xml" for 127.0.0.1 at 2016-12-13 15:05:30 -0300
|
3003
|
+
Processing by UsersController#index as XML
|
3004
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users"
|
3005
|
+
Rendered users/index.xml.ruby (10.5ms)
|
3006
|
+
Completed 200 OK in 13ms (Views: 12.9ms | ActiveRecord: 0.3ms)
|
3007
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3008
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3009
|
+
------------------------------
|
3010
|
+
ControllerTest: test_callbacks
|
3011
|
+
------------------------------
|
3012
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3013
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3014
|
+
---------------------------
|
3015
|
+
ControllerTest: test_render
|
3016
|
+
---------------------------
|
3017
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3018
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3019
|
+
-------------------------
|
3020
|
+
RecordTest: test_validate
|
3021
|
+
-------------------------
|
3022
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3023
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3024
|
+
------------------------------
|
3025
|
+
RecordTest: test_nilify_blanks
|
3026
|
+
------------------------------
|
3027
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3028
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 18:05:30.061752"], ["updated_at", "2016-12-13 18:05:30.061752"]]
|
3029
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3030
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 77]]
|
3031
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3032
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3033
|
+
------------------------------
|
3034
|
+
MailerTest: test_normalization
|
3035
|
+
------------------------------
|
3036
|
+
Rendered user_mailer/invite.text.erb (0.7ms)
|
3037
|
+
|
3038
|
+
UserMailer#invite: processed outbound mail in 10.2ms
|
3039
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3040
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3041
|
+
--------------------------
|
3042
|
+
HelperTest: test_extending
|
3043
|
+
--------------------------
|
3044
|
+
Rendered layouts/application.html.erb (0.2ms)
|
3045
|
+
Rendered layouts/market.html.erb (6.7ms)
|
3046
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3047
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3048
|
+
-----------------------------
|
3049
|
+
HelperTest: test_active_trail
|
3050
|
+
-----------------------------
|
3051
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3052
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3053
|
+
-------------------------------
|
3054
|
+
HelperTest: test_content_tag_if
|
3055
|
+
-------------------------------
|
3056
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3057
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3058
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3059
|
+
------------------------------
|
3060
|
+
ControllerTest: test_callbacks
|
3061
|
+
------------------------------
|
3062
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3063
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3064
|
+
---------------------------
|
3065
|
+
ControllerTest: test_render
|
3066
|
+
---------------------------
|
3067
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3068
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3069
|
+
------------------------------
|
3070
|
+
RecordTest: test_nilify_blanks
|
3071
|
+
------------------------------
|
3072
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3073
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 18:08:23.127506"], ["updated_at", "2016-12-13 18:08:23.127506"]]
|
3074
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3075
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 78]]
|
3076
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3077
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3078
|
+
-------------------------
|
3079
|
+
RecordTest: test_validate
|
3080
|
+
-------------------------
|
3081
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3082
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3083
|
+
-------------------------------
|
3084
|
+
ValidationTest: test_complexity
|
3085
|
+
-------------------------------
|
3086
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3087
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3088
|
+
--------------------------
|
3089
|
+
ValidationTest: test_count
|
3090
|
+
--------------------------
|
3091
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3092
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3093
|
+
----------------------------
|
3094
|
+
ValidationTest: test_methods
|
3095
|
+
----------------------------
|
3096
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3097
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3098
|
+
-------------------------
|
3099
|
+
ValidationTest: test_time
|
3100
|
+
-------------------------
|
3101
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3102
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3103
|
+
------------------------------
|
3104
|
+
MailerTest: test_normalization
|
3105
|
+
------------------------------
|
3106
|
+
Rendered user_mailer/invite.text.erb (0.6ms)
|
3107
|
+
|
3108
|
+
UserMailer#invite: processed outbound mail in 11.0ms
|
3109
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3110
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3111
|
+
----------------------
|
3112
|
+
ViewTest: test_handler
|
3113
|
+
----------------------
|
3114
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3115
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "mario"], ["created_at", "2016-12-13 18:08:23.275330"], ["updated_at", "2016-12-13 18:08:23.275330"]]
|
3116
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3117
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3118
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "juan"], ["created_at", "2016-12-13 18:08:23.276754"], ["updated_at", "2016-12-13 18:08:23.276754"]]
|
3119
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3120
|
+
Started GET "/users.json" for 127.0.0.1 at 2016-12-13 15:08:23 -0300
|
3121
|
+
Processing by UsersController#index as JSON
|
3122
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3123
|
+
Rendered users/index.json.ruby (0.9ms)
|
3124
|
+
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.3ms)
|
3125
|
+
Started GET "/users.xml" for 127.0.0.1 at 2016-12-13 15:08:23 -0300
|
3126
|
+
Processing by UsersController#index as XML
|
3127
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
3128
|
+
Rendered users/index.xml.ruby (4.9ms)
|
3129
|
+
Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.2ms)
|
3130
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3131
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3132
|
+
-----------------------------
|
3133
|
+
HelperTest: test_active_trail
|
3134
|
+
-----------------------------
|
3135
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3136
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3137
|
+
-------------------------------
|
3138
|
+
HelperTest: test_content_tag_if
|
3139
|
+
-------------------------------
|
3140
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3141
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3142
|
+
--------------------------
|
3143
|
+
HelperTest: test_extending
|
3144
|
+
--------------------------
|
3145
|
+
Rendered layouts/application.html.erb (0.2ms)
|
3146
|
+
Rendered layouts/market.html.erb (6.4ms)
|
3147
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3148
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3149
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3150
|
+
--------------------------
|
3151
|
+
ValidationTest: test_count
|
3152
|
+
--------------------------
|
3153
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3154
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3155
|
+
----------------------------
|
3156
|
+
ValidationTest: test_methods
|
3157
|
+
----------------------------
|
3158
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3159
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3160
|
+
-------------------------------
|
3161
|
+
ValidationTest: test_complexity
|
3162
|
+
-------------------------------
|
3163
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3164
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3165
|
+
-------------------------
|
3166
|
+
ValidationTest: test_time
|
3167
|
+
-------------------------
|
3168
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3169
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3170
|
+
--------------------------
|
3171
|
+
HelperTest: test_extending
|
3172
|
+
--------------------------
|
3173
|
+
Rendered layouts/application.html.erb (0.2ms)
|
3174
|
+
Rendered layouts/market.html.erb (6.7ms)
|
3175
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3176
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3177
|
+
-----------------------------
|
3178
|
+
HelperTest: test_active_trail
|
3179
|
+
-----------------------------
|
3180
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3181
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3182
|
+
-------------------------------
|
3183
|
+
HelperTest: test_content_tag_if
|
3184
|
+
-------------------------------
|
3185
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3186
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3187
|
+
------------------------------
|
3188
|
+
ControllerTest: test_callbacks
|
3189
|
+
------------------------------
|
3190
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3191
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3192
|
+
---------------------------
|
3193
|
+
ControllerTest: test_render
|
3194
|
+
---------------------------
|
3195
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3196
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3197
|
+
------------------------------
|
3198
|
+
RecordTest: test_nilify_blanks
|
3199
|
+
------------------------------
|
3200
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3201
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 18:08:56.589545"], ["updated_at", "2016-12-13 18:08:56.589545"]]
|
3202
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3203
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 81]]
|
3204
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3205
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3206
|
+
-------------------------
|
3207
|
+
RecordTest: test_validate
|
3208
|
+
-------------------------
|
3209
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3210
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3211
|
+
------------------------------
|
3212
|
+
MailerTest: test_normalization
|
3213
|
+
------------------------------
|
3214
|
+
Rendered user_mailer/invite.text.erb (0.2ms)
|
3215
|
+
|
3216
|
+
UserMailer#invite: processed outbound mail in 8.3ms
|
3217
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3218
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3219
|
+
----------------------
|
3220
|
+
ViewTest: test_handler
|
3221
|
+
----------------------
|
3222
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3223
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "mario"], ["created_at", "2016-12-13 18:08:56.725756"], ["updated_at", "2016-12-13 18:08:56.725756"]]
|
3224
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3225
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3226
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "juan"], ["created_at", "2016-12-13 18:08:56.727163"], ["updated_at", "2016-12-13 18:08:56.727163"]]
|
3227
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3228
|
+
Started GET "/users.json" for 127.0.0.1 at 2016-12-13 15:08:56 -0300
|
3229
|
+
Processing by UsersController#index as JSON
|
3230
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3231
|
+
Rendered users/index.json.ruby (0.9ms)
|
3232
|
+
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.3ms)
|
3233
|
+
Started GET "/users.xml" for 127.0.0.1 at 2016-12-13 15:08:56 -0300
|
3234
|
+
Processing by UsersController#index as XML
|
3235
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
3236
|
+
Rendered users/index.xml.ruby (4.9ms)
|
3237
|
+
Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.2ms)
|
3238
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3239
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3240
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3241
|
+
--------------------------
|
3242
|
+
ValidationTest: test_count
|
3243
|
+
--------------------------
|
3244
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3245
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3246
|
+
-------------------------------
|
3247
|
+
ValidationTest: test_complexity
|
3248
|
+
-------------------------------
|
3249
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3250
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3251
|
+
----------------------------
|
3252
|
+
ValidationTest: test_methods
|
3253
|
+
----------------------------
|
3254
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3255
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3256
|
+
-------------------------
|
3257
|
+
ValidationTest: test_time
|
3258
|
+
-------------------------
|
3259
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3260
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3261
|
+
------------------------------
|
3262
|
+
MailerTest: test_normalization
|
3263
|
+
------------------------------
|
3264
|
+
Rendered user_mailer/invite.text.erb (0.6ms)
|
3265
|
+
|
3266
|
+
UserMailer#invite: processed outbound mail in 11.5ms
|
3267
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3268
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3269
|
+
----------------------
|
3270
|
+
ViewTest: test_handler
|
3271
|
+
----------------------
|
3272
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3273
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "mario"], ["created_at", "2016-12-13 18:09:21.677311"], ["updated_at", "2016-12-13 18:09:21.677311"]]
|
3274
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3275
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3276
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "juan"], ["created_at", "2016-12-13 18:09:21.680317"], ["updated_at", "2016-12-13 18:09:21.680317"]]
|
3277
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3278
|
+
Started GET "/users.json" for 127.0.0.1 at 2016-12-13 15:09:21 -0300
|
3279
|
+
Processing by UsersController#index as JSON
|
3280
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3281
|
+
Rendered users/index.json.ruby (1.1ms)
|
3282
|
+
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.3ms)
|
3283
|
+
Started GET "/users.xml" for 127.0.0.1 at 2016-12-13 15:09:21 -0300
|
3284
|
+
Processing by UsersController#index as XML
|
3285
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
3286
|
+
Rendered users/index.xml.ruby (4.9ms)
|
3287
|
+
Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.2ms)
|
3288
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3289
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3290
|
+
---------------------------
|
3291
|
+
ControllerTest: test_render
|
3292
|
+
---------------------------
|
3293
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3294
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3295
|
+
------------------------------
|
3296
|
+
ControllerTest: test_callbacks
|
3297
|
+
------------------------------
|
3298
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3299
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3300
|
+
-------------------------------
|
3301
|
+
HelperTest: test_content_tag_if
|
3302
|
+
-------------------------------
|
3303
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3304
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3305
|
+
--------------------------
|
3306
|
+
HelperTest: test_extending
|
3307
|
+
--------------------------
|
3308
|
+
Rendered layouts/application.html.erb (0.2ms)
|
3309
|
+
Rendered layouts/market.html.erb (6.0ms)
|
3310
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3311
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3312
|
+
-----------------------------
|
3313
|
+
HelperTest: test_active_trail
|
3314
|
+
-----------------------------
|
3315
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3316
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3317
|
+
-------------------------
|
3318
|
+
RecordTest: test_validate
|
3319
|
+
-------------------------
|
3320
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3321
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3322
|
+
------------------------------
|
3323
|
+
RecordTest: test_nilify_blanks
|
3324
|
+
------------------------------
|
3325
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3326
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 18:09:21.724440"], ["updated_at", "2016-12-13 18:09:21.724440"]]
|
3327
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3328
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 86]]
|
3329
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3330
|
+
[1m[36mActiveRecord::SchemaMigration Load (6.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3331
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3332
|
+
----------------------
|
3333
|
+
ViewTest: test_handler
|
3334
|
+
----------------------
|
3335
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3336
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "mario"], ["created_at", "2016-12-13 20:27:03.464116"], ["updated_at", "2016-12-13 20:27:03.464116"]]
|
3337
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3338
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3339
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "juan"], ["created_at", "2016-12-13 20:27:03.468189"], ["updated_at", "2016-12-13 20:27:03.468189"]]
|
3340
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3341
|
+
Started GET "/users.json" for 127.0.0.1 at 2016-12-13 17:27:03 -0300
|
3342
|
+
Processing by UsersController#index as JSON
|
3343
|
+
[1m[36mUser Load (0.7ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3344
|
+
Rendered users/index.json.ruby (2.0ms)
|
3345
|
+
Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.7ms)
|
3346
|
+
Started GET "/users.xml" for 127.0.0.1 at 2016-12-13 17:27:03 -0300
|
3347
|
+
Processing by UsersController#index as XML
|
3348
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users"
|
3349
|
+
Rendered users/index.xml.ruby (12.1ms)
|
3350
|
+
Completed 200 OK in 15ms (Views: 14.8ms | ActiveRecord: 0.3ms)
|
3351
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3352
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3353
|
+
---------------------------
|
3354
|
+
ControllerTest: test_render
|
3355
|
+
---------------------------
|
3356
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3357
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3358
|
+
------------------------------
|
3359
|
+
ControllerTest: test_callbacks
|
3360
|
+
------------------------------
|
3361
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3362
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3363
|
+
------------------------------
|
3364
|
+
MailerTest: test_normalization
|
3365
|
+
------------------------------
|
3366
|
+
Rendered user_mailer/invite.text.erb (1.2ms)
|
3367
|
+
|
3368
|
+
UserMailer#invite: processed outbound mail in 15.9ms
|
3369
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3370
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3371
|
+
-------------------------------
|
3372
|
+
ValidationTest: test_complexity
|
3373
|
+
-------------------------------
|
3374
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3375
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3376
|
+
--------------------------
|
3377
|
+
ValidationTest: test_count
|
3378
|
+
--------------------------
|
3379
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3380
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3381
|
+
----------------------------
|
3382
|
+
ValidationTest: test_methods
|
3383
|
+
----------------------------
|
3384
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3385
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3386
|
+
-------------------------
|
3387
|
+
ValidationTest: test_time
|
3388
|
+
-------------------------
|
3389
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3390
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3391
|
+
-----------------------------
|
3392
|
+
HelperTest: test_active_trail
|
3393
|
+
-----------------------------
|
3394
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3395
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3396
|
+
-------------------------------
|
3397
|
+
HelperTest: test_content_tag_if
|
3398
|
+
-------------------------------
|
3399
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3400
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3401
|
+
--------------------------
|
3402
|
+
HelperTest: test_extending
|
3403
|
+
--------------------------
|
3404
|
+
Rendered layouts/application.html.erb (0.3ms)
|
3405
|
+
Rendered layouts/market.html.erb (7.4ms)
|
3406
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3407
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3408
|
+
------------------------------
|
3409
|
+
RecordTest: test_nilify_blanks
|
3410
|
+
------------------------------
|
3411
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3412
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:27:03.710582"], ["updated_at", "2016-12-13 20:27:03.710582"]]
|
3413
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3414
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 89]]
|
3415
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3416
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3417
|
+
-------------------------
|
3418
|
+
RecordTest: test_validate
|
3419
|
+
-------------------------
|
3420
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3421
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
3422
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3423
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3424
|
+
Migrating to CreateUsers (20161020200126)
|
3425
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3426
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
3427
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161020200126"]]
|
3428
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
3429
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
3430
|
+
[1m[36m (1.8ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
3431
|
+
FROM pg_constraint c
|
3432
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
3433
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
3434
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
3435
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
3436
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
3437
|
+
WHERE c.contype = 'f'
|
3438
|
+
AND t1.relname = 'users'
|
3439
|
+
AND t3.nspname = ANY (current_schemas(false))
|
3440
|
+
ORDER BY c.conname
|
3441
|
+
[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: 4.0.1.
|
4
|
+
version: 4.0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mmontossi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|