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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc192b9c1cb9db9646f8d252879d2ad95ca810a54a6a80b70703e778b426a4e1
4
- data.tar.gz: 5f496b2b146399f3f34b4fe28e99584060d341f1abfc2f47deeaeb3080e754f8
3
+ metadata.gz: 4b5542adc4641cfab12314df7f2e81485bdc0a8b407cf2afca804c5b05edc4de
4
+ data.tar.gz: 88c9aea940bfdf4a7245e62bb4b0968cac9188b95b7863f34bf311351e4ffd05
5
5
  SHA512:
6
- metadata.gz: 2e64b726ffaa189d9a1b649ec269fb068a1b871ffeb222ff7d2fa156339af05448d512081aaefb92670b221c5238c9550e909747fee436497efdb88ee3a6b9fc
7
- data.tar.gz: 61b8c3e11d6fc223dc602e5d319c3e67f746bf972bb8358f97e0616f22218f1689a034d0345c2df72c81fd56a5889ba6f8bbd3049b5bcb2a91ee6ad6d1dd5328
6
+ metadata.gz: 3aeeb6320a81091e1c1c782de67323f617f6e072d08e92a2030c5c80e50ce064a30ea4906abe2ee49b8f383f55f0fb4a1399c7a12a05230f9fa1e56b7ad5cabf
7
+ data.tar.gz: 7a19eb3b1581bd070e9be2b313f3503dcdb7c8f9f66a1656e05622f0e17731d5c7c3583cbb53d7f03007b941ae8bd87ce0accc6516784cb471300b6e5bab0941
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DefraRubyFeatures
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
Binary file
@@ -1,183 +1,341 @@
1
-  (4.1ms) SELECT sqlite_version(*)
2
-  (2.8ms) SELECT sqlite_version(*)
1
+  (1.7ms) SELECT sqlite_version(*)
2
+  (1.5ms) SELECT sqlite_version(*)
3
3
   (0.1ms) SELECT sqlite_version(*)
4
-  (0.1ms) SELECT sqlite_version(*)
5
-  (0.8ms) DROP TABLE IF EXISTS "feature_toggles"
6
-  (5.2ms) CREATE 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)
7
-  (1.3ms) DROP TABLE IF EXISTS "users"
8
-  (3.5ms) CREATE 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)
9
-  (3.4ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
10
-  (5.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
11
-  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
12
-  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
13
-  (7.3ms) INSERT INTO "schema_migrations" (version) VALUES (20200624115316)
14
-  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES
4
+  (0.0ms) SELECT sqlite_version(*)
5
+  (0.1ms) DROP TABLE IF EXISTS "feature_toggles"
6
+  (1.7ms) CREATE 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)
7
+  (0.2ms) DROP TABLE IF EXISTS "users"
8
+  (1.5ms) CREATE 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)
9
+  (1.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
10
+  (1.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
11
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
12
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
13
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20200624115316)
14
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES
15
15
  (20200623125321);
16
16
 
17
17
  
18
-  (3.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
19
- ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
18
+  (1.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
19
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
20
20
   (0.0ms) begin transaction
21
- ActiveRecord::InternalMetadata Create (4.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-08-06 12:51:19.473267"], ["updated_at", "2021-08-06 12:51:19.473267"]]
22
-  (2.2ms) commit transaction
23
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
24
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]]
21
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-08-31 13:10:31.411811"], ["updated_at", "2021-08-31 13:10:31.411811"]]
22
+  (0.9ms) commit transaction
23
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
24
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]]
25
25
   (0.0ms) begin transaction
26
- ActiveRecord::InternalMetadata Create (1.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "8dfe9119086661dc796fa00452dc81ff692523f5"], ["created_at", "2021-08-06 12:51:19.484405"], ["updated_at", "2021-08-06 12:51:19.484405"]]
27
-  (1.7ms) commit transaction
26
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "8dfe9119086661dc796fa00452dc81ff692523f5"], ["created_at", "2021-08-31 13:10:31.415677"], ["updated_at", "2021-08-31 13:10:31.415677"]]
27
+  (0.7ms) commit transaction
28
28
   (0.1ms) SELECT sqlite_version(*)
