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.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -12
  3. data/lib/generators/json_voorhees/app_make_tests/app_make_tests_generator.rb +10 -1
  4. data/lib/generators/json_voorhees/app_make_tests/templates/no_auth_request.rb.erb +25 -1
  5. data/lib/generators/json_voorhees/app_make_tests/templates/request.rb.erb +37 -1
  6. data/lib/generators/json_voorhees/app_scaffold/app_scaffold_generator.rb +7 -2
  7. data/lib/generators/json_voorhees/engine_create_controller/engine_create_controller_generator.rb +2 -2
  8. data/lib/generators/json_voorhees/engine_create_controller/templates/controller_template.rb.erb +6 -6
  9. data/lib/generators/json_voorhees/engine_create_controller/templates/no_auth_controller_template.rb.erb +6 -6
  10. data/lib/generators/json_voorhees/engine_scaffold/engine_scaffold_generator.rb +8 -3
  11. data/lib/generators/json_voorhees/massive_scaffold/massive_scaffold_generator.rb +14 -2
  12. data/lib/generators/json_voorhees/setup_app/setup_app_generator.rb +2 -2
  13. data/lib/generators/json_voorhees/setup_app/templates/api_controller_no_arcadex.rb +6 -0
  14. data/lib/generators/json_voorhees/setup_app/templates/user/specs/request_specs.rb +96 -65
  15. data/lib/json_voorhees/version.rb +1 -1
  16. data/test/test_app/Gemfile.lock +1 -1
  17. data/test/test_app/db/development.sqlite3 +0 -0
  18. data/test/test_app/db/schema.rb +1 -19
  19. data/test/test_app/engines/people/test/dummy/db/development.sqlite3 +0 -0
  20. data/test/test_app/engines/people/test/dummy/log/development.log +0 -0
  21. data/test/test_app/log/development.log +91 -0
  22. data/test/test_app/log/production.log +9 -0
  23. data/test/test_app/log/test.log +4428 -0
  24. metadata +8 -9
  25. data/test/test_app/db/production.sqlite3 +0 -0
  26. data/test/test_app/db/test.sqlite3 +0 -0
@@ -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: 20140905145356) do
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
@@ -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
+  (18.0ms) begin transaction
1714
+  (0.3ms) rollback transaction
1715
+  (0.6ms) begin transaction
1716
+  (0.3ms) rollback transaction
1717
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1718
+ Migrating to CreatePeoplePresidents (20140907040400)
1719
+  (0.1ms) begin transaction
1720
+  (0.8ms) CREATE TABLE "people_presidents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "elected" datetime, "resigned" date, "speech" time, "created_at" datetime, "updated_at" datetime) 
1721
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140907040400"]]
1722
+  (125.8ms) commit transaction
1723
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1724
+  (0.1ms)  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
+ 
1732
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1733
+ Migrating to CreatePeoplePresidents (20140907041049)
1734
+  (0.1ms) begin transaction
1735
+  (0.4ms) CREATE TABLE "people_presidents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "elected" datetime, "resigned" date, "speech" time, "created_at" datetime, "updated_at" datetime) 
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
+  (0.1ms) rollback transaction
1738
+  (126.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1739
+  (0.1ms) select sqlite_version(*)
1740
+  (144.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1741
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1742
+ Migrating to CreatePeopleUsers (20140905145354)
1743
+  (0.3ms) begin transaction
1744
+  (0.9ms) 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
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140905145354"]]
1746
+  (143.6ms) commit transaction
1747
+ Migrating to CreateArcadexTokens (20140905145355)
1748
+  (0.1ms) begin transaction
1749
+  (0.5ms) 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
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140905145355"]]
1751
+  (201.4ms) commit transaction
1752
+ Migrating to AddIndexToToken (20140905145356)
1753
+  (0.2ms) begin transaction
1754
+  (1.0ms) CREATE UNIQUE INDEX "index_arcadex_tokens_on_auth_token" ON "arcadex_tokens" ("auth_token")
1755
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140905145356"]]
1756
+  (137.4ms) commit transaction
1757
+ Migrating to CreatePeoplePresidents (20140907041148)
1758
+  (0.2ms) begin transaction
1759
+  (1.2ms) CREATE TABLE "people_presidents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "elected" datetime, "resigned" date, "speech" time, "created_at" datetime, "updated_at" datetime)
1760
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140907041148"]]
1761
+  (138.0ms) commit transaction
1762
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1763
+  (0.2ms) 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
+  (143.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1772
+  (0.3ms) select sqlite_version(*)
1773
+  (121.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1774
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1775
+ Migrating to CreatePeopleUsers (20140905145354)
1776
+  (0.2ms) begin transaction
1777
+  (0.6ms) 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
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140905145354"]]
1779
+  (116.2ms) commit transaction
1780
+ Migrating to CreateArcadexTokens (20140905145355)
1781
+  (0.2ms) begin transaction
1782
+  (1.6ms) 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
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140905145355"]]
1784
+  (135.4ms) commit transaction
1785
+ Migrating to AddIndexToToken (20140905145356)
1786
+  (0.2ms) begin transaction
1787
+  (1.3ms) CREATE UNIQUE INDEX "index_arcadex_tokens_on_auth_token" ON "arcadex_tokens" ("auth_token")
1788
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140905145356"]]
1789
+  (136.0ms) commit transaction
1790
+ Migrating to CreatePeoplePresidents (20140907060336)
1791
+  (0.3ms) begin transaction
1792
+  (1.8ms) CREATE TABLE "people_presidents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "elected" datetime, "resigned" date, "speech" time, "created_at" datetime, "updated_at" datetime)
1793
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140907060336"]]
1794
+  (136.2ms) commit transaction
1795
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1796
+  (0.1ms) 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)