defra_ruby_features 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/defra_ruby_features/version.rb +1 -1
  4. metadata +21 -262
  5. data/spec/dummy/Rakefile +0 -8
  6. data/spec/dummy/app/assets/config/manifest.js +0 -3
  7. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  8. data/spec/dummy/app/channels/application_cable/channel.rb +0 -6
  9. data/spec/dummy/app/channels/application_cable/connection.rb +0 -6
  10. data/spec/dummy/app/controllers/application_controller.rb +0 -4
  11. data/spec/dummy/app/controllers/test_controller.rb +0 -7
  12. data/spec/dummy/app/helpers/application_helper.rb +0 -4
  13. data/spec/dummy/app/javascript/packs/application.js +0 -14
  14. data/spec/dummy/app/jobs/application_job.rb +0 -9
  15. data/spec/dummy/app/models/ability.rb +0 -9
  16. data/spec/dummy/app/models/application_record.rb +0 -5
  17. data/spec/dummy/app/models/feature_toggle.rb +0 -4
  18. data/spec/dummy/app/models/user.rb +0 -8
  19. data/spec/dummy/app/views/layouts/application.html.erb +0 -12
  20. data/spec/dummy/bin/rails +0 -4
  21. data/spec/dummy/bin/rake +0 -4
  22. data/spec/dummy/bin/setup +0 -25
  23. data/spec/dummy/config/application.rb +0 -29
  24. data/spec/dummy/config/boot.rb +0 -7
  25. data/spec/dummy/config/database.yml +0 -21
  26. data/spec/dummy/config/environment.rb +0 -7
  27. data/spec/dummy/config/environments/development.rb +0 -50
  28. data/spec/dummy/config/environments/test.rb +0 -41
  29. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -10
  30. data/spec/dummy/config/initializers/assets.rb +0 -14
  31. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -9
  32. data/spec/dummy/config/initializers/content_security_policy.rb +0 -30
  33. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -7
  34. data/spec/dummy/config/initializers/defra_ruby_features.rb +0 -7
  35. data/spec/dummy/config/initializers/devise.rb +0 -311
  36. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -6
  37. data/spec/dummy/config/initializers/inflections.rb +0 -18
  38. data/spec/dummy/config/initializers/mime_types.rb +0 -6
  39. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -11
  40. data/spec/dummy/config/locales/devise.en.yml +0 -65
  41. data/spec/dummy/config/locales/en.yml +0 -33
  42. data/spec/dummy/config/routes.rb +0 -7
  43. data/spec/dummy/config.ru +0 -7
  44. data/spec/dummy/db/migrate/20200623125321_create_feature_toggles.rb +0 -12
  45. data/spec/dummy/db/migrate/20200624115316_devise_create_users.rb +0 -44
  46. data/spec/dummy/db/schema.rb +0 -34
  47. data/spec/dummy/db/test.sqlite3 +0 -0
  48. data/spec/dummy/log/test.log +0 -341
  49. data/spec/dummy/public/404.html +0 -67
  50. data/spec/dummy/public/422.html +0 -67
  51. data/spec/dummy/public/500.html +0 -66
  52. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  53. data/spec/dummy/public/apple-touch-icon.png +0 -0
  54. data/spec/dummy/public/favicon.ico +0 -0
  55. data/spec/dummy/tmp/development_secret.txt +0 -1
  56. data/spec/examples.txt +0 -13
  57. data/spec/factories/feature_toggle.rb +0 -8
  58. data/spec/factories/user.rb +0 -11
  59. data/spec/lib/defra_ruby_mocks/configuration_spec.rb +0 -13
  60. data/spec/rails_helper.rb +0 -54
  61. data/spec/requests/defra_ruby_features/feature_toggles_spec.rb +0 -145
  62. data/spec/spec_helper.rb +0 -83
  63. data/spec/support/database_cleaner.rb +0 -19
  64. data/spec/support/devise.rb +0 -5
  65. data/spec/support/factory_bot.rb +0 -8
  66. data/spec/support/migrations.rb +0 -10
  67. data/spec/support/pry.rb +0 -7
  68. data/spec/support/rails_controller_testing.rb +0 -5
  69. data/spec/support/simplecov.rb +0 -17