29
-  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
30
-  (0.1ms) PRAGMA foreign_keys
31
-  (0.2ms) PRAGMA defer_foreign_keys
32
-  (0.1ms) PRAGMA defer_foreign_keys = ON
29
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
30
+  (0.2ms) PRAGMA foreign_keys
31
+  (0.0ms) PRAGMA defer_foreign_keys
32
+  (0.0ms) PRAGMA defer_foreign_keys = ON
33
33
   (0.1ms) PRAGMA foreign_keys = OFF
34
34
   (0.2ms) TRUNCATE TABLE "feature_toggles"
35
-  (4.2ms) DELETE FROM "feature_toggles"
36
-  (0.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
37
-  (0.8ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';
35
+  (1.2ms) DELETE FROM "feature_toggles"
36
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
37
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';
38
38
   (0.1ms) TRUNCATE TABLE "users"
39
-  (3.8ms) DELETE FROM "users"
40
-  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
41
-  (0.7ms) DELETE FROM sqlite_sequence where name = 'users';
42
-  (0.1ms) PRAGMA defer_foreign_keys = 0
39
+  (1.0ms) DELETE FROM "users"
40
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
41
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
42
+  (0.0ms) PRAGMA defer_foreign_keys = 0
43
43
   (0.0ms) PRAGMA foreign_keys = 1
44
-  (0.1ms) begin transaction
45
-  (0.2ms) SAVEPOINT active_record_1
46
- Started POST "/feature-toggles" for 127.0.0.1 at 2021-08-06 13:51:20 +0100
47
- Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML
48
- Completed 401 Unauthorized in 20ms (ActiveRecord: 0.0ms | Allocations: 1299)
49
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
44
+  (0.0ms) begin transaction
45
+  (0.0ms) SAVEPOINT active_record_1
46
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
50
47
   (0.0ms) rollback transaction
48
+  (0.0ms) begin transaction
49
+  (0.1ms) SAVEPOINT active_record_1
50
+  (0.1ms) SAVEPOINT active_record_2
51
+ FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:10:32.093337"], ["updated_at", "2021-08-31 13:10:32.093337"]]
52
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
58
+  (0.8ms) rollback transaction
51
59
   (0.1ms) begin transaction
52
60
   (0.1ms) SAVEPOINT active_record_1
61
+  (0.0ms) SAVEPOINT active_record_2
62
+ FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:10:32.158059"], ["updated_at", "2021-08-31 13:10:32.158059"]]
63
+  (0.1ms) RELEASE SAVEPOINT active_record_2
53
64
   (0.1ms) SAVEPOINT active_record_2
54
65
  User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]]
55
- User Create (3.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$iUS5.qGdog4sXCgsYakmOei.FTHwOT7IkxG4yQHodGAGOW77izwMO"], ["created_at", "2021-08-06 12:51:20.976768"], ["updated_at", "2021-08-06 12:51:20.976768"]]
56
-  (0.1ms) RELEASE SAVEPOINT active_record_2
66
+ User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_2
68
+  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"
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
+ FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
73
+  (0.1ms) SAVEPOINT active_record_2
74
+ FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]
75
+  (0.0ms) RELEASE SAVEPOINT active_record_2
76
+ Redirected to http://www.example.com/feature-toggles
77
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms | Allocations: 878)
78
+  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"
79
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
80
+  (0.4ms) rollback transaction
81
+  (0.0ms) begin transaction
82
+  (0.0ms) SAVEPOINT active_record_1
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
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
87
+  (0.0ms) rollback transaction
88
+  (0.0ms) begin transaction
89
+  (0.1ms) SAVEPOINT active_record_1
90
+  (0.1ms) SAVEPOINT active_record_2
91
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]]
92
+ User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_2
57
94
   (0.1ms) SELECT COUNT(*) FROM "feature_toggles"
