nostalgic 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -24
- data/Rakefile +3 -8
- data/app/assets/config/nostalgic_manifest.js +2 -0
- data/app/assets/javascripts/nostalgic/application.js +3 -1
- data/app/assets/stylesheets/nostalgic/application.css +3 -3
- data/app/jobs/nostalgic/application_job.rb +4 -0
- data/app/mailers/nostalgic/application_mailer.rb +6 -0
- data/app/models/nostalgic/application_record.rb +5 -0
- data/app/views/layouts/nostalgic/application.html.erb +3 -1
- data/lib/nostalgic.rb +3 -3
- data/lib/nostalgic/nostalgic_attr.rb +48 -26
- data/lib/nostalgic/railtie.rb +3 -5
- data/lib/nostalgic/version.rb +1 -1
- metadata +27 -126
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/models/company.rb +0 -3
- data/test/dummy/app/models/user.rb +0 -4
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -29
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -23
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -41
- data/test/dummy/config/environments/production.rb +0 -79
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/db/migrate/20160807103323_create_users.rb +0 -9
- data/test/dummy/db/migrate/20161217105723_create_companies.rb +0 -8
- data/test/dummy/db/migrate/20161217105921_add_column_company_id_on_users.rb +0 -5
- data/test/dummy/db/schema.rb +0 -40
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +0 -162
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/models/company_test.rb +0 -5
- data/test/dummy/test/models/user_test.rb +0 -60
- data/test/fixtures/companies.yml +0 -7
- data/test/fixtures/nostalgic/attrs.yml +0 -28
- data/test/fixtures/users.yml +0 -5
- data/test/integration/navigation_test.rb +0 -8
- data/test/models/nostalgic/attr_test.rb +0 -11
- data/test/nostalgic_test.rb +0 -11
- data/test/test_helper.rb +0 -21
@@ -1,14 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
-
# is enabled by default.
|
5
|
-
|
6
|
-
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
-
ActiveSupport.on_load(:action_controller) do
|
8
|
-
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
-
end
|
10
|
-
|
11
|
-
# To enable root element in JSON for ActiveRecord objects.
|
12
|
-
# ActiveSupport.on_load(:active_record) do
|
13
|
-
# self.include_root_in_json = true
|
14
|
-
# end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# Files in the config/locales directory are used for internationalization
|
2
|
-
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
-
# than English, add the necessary files in this directory.
|
4
|
-
#
|
5
|
-
# To use the locales, use `I18n.t`:
|
6
|
-
#
|
7
|
-
# I18n.t 'hello'
|
8
|
-
#
|
9
|
-
# In views, this is aliased to just `t`:
|
10
|
-
#
|
11
|
-
# <%= t('hello') %>
|
12
|
-
#
|
13
|
-
# To use a different locale, set it with `I18n.locale`:
|
14
|
-
#
|
15
|
-
# I18n.locale = :es
|
16
|
-
#
|
17
|
-
# This would use the information in config/locales/es.yml.
|
18
|
-
#
|
19
|
-
# To learn more, please read the Rails Internationalization guide
|
20
|
-
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
-
|
22
|
-
en:
|
23
|
-
hello: "Hello world"
|
data/test/dummy/config/routes.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
-
# If you change this key, all old signed cookies will become invalid!
|
5
|
-
|
6
|
-
# Make sure the secret is at least 30 characters and all random,
|
7
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
-
# You can use `rake secret` to generate a secure secret key.
|
9
|
-
|
10
|
-
# Make sure the secrets in this file are kept private
|
11
|
-
# if you're sharing your code publicly.
|
12
|
-
|
13
|
-
development:
|
14
|
-
secret_key_base: e1263759603b73e280a2c7731fd239327f19a40e36ec1f79e3e62720a37455f43ca1b6f27841d0ab1793960b55f5a65242fa0cc67c49b3ad81fb29aa0c0371cc
|
15
|
-
|
16
|
-
test:
|
17
|
-
secret_key_base: ec0c74df096e3b9d5724a307165a110231d58641105d96e21b28b13e7402195f76e3c889f7f58f8ef916bff88dd40cdddf295ff5e1b6185ee64c54cf6358afdc
|
18
|
-
|
19
|
-
# Do not keep production secrets in the repository,
|
20
|
-
# instead read values from the environment.
|
21
|
-
production:
|
22
|
-
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
data/test/dummy/db/schema.rb
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
# This file is auto-generated from the current state of the database. Instead
|
3
|
-
# of editing this file, please use the migrations feature of Active Record to
|
4
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
-
#
|
6
|
-
# Note that this schema.rb definition is the authoritative source for your
|
7
|
-
# database schema. If you need to create the application database on another
|
8
|
-
# system, you should be using db:schema:load, not running all the migrations
|
9
|
-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
-
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
-
#
|
12
|
-
# It's strongly recommended that you check this file into your version control system.
|
13
|
-
|
14
|
-
ActiveRecord::Schema.define(version: 20161217105921) do
|
15
|
-
|
16
|
-
create_table "companies", force: :cascade do |t|
|
17
|
-
t.string "name", null: false
|
18
|
-
t.datetime "created_at", null: false
|
19
|
-
t.datetime "updated_at", null: false
|
20
|
-
end
|
21
|
-
|
22
|
-
create_table "nostalgic_attrs", force: :cascade do |t|
|
23
|
-
t.string "model_type", null: false
|
24
|
-
t.integer "model_id", null: false
|
25
|
-
t.string "name", null: false
|
26
|
-
t.string "value"
|
27
|
-
t.date "effective_at", null: false
|
28
|
-
t.datetime "created_at"
|
29
|
-
t.datetime "updated_at"
|
30
|
-
end
|
31
|
-
|
32
|
-
create_table "users", force: :cascade do |t|
|
33
|
-
t.string "email", null: false
|
34
|
-
t.string "tel"
|
35
|
-
t.datetime "created_at", null: false
|
36
|
-
t.datetime "updated_at", null: false
|
37
|
-
t.integer "company_id"
|
38
|
-
end
|
39
|
-
|
40
|
-
end
|
data/test/dummy/db/test.sqlite3
DELETED
Binary file
|
data/test/dummy/log/test.log
DELETED
@@ -1,162 +0,0 @@
|
|
1
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "companies"[0m
|
2
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3
|
-
[1m[35m (3.2ms)[0m [1m[35mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
4
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "nostalgic_attrs"[0m
|
5
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)[0m
|
6
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
7
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer)[0m
|
8
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
9
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
10
|
-
[1m[35m (1.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20161217105921)[0m
|
11
|
-
[1m[35m (1.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
12
|
-
(20160807103323),
|
13
|
-
(20161217105723);
|
14
|
-
|
15
|
-
[0m
|
16
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
17
|
-
[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]]
|
18
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
19
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-03-08 14:00:42.517009"], ["updated_at", "2018-03-08 14:00:42.517009"]]
|
20
|
-
[1m[35m (1.5ms)[0m [1m[36mcommit transaction[0m
|
21
|
-
[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]]
|
22
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
23
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
24
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
25
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
26
|
-
Migrating to CreateNostalgicAttrs (20160807101438)
|
27
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
28
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
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.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
31
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
32
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
33
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "companies"[0m
|
34
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
35
|
-
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
36
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "nostalgic_attrs"[0m
|
37
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)[0m
|
38
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
39
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer)[0m
|
40
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
41
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
42
|
-
[1m[35m (1.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20161217105921)[0m
|
43
|
-
[1m[35m (2.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
44
|
-
(20160807103323),
|
45
|
-
(20161217105723),
|
46
|
-
(20160807101438),
|
47
|
-
(20160816080815),
|
48
|
-
(20160816080822);
|
49
|
-
|
50
|
-
[0m
|
51
|
-
[1m[35m (3.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
52
|
-
[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]]
|
53
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-03-08 14:01:00.180684"], ["updated_at", "2018-03-08 14:01:00.180684"]]
|
55
|
-
[1m[35m (1.4ms)[0m [1m[36mcommit transaction[0m
|
56
|
-
[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]]
|
57
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
58
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
59
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
60
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
61
|
-
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
62
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
63
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64
|
-
[1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "companies"[0m
|
65
|
-
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2018-03-08 14:01:05.322094', '2018-03-08 14:01:05.322094')[0m
|
66
|
-
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2018-03-08 14:01:05.322094', '2018-03-08 14:01:05.322094')[0m
|
67
|
-
[1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "nostalgic_attrs"[0m
|
68
|
-
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2018-02-08', '2018-03-08 14:01:05.324387', '2018-03-08 14:01:05.324387')[0m
|
69
|
-
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2018-03-08', '2018-03-08 14:01:05.324387', '2018-03-08 14:01:05.324387')[0m
|
70
|
-
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2018-03-09', '2018-03-08 14:01:05.324387', '2018-03-08 14:01:05.324387')[0m
|
71
|
-
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (4, 'User', 1, 'company_id', '1', '2018-03-07', '2018-03-08 14:01:05.324387', '2018-03-08 14:01:05.324387')[0m
|
72
|
-
[1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "users"[0m
|
73
|
-
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2018-03-08 14:01:05.331515', '2018-03-08 14:01:05.331515')[0m
|
74
|
-
[1m[35m (1.9ms)[0m [1m[36mcommit transaction[0m
|
75
|
-
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
76
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
77
|
-
-------------------------
|
78
|
-
UserTest: test_belongs_to
|
79
|
-
-------------------------
|
80
|
-
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
81
|
-
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
|
82
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
|
83
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["LIMIT", 1]]
|
84
|
-
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
85
|
-
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT ? OFFSET ?[0m [["LIMIT", 1], ["OFFSET", 1]]
|
86
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
87
|
-
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["company_id", 2], ["updated_at", "2018-03-08 14:01:05.358714"], ["id", 1]]
|
88
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2018-03-09"], ["LIMIT", 1]]
|
89
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["value", "2"], ["effective_at", "2018-03-09"], ["created_at", "2018-03-08 14:01:05.360580"], ["updated_at", "2018-03-08 14:01:05.360580"]]
|
90
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2018-03-08"], ["LIMIT", 1]]
|
91
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
92
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
93
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
|
94
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
|
95
|
-
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
96
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-07') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["LIMIT", 1]]
|
97
|
-
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
98
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["LIMIT", 1]]
|
99
|
-
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
100
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-09') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["LIMIT", 1]]
|
101
|
-
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
102
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
103
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
104
|
-
------------------
|
105
|
-
UserTest: test_tel
|
106
|
-
------------------
|
107
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
108
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
|
109
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
|
110
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-07') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
111
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
112
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-09') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
113
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
114
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
115
|
-
-----------------------
|
116
|
-
UserTest: test_save_tel
|
117
|
-
-----------------------
|
118
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
119
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
|
120
|
-
[1m[36mNostalgic::Attr Load (0.3ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
|
121
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
122
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
123
|
-
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2018-03-08 14:01:05.381445"], ["id", 1]]
|
124
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2018-03-07"], ["LIMIT", 1]]
|
125
|
-
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2018-03-08"], ["LIMIT", 1]]
|
126
|
-
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2018-03-08 14:01:05.383836"], ["id", 2]]
|
127
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
128
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
129
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
130
|
-
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2018-03-08 14:01:05.385645"], ["id", 1]]
|
131
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2018-03-07"], ["LIMIT", 1]]
|
132
|
-
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2018-03-10"], ["LIMIT", 1]]
|
133
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["value", "555-123-4567"], ["effective_at", "2018-03-10"], ["created_at", "2018-03-08 14:01:05.388194"], ["updated_at", "2018-03-08 14:01:05.388194"]]
|
134
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
135
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
136
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-09') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
137
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-10') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
138
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
139
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
140
|
-
-------------------
|
141
|
-
UserTest: test_tels
|
142
|
-
-------------------
|
143
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
144
|
-
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
|
145
|
-
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2018-03-08') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
|
146
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
147
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
148
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
149
|
-
--------------------------------------------
|
150
|
-
NostalgicTest: test_it_does_something_useful
|
151
|
-
--------------------------------------------
|
152
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
153
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
154
|
-
------------------------------------------------
|
155
|
-
NostalgicTest: test_that_it_has_a_version_number
|
156
|
-
------------------------------------------------
|
157
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
158
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
159
|
-
-----------------------------------------
|
160
|
-
Nostalgic::AttrTest: test_nostalgic_model
|
161
|
-
-----------------------------------------
|
162
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
data/test/dummy/public/404.html
DELETED
@@ -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
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
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
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
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>
|
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>
|
data/test/dummy/public/422.html
DELETED
@@ -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
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
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
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
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>
|
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>
|
data/test/dummy/public/500.html
DELETED
@@ -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
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
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
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
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>
|
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>
|