json_voorhees 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -12
- data/lib/generators/json_voorhees/app_make_tests/app_make_tests_generator.rb +10 -1
- data/lib/generators/json_voorhees/app_make_tests/templates/no_auth_request.rb.erb +25 -1
- data/lib/generators/json_voorhees/app_make_tests/templates/request.rb.erb +37 -1
- data/lib/generators/json_voorhees/app_scaffold/app_scaffold_generator.rb +7 -2
- data/lib/generators/json_voorhees/engine_create_controller/engine_create_controller_generator.rb +2 -2
- data/lib/generators/json_voorhees/engine_create_controller/templates/controller_template.rb.erb +6 -6
- data/lib/generators/json_voorhees/engine_create_controller/templates/no_auth_controller_template.rb.erb +6 -6
- data/lib/generators/json_voorhees/engine_scaffold/engine_scaffold_generator.rb +8 -3
- data/lib/generators/json_voorhees/massive_scaffold/massive_scaffold_generator.rb +14 -2
- data/lib/generators/json_voorhees/setup_app/setup_app_generator.rb +2 -2
- data/lib/generators/json_voorhees/setup_app/templates/api_controller_no_arcadex.rb +6 -0
- data/lib/generators/json_voorhees/setup_app/templates/user/specs/request_specs.rb +96 -65
- data/lib/json_voorhees/version.rb +1 -1
- data/test/test_app/Gemfile.lock +1 -1
- data/test/test_app/db/development.sqlite3 +0 -0
- data/test/test_app/db/schema.rb +1 -19
- data/test/test_app/engines/people/test/dummy/db/development.sqlite3 +0 -0
- data/test/test_app/engines/people/test/dummy/log/development.log +0 -0
- data/test/test_app/log/development.log +91 -0
- data/test/test_app/log/production.log +9 -0
- data/test/test_app/log/test.log +4428 -0
- metadata +8 -9
- data/test/test_app/db/production.sqlite3 +0 -0
- data/test/test_app/db/test.sqlite3 +0 -0
data/test/test_app/db/schema.rb
CHANGED
@@ -11,24 +11,6 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
15
|
-
|
16
|
-
create_table "arcadex_tokens", force: true do |t|
|
17
|
-
t.integer "imageable_id"
|
18
|
-
t.string "imageable_type"
|
19
|
-
t.string "auth_token"
|
20
|
-
t.datetime "created_at"
|
21
|
-
t.datetime "updated_at"
|
22
|
-
end
|
23
|
-
|
24
|
-
add_index "arcadex_tokens", ["auth_token"], name: "index_arcadex_tokens_on_auth_token", unique: true
|
25
|
-
|
26
|
-
create_table "people_users", force: true do |t|
|
27
|
-
t.string "username"
|
28
|
-
t.string "email"
|
29
|
-
t.string "password_digest"
|
30
|
-
t.datetime "created_at"
|
31
|
-
t.datetime "updated_at"
|
32
|
-
end
|
14
|
+
ActiveRecord::Schema.define(version: 0) do
|
33
15
|
|
34
16
|
end
|
File without changes
|
File without changes
|
@@ -1710,3 +1710,94 @@ Migrating to CreatePeopleJacksons (20140905223400)
|
|
1710
1710
|
FROM sqlite_temp_master
|
1711
1711
|
WHERE name='index_arcadex_tokens_on_auth_token' AND type='index'
|
1712
1712
|
|
1713
|
+
[1m[36m (18.0ms)[0m [1mbegin transaction[0m
|
1714
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1715
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
1716
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1717
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1718
|
+
Migrating to CreatePeoplePresidents (20140907040400)
|
1719
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1720
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "people_presidents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "elected" datetime, "resigned" date, "speech" time, "created_at" datetime, "updated_at" datetime) [0m
|
1721
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140907040400"]]
|
1722
|
+
[1m[36m (125.8ms)[0m [1mcommit transaction[0m
|
1723
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1724
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
1725
|
+
FROM sqlite_master
|
1726
|
+
WHERE name='index_arcadex_tokens_on_auth_token' AND type='index'
|
1727
|
+
UNION ALL
|
1728
|
+
SELECT sql
|
1729
|
+
FROM sqlite_temp_master
|
1730
|
+
WHERE name='index_arcadex_tokens_on_auth_token' AND type='index'
|
1731
|
+
[0m
|
1732
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1733
|
+
Migrating to CreatePeoplePresidents (20140907041049)
|
1734
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1735
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "people_presidents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "elected" datetime, "resigned" date, "speech" time, "created_at" datetime, "updated_at" datetime) [0m
|
1736
|
+
SQLite3::SQLException: table "people_presidents" already exists: CREATE TABLE "people_presidents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "elected" datetime, "resigned" date, "speech" time, "created_at" datetime, "updated_at" datetime)
|
1737
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1738
|
+
[1m[36m (126.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
1739
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1740
|
+
[1m[36m (144.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1741
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1742
|
+
Migrating to CreatePeopleUsers (20140905145354)
|
1743
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1744
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "people_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "email" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)
|
1745
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140905145354"]]
|
1746
|
+
[1m[35m (143.6ms)[0m commit transaction
|
1747
|
+
Migrating to CreateArcadexTokens (20140905145355)
|
1748
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1749
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "arcadex_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "imageable_id" integer, "imageable_type" varchar(255), "auth_token" varchar(255), "created_at" datetime, "updated_at" datetime)
|
1750
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140905145355"]]
|
1751
|
+
[1m[35m (201.4ms)[0m commit transaction
|
1752
|
+
Migrating to AddIndexToToken (20140905145356)
|
1753
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1754
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_arcadex_tokens_on_auth_token" ON "arcadex_tokens" ("auth_token")
|
1755
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140905145356"]]
|
1756
|
+
[1m[35m (137.4ms)[0m commit transaction
|
1757
|
+
Migrating to CreatePeoplePresidents (20140907041148)
|
1758
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1759
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "people_presidents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "elected" datetime, "resigned" date, "speech" time, "created_at" datetime, "updated_at" datetime)
|
1760
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140907041148"]]
|
1761
|
+
[1m[35m (138.0ms)[0m commit transaction
|
1762
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1763
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
1764
|
+
FROM sqlite_master
|
1765
|
+
WHERE name='index_arcadex_tokens_on_auth_token' AND type='index'
|
1766
|
+
UNION ALL
|
1767
|
+
SELECT sql
|
1768
|
+
FROM sqlite_temp_master
|
1769
|
+
WHERE name='index_arcadex_tokens_on_auth_token' AND type='index'
|
1770
|
+
|
1771
|
+
[1m[36m (143.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
1772
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
1773
|
+
[1m[36m (121.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1774
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1775
|
+
Migrating to CreatePeopleUsers (20140905145354)
|
1776
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1777
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "people_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "email" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)
|
1778
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140905145354"]]
|
1779
|
+
[1m[35m (116.2ms)[0m commit transaction
|
1780
|
+
Migrating to CreateArcadexTokens (20140905145355)
|
1781
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1782
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "arcadex_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "imageable_id" integer, "imageable_type" varchar(255), "auth_token" varchar(255), "created_at" datetime, "updated_at" datetime)
|
1783
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140905145355"]]
|
1784
|
+
[1m[35m (135.4ms)[0m commit transaction
|
1785
|
+
Migrating to AddIndexToToken (20140905145356)
|
1786
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1787
|
+
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "index_arcadex_tokens_on_auth_token" ON "arcadex_tokens" ("auth_token")
|
1788
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140905145356"]]
|
1789
|
+
[1m[35m (136.0ms)[0m commit transaction
|
1790
|
+
Migrating to CreatePeoplePresidents (20140907060336)
|
1791
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1792
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "people_presidents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "elected" datetime, "resigned" date, "speech" time, "created_at" datetime, "updated_at" datetime)
|
1793
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140907060336"]]
|
1794
|
+
[1m[35m (136.2ms)[0m commit transaction
|
1795
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1796
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
1797
|
+
FROM sqlite_master
|
1798
|
+
WHERE name='index_arcadex_tokens_on_auth_token' AND type='index'
|
1799
|
+
UNION ALL
|
1800
|
+
SELECT sql
|
1801
|
+
FROM sqlite_temp_master
|
1802
|
+
WHERE name='index_arcadex_tokens_on_auth_token' AND type='index'
|
1803
|
+
|
@@ -86,3 +86,12 @@ I, [2014-09-05T18:34:11.339772 #8960] INFO -- : Migrating to CreatePeopleUsers
|
|
86
86
|
I, [2014-09-05T18:34:11.515676 #8960] INFO -- : Migrating to CreateArcadexTokens (20140905145355)
|
87
87
|
I, [2014-09-05T18:34:11.705289 #8960] INFO -- : Migrating to AddIndexToToken (20140905145356)
|
88
88
|
I, [2014-09-05T18:34:11.894139 #8960] INFO -- : Migrating to CreatePeopleJacksons (20140905223400)
|
89
|
+
I, [2014-09-07T00:04:09.427781 #19253] INFO -- : Migrating to CreatePeoplePresidents (20140907040400)
|
90
|
+
I, [2014-09-07T00:11:59.445214 #20378] INFO -- : Migrating to CreatePeopleUsers (20140905145354)
|
91
|
+
I, [2014-09-07T00:11:59.554240 #20378] INFO -- : Migrating to CreateArcadexTokens (20140905145355)
|
92
|
+
I, [2014-09-07T00:11:59.654630 #20378] INFO -- : Migrating to AddIndexToToken (20140905145356)
|
93
|
+
I, [2014-09-07T00:11:59.755097 #20378] INFO -- : Migrating to CreatePeoplePresidents (20140907041148)
|
94
|
+
I, [2014-09-07T02:03:47.242477 #27631] INFO -- : Migrating to CreatePeopleUsers (20140905145354)
|
95
|
+
I, [2014-09-07T02:03:47.349629 #27631] INFO -- : Migrating to CreateArcadexTokens (20140905145355)
|
96
|
+
I, [2014-09-07T02:03:47.461230 #27631] INFO -- : Migrating to AddIndexToToken (20140905145356)
|
97
|
+
I, [2014-09-07T02:03:47.561714 #27631] INFO -- : Migrating to CreatePeoplePresidents (20140907060336)
|