58
- Started POST "/feature-toggles" for 127.0.0.1 at 2021-08-06 13:51:20 +0100
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
   (0.1ms) SAVEPOINT active_record_2
62
- FeatureToggle Create (0.6ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2021-08-06 12:51:21.038144"], ["updated_at", "2021-08-06 12:51:21.038144"]]
99
+ FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2021-08-31 13:10:32.365531"], ["updated_at", "2021-08-31 13:10:32.365531"]]
63
100
   (0.1ms) RELEASE SAVEPOINT active_record_2
64
101
  Redirected to http://www.example.com/feature-toggles
65
- Completed 302 Found in 16ms (ActiveRecord: 1.0ms | Allocations: 3345)
66
- FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]
102
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 667)
103
+ FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]
67
104
   (0.1ms) SELECT COUNT(*) FROM "feature_toggles"
68
-  (2.4ms) ROLLBACK TO SAVEPOINT active_record_1
69
-  (3.5ms) rollback transaction
70
-  (0.1ms) begin transaction
71
-  (0.2ms) SAVEPOINT active_record_1
105
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
106
+  (0.5ms) rollback transaction
107
+  (0.0ms) begin transaction
108
+  (0.1ms) SAVEPOINT active_record_1
72
109
   (0.1ms) SAVEPOINT active_record_2
73
- User Exists? (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]]
74
- User Create (3.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$jsi1p0/0Ar0y7fGP1/zHyeZPObwDM2dqc3gU.L7hC4nRz8LCMNrmG"], ["created_at", "2021-08-06 12:51:21.088987"], ["updated_at", "2021-08-06 12:51:21.088987"]]
110
+ User Exists? (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]]
111
+ User Create (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
   (0.1ms) RELEASE SAVEPOINT active_record_2
76
113
   (0.1ms) SAVEPOINT active_record_2
77
- FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2021-08-06 12:51:21.094840"], ["updated_at", "2021-08-06 12:51:21.094840"]]
78
-  (0.1ms) RELEASE SAVEPOINT active_record_2
79
- Started GET "/feature-toggles" for 127.0.0.1 at 2021-08-06 13:51:21 +0100
114
+ FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_2
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 /vagrant/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application
82
- FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC
83
- Rendered /vagrant/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 34.8ms | Allocations: 2970)
84
- Completed 200 OK in 83ms (Views: 54.0ms | ActiveRecord: 0.2ms | Allocations: 5489)
85
-  (1.2ms) ROLLBACK TO SAVEPOINT active_record_1
86
-  (3.4ms) rollback transaction
87
-  (0.1ms) begin transaction
88
-  (0.1ms) SAVEPOINT active_record_1
89
- Started GET "/feature-toggles" for 127.0.0.1 at 2021-08-06 13:51:21 +0100
118
+ Rendering /Users/toby/Code/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application
119
+ FeatureToggle Load (0.3ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC
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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
123
+  (0.4ms) rollback transaction
124
+  (0.0ms) begin transaction
125
+  (0.0ms) SAVEPOINT active_record_1
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
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
130
+  (0.0ms) rollback transaction
131
+  (0.0ms) begin transaction
132
+  (0.0ms) SAVEPOINT active_record_1
133
+  (0.1ms) SAVEPOINT active_record_2
134
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]]
135
+ User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_2
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
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
93
144
   (0.4ms) rollback transaction
