makers 0.1.2
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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +149 -0
- data/Rakefile +32 -0
- data/lib/generators/makers/model/model_generator.rb +15 -0
- data/lib/generators/makers/model/templates/maker.rb +2 -0
- data/lib/makers.rb +57 -0
- data/lib/makers/callbacks.rb +23 -0
- data/lib/makers/configuration.rb +10 -0
- data/lib/makers/definitions.rb +43 -0
- data/lib/makers/fetcher.rb +18 -0
- data/lib/makers/maker.rb +113 -0
- data/lib/makers/methods.rb +11 -0
- data/lib/makers/proxy.rb +52 -0
- data/lib/makers/railtie.rb +33 -0
- data/lib/makers/sequence.rb +19 -0
- data/lib/makers/version.rb +5 -0
- data/test/aliases_test.rb +20 -0
- data/test/associations_test.rb +50 -0
- data/test/attributes_test.rb +26 -0
- data/test/callbacks_test.rb +38 -0
- data/test/clean_test.rb +18 -0
- data/test/dependent_test.rb +30 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/group.rb +2 -0
- data/test/dummy/app/models/post.rb +3 -0
- data/test/dummy/app/models/user.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +22 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +87 -0
- data/test/dummy/config/environments/test.rb +47 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/migrate/20140613221835_create_users.rb +13 -0
- data/test/dummy/db/migrate/20140615180954_create_posts.rb +10 -0
- data/test/dummy/db/schema.rb +33 -0
- data/test/dummy/log/test.log +273 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/makers/people.rb +2 -0
- data/test/dummy/test/makers/users.rb +3 -0
- data/test/fabricators_test.rb +33 -0
- data/test/generators_test.rb +13 -0
- data/test/inheritance_test.rb +49 -0
- data/test/lists_test.rb +33 -0
- data/test/load_test.rb +13 -0
- data/test/merges_test.rb +31 -0
- data/test/test_helper.rb +26 -0
- metadata +202 -0
@@ -0,0 +1,33 @@
|
|
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: 20140615180954) do
|
15
|
+
|
16
|
+
create_table "posts", force: true do |t|
|
17
|
+
t.string "content"
|
18
|
+
t.integer "user_id"
|
19
|
+
t.datetime "created_at"
|
20
|
+
t.datetime "updated_at"
|
21
|
+
end
|
22
|
+
|
23
|
+
create_table "users", force: true do |t|
|
24
|
+
t.string "username"
|
25
|
+
t.string "name"
|
26
|
+
t.string "email"
|
27
|
+
t.integer "age"
|
28
|
+
t.integer "phone"
|
29
|
+
t.datetime "created_at"
|
30
|
+
t.datetime "updated_at"
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
@@ -0,0 +1,273 @@
|
|
1
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
2
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar, "name" varchar, "email" varchar, "age" integer, "phone" integer, "created_at" datetime, "updated_at" datetime)
|
3
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
4
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
7
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140615180954')[0m
|
8
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
9
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar, "name" varchar, "email" varchar, "age" integer, "phone" integer, "created_at" datetime, "updated_at" datetime)
|
10
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
11
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
12
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
13
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
14
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140615180954')[0m
|
15
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16
|
+
----------------------------------
|
17
|
+
DependentTest: test_build_instance
|
18
|
+
----------------------------------
|
19
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
20
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21
|
+
-----------------------------------
|
22
|
+
DependentTest: test_create_instance
|
23
|
+
-----------------------------------
|
24
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
25
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "email", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "name"], ["email", "name@example.com"], ["username", "name-1"], ["created_at", "2015-10-27 00:51:20.143687"], ["updated_at", "2015-10-27 00:51:20.143687"]]
|
26
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
28
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("name", "email", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "name"], ["email", "name@example.com"], ["username", "name-2"], ["created_at", "2015-10-27 00:51:20.147258"], ["updated_at", "2015-10-27 00:51:20.147258"]]
|
29
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
30
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
|
32
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
35
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
37
|
+
[1m[35m (0.1ms)[0m begin transaction
|
38
|
+
-------------------------------------
|
39
|
+
DependentTest: test_return_attributes
|
40
|
+
-------------------------------------
|
41
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
42
|
+
[1m[35m (0.0ms)[0m begin transaction
|
43
|
+
-----------------------------
|
44
|
+
CleanTest: test_clean_records
|
45
|
+
-----------------------------
|
46
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
47
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-27 00:51:20.150626"], ["updated_at", "2015-10-27 00:51:20.150626"]]
|
48
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
49
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
50
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-10-27 00:51:20.151590"], ["updated_at", "2015-10-27 00:51:20.151590"]]
|
51
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
52
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
53
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-27 00:51:20.152378"], ["updated_at", "2015-10-27 00:51:20.152378"]]
|
54
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
56
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-10-27 00:51:20.153071"], ["updated_at", "2015-10-27 00:51:20.153071"]]
|
57
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
58
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
59
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-27 00:51:20.153698"], ["updated_at", "2015-10-27 00:51:20.153698"]]
|
60
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
61
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
62
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 5]]
|
63
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
64
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
|
66
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
67
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
68
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 3]]
|
69
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
70
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
71
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
|
72
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
73
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
74
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
75
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
76
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
77
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
78
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
79
|
+
-------------------------------------
|
80
|
+
AttributesTest: test_numeric_sequence
|
81
|
+
-------------------------------------
|
82
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
83
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "mail3@example.com"], ["age", 3], ["created_at", "2015-10-27 00:51:20.157769"], ["updated_at", "2015-10-27 00:51:20.157769"]]
|
84
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
85
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
86
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
87
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
88
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
89
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
90
|
+
-----------------------------------
|
91
|
+
AttributesTest: test_block_sequence
|
92
|
+
-----------------------------------
|
93
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
94
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "mail3@example.com"], ["age", 3], ["created_at", "2015-10-27 00:51:20.159468"], ["updated_at", "2015-10-27 00:51:20.159468"]]
|
95
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
96
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
97
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
98
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
99
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
100
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
101
|
+
--------------------------------
|
102
|
+
MergesTest: test_create_instance
|
103
|
+
--------------------------------
|
104
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
105
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "other"], ["created_at", "2015-10-27 00:51:20.161565"], ["updated_at", "2015-10-27 00:51:20.161565"]]
|
106
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
107
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
108
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "other"], ["created_at", "2015-10-27 00:51:20.162643"], ["updated_at", "2015-10-27 00:51:20.162643"]]
|
109
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
110
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
111
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "other"], ["created_at", "2015-10-27 00:51:20.163603"], ["updated_at", "2015-10-27 00:51:20.163603"]]
|
112
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
113
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
114
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "other"], ["created_at", "2015-10-27 00:51:20.166765"], ["updated_at", "2015-10-27 00:51:20.166765"]]
|
115
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
116
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
117
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 4]]
|
118
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
119
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
120
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
|
121
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
122
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
123
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 2]]
|
124
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
125
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
126
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
127
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
128
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
129
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
130
|
+
-------------------------------
|
131
|
+
MergesTest: test_build_instance
|
132
|
+
-------------------------------
|
133
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
134
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
135
|
+
----------------------------------
|
136
|
+
MergesTest: test_return_attributes
|
137
|
+
----------------------------------
|
138
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
139
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140
|
+
------------------------------------
|
141
|
+
InheritanceTest: test_build_instance
|
142
|
+
------------------------------------
|
143
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
144
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
145
|
+
---------------------------------------
|
146
|
+
InheritanceTest: test_return_attributes
|
147
|
+
---------------------------------------
|
148
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
149
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
150
|
+
-------------------------------------
|
151
|
+
InheritanceTest: test_create_instance
|
152
|
+
-------------------------------------
|
153
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
154
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "name"], ["age", 9], ["created_at", "2015-10-27 00:51:20.174193"], ["updated_at", "2015-10-27 00:51:20.174193"]]
|
155
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
156
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
157
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "name"], ["email", "mail@example.com"], ["created_at", "2015-10-27 00:51:20.175456"], ["updated_at", "2015-10-27 00:51:20.175456"]]
|
158
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
159
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
160
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 2]]
|
161
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
162
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
163
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
164
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
165
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
166
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
167
|
+
-----------------------------------
|
168
|
+
CallbacksTest: test_build_callbacks
|
169
|
+
-----------------------------------
|
170
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
171
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
172
|
+
------------------------------------
|
173
|
+
CallbacksTest: test_create_callbacks
|
174
|
+
------------------------------------
|
175
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
176
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "phone", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "create@example.com"], ["name", "create"], ["phone", 1], ["age", 1], ["created_at", "2015-10-27 00:51:20.180107"], ["updated_at", "2015-10-27 00:51:20.180107"]]
|
177
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
178
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
179
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
180
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
181
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
182
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
183
|
+
-------------------------
|
184
|
+
LoadTest: test_find_files
|
185
|
+
-------------------------
|
186
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
187
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
188
|
+
-------------------------
|
189
|
+
AliasesTest: test_aliases
|
190
|
+
-------------------------
|
191
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
192
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
193
|
+
--------------------------------
|
194
|
+
MakersTest: test_create_instance
|
195
|
+
--------------------------------
|
196
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
197
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "name"], ["created_at", "2015-10-27 00:51:20.184929"], ["updated_at", "2015-10-27 00:51:20.184929"]]
|
198
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
199
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
200
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
201
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
202
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
203
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
204
|
+
-------------------------------
|
205
|
+
MakersTest: test_build_instance
|
206
|
+
-------------------------------
|
207
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
208
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209
|
+
----------------------------------
|
210
|
+
MakersTest: test_return_attributes
|
211
|
+
----------------------------------
|
212
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
213
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
214
|
+
------------------------------------
|
215
|
+
GeneratorsTest: test_file_generation
|
216
|
+
------------------------------------
|
217
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
218
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
219
|
+
---------------------------------------------
|
220
|
+
AssociationsTest: test_belongs_to_association
|
221
|
+
---------------------------------------------
|
222
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
223
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-10-27 00:51:20.202252"], ["updated_at", "2015-10-27 00:51:20.202252"]]
|
224
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
225
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
226
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
227
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
228
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
229
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230
|
+
-------------------------------------------
|
231
|
+
AssociationsTest: test_has_many_association
|
232
|
+
-------------------------------------------
|
233
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
234
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-10-27 00:51:20.211902"], ["updated_at", "2015-10-27 00:51:20.211902"]]
|
235
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-27 00:51:20.213515"], ["updated_at", "2015-10-27 00:51:20.213515"]]
|
238
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
240
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "posts" WHERE "posts"."id" = ?[0m [["id", 2]]
|
241
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
242
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
243
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
|
244
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
245
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
246
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
247
|
+
--------------------------
|
248
|
+
ListsTest: test_build_list
|
249
|
+
--------------------------
|
250
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
251
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
252
|
+
---------------------------
|
253
|
+
ListsTest: test_create_list
|
254
|
+
---------------------------
|
255
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
256
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "name"], ["created_at", "2015-10-27 00:51:20.217552"], ["updated_at", "2015-10-27 00:51:20.217552"]]
|
257
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
258
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
259
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "name"], ["created_at", "2015-10-27 00:51:20.218612"], ["updated_at", "2015-10-27 00:51:20.218612"]]
|
260
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
261
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
262
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "name"], ["created_at", "2015-10-27 00:51:20.219423"], ["updated_at", "2015-10-27 00:51:20.219423"]]
|
263
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
264
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
265
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
|
266
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
267
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
268
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 2]]
|
269
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
270
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
271
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
272
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
273
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
@@ -0,0 +1,67 @@
|
|
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>
|
@@ -0,0 +1,67 @@
|
|
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>
|
@@ -0,0 +1,66 @@
|
|
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>
|