@@ -1,44 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class DeviseCreateUsers < ActiveRecord::Migration[6.0]
4
- def change
5
- create_table :users do |t|
6
- ## Database authenticatable
7
- t.string :email, null: false, default: ""
8
- t.string :encrypted_password, null: false, default: ""
9
-
10
- ## Recoverable
11
- t.string :reset_password_token
12
- t.datetime :reset_password_sent_at
13
-
14
- ## Rememberable
15
- t.datetime :remember_created_at
16
-
17
- ## Trackable
18
- # t.integer :sign_in_count, default: 0, null: false
19
- # t.datetime :current_sign_in_at
20
- # t.datetime :last_sign_in_at
21
- # t.string :current_sign_in_ip
22
- # t.string :last_sign_in_ip
23
-
24
- ## Confirmable
25
- # t.string :confirmation_token
26
- # t.datetime :confirmed_at
27
- # t.datetime :confirmation_sent_at
28
- # t.string :unconfirmed_email # Only if using reconfirmable
29
-
30
- ## Lockable
31
- # t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
32
- # t.string :unlock_token # Only if unlock strategy is :email or :both
33
- # t.datetime :locked_at
34
-
35
-
36
- t.timestamps null: false
37
- end
38
-
39
- add_index :users, :email, unique: true
40
- add_index :users, :reset_password_token, unique: true
41
- # add_index :users, :confirmation_token, unique: true
42
- # add_index :users, :unlock_token, unique: true
43
- end
44
- end
@@ -1,34 +0,0 @@
1
- # This file is auto-generated from the current state of the database. Instead
2
- # of editing this file, please use the migrations feature of Active Record to
3
- # incrementally modify your database, and then regenerate this schema definition.
4
- #
5
- # This file is the source Rails uses to define your schema when running `rails
6
- # db:schema:load`. When creating a new database, `rails db:schema:load` tends to
7
- # be faster and is potentially less error prone than running all of your
8
- # migrations from scratch. Old migrations may fail to apply correctly if those
9
- # migrations use external dependencies or application code.
10
- #
11
- # It's strongly recommended that you check this file into your version control system.
12
-
13
- ActiveRecord::Schema.define(version: 2020_06_24_115316) do
14
-
15
- create_table "feature_toggles", force: :cascade do |t|
16
- t.string "key"
17
- t.boolean "active"
18
- t.datetime "created_at", precision: 6, null: false
19
- t.datetime "updated_at", precision: 6, null: false
20
- end
21
-
22
- create_table "users", force: :cascade do |t|
23
- t.string "email", default: "", null: false
24
- t.string "encrypted_password", default: "", null: false
25
- t.string "reset_password_token"
26
- t.datetime "reset_password_sent_at"
27
- t.datetime "remember_created_at"
28
- t.datetime "created_at", precision: 6, null: false
29
- t.datetime "updated_at", precision: 6, null: false
30
- t.index ["email"], name: "index_users_on_email", unique: true
31
- t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
32
- end
33
-
34
- end
Binary file
@@ -1,341 +0,0 @@
1
-  (1.7ms) SELECT sqlite_version(*)
2
-  (1.5ms) SELECT sqlite_version(*)
3
-  (0.1ms) SELECT sqlite_version(*)
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
- (20200623125321);
16
-
17
- 
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
-  (0.0ms) begin transaction
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
-  (0.0ms) begin 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
-  (0.1ms) SELECT sqlite_version(*)
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
-  (0.1ms) PRAGMA foreign_keys = OFF
34
-  (0.2ms) TRUNCATE TABLE "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
-  (0.1ms) TRUNCATE TABLE "users"
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
-  (0.0ms) PRAGMA foreign_keys = 1
44
-  (0.0ms) begin transaction
45
-  (0.0ms) SAVEPOINT active_record_1
46
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
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
59
-  (0.1ms) begin transaction
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
64
-  (0.1ms) SAVEPOINT active_record_2
65
- User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]]
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
94
-  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"
95
- Started POST "/feature-toggles" for 127.0.0.1 at 2021-08-31 14:10:32 +0100
96
- Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML
97
- Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}
98
-  (0.1ms) SAVEPOINT active_record_2
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"]]
100
-  (0.1ms) RELEASE SAVEPOINT active_record_2
101
- Redirected to http://www.example.com/feature-toggles
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]]
104
-  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"
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
109
-  (0.1ms) SAVEPOINT active_record_2
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"]]
112
-  (0.1ms) RELEASE SAVEPOINT active_record_2
113
-  (0.1ms) SAVEPOINT active_record_2
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
117
- Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML
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
127
- Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML
128
- Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
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
144
-  (0.4ms) rollback transaction
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
148
- Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML
149
- Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
150
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
151
-  (0.0ms) rollback transaction
152
-  (0.1ms) begin transaction
153
-  (0.1ms) SAVEPOINT active_record_1
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
163
-  (0.1ms) begin transaction
164
-  (0.1ms) SAVEPOINT active_record_1
165
-  (0.1ms) SAVEPOINT active_record_2
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"]]
168
-  (0.1ms) RELEASE SAVEPOINT active_record_2
169
-  (0.1ms) SAVEPOINT active_record_2
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
173
- Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML
174
- Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"}
175
- FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
176
-  (0.1ms) SAVEPOINT active_record_2
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]]
178
-  (0.1ms) RELEASE SAVEPOINT active_record_2
179
- Redirected to http://www.example.com/feature-toggles
180
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 794)
181
- FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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
204
-  (0.1ms) SAVEPOINT active_record_2
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"}}
212
-  (0.1ms) SAVEPOINT active_record_2
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
239
- Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML
240
- Parameters: {"id"=>"1"}
241
- FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
242
-  (0.1ms) SAVEPOINT active_record_2
243
- FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]
244
-  (0.0ms) RELEASE SAVEPOINT active_record_2
245
- Redirected to http://www.example.com/feature-toggles
246
- Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 679)
247
-  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"
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
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
273
-  (0.1ms) SAVEPOINT active_record_1
274
-  (0.1ms) SAVEPOINT active_record_2
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]]
287
-  (0.1ms) RELEASE SAVEPOINT active_record_2
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
297
- Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 142)
298
-  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
299
-  (0.1ms) rollback transaction
300
-  (0.1ms) begin transaction
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)
315
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
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,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- .rails-default-error-page {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- .rails-default-error-page div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- .rails-default-error-page div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- .rails-default-error-page h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- .rails-default-error-page div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body class="rails-default-error-page">
58
- <!-- This file lives in public/404.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The page you were looking for doesn't exist.</h1>
62
- <p>You may have mistyped the address or the page may have moved.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- .rails-default-error-page {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- .rails-default-error-page div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- .rails-default-error-page div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- .rails-default-error-page h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- .rails-default-error-page div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body class="rails-default-error-page">
58
- <!-- This file lives in public/422.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The change you wanted was rejected.</h1>
62
- <p>Maybe you tried to change something you didn't have access to.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,66 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- .rails-default-error-page {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- .rails-default-error-page div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- .rails-default-error-page div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- .rails-default-error-page h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- .rails-default-error-page div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body class="rails-default-error-page">
58
- <!-- This file lives in public/500.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>We're sorry, but something went wrong.</h1>
62
- </div>
63
- <p>If you are the application owner check the logs for more information.</p>
64
- </div>
65
- </body>
66
- </html>
File without changes
File without changes