94
-  (0.1ms) begin transaction
95
-  (0.1ms) SAVEPOINT active_record_1
96
- Started GET "/feature-toggles/new" for 127.0.0.1 at 2021-08-06 13:51:21 +0100
145
+  (0.0ms) begin transaction
146
+  (0.0ms) SAVEPOINT active_record_1
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 2ms (ActiveRecord: 0.0ms | Allocations: 142)
149
+ Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
99
150
   (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
100
-  (0.3ms) rollback transaction
151
+  (0.0ms) rollback transaction
101
152
   (0.1ms) begin transaction
102
153
   (0.1ms) SAVEPOINT active_record_1
103
-  (0.2ms) SAVEPOINT active_record_2
104
- User Exists? (3.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]]
105
- User Create (5.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$nHdYInVG3xbiDtw4Jw.bLe4P0uZkJZe3uNxRisaeyOPph6PzFPzmq"], ["created_at", "2021-08-06 12:51:21.358235"], ["updated_at", "2021-08-06 12:51:21.358235"]]
106
-  (0.3ms) RELEASE SAVEPOINT active_record_2
107
- Started GET "/feature-toggles/new" for 127.0.0.1 at 2021-08-06 13:51:21 +0100
108
- Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML
109
- Rendering /vagrant/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application
110
- Rendered /vagrant/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 2.4ms | Allocations: 155)
111
- Rendered /vagrant/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 36.3ms | Allocations: 1838)
112
- Completed 200 OK in 42ms (Views: 37.3ms | ActiveRecord: 0.0ms | Allocations: 2492)
113
-  (1.8ms) ROLLBACK TO SAVEPOINT active_record_1
114
-  (3.2ms) rollback transaction
154
+  (0.1ms) SAVEPOINT active_record_2
155
+ FeatureToggle Create (0.6ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:10:32.466742"], ["updated_at", "2021-08-31 13:10:32.466742"]]
156
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
162
+  (0.6ms) rollback transaction
115
163
   (0.1ms) begin transaction
116
164
   (0.1ms) SAVEPOINT active_record_1
117
165
   (0.1ms) SAVEPOINT active_record_2
118
- User Exists? (2.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]]
119
- User Create (5.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$UMVahNCaBWKqX6A4gjPIT.7DooXuOcbGucB7VJuXbMKmW/GWLaGDa"], ["created_at", "2021-08-06 12:51:21.476921"], ["updated_at", "2021-08-06 12:51:21.476921"]]
166
+ User Exists? (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]]
167
+ User Create (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
   (0.1ms) RELEASE SAVEPOINT active_record_2
121
169
   (0.1ms) SAVEPOINT active_record_2
122
- FeatureToggle Create (0.6ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-06 12:51:21.484143"], ["updated_at", "2021-08-06 12:51:21.484143"]]
123
-  (0.1ms) RELEASE SAVEPOINT active_record_2
124
- Started PUT "/feature-toggles/1" for 127.0.0.1 at 2021-08-06 13:51:21 +0100
170
+ FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:10:32.484735"], ["updated_at", "2021-08-31 13:10:32.484735"]]
171
+  (0.0ms) RELEASE SAVEPOINT active_record_2
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
- FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
175
+ FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
128
176
   (0.1ms) SAVEPOINT active_record_2
129
- FeatureToggle Update (0.2ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2021-08-06 12:51:21.527368"], ["id", 1]]
177
+ FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2021-08-31 13:10:32.492668"], ["id", 1]]
130
178
   (0.1ms) RELEASE SAVEPOINT active_record_2
131
179
  Redirected to http://www.example.com/feature-toggles
132
- Completed 302 Found in 5ms (ActiveRecord: 0.5ms | Allocations: 954)
180
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 794)
133
181
  FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
134
-  (2.1ms) ROLLBACK TO SAVEPOINT active_record_1
135
-  (5.2ms) rollback transaction
136
-  (0.1ms) begin transaction
137
-  (0.1ms) SAVEPOINT active_record_1
182
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
183
+  (0.5ms) rollback transaction
184
+  (2.9ms) SELECT sqlite_version(*)
185
+  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
186
+  (0.1ms) SELECT sqlite_version(*)
187
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
188
+  (0.2ms) PRAGMA foreign_keys
189
+  (0.0ms) PRAGMA defer_foreign_keys
190
+  (0.0ms) PRAGMA defer_foreign_keys = ON
191
+  (0.1ms) PRAGMA foreign_keys = OFF
192
+  (0.2ms) TRUNCATE TABLE "feature_toggles"
193
+  (3.2ms) DELETE FROM "feature_toggles"
194
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
195
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';
196
+  (0.1ms) TRUNCATE TABLE "users"
197
+  (1.4ms) DELETE FROM "users"
198
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
199
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
200
+  (0.0ms) PRAGMA defer_foreign_keys = 0
201
+  (0.0ms) PRAGMA foreign_keys = 1
202
+  (0.0ms) begin transaction
203
+  (0.0ms) SAVEPOINT active_record_1
138
204
   (0.1ms) SAVEPOINT active_record_2
139
- FeatureToggle Create (6.6ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-06 12:51:21.543758"], ["updated_at", "2021-08-06 12:51:21.543758"]]
140
-  (0.2ms) RELEASE SAVEPOINT active_record_2
141
- Started PUT "/feature-toggles/1" for 127.0.0.1 at 2021-08-06 13:51:21 +0100
142
- Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML
143
- Parameters: {"id"=>"1"}
144
- Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
145
-  (1.2ms) ROLLBACK TO SAVEPOINT active_record_1
146
-  (4.0ms) rollback transaction
147
-  (0.1ms) begin transaction
148
-  (0.1ms) SAVEPOINT active_record_1
205
+ User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]]
206
+ User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_2
208
+  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"
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
   (0.1ms) SAVEPOINT active_record_2
150
- FeatureToggle Create (4.9ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-06 12:51:21.608479"], ["updated_at", "2021-08-06 12:51:21.608479"]]
151
-  (0.1ms) RELEASE SAVEPOINT active_record_2
152
-  (0.2ms) SAVEPOINT active_record_2
153
- User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]]
154
- User Create (1.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$VdY5k.4NFNeiRIbPU8g9AuIqdowe1uhKR3iJpD5dfAoe6d3iDAcKS"], ["created_at", "2021-08-06 12:51:21.619986"], ["updated_at", "2021-08-06 12:51:21.619986"]]
155
-  (0.2ms) RELEASE SAVEPOINT active_record_2
156
-  (0.2ms) SELECT COUNT(*) FROM "feature_toggles"
157
- Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2021-08-06 13:51:21 +0100
213
+ FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2021-08-31 13:27:16.586707"], ["updated_at", "2021-08-31 13:27:16.586707"]]
214
+  (0.0ms) RELEASE SAVEPOINT active_record_2
215
+ Redirected to http://www.example.com/feature-toggles
216
+ Completed 302 Found in 12ms (ActiveRecord: 0.4ms | Allocations: 4468)
217
+ FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]
218
+  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"
219
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
220
+  (0.3ms) rollback transaction
221
+  (0.0ms) begin transaction
222
+  (0.0ms) SAVEPOINT active_record_1
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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
227
+  (0.0ms) rollback transaction
228
+  (0.0ms) begin transaction
229
+  (0.0ms) SAVEPOINT active_record_1
230
+  (0.1ms) SAVEPOINT active_record_2
231
+ FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:27:16.623282"], ["updated_at", "2021-08-31 13:27:16.623282"]]
232
+  (0.0ms) RELEASE SAVEPOINT active_record_2
233
+  (0.0ms) SAVEPOINT active_record_2
234
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]]
235
+ User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_2
237
+  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"
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
  FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
161
242
   (0.1ms) SAVEPOINT active_record_2
162
243
  FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]
163
-  (0.1ms) RELEASE SAVEPOINT active_record_2
244
+  (0.0ms) RELEASE SAVEPOINT active_record_2
164
245
  Redirected to http://www.example.com/feature-toggles
165
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 538)
246
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 679)
166
247
   (0.1ms) SELECT COUNT(*) FROM "feature_toggles"
167
-  (2.4ms) ROLLBACK TO SAVEPOINT active_record_1
168
-  (5.0ms) rollback transaction
248
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
249
+  (0.3ms) rollback transaction
250
+  (0.0ms) begin transaction
251
+  (0.0ms) SAVEPOINT active_record_1
252
+  (0.0ms) SAVEPOINT active_record_2
253
+ FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:27:16.638716"], ["updated_at", "2021-08-31 13:27:16.638716"]]
254
+  (0.0ms) RELEASE SAVEPOINT active_record_2
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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
260
+  (0.4ms) rollback transaction
169
261
   (0.1ms) begin transaction
262
+  (0.0ms) SAVEPOINT active_record_1
263
+  (0.0ms) SAVEPOINT active_record_2
264
+ FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:27:16.649700"], ["updated_at", "2021-08-31 13:27:16.649700"]]
265
+  (0.0ms) RELEASE SAVEPOINT active_record_2
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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
271
+  (0.4ms) rollback transaction
272
+  (0.0ms) begin transaction
170
273
   (0.1ms) SAVEPOINT active_record_1
171
274
   (0.1ms) SAVEPOINT active_record_2
172
- FeatureToggle Create (7.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-06 12:51:21.703601"], ["updated_at", "2021-08-06 12:51:21.703601"]]
275
+ User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]]
276
+ User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_2
278
+  (0.0ms) SAVEPOINT active_record_2
279
+ FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2021-08-31 13:27:16.663938"], ["updated_at", "2021-08-31 13:27:16.663938"]]
280
+  (0.0ms) RELEASE SAVEPOINT active_record_2
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
+ FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
285
+  (0.1ms) SAVEPOINT active_record_2
286
+ FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2021-08-31 13:27:16.671292"], ["id", 1]]
173
287
   (0.1ms) RELEASE SAVEPOINT active_record_2
174
- Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2021-08-06 13:51:21 +0100
175
- Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML
176
- Parameters: {"id"=>"1"}
288
+ Redirected to http://www.example.com/feature-toggles
289
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms | Allocations: 794)
290
+ FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
291
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
292
+  (0.4ms) rollback transaction
293
+  (0.1ms) begin transaction
294
+  (0.1ms) SAVEPOINT active_record_1
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
-  (0.9ms) ROLLBACK TO SAVEPOINT active_record_1
179
-  (3.5ms) rollback transaction
298
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
299
+  (0.1ms) rollback transaction
180
300
   (0.1ms) begin transaction
181
-  (0.2ms) SAVEPOINT active_record_1
301
+  (0.1ms) SAVEPOINT active_record_1
302
+  (0.1ms) SAVEPOINT active_record_2
303
+ User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]]
304
+ User Create (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_2
306
+  (0.1ms) SAVEPOINT active_record_2
307
+ FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_2
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
+ FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC
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
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
183
-  (0.1ms) rollback transaction
316
+  (0.3ms) rollback transaction
317
+  (0.0ms) begin transaction
318
+  (0.0ms) SAVEPOINT active_record_1
319
+  (0.0ms) SAVEPOINT active_record_2
320
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]]
321
+ User Create (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_2
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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
330
+  (0.4ms) rollback transaction
331
+  (0.0ms) begin transaction
332
+  (0.1ms) SAVEPOINT active_record_1
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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
337
+  (0.0ms) rollback transaction
338
+  (0.1ms) begin transaction
339
+  (0.0ms) SAVEPOINT active_record_1
340
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
341
+  (0.0ms) rollback transaction
@@ -1 +1 @@
1
- f532ac46f80b1fb4c4c481203b97d17571f80ddaf2e63a84b21ef6c57c452a82a8d5c7c443dba51d41adcb9234c4ba3de3a3493d897915e463ca98fe6cb418b0
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.00337 seconds |
4
- ./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:1:1:1] | passed | 0.17293 seconds |
5
- ./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:1:2:1] | passed | 0.0334 seconds |
6
- ./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:2:1:1] | passed | 0.16187 seconds |
7
- ./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:2:2:1] | passed | 0.15559 seconds |
8
- ./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:3:1:1] | passed | 0.07179 seconds |
9
- ./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:3:2:1] | passed | 0.0641 seconds |
10
- ./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:4:1:1] | passed | 0.12075 seconds |
11
- ./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:4:2:1] | passed | 0.05853 seconds |
12
- ./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:5:1:1] | passed | 0.09376 seconds |
13
- ./spec/requests/defra_ruby_features/feature_toggles_spec.rb[1:5:2:1] | passed | 0.05941 seconds |
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.3
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-12 00:00:00.000000000 Z
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.3
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.3
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