defra_ruby_features 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/defra_ruby_features/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +279 -121
- data/spec/dummy/tmp/development_secret.txt +1 -1
- data/spec/examples.txt +11 -11
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b5542adc4641cfab12314df7f2e81485bdc0a8b407cf2afca804c5b05edc4de
|
4
|
+
data.tar.gz: 88c9aea940bfdf4a7245e62bb4b0968cac9188b95b7863f34bf311351e4ffd05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3aeeb6320a81091e1c1c782de67323f617f6e072d08e92a2030c5c80e50ce064a30ea4906abe2ee49b8f383f55f0fb4a1399c7a12a05230f9fa1e56b7ad5cabf
|
7
|
+
data.tar.gz: 7a19eb3b1581bd070e9be2b313f3503dcdb7c8f9f66a1656e05622f0e17731d5c7c3583cbb53d7f03007b941ae8bd87ce0accc6516784cb471300b6e5bab0941
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -1,183 +1,341 @@
|
|
1
|
-
[1m[35m (
|
2
|
-
[1m[35m (
|
1
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3
3
|
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4
|
-
[1m[35m (0.
|
5
|
-
[1m[35m (0.
|
6
|
-
[1m[35m (
|
7
|
-
[1m[35m (
|
8
|
-
[1m[35m (
|
9
|
-
[1m[35m (
|
10
|
-
[1m[35m (
|
11
|
-
[1m[35m (
|
12
|
-
[1m[35m (0.
|
13
|
-
[1m[35m (
|
14
|
-
[1m[35m (
|
4
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
5
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "feature_toggles"[0m
|
6
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "feature_toggles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "active" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
7
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
8
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
9
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
10
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
11
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
12
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
13
|
+
[1m[35m (1.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20200624115316)[0m
|
14
|
+
[1m[35m (1.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
15
15
|
(20200623125321);
|
16
16
|
|
17
17
|
[0m
|
18
|
-
[1m[35m (
|
19
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.
|
18
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
19
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
20
20
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
21
|
-
[1m[36mActiveRecord::InternalMetadata Create (
|
22
|
-
[1m[35m (
|
23
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.
|
24
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.
|
21
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2021-08-31 13:10:31.411811"], ["updated_at", "2021-08-31 13:10:31.411811"]]
|
22
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
23
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
24
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "schema_sha1"], ["LIMIT", 1]]
|
25
25
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
26
|
-
[1m[36mActiveRecord::InternalMetadata Create (
|
27
|
-
[1m[35m (
|
26
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "schema_sha1"], ["value", "8dfe9119086661dc796fa00452dc81ff692523f5"], ["created_at", "2021-08-31 13:10:31.415677"], ["updated_at", "2021-08-31 13:10:31.415677"]]
|
27
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
28
28
|
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
29
|
-
[1m[35m (0.
|
30
|
-
[1m[35m (0.
|
31
|
-
[1m[35m (0.
|
32
|
-
[1m[35m (0.
|
29
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
30
|
+
[1m[35m (0.2ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
31
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
32
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
33
33
|
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
34
34
|
[1m[35m (0.2ms)[0m [1m[35mTRUNCATE TABLE "feature_toggles"[0m
|
35
|
-
[1m[35m (
|
36
|
-
[1m[35m (0.
|
37
|
-
[1m[35m (0.
|
35
|
+
[1m[35m (1.2ms)[0m [1m[31mDELETE FROM "feature_toggles"[0m
|
36
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
37
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'feature_toggles';[0m
|
38
38
|
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
39
|
-
[1m[35m (
|
40
|
-
[1m[35m (
|
41
|
-
[1m[35m (0.
|
42
|
-
[1m[35m (0.
|
39
|
+
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM "users"[0m
|
40
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
41
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
42
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
43
43
|
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
44
|
-
[1m[35m (0.
|
45
|
-
[1m[35m (0.
|
46
|
-
|
47
|
-
Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML
|
48
|
-
Completed 401 Unauthorized in 20ms (ActiveRecord: 0.0ms | Allocations: 1299)
|
49
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
44
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
46
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
50
47
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
48
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
49
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
51
|
+
[1m[36mFeatureToggle Create (0.4ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:10:32.093337"], ["updated_at", "2021-08-31 13:10:32.093337"]]
|
52
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
53
|
+
Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
54
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML
|
55
|
+
Parameters: {"id"=>"1"}
|
56
|
+
Completed 401 Unauthorized in 11ms (ActiveRecord: 0.0ms | Allocations: 1322)
|
57
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
58
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
51
59
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52
60
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
61
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
62
|
+
[1m[36mFeatureToggle Create (0.4ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:10:32.158059"], ["updated_at", "2021-08-31 13:10:32.158059"]]
|
63
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
53
64
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
54
65
|
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user1@example.com"], ["LIMIT", 1]]
|
55
|
-
[1m[36mUser Create (
|
56
|
-
[1m[35m (0.
|
66
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@example.com"], ["encrypted_password", "$2a$04$YBIfY4.gHtHOx/4WbHFKuOxvy12qDcxGQHtopspdKw2o6O43nj4rm"], ["created_at", "2021-08-31 13:10:32.323501"], ["updated_at", "2021-08-31 13:10:32.323501"]]
|
67
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
68
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
69
|
+
Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
70
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML
|
71
|
+
Parameters: {"id"=>"1"}
|
72
|
+
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
73
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
74
|
+
[1m[36mFeatureToggle Destroy (0.1ms)[0m [1m[31mDELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ?[0m [["id", 1]]
|
75
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
76
|
+
Redirected to http://www.example.com/feature-toggles
|
77
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms | Allocations: 878)
|
78
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
79
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
80
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
81
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
82
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
83
|
+
Started POST "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
84
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML
|
85
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
86
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
87
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
88
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
89
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
90
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
91
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user2@example.com"], ["LIMIT", 1]]
|
92
|
+
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@example.com"], ["encrypted_password", "$2a$04$DOdRVTRN5W9K4/iC7Glkf.zBJ3PYaobHkC8FeirOK6OVJGcwzxe26"], ["created_at", "2021-08-31 13:10:32.356978"], ["updated_at", "2021-08-31 13:10:32.356978"]]
|
93
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
57
94
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
58
|
-
Started POST "/feature-toggles" for 127.0.0.1 at 2021-08-
|
95
|
+
Started POST "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
59
96
|
Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML
|
60
97
|
Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}
|
61
98
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
62
|
-
[1m[36mFeatureToggle Create (0.
|
99
|
+
[1m[36mFeatureToggle Create (0.2ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test"], ["active", 1], ["created_at", "2021-08-31 13:10:32.365531"], ["updated_at", "2021-08-31 13:10:32.365531"]]
|
63
100
|
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
64
101
|
Redirected to http://www.example.com/feature-toggles
|
65
|
-
Completed 302 Found in
|
66
|
-
[1m[36mFeatureToggle Load (0.
|
102
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 667)
|
103
|
+
[1m[36mFeatureToggle Load (0.2ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
67
104
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
68
|
-
[1m[35m (
|
69
|
-
[1m[35m (
|
70
|
-
[1m[35m (0.
|
71
|
-
[1m[35m (0.
|
105
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
106
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
107
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
108
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
72
109
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
73
|
-
[1m[36mUser Exists? (
|
74
|
-
[1m[36mUser Create (
|
110
|
+
[1m[36mUser Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user3@example.com"], ["LIMIT", 1]]
|
111
|
+
[1m[36mUser Create (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@example.com"], ["encrypted_password", "$2a$04$lQow859ukTlbk2l7u5foROdA5DkxIVoFzE1q9s4YkrNvzAhiNuTN."], ["created_at", "2021-08-31 13:10:32.379436"], ["updated_at", "2021-08-31 13:10:32.379436"]]
|
75
112
|
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
76
113
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
77
|
-
[1m[36mFeatureToggle Create (0.
|
78
|
-
[1m[35m (0.
|
79
|
-
Started GET "/feature-toggles" for 127.0.0.1 at 2021-08-
|
114
|
+
[1m[36mFeatureToggle Create (0.1ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2021-08-31 13:10:32.381623"], ["updated_at", "2021-08-31 13:10:32.381623"]]
|
115
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
116
|
+
Started GET "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
80
117
|
Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML
|
81
|
-
Rendering /
|
82
|
-
[1m[36mFeatureToggle Load (0.
|
83
|
-
Rendered /
|
84
|
-
Completed 200 OK in
|
85
|
-
[1m[35m (
|
86
|
-
[1m[35m (
|
87
|
-
[1m[35m (0.
|
88
|
-
[1m[35m (0.
|
89
|
-
Started GET "/feature-toggles" for 127.0.0.1 at 2021-08-
|
118
|
+
Rendering /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application
|
119
|
+
[1m[36mFeatureToggle Load (0.3ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC[0m
|
120
|
+
Rendered /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 20.0ms | Allocations: 2982)
|
121
|
+
Completed 200 OK in 33ms (Views: 27.7ms | ActiveRecord: 0.3ms | Allocations: 5521)
|
122
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
123
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
124
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
125
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
126
|
+
Started GET "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
90
127
|
Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML
|
91
128
|
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
92
129
|
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
130
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
131
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
132
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
133
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
134
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user4@example.com"], ["LIMIT", 1]]
|
135
|
+
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@example.com"], ["encrypted_password", "$2a$04$5bhtL5ebBqK.QaijgVvO5.tQW2.cElnFEUQ0XxgkRR2gfDvZGjPdS"], ["created_at", "2021-08-31 13:10:32.438965"], ["updated_at", "2021-08-31 13:10:32.438965"]]
|
136
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
137
|
+
Started GET "/feature-toggles/new" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
138
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML
|
139
|
+
Rendering /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application
|
140
|
+
Rendered /Users/toby/Code/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.7ms | Allocations: 155)
|
141
|
+
Rendered /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 6.8ms | Allocations: 1847)
|
142
|
+
Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms | Allocations: 2501)
|
143
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
93
144
|
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
94
|
-
[1m[35m (0.
|
95
|
-
[1m[35m (0.
|
96
|
-
Started GET "/feature-toggles/new" for 127.0.0.1 at 2021-08-
|
145
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
146
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
147
|
+
Started GET "/feature-toggles/new" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
97
148
|
Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML
|
98
|
-
Completed 401 Unauthorized in
|
149
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
99
150
|
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
100
|
-
[1m[35m (0.
|
151
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
101
152
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
102
153
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
103
|
-
[1m[35m (0.
|
104
|
-
[1m[
|
105
|
-
[1m[
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
Completed 200 OK in 42ms (Views: 37.3ms | ActiveRecord: 0.0ms | Allocations: 2492)
|
113
|
-
[1m[35m (1.8ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
114
|
-
[1m[35m (3.2ms)[0m [1m[31mrollback transaction[0m
|
154
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
155
|
+
[1m[36mFeatureToggle Create (0.6ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:10:32.466742"], ["updated_at", "2021-08-31 13:10:32.466742"]]
|
156
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
157
|
+
Started PUT "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
158
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML
|
159
|
+
Parameters: {"id"=>"1"}
|
160
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
161
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
162
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
115
163
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
116
164
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
117
165
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
118
|
-
[1m[36mUser Exists? (
|
119
|
-
[1m[36mUser Create (
|
166
|
+
[1m[36mUser Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user5@example.com"], ["LIMIT", 1]]
|
167
|
+
[1m[36mUser Create (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@example.com"], ["encrypted_password", "$2a$04$m5/lA9eFMtl8XGlwOwshD.v4YWOVE0noViKfzRP1TR4qER/oQk4nW"], ["created_at", "2021-08-31 13:10:32.482496"], ["updated_at", "2021-08-31 13:10:32.482496"]]
|
120
168
|
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
121
169
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
122
|
-
[1m[36mFeatureToggle Create (0.
|
123
|
-
[1m[35m (0.
|
124
|
-
Started PUT "/feature-toggles/1" for 127.0.0.1 at 2021-08-
|
170
|
+
[1m[36mFeatureToggle Create (0.1ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:10:32.484735"], ["updated_at", "2021-08-31 13:10:32.484735"]]
|
171
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
172
|
+
Started PUT "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
|
125
173
|
Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML
|
126
174
|
Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"}
|
127
|
-
[1m[36mFeatureToggle Load (0.
|
175
|
+
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
128
176
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
129
|
-
[1m[36mFeatureToggle Update (0.
|
177
|
+
[1m[36mFeatureToggle Update (0.1ms)[0m [1m[33mUPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ?[0m [["active", 1], ["updated_at", "2021-08-31 13:10:32.492668"], ["id", 1]]
|
130
178
|
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
131
179
|
Redirected to http://www.example.com/feature-toggles
|
132
|
-
Completed 302 Found in
|
180
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 794)
|
133
181
|
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
134
|
-
[1m[35m (
|
135
|
-
[1m[35m (
|
136
|
-
[1m[35m (
|
137
|
-
[1m[35m (
|
182
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
183
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
184
|
+
[1m[35m (2.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
185
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
186
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
187
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
188
|
+
[1m[35m (0.2ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
189
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
190
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
191
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
192
|
+
[1m[35m (0.2ms)[0m [1m[35mTRUNCATE TABLE "feature_toggles"[0m
|
193
|
+
[1m[35m (3.2ms)[0m [1m[31mDELETE FROM "feature_toggles"[0m
|
194
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
195
|
+
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'feature_toggles';[0m
|
196
|
+
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
197
|
+
[1m[35m (1.4ms)[0m [1m[31mDELETE FROM "users"[0m
|
198
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
199
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
200
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
201
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
202
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
203
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
138
204
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
139
|
-
[1m[
|
140
|
-
[1m[
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
[1m[35m (4.0ms)[0m [1m[31mrollback transaction[0m
|
147
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
148
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
205
|
+
[1m[36mUser Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user1@example.com"], ["LIMIT", 1]]
|
206
|
+
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@example.com"], ["encrypted_password", "$2a$04$SXh.VPrkHK2l72.JM5K62O1apSvQzVjB8.eNKrX8vOhm/PcvBQSMa"], ["created_at", "2021-08-31 13:27:16.537437"], ["updated_at", "2021-08-31 13:27:16.537437"]]
|
207
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
208
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
209
|
+
Started POST "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
210
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML
|
211
|
+
Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}
|
149
212
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
150
|
-
[1m[36mFeatureToggle Create (
|
151
|
-
[1m[35m (0.
|
152
|
-
|
153
|
-
|
154
|
-
[1m[
|
155
|
-
[1m[35m (0.
|
156
|
-
[1m[35m (0.
|
157
|
-
|
213
|
+
[1m[36mFeatureToggle Create (0.1ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test"], ["active", 1], ["created_at", "2021-08-31 13:27:16.586707"], ["updated_at", "2021-08-31 13:27:16.586707"]]
|
214
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
215
|
+
Redirected to http://www.example.com/feature-toggles
|
216
|
+
Completed 302 Found in 12ms (ActiveRecord: 0.4ms | Allocations: 4468)
|
217
|
+
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
218
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
219
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
220
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
221
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
222
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
223
|
+
Started POST "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
224
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML
|
225
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 157)
|
226
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
227
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
228
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
229
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
230
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
231
|
+
[1m[36mFeatureToggle Create (0.4ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:27:16.623282"], ["updated_at", "2021-08-31 13:27:16.623282"]]
|
232
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
233
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
234
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user2@example.com"], ["LIMIT", 1]]
|
235
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@example.com"], ["encrypted_password", "$2a$04$pPJu2fyUdEktpSgd8uRm8ei6KovxCnV1kNUnwiNLIMOZ2kX3Gkanu"], ["created_at", "2021-08-31 13:27:16.627083"], ["updated_at", "2021-08-31 13:27:16.627083"]]
|
236
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
237
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
238
|
+
Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
158
239
|
Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML
|
159
240
|
Parameters: {"id"=>"1"}
|
160
241
|
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
161
242
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
162
243
|
[1m[36mFeatureToggle Destroy (0.1ms)[0m [1m[31mDELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ?[0m [["id", 1]]
|
163
|
-
[1m[35m (0.
|
244
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
164
245
|
Redirected to http://www.example.com/feature-toggles
|
165
|
-
Completed 302 Found in
|
246
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 679)
|
166
247
|
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "feature_toggles"[0m
|
167
|
-
[1m[35m (
|
168
|
-
[1m[35m (
|
248
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
249
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
250
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
251
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
252
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
253
|
+
[1m[36mFeatureToggle Create (0.4ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:27:16.638716"], ["updated_at", "2021-08-31 13:27:16.638716"]]
|
254
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
255
|
+
Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
256
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML
|
257
|
+
Parameters: {"id"=>"1"}
|
258
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
259
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
260
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
169
261
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
262
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
263
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
264
|
+
[1m[36mFeatureToggle Create (0.3ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:27:16.649700"], ["updated_at", "2021-08-31 13:27:16.649700"]]
|
265
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
266
|
+
Started PUT "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
267
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML
|
268
|
+
Parameters: {"id"=>"1"}
|
269
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
270
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
271
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
272
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
170
273
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
171
274
|
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
172
|
-
[1m[
|
275
|
+
[1m[36mUser Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user3@example.com"], ["LIMIT", 1]]
|
276
|
+
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@example.com"], ["encrypted_password", "$2a$04$MZE4B4bKq5ZD77psNNIaheeMdwlPyrDsTtSMrrYy9ZBHLFLmD/k/O"], ["created_at", "2021-08-31 13:27:16.662297"], ["updated_at", "2021-08-31 13:27:16.662297"]]
|
277
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
278
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
279
|
+
[1m[36mFeatureToggle Create (0.1ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:27:16.663938"], ["updated_at", "2021-08-31 13:27:16.663938"]]
|
280
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
281
|
+
Started PUT "/feature-toggles/1" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
282
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML
|
283
|
+
Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"}
|
284
|
+
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
285
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
286
|
+
[1m[36mFeatureToggle Update (0.1ms)[0m [1m[33mUPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ?[0m [["active", 1], ["updated_at", "2021-08-31 13:27:16.671292"], ["id", 1]]
|
173
287
|
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
174
|
-
|
175
|
-
|
176
|
-
|
288
|
+
Redirected to http://www.example.com/feature-toggles
|
289
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.4ms | Allocations: 794)
|
290
|
+
[1m[36mFeatureToggle Load (0.1ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
291
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
292
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
293
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
294
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
295
|
+
Started GET "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
296
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML
|
177
297
|
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
178
|
-
[1m[35m (0.
|
179
|
-
[1m[35m (
|
298
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
299
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
180
300
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
181
|
-
[1m[35m (0.
|
301
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
302
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
303
|
+
[1m[36mUser Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user4@example.com"], ["LIMIT", 1]]
|
304
|
+
[1m[36mUser Create (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@example.com"], ["encrypted_password", "$2a$04$H3T.pqsTly2QeE.W41rP7O8NDrHiQQyus5Ipqv3MSK0UmZVXDwFVK"], ["created_at", "2021-08-31 13:27:16.697479"], ["updated_at", "2021-08-31 13:27:16.697479"]]
|
305
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
306
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
307
|
+
[1m[36mFeatureToggle Create (0.2ms)[0m [1m[32mINSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2021-08-31 13:27:16.699683"], ["updated_at", "2021-08-31 13:27:16.699683"]]
|
308
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
309
|
+
Started GET "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
310
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML
|
311
|
+
Rendering /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application
|
312
|
+
[1m[36mFeatureToggle Load (0.2ms)[0m [1m[34mSELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC[0m
|
313
|
+
Rendered /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 11.6ms | Allocations: 2982)
|
314
|
+
Completed 200 OK in 24ms (Views: 18.8ms | ActiveRecord: 0.2ms | Allocations: 5517)
|
182
315
|
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
183
|
-
[1m[35m (0.
|
316
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
317
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
318
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
319
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_2[0m
|
320
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "user5@example.com"], ["LIMIT", 1]]
|
321
|
+
[1m[36mUser Create (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@example.com"], ["encrypted_password", "$2a$04$HigDcCFtEICgoOc.YesvTuLAAIKhzTydC66.ATe.ROmgkAzC8KruC"], ["created_at", "2021-08-31 13:27:16.738104"], ["updated_at", "2021-08-31 13:27:16.738104"]]
|
322
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m
|
323
|
+
Started GET "/feature-toggles/new" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
324
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML
|
325
|
+
Rendering /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application
|
326
|
+
Rendered /Users/toby/Code/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.6ms | Allocations: 155)
|
327
|
+
Rendered /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 5.9ms | Allocations: 1847)
|
328
|
+
Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms | Allocations: 2501)
|
329
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
330
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
331
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
332
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
333
|
+
Started GET "/feature-toggles/new" for 127.0.0.1 at 2021-08-31 14:27:16 +0100
|
334
|
+
Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML
|
335
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
|
336
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
337
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
338
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
339
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
340
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
341
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
bdee31b2a4592bf8b02e28a412e0aca374bc9c4e1574bf2696d7257cf8d84772b1fdece11b2b1da100d456e1bc98d115c0224995c3cc2cb42e82f39ebedc5667
|
data/spec/examples.txt
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
example_id | status | run_time |
|
2
2
|
-------------------------------------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/lib/defra_ruby_mocks/configuration_spec.rb[1:1] | passed | 0.
|
4
|
-
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:1:1:1] | passed | 0.
|
5
|
-
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:1:2:1] | passed | 0.
|
6
|
-
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:2:1:1] | passed | 0.
|
7
|
-
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:2:2:1] | passed | 0.
|
8
|
-
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:3:1:1] | passed | 0.
|
9
|
-
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:3:2:1] | passed | 0.
|
10
|
-
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:4:1:1] | passed | 0.
|
11
|
-
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:4:2:1] | passed | 0.
|
12
|
-
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:5:1:1] | passed | 0.
|
13
|
-
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:5:2:1] | passed | 0.
|
3
|
+
./spec/lib/defra_ruby_mocks/configuration_spec.rb[1:1] | passed | 0.00099 seconds |
|
4
|
+
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:1:1:1] | passed | 0.04149 seconds |
|
5
|
+
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:1:2:1] | passed | 0.01559 seconds |
|
6
|
+
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:2:1:1] | passed | 0.08463 seconds |
|
7
|
+
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:2:2:1] | passed | 0.02299 seconds |
|
8
|
+
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:3:1:1] | passed | 0.01785 seconds |
|
9
|
+
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:3:2:1] | passed | 0.00998 seconds |
|
10
|
+
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:4:1:1] | passed | 0.01838 seconds |
|
11
|
+
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:4:2:1] | passed | 0.00772 seconds |
|
12
|
+
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:5:1:1] | passed | 0.01552 seconds |
|
13
|
+
./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:5:2:1] | passed | 0.01045 seconds |
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: defra_ruby_features
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Defra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,20 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 6.0
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 6.0.3.2
|
19
|
+
version: '6.0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 6.0
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 6.0.3.2
|
26
|
+
version: '6.0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: cancancan
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|