txtblx 0.0.5 → 0.0.6
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 +4 -4
- data/README.md +12 -0
- data/lib/tasks/txtblx_tasks.rake +18 -1
- data/lib/txtblx/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +79 -0
- data/spec/dummy/log/test.log +285 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3499e84868fc9976c59e07aa13d1ef8244fed5b
|
4
|
+
data.tar.gz: 07836e55c1859bb571cc0b5c4d7aaa8fdfa4dfa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3aed6f515a2be2bc34b18135fea18dfd95930c592b28dc605d3c816f610e58a92bb7d6dd72bb783af599817ce7ecf31a78762b742c524b8f32eb3d15258b6232
|
7
|
+
data.tar.gz: 19df82ec160f9861884a26ad061c42cc5c0c8d6c4c2437dcde98e0ff972ae329541284f0a91d3487ef9ababd78a0f58af05bd0ee11164f0e75ca9c6eaf01a2e6
|
data/README.md
CHANGED
@@ -82,3 +82,15 @@ To change the `auto_html` config create an initializer in your app:
|
|
82
82
|
simple_format
|
83
83
|
end
|
84
84
|
end
|
85
|
+
|
86
|
+
# Import/Export Rake Tasks
|
87
|
+
|
88
|
+
Txtblx can export the Textblocks to a set of markdown files by running:
|
89
|
+
|
90
|
+
bundle exec rake txtblx:export
|
91
|
+
|
92
|
+
For each Textblock one markdown file will be written into the directory 'textblocks' in your rails root dir.
|
93
|
+
|
94
|
+
You can create Textblock instances from these file by running:
|
95
|
+
|
96
|
+
bundle exec rake txtblx:import
|
data/lib/tasks/txtblx_tasks.rake
CHANGED
@@ -3,7 +3,6 @@ namespace :txtblx do
|
|
3
3
|
desc "Import Textblocks from files"
|
4
4
|
|
5
5
|
task import: :environment do
|
6
|
-
|
7
6
|
txtdir = Rails.root.join('textblocks')
|
8
7
|
puts "Looking for markdown files in #{txtdir}"
|
9
8
|
Dir.glob(File.join(txtdir, "*.md")) do |mdfile|
|
@@ -33,6 +32,24 @@ namespace :txtblx do
|
|
33
32
|
end
|
34
33
|
end
|
35
34
|
|
35
|
+
task export: :environment do
|
36
|
+
txtdir = Rails.root.join('textblocks')
|
37
|
+
|
38
|
+
puts "Writing markdown files in #{txtdir}"
|
39
|
+
|
40
|
+
Txtblx::Textblock.published.each do |txt|
|
41
|
+
filename = File.join(txtdir, "#{txt.key}.md")
|
42
|
+
description_indicator = '->'
|
43
|
+
|
44
|
+
puts " -- Writing #{filename}"
|
45
|
+
File.write(filename, <<-TXTBLC)
|
46
|
+
#{description_indicator}#{txt.description}
|
47
|
+
|
48
|
+
#{txt.text}
|
49
|
+
TXTBLC
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
36
53
|
desc 'Print out all defined routes in match order, with names. Target specific controller with CONTROLLER=x.'
|
37
54
|
task routes: :environment do
|
38
55
|
all_routes = Txtblx::Engine.routes.routes
|
data/lib/txtblx/version.rb
CHANGED
Binary file
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -23,3 +23,82 @@ Migrating to CreateSnapsTags (20150406173449)
|
|
23
23
|
[1m[36m (0.1ms)[0m [1mCREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
24
24
|
SQLite3::SQLException: table "snaps_tags" already exists: CREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
25
25
|
[1m[35m (0.0ms)[0m rollback transaction
|
26
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27
|
+
Migrating to CreateSnapsTags (20150406173449)
|
28
|
+
[1m[35m (0.1ms)[0m begin transaction
|
29
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
30
|
+
SQLite3::SQLException: table "snaps_tags" already exists: CREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
31
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33
|
+
Migrating to CreateSnapsTags (20150406173449)
|
34
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
36
|
+
SQLite3::SQLException: table "snaps_tags" already exists: CREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
37
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
38
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
39
|
+
Migrating to CreateSnapsTags (20150406173449)
|
40
|
+
[1m[35m (0.1ms)[0m begin transaction
|
41
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
42
|
+
SQLite3::SQLException: table "snaps_tags" already exists: CREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
43
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
44
|
+
[1m[36m (39.2ms)[0m [1mCREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
45
|
+
[1m[35m (33.1ms)[0m CREATE TABLE "txtblx_textblocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "perma_id" integer, "key" varchar, "description" varchar, "text" text, "text_html" text, "path" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
46
|
+
[1m[36m (33.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "created_at" datetime, "updated_at" datetime, "role" varchar) [0m
|
47
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
48
|
+
[1m[36m (26.7ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
49
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
50
|
+
FROM sqlite_master
|
51
|
+
WHERE name='index_users_on_email' AND type='index'
|
52
|
+
UNION ALL
|
53
|
+
SELECT sql
|
54
|
+
FROM sqlite_temp_master
|
55
|
+
WHERE name='index_users_on_email' AND type='index'
|
56
|
+
|
57
|
+
[1m[36m (33.6ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
58
|
+
[1m[35m (33.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
59
|
+
[1m[36m (22.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
60
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
61
|
+
[1m[36m (37.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150419222125')[0m
|
62
|
+
[1m[35m (21.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150419175857')
|
63
|
+
[1m[36m (62.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150406173449')[0m
|
64
|
+
[1m[35m (32.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150405222157')
|
65
|
+
[1m[36m (28.3ms)[0m [1mCREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
66
|
+
[1m[35m (41.3ms)[0m CREATE TABLE "txtblx_textblocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "perma_id" integer, "key" varchar, "description" varchar, "text" text, "text_html" text, "path" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
67
|
+
[1m[36m (38.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "created_at" datetime, "updated_at" datetime, "role" varchar) [0m
|
68
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
69
|
+
[1m[36m (35.8ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
70
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
71
|
+
FROM sqlite_master
|
72
|
+
WHERE name='index_users_on_email' AND type='index'
|
73
|
+
UNION ALL
|
74
|
+
SELECT sql
|
75
|
+
FROM sqlite_temp_master
|
76
|
+
WHERE name='index_users_on_email' AND type='index'
|
77
|
+
|
78
|
+
[1m[36m (36.0ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
79
|
+
[1m[35m (30.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
80
|
+
[1m[36m (39.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
81
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
82
|
+
[1m[36m (37.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150419222125')[0m
|
83
|
+
[1m[35m (38.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150419175857')
|
84
|
+
[1m[36m (48.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150406173449')[0m
|
85
|
+
[1m[35m (50.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150405222157')
|
86
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
87
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
88
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
89
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
90
|
+
FROM sqlite_master
|
91
|
+
WHERE name='index_users_on_reset_password_token' AND type='index'
|
92
|
+
UNION ALL
|
93
|
+
SELECT sql
|
94
|
+
FROM sqlite_temp_master
|
95
|
+
WHERE name='index_users_on_reset_password_token' AND type='index'
|
96
|
+
[0m
|
97
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
98
|
+
FROM sqlite_master
|
99
|
+
WHERE name='index_users_on_email' AND type='index'
|
100
|
+
UNION ALL
|
101
|
+
SELECT sql
|
102
|
+
FROM sqlite_temp_master
|
103
|
+
WHERE name='index_users_on_email' AND type='index'
|
104
|
+
|
data/spec/dummy/log/test.log
CHANGED
@@ -3045,3 +3045,288 @@ Completed 200 OK in 14ms (Views: 13.9ms | ActiveRecord: 0.2ms)
|
|
3045
3045
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-04-10 20:19:32.082883"], ["updated_at", "2015-04-10 20:19:32.082883"]]
|
3046
3046
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3047
3047
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3048
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3049
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3050
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"[0m
|
3051
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "txtblx_textblocks" ("key", "text", "text_html", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["key", "some key"], ["text", "some text"], ["text_html", "<p>some text</p>"], ["perma_id", 1], ["created_at", "2015-05-11 13:58:17.030255"], ["updated_at", "2015-05-11 13:58:17.030255"]]
|
3052
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 13:58:17.057457' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3053
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3054
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3055
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
3056
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-05-11 13:58:17.059361"], ["updated_at", "2015-05-11 13:58:17.059361"]]
|
3057
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3058
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3059
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3060
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3061
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"[0m
|
3062
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "txtblx_textblocks" ("key", "text", "text_html", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["key", "some key"], ["text", "some text inlcuding http://example.com"], ["text_html", "<p>some text inlcuding <a href=\"http://example.com\" target=\"_blank\" rel=\"nofollow\">http://example.com</a></p>"], ["perma_id", 1], ["created_at", "2015-05-11 13:58:17.063625"], ["updated_at", "2015-05-11 13:58:17.063625"]]
|
3063
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 13:58:17.065314' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3064
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3065
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3066
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
3067
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-05-11 13:58:17.065966"], ["updated_at", "2015-05-11 13:58:17.065966"]]
|
3068
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3069
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
3070
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3071
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3072
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"[0m
|
3073
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "txtblx_textblocks" ("key", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["perma_id", 1], ["created_at", "2015-05-11 13:58:17.074958"], ["updated_at", "2015-05-11 13:58:17.074958"]]
|
3074
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 13:58:17.076947' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3075
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3076
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3077
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
3078
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-05-11 13:58:17.077711"], ["updated_at", "2015-05-11 13:58:17.077711"]]
|
3079
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3080
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3081
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "txtblx_textblocks" ("perma_id", "key", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["perma_id", 1], ["key", "test"], ["created_at", "2015-05-11 13:58:17.074958"], ["updated_at", "2015-05-11 13:58:17.079532"]]
|
3082
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3083
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3084
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 13:58:17.081396' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3085
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3086
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3087
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
3088
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 2], ["record_type", "Txtblx::Textblock"], ["tag", "published"], ["created_at", "2015-05-11 13:58:17.081971"], ["updated_at", "2015-05-11 13:58:17.081971"]]
|
3089
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3090
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3091
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3092
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3093
|
+
[1m[35m (0.1ms)[0m SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
|
3094
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "txtblx_textblocks" ("key", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "test"], ["perma_id", 1], ["created_at", "2015-05-11 13:58:17.086536"], ["updated_at", "2015-05-11 13:58:17.086536"]]
|
3095
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 13:58:17.088188' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3096
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3097
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3098
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
3099
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-05-11 13:58:17.088858"], ["updated_at", "2015-05-11 13:58:17.088858"]]
|
3100
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3101
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3102
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "txtblx_textblocks" ("perma_id", "key", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["perma_id", 1], ["key", "test"], ["created_at", "2015-05-11 13:58:17.086536"], ["updated_at", "2015-05-11 13:58:17.090717"]]
|
3103
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3104
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3105
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 13:58:17.092487' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3106
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3107
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3108
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
3109
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 2], ["record_type", "Txtblx::Textblock"], ["tag", "published"], ["created_at", "2015-05-11 13:58:17.093102"], ["updated_at", "2015-05-11 13:58:17.093102"]]
|
3110
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3111
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3112
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3113
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3114
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "txtblx_textblocks" ("perma_id", "key", "description", "text", "text_html", "path", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["perma_id", 1], ["key", "homepage.welcome"], ["description", ""], ["text", ""], ["text_html", "Welcome to Dummy App"], ["path", "MyString"], ["created_at", "2015-05-11 13:58:17.099658"], ["updated_at", "2015-05-11 13:58:17.099658"]]
|
3115
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 13:58:17.102070' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3116
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3117
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3118
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
3119
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-05-11 13:58:17.103328"], ["updated_at", "2015-05-11 13:58:17.103328"]]
|
3120
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3121
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3122
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "txtblx_textblocks" ("perma_id", "key", "description", "text", "text_html", "path", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["perma_id", 1], ["key", "homepage.welcome"], ["description", ""], ["text", ""], ["text_html", "Welcome to Dummy App"], ["path", "MyString"], ["created_at", "2015-05-11 13:58:17.099658"], ["updated_at", "2015-05-11 13:58:17.106342"]]
|
3123
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3124
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3125
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 13:58:17.109480' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3126
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3127
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3128
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
3129
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 2], ["record_type", "Txtblx::Textblock"], ["tag", "published"], ["created_at", "2015-05-11 13:58:17.110195"], ["updated_at", "2015-05-11 13:58:17.110195"]]
|
3130
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3131
|
+
[1m[35mTxtblx::Textblock Load (0.2ms)[0m SELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
3132
|
+
ON txtblx_textblocks.id = t_published.record_id
|
3133
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
3134
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1 [["key", "homepage.welcome"]]
|
3135
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3136
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3137
|
+
[1m[36mTxtblx::Textblock Load (0.1ms)[0m [1mSELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
3138
|
+
ON txtblx_textblocks.id = t_published.record_id
|
3139
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
3140
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1[0m [["key", "homepage.welcome"]]
|
3141
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3142
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3143
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3144
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "txtblx_textblocks" ("perma_id", "key", "description", "text", "text_html", "path", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["perma_id", 1], ["key", "homepage.welcome"], ["description", ""], ["text", ""], ["text_html", "Welcome to Dummy App"], ["path", "MyString"], ["created_at", "2015-05-11 13:58:17.329998"], ["updated_at", "2015-05-11 13:58:17.329998"]]
|
3145
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 13:58:17.333001' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3146
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3147
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3148
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
3149
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-05-11 13:58:17.334313"], ["updated_at", "2015-05-11 13:58:17.334313"]]
|
3150
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3151
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3152
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "txtblx_textblocks" ("perma_id", "key", "description", "text", "text_html", "path", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["perma_id", 1], ["key", "homepage.welcome"], ["description", ""], ["text", ""], ["text_html", "Welcome to Dummy App"], ["path", "MyString"], ["created_at", "2015-05-11 13:58:17.329998"], ["updated_at", "2015-05-11 13:58:17.337376"]]
|
3153
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3154
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3155
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 13:58:17.340568' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3156
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3157
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3158
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
3159
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 2], ["record_type", "Txtblx::Textblock"], ["tag", "published"], ["created_at", "2015-05-11 13:58:17.341251"], ["updated_at", "2015-05-11 13:58:17.341251"]]
|
3160
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3161
|
+
Started GET "/" for 127.0.0.1 at 2015-05-11 15:58:17 +0200
|
3162
|
+
Processing by DummiesController#index as HTML
|
3163
|
+
[1m[35mTxtblx::Textblock Load (0.1ms)[0m SELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
3164
|
+
ON txtblx_textblocks.id = t_published.record_id
|
3165
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
3166
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1 [["key", "homepage.welcome"]]
|
3167
|
+
Rendered dummies/index.html.erb within layouts/application (3.0ms)
|
3168
|
+
Completed 200 OK in 27ms (Views: 26.3ms | ActiveRecord: 0.1ms)
|
3169
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
3170
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3171
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3172
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"[0m
|
3173
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "txtblx_textblocks" ("key", "text", "text_html", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["key", "some key"], ["text", "some text"], ["text_html", "<p>some text</p>"], ["perma_id", 1], ["created_at", "2015-05-11 14:06:33.304538"], ["updated_at", "2015-05-11 14:06:33.304538"]]
|
3174
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 14:06:33.328037' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3175
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3176
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3177
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
3178
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-05-11 14:06:33.329900"], ["updated_at", "2015-05-11 14:06:33.329900"]]
|
3179
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3180
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3181
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3182
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3183
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"[0m
|
3184
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "txtblx_textblocks" ("key", "text", "text_html", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["key", "some key"], ["text", "some text inlcuding http://example.com"], ["text_html", "<p>some text inlcuding <a href=\"http://example.com\" target=\"_blank\" rel=\"nofollow\">http://example.com</a></p>"], ["perma_id", 1], ["created_at", "2015-05-11 14:06:33.334462"], ["updated_at", "2015-05-11 14:06:33.334462"]]
|
3185
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 14:06:33.336733' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3186
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3187
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3188
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
3189
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-05-11 14:06:33.337540"], ["updated_at", "2015-05-11 14:06:33.337540"]]
|
3190
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3191
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3192
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3193
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3194
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"[0m
|
3195
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "txtblx_textblocks" ("key", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["perma_id", 1], ["created_at", "2015-05-11 14:06:33.343638"], ["updated_at", "2015-05-11 14:06:33.343638"]]
|
3196
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 14:06:33.345609' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3197
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3198
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3199
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
3200
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-05-11 14:06:33.346375"], ["updated_at", "2015-05-11 14:06:33.346375"]]
|
3201
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3202
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3203
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "txtblx_textblocks" ("perma_id", "key", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["perma_id", 1], ["key", "test"], ["created_at", "2015-05-11 14:06:33.343638"], ["updated_at", "2015-05-11 14:06:33.348171"]]
|
3204
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3205
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3206
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 14:06:33.350003' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3207
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3208
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3209
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
3210
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 2], ["record_type", "Txtblx::Textblock"], ["tag", "published"], ["created_at", "2015-05-11 14:06:33.350587"], ["updated_at", "2015-05-11 14:06:33.350587"]]
|
3211
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3212
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3213
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
|
3214
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user@example.com"], ["encrypted_password", "$2a$04$BKKtPD/3H6jC4F.A5J59GOD0BdJmzElP7FcIvIo/EZ0BF92aJ4TZa"], ["role", "editor"], ["created_at", "2015-05-11 14:06:33.373254"], ["updated_at", "2015-05-11 14:06:33.373254"]]
|
3215
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3216
|
+
Processing by Txtblx::TextblocksController#update as HTML
|
3217
|
+
Parameters: {"id"=>"1", "textblock"=>{"text"=>"Some Text"}}
|
3218
|
+
[1m[36mTxtblx::Textblock Load (0.4ms)[0m [1mSELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_draft
|
3219
|
+
ON txtblx_textblocks.id = t_draft.record_id
|
3220
|
+
AND t_draft.record_type = 'Txtblx::Textblock'
|
3221
|
+
AND t_draft.tag = 'draft' WHERE (t_draft.superseded_at IS NULL) AND "txtblx_textblocks"."perma_id" = ? ORDER BY "txtblx_textblocks"."id" ASC LIMIT 1[0m [["perma_id", 1]]
|
3222
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
3223
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3224
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "txtblx_textblocks" SET "text" = ?, "text_html" = ?, "updated_at" = ? WHERE "txtblx_textblocks"."id" = ? [["text", "Some Text"], ["text_html", "<p>Some Text</p>"], ["updated_at", "2015-05-11 14:06:33.431801"], ["id", 1]]
|
3225
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3226
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3227
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "txtblx_textblocks" ("perma_id", "key", "text", "text_html", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["perma_id", 1], ["key", "test"], ["text", "Some Text"], ["text_html", "<p>Some Text</p>"], ["created_at", "2015-05-11 14:06:33.343638"], ["updated_at", "2015-05-11 14:06:33.434367"]]
|
3228
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3229
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3230
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 14:06:33.437607' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3231
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3232
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3233
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
3234
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 3], ["record_type", "Txtblx::Textblock"], ["tag", "published"], ["created_at", "2015-05-11 14:06:33.439195"], ["updated_at", "2015-05-11 14:06:33.439195"]]
|
3235
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3236
|
+
Completed 200 OK in 63ms (Views: 0.7ms | ActiveRecord: 1.6ms)
|
3237
|
+
[1m[36mTxtblx::Textblock Load (0.4ms)[0m [1mSELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
3238
|
+
ON txtblx_textblocks.id = t_published.record_id
|
3239
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
3240
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."perma_id" = ? LIMIT 1[0m [["perma_id", 1]]
|
3241
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
3242
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3243
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3244
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"[0m
|
3245
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "txtblx_textblocks" ("key", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["perma_id", 1], ["created_at", "2015-05-11 14:06:33.449529"], ["updated_at", "2015-05-11 14:06:33.449529"]]
|
3246
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 14:06:33.451598' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3247
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3248
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3249
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
3250
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-05-11 14:06:33.452423"], ["updated_at", "2015-05-11 14:06:33.452423"]]
|
3251
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3252
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3253
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "txtblx_textblocks" ("perma_id", "key", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["perma_id", 1], ["key", "test"], ["created_at", "2015-05-11 14:06:33.449529"], ["updated_at", "2015-05-11 14:06:33.454897"]]
|
3254
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3255
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3256
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 14:06:33.457395' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3257
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3258
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3259
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
3260
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 2], ["record_type", "Txtblx::Textblock"], ["tag", "published"], ["created_at", "2015-05-11 14:06:33.458080"], ["updated_at", "2015-05-11 14:06:33.458080"]]
|
3261
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3262
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3263
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
|
3264
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user@example.com"], ["encrypted_password", "$2a$04$JvRVNnRN0o3stwaHKd33NOJchm5ix4BJH0qfdLj03zTIyfDhbPora"], ["created_at", "2015-05-11 14:06:33.462437"], ["updated_at", "2015-05-11 14:06:33.462437"]]
|
3265
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3266
|
+
Processing by Txtblx::TextblocksController#update as HTML
|
3267
|
+
Parameters: {"id"=>"1", "textblock"=>{"text"=>"Some Text"}}
|
3268
|
+
[1m[36mTxtblx::Textblock Load (0.1ms)[0m [1mSELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_draft
|
3269
|
+
ON txtblx_textblocks.id = t_draft.record_id
|
3270
|
+
AND t_draft.record_type = 'Txtblx::Textblock'
|
3271
|
+
AND t_draft.tag = 'draft' WHERE (t_draft.superseded_at IS NULL) AND "txtblx_textblocks"."perma_id" = ? ORDER BY "txtblx_textblocks"."id" ASC LIMIT 1[0m [["perma_id", 1]]
|
3272
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
3273
|
+
Completed 500 Internal Server Error in 141ms (ActiveRecord: 0.2ms)
|
3274
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
3275
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3276
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3277
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "txtblx_textblocks" ("perma_id", "key", "description", "text", "text_html", "path", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["perma_id", 1], ["key", "homepage.welcome"], ["description", ""], ["text", ""], ["text_html", "Welcome to Dummy App"], ["path", "MyString"], ["created_at", "2015-05-11 14:06:33.614970"], ["updated_at", "2015-05-11 14:06:33.614970"]]
|
3278
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 14:06:33.617121' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3279
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3280
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3281
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
3282
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-05-11 14:06:33.617873"], ["updated_at", "2015-05-11 14:06:33.617873"]]
|
3283
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3284
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3285
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "txtblx_textblocks" ("perma_id", "key", "description", "text", "text_html", "path", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["perma_id", 1], ["key", "homepage.welcome"], ["description", ""], ["text", ""], ["text_html", "Welcome to Dummy App"], ["path", "MyString"], ["created_at", "2015-05-11 14:06:33.614970"], ["updated_at", "2015-05-11 14:06:33.619640"]]
|
3286
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3287
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3288
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 14:06:33.621753' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3289
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3290
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3291
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
3292
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 2], ["record_type", "Txtblx::Textblock"], ["tag", "published"], ["created_at", "2015-05-11 14:06:33.622457"], ["updated_at", "2015-05-11 14:06:33.622457"]]
|
3293
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3294
|
+
[1m[36mTxtblx::Textblock Load (0.2ms)[0m [1mSELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
3295
|
+
ON txtblx_textblocks.id = t_published.record_id
|
3296
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
3297
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1[0m [["key", "homepage.welcome"]]
|
3298
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3299
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3300
|
+
[1m[35mTxtblx::Textblock Load (0.1ms)[0m SELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
3301
|
+
ON txtblx_textblocks.id = t_published.record_id
|
3302
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
3303
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1 [["key", "homepage.welcome"]]
|
3304
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3305
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3306
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3307
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "txtblx_textblocks" ("perma_id", "key", "description", "text", "text_html", "path", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["perma_id", 1], ["key", "homepage.welcome"], ["description", ""], ["text", ""], ["text_html", "Welcome to Dummy App"], ["path", "MyString"], ["created_at", "2015-05-11 14:06:33.631474"], ["updated_at", "2015-05-11 14:06:33.631474"]]
|
3308
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 14:06:33.633418' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3309
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3310
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3311
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
3312
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Txtblx::Textblock"], ["tag", "draft"], ["created_at", "2015-05-11 14:06:33.634167"], ["updated_at", "2015-05-11 14:06:33.634167"]]
|
3313
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3314
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3315
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "txtblx_textblocks" ("perma_id", "key", "description", "text", "text_html", "path", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["perma_id", 1], ["key", "homepage.welcome"], ["description", ""], ["text", ""], ["text_html", "Welcome to Dummy App"], ["path", "MyString"], ["created_at", "2015-05-11 14:06:33.631474"], ["updated_at", "2015-05-11 14:06:33.636001"]]
|
3316
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3317
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3318
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-05-11 14:06:33.638112' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3319
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3320
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3321
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
3322
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 2], ["record_type", "Txtblx::Textblock"], ["tag", "published"], ["created_at", "2015-05-11 14:06:33.638930"], ["updated_at", "2015-05-11 14:06:33.638930"]]
|
3323
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3324
|
+
Started GET "/" for 127.0.0.1 at 2015-05-11 16:06:33 +0200
|
3325
|
+
Processing by DummiesController#index as HTML
|
3326
|
+
[1m[36mTxtblx::Textblock Load (0.1ms)[0m [1mSELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
3327
|
+
ON txtblx_textblocks.id = t_published.record_id
|
3328
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
3329
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1[0m [["key", "homepage.welcome"]]
|
3330
|
+
Rendered dummies/index.html.erb within layouts/application (2.7ms)
|
3331
|
+
Completed 200 OK in 22ms (Views: 22.0ms | ActiveRecord: 0.1ms)
|
3332
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: txtblx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Codevise Solutions Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|