nostalgic 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -24
  3. data/Rakefile +3 -8
  4. data/app/assets/config/nostalgic_manifest.js +2 -0
  5. data/app/assets/javascripts/nostalgic/application.js +3 -1
  6. data/app/assets/stylesheets/nostalgic/application.css +3 -3
  7. data/app/jobs/nostalgic/application_job.rb +4 -0
  8. data/app/mailers/nostalgic/application_mailer.rb +6 -0
  9. data/app/models/nostalgic/application_record.rb +5 -0
  10. data/app/views/layouts/nostalgic/application.html.erb +3 -1
  11. data/lib/nostalgic.rb +3 -3
  12. data/lib/nostalgic/nostalgic_attr.rb +48 -26
  13. data/lib/nostalgic/railtie.rb +3 -5
  14. data/lib/nostalgic/version.rb +1 -1
  15. metadata +27 -126
  16. data/test/dummy/README.rdoc +0 -28
  17. data/test/dummy/Rakefile +0 -6
  18. data/test/dummy/app/assets/javascripts/application.js +0 -13
  19. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  20. data/test/dummy/app/controllers/application_controller.rb +0 -5
  21. data/test/dummy/app/helpers/application_helper.rb +0 -2
  22. data/test/dummy/app/models/company.rb +0 -3
  23. data/test/dummy/app/models/user.rb +0 -4
  24. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  25. data/test/dummy/bin/bundle +0 -3
  26. data/test/dummy/bin/rails +0 -4
  27. data/test/dummy/bin/rake +0 -4
  28. data/test/dummy/bin/setup +0 -29
  29. data/test/dummy/config.ru +0 -4
  30. data/test/dummy/config/application.rb +0 -23
  31. data/test/dummy/config/boot.rb +0 -5
  32. data/test/dummy/config/database.yml +0 -25
  33. data/test/dummy/config/environment.rb +0 -5
  34. data/test/dummy/config/environments/development.rb +0 -41
  35. data/test/dummy/config/environments/production.rb +0 -79
  36. data/test/dummy/config/environments/test.rb +0 -42
  37. data/test/dummy/config/initializers/assets.rb +0 -11
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  39. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  40. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  41. data/test/dummy/config/initializers/inflections.rb +0 -16
  42. data/test/dummy/config/initializers/mime_types.rb +0 -4
  43. data/test/dummy/config/initializers/session_store.rb +0 -3
  44. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  45. data/test/dummy/config/locales/en.yml +0 -23
  46. data/test/dummy/config/routes.rb +0 -4
  47. data/test/dummy/config/secrets.yml +0 -22
  48. data/test/dummy/db/migrate/20160807103323_create_users.rb +0 -9
  49. data/test/dummy/db/migrate/20161217105723_create_companies.rb +0 -8
  50. data/test/dummy/db/migrate/20161217105921_add_column_company_id_on_users.rb +0 -5
  51. data/test/dummy/db/schema.rb +0 -40
  52. data/test/dummy/db/test.sqlite3 +0 -0
  53. data/test/dummy/log/test.log +0 -162
  54. data/test/dummy/public/404.html +0 -67
  55. data/test/dummy/public/422.html +0 -67
  56. data/test/dummy/public/500.html +0 -66
  57. data/test/dummy/public/favicon.ico +0 -0
  58. data/test/dummy/test/models/company_test.rb +0 -5
  59. data/test/dummy/test/models/user_test.rb +0 -60
  60. data/test/fixtures/companies.yml +0 -7
  61. data/test/fixtures/nostalgic/attrs.yml +0 -28
  62. data/test/fixtures/users.yml +0 -5
  63. data/test/integration/navigation_test.rb +0 -8
  64. data/test/models/nostalgic/attr_test.rb +0 -11
  65. data/test/nostalgic_test.rb +0 -11
  66. data/test/test_helper.rb +0 -21
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -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"
@@ -1,4 +0,0 @@
1
- Rails.application.routes.draw do
2
-
3
- mount Nostalgic::Engine => "/nostalgic"
4
- end
@@ -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"] %>
@@ -1,9 +0,0 @@
1
- class CreateUsers < ActiveRecord::Migration
2
- def change
3
- create_table :users do |t|
4
- t.string :email, null: false
5
- t.string :tel
6
- t.timestamps null: false
7
- end
8
- end
9
- end
@@ -1,8 +0,0 @@
1
- class CreateCompanies < ActiveRecord::Migration
2
- def change
3
- create_table :companies do |t|
4
- t.string :name, null: false
5
- t.timestamps null: false
6
- end
7
- end
8
- end
@@ -1,5 +0,0 @@
1
- class AddColumnCompanyIdOnUsers < ActiveRecord::Migration
2
- def change
3
- add_column :users, :company_id, :integer
4
- end
5
- end
@@ -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
Binary file
@@ -1,162 +0,0 @@
1
-  (0.1ms) DROP TABLE IF EXISTS "companies"
2
-  (0.1ms) SELECT sqlite_version(*)
3
-  (3.2ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4
-  (0.1ms) DROP TABLE IF EXISTS "nostalgic_attrs"
5
-  (1.7ms) CREATE 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)
6
-  (0.1ms) DROP TABLE IF EXISTS "users"
7
-  (1.6ms) CREATE 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)
8
-  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
9
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
10
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20161217105921)
11
-  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES
12
- (20160807103323),
13
- (20161217105723);
14
-
15
- 
16
-  (1.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
17
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
18
-  (0.0ms) begin transaction
19
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-03-08 14:00:42.517009"], ["updated_at", "2018-03-08 14:00:42.517009"]]
20
-  (1.5ms) commit transaction
21
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
22
-  (0.0ms) begin transaction
23
-  (0.0ms) commit transaction
24
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
25
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
26
- Migrating to CreateNostalgicAttrs (20160807101438)
27
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
28
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
29
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
30
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
31
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
32
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
33
-  (0.1ms) DROP TABLE IF EXISTS "companies"
34
-  (0.1ms) SELECT sqlite_version(*)
35
-  (2.3ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
36
-  (0.2ms) DROP TABLE IF EXISTS "nostalgic_attrs"
37
-  (1.6ms) CREATE 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)
38
-  (0.1ms) DROP TABLE IF EXISTS "users"
39
-  (1.7ms) CREATE 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)
40
-  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
41
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
42
-  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20161217105921)
43
-  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES
44
- (20160807103323),
45
- (20161217105723),
46
- (20160807101438),
47
- (20160816080815),
48
- (20160816080822);
49
-
50
- 
51
-  (3.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
52
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
53
-  (0.0ms) begin transaction
54
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-03-08 14:01:00.180684"], ["updated_at", "2018-03-08 14:01:00.180684"]]
55
-  (1.4ms) commit transaction
56
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
57
-  (0.0ms) begin transaction
58
-  (0.0ms) commit transaction
59
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
60
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
61
-  (0.1ms) PRAGMA foreign_keys
62
-  (0.0ms) PRAGMA foreign_keys = OFF
63
-  (0.1ms) begin transaction
64
- Fixture Delete (0.2ms) DELETE FROM "companies"
65
- Fixture Insert (0.1ms) INSERT 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')
66
- Fixture Insert (0.1ms) INSERT 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')
67
- Fixture Delete (0.1ms) DELETE FROM "nostalgic_attrs"
68
- Fixture Insert (0.1ms) INSERT 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')
69
- Fixture Insert (0.1ms) INSERT 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')
70
- Fixture Insert (0.1ms) INSERT 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')
71
- Fixture Insert (0.1ms) INSERT 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')
72
- Fixture Delete (0.1ms) DELETE FROM "users"
73
- Fixture Insert (0.1ms) INSERT 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')
74
-  (1.9ms) commit transaction
75
-  (0.1ms) PRAGMA foreign_keys = 1
76
-  (0.1ms) begin transaction
77
- -------------------------
78
- UserTest: test_belongs_to
79
- -------------------------
80
- User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ? [["LIMIT", 1]]
81
- Nostalgic::Attr Load (0.2ms) SELECT "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 ? [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
82
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
83
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["LIMIT", 1]]
84
- Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
85
- Company Load (0.1ms) SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]]
86
-  (0.0ms) SAVEPOINT active_record_1
87
- SQL (0.2ms) UPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ? [["company_id", 2], ["updated_at", "2018-03-08 14:01:05.358714"], ["id", 1]]
88
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2018-03-09"], ["LIMIT", 1]]
89
- SQL (0.1ms) INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2018-03-08"], ["LIMIT", 1]]
91
-  (0.1ms) RELEASE SAVEPOINT active_record_1
92
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
93
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
94
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
95
- Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
96
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["LIMIT", 1]]
97
- Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
98
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["LIMIT", 1]]
99
- Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
100
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["LIMIT", 1]]
101
- Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
102
-  (0.1ms) rollback transaction
103
-  (0.0ms) begin transaction
104
- ------------------
105
- UserTest: test_tel
106
- ------------------
107
- User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ? [["LIMIT", 1]]
108
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
109
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
110
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
111
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
112
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
113
-  (0.1ms) rollback transaction
114
-  (0.0ms) begin transaction
115
- -----------------------
116
- UserTest: test_save_tel
117
- -----------------------
118
- User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ? [["LIMIT", 1]]
119
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
120
- Nostalgic::Attr Load (0.3ms) SELECT "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 ? [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
121
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
122
-  (0.0ms) SAVEPOINT active_record_1
123
- SQL (0.2ms) UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2018-03-08 14:01:05.381445"], ["id", 1]]
124
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2018-03-07"], ["LIMIT", 1]]
125
- Nostalgic::Attr Load (0.0ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2018-03-08"], ["LIMIT", 1]]
126
- SQL (0.1ms) UPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ? [["value", "444-123-4567"], ["updated_at", "2018-03-08 14:01:05.383836"], ["id", 2]]
127
-  (0.1ms) RELEASE SAVEPOINT active_record_1
128
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
129
-  (0.0ms) SAVEPOINT active_record_1
130
- SQL (0.4ms) UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "555-123-4567"], ["updated_at", "2018-03-08 14:01:05.385645"], ["id", 1]]
131
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2018-03-07"], ["LIMIT", 1]]
132
- Nostalgic::Attr Load (0.0ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2018-03-10"], ["LIMIT", 1]]
133
- SQL (0.1ms) INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
135
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
136
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
137
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
138
-  (0.1ms) rollback transaction
139
-  (0.0ms) begin transaction
140
- -------------------
141
- UserTest: test_tels
142
- -------------------
143
- User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ? [["LIMIT", 1]]
144
- Nostalgic::Attr Load (0.1ms) SELECT "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 ? [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
145
- Nostalgic::Attr Load (0.2ms) SELECT "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 ? [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
146
-  (0.1ms) SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
147
-  (0.0ms) rollback transaction
148
-  (0.0ms) begin transaction
149
- --------------------------------------------
150
- NostalgicTest: test_it_does_something_useful
151
- --------------------------------------------
152
-  (0.0ms) rollback transaction
153
-  (0.0ms) begin transaction
154
- ------------------------------------------------
155
- NostalgicTest: test_that_it_has_a_version_number
156
- ------------------------------------------------
157
-  (0.0ms) rollback transaction
158
-  (0.0ms) begin transaction
159
- -----------------------------------------
160
- Nostalgic::AttrTest: test_nostalgic_model
161
- -----------------------------------------
162
-  (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
- 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>
@@ -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>
@@ -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>