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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfa7c331db610c440ff85b697cedeb05b04a74a3
4
- data.tar.gz: 46c1352db58924fccc5047006cdf137afc4bef54
3
+ metadata.gz: a3499e84868fc9976c59e07aa13d1ef8244fed5b
4
+ data.tar.gz: 07836e55c1859bb571cc0b5c4d7aaa8fdfa4dfa1
5
5
  SHA512:
6
- metadata.gz: 4216335e0fcde868f5c0bd629ccf0b0d44f600251379a67252816b1d57411a903649373e578a22a241910b72acb56c45e27a4a33d57b6fb703d664a91014dffa
7
- data.tar.gz: eb112ac0d3c05bd1091a9951dc5cf33b6e9aad9b2d74196e2aeb4e6e05f794044643536d84c6f0c79377499a17d000a518c8c2fc6005385fd01663590d7773c1
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Txtblx
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
Binary file
Binary file
@@ -23,3 +23,82 @@ Migrating to CreateSnapsTags (20150406173449)
23
23
   (0.1ms) 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) 
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
   (0.0ms) rollback transaction
26
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
27
+ Migrating to CreateSnapsTags (20150406173449)
28
+  (0.1ms) begin transaction
29
+  (0.2ms) 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) 
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
+  (0.0ms) rollback transaction
32
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
33
+ Migrating to CreateSnapsTags (20150406173449)
34
+  (0.1ms) begin transaction
35
+  (0.1ms) 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) 
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
+  (0.0ms) rollback transaction
38
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39
+ Migrating to CreateSnapsTags (20150406173449)
40
+  (0.1ms) begin transaction
41
+  (0.1ms) 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) 
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
+  (0.0ms) rollback transaction
44
+  (39.2ms) 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) 
45
+  (33.1ms) 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
+  (33.5ms) CREATE 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) 
47
+  (0.1ms) select sqlite_version(*)
48
+  (26.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
49
+  (0.2ms) 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
+  (33.6ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
58
+  (33.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
59
+  (22.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
60
+  (0.2ms) SELECT version FROM "schema_migrations"
61
+  (37.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150419222125')
62
+  (21.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150419175857')
63
+  (62.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150406173449')
64
+  (32.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150405222157')
65
+  (28.3ms) 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) 
66
+  (41.3ms) 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
+  (38.8ms) CREATE 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) 
68
+  (0.2ms) select sqlite_version(*)
69
+  (35.8ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
70
+  (0.2ms) 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
+  (36.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
79
+  (30.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
80
+  (39.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
81
+  (0.3ms) SELECT version FROM "schema_migrations"
82
+  (37.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150419222125')
83
+  (38.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150419175857')
84
+  (48.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150406173449')
85
+  (50.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150405222157')
86
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
87
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
88
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
89
+  (0.1ms)  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
+ 
97
+  (0.1ms) 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
+
@@ -3045,3 +3045,288 @@ Completed 200 OK in 14ms (Views: 13.9ms | ActiveRecord: 0.2ms)
3045
3045
  SQL (0.1ms) 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-04-10 20:19:32.082883"], ["updated_at", "2015-04-10 20:19:32.082883"]]
3046
3046
   (0.0ms) RELEASE SAVEPOINT active_record_1
3047
3047
   (0.1ms) rollback transaction
3048
+  (0.1ms) begin transaction
3049
+  (0.1ms) SAVEPOINT active_record_1
3050
+  (0.1ms) SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
3051
+ SQL (0.3ms) 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
+ SQL (0.2ms) UPDATE "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) [["tag", "draft"]]
3056
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3058
+  (0.1ms) rollback transaction
3059
+  (0.0ms) begin transaction
3060
+  (0.0ms) SAVEPOINT active_record_1
3061
+  (0.1ms) SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
3062
+ SQL (0.1ms) 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
+ SQL (0.1ms) UPDATE "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) [["tag", "draft"]]
3067
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3069
+  (0.2ms) rollback transaction
3070
+  (0.1ms) begin transaction
3071
+  (0.1ms) SAVEPOINT active_record_1
3072
+  (0.3ms) SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
3073
+ SQL (0.2ms) 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
+ SQL (0.1ms) UPDATE "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) [["tag", "draft"]]
3078
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3080
+  (0.0ms) SAVEPOINT active_record_1
3081
+ SQL (0.2ms) 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.074958"], ["updated_at", "2015-05-11 13:58:17.079532"]]
3082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3083
+  (0.0ms) SAVEPOINT active_record_1
3084
+ SQL (0.1ms) 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
+ SQL (0.1ms) 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.081971"], ["updated_at", "2015-05-11 13:58:17.081971"]]
3089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3090
+  (0.1ms) rollback transaction
3091
+  (0.0ms) begin transaction
3092
+  (0.1ms) SAVEPOINT active_record_1
3093
+  (0.1ms) SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
3094
+ SQL (0.1ms) 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.086536"], ["updated_at", "2015-05-11 13:58:17.086536"]]
3095
+ SQL (0.1ms) 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
+ SQL (0.1ms) 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.088858"], ["updated_at", "2015-05-11 13:58:17.088858"]]
3100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3101
+  (0.0ms) SAVEPOINT active_record_1
3102
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3104
+  (0.0ms) SAVEPOINT active_record_1
3105
+ SQL (0.2ms) UPDATE "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) [["tag", "published"]]
3109
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3111
+  (0.1ms) rollback transaction
3112
+  (0.1ms) begin transaction
3113
+  (0.1ms) SAVEPOINT active_record_1
3114
+ SQL (0.2ms) 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.099658"]]
3115
+ SQL (0.3ms) 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
+ SQL (0.1ms) 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.103328"], ["updated_at", "2015-05-11 13:58:17.103328"]]
3120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3121
+  (0.1ms) SAVEPOINT active_record_1
3122
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3124
+  (0.1ms) SAVEPOINT active_record_1
3125
+ SQL (0.2ms) UPDATE "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) [["tag", "published"]]
3129
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3131
+ Txtblx::Textblock Load (0.2ms) 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
+  (0.1ms) rollback transaction
3136
+  (0.1ms) begin transaction
3137
+ Txtblx::Textblock Load (0.1ms) SELECT "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 [["key", "homepage.welcome"]]
3141
+  (0.1ms) rollback transaction
3142
+  (0.1ms) begin transaction
3143
+  (0.1ms) SAVEPOINT active_record_1
3144
+ SQL (0.2ms) 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.329998"]]
3145
+ SQL (0.2ms) 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
+ SQL (0.1ms) 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.334313"], ["updated_at", "2015-05-11 13:58:17.334313"]]
3150
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3151
+  (0.1ms) SAVEPOINT active_record_1
3152
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3154
+  (0.0ms) SAVEPOINT active_record_1
3155
+ SQL (0.2ms) UPDATE "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) [["tag", "published"]]
3159
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3161
+ Started GET "/" for 127.0.0.1 at 2015-05-11 15:58:17 +0200
3162
+ Processing by DummiesController#index as HTML
3163
+ Txtblx::Textblock Load (0.1ms) 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
+  (0.4ms) rollback transaction
3170
+  (0.1ms) begin transaction
3171
+  (0.1ms) SAVEPOINT active_record_1
3172
+  (0.2ms) SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
3173
+ SQL (0.3ms) 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
+ SQL (0.2ms) UPDATE "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) [["tag", "draft"]]
3178
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3180
+  (0.1ms) rollback transaction
3181
+  (0.0ms) begin transaction
3182
+  (0.1ms) SAVEPOINT active_record_1
3183
+  (0.1ms) SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
3184
+ SQL (0.2ms) 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
+ SQL (0.2ms) UPDATE "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) [["tag", "draft"]]
3189
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3191
+  (0.1ms) rollback transaction
3192
+  (0.1ms) begin transaction
3193
+  (0.1ms) SAVEPOINT active_record_1
3194
+  (0.1ms) SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
3195
+ SQL (0.2ms) 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
+ SQL (0.1ms) UPDATE "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) [["tag", "draft"]]
3200
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3202
+  (0.0ms) SAVEPOINT active_record_1
3203
+ SQL (0.2ms) INSERT INTO "txtblx_textblocks" ("perma_id", "key", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["perma_id", 1], ["key", "test"], ["created_at", "2015-05-11 14:06:33.343638"], ["updated_at", "2015-05-11 14:06:33.348171"]]
3204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3205
+  (0.0ms) SAVEPOINT active_record_1
3206
+ SQL (0.1ms) 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
+ SQL (0.1ms) 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 14:06:33.350587"], ["updated_at", "2015-05-11 14:06:33.350587"]]
3211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3212
+  (0.1ms) SAVEPOINT active_record_1
3213
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3214
+ SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3216
+ Processing by Txtblx::TextblocksController#update as HTML
3217
+ Parameters: {"id"=>"1", "textblock"=>{"text"=>"Some Text"}}
3218
+ Txtblx::Textblock Load (0.4ms) SELECT "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 [["perma_id", 1]]
3222
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
3223
+  (0.0ms) SAVEPOINT active_record_1
3224
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3226
+  (0.0ms) SAVEPOINT active_record_1
3227
+ SQL (0.1ms) INSERT INTO "txtblx_textblocks" ("perma_id", "key", "text", "text_html", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3229
+  (0.0ms) SAVEPOINT active_record_1
3230
+ SQL (0.4ms) 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
+ SQL (0.1ms) INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3236
+ Completed 200 OK in 63ms (Views: 0.7ms | ActiveRecord: 1.6ms)
3237
+ Txtblx::Textblock Load (0.4ms) SELECT "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 [["perma_id", 1]]
3241
+  (0.3ms) rollback transaction
3242
+  (0.0ms) begin transaction
3243
+  (0.1ms) SAVEPOINT active_record_1
3244
+  (0.1ms) SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
3245
+ SQL (0.1ms) 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
+ SQL (0.2ms) UPDATE "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) [["tag", "draft"]]
3250
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3252
+  (0.1ms) SAVEPOINT active_record_1
3253
+ SQL (0.2ms) INSERT INTO "txtblx_textblocks" ("perma_id", "key", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["perma_id", 1], ["key", "test"], ["created_at", "2015-05-11 14:06:33.449529"], ["updated_at", "2015-05-11 14:06:33.454897"]]
3254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3255
+  (0.0ms) SAVEPOINT active_record_1
3256
+ SQL (0.2ms) 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
+ SQL (0.1ms) 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 14:06:33.458080"], ["updated_at", "2015-05-11 14:06:33.458080"]]
3261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3262
+  (0.0ms) SAVEPOINT active_record_1
3263
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3264
+ SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3266
+ Processing by Txtblx::TextblocksController#update as HTML
3267
+ Parameters: {"id"=>"1", "textblock"=>{"text"=>"Some Text"}}
3268
+ Txtblx::Textblock Load (0.1ms) SELECT "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 [["perma_id", 1]]
3272
+ User Load (0.0ms) 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
+  (0.5ms) rollback transaction
3275
+  (0.1ms) begin transaction
3276
+  (0.1ms) SAVEPOINT active_record_1
3277
+ SQL (0.2ms) 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
+ SQL (0.1ms) UPDATE "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) [["tag", "draft"]]
3282
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3284
+  (0.0ms) SAVEPOINT active_record_1
3285
+ SQL (0.1ms) 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.619640"]]
3286
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3287
+  (0.0ms) SAVEPOINT active_record_1
3288
+ SQL (0.2ms) 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
+ SQL (0.1ms) 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 14:06:33.622457"], ["updated_at", "2015-05-11 14:06:33.622457"]]
3293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3294
+ Txtblx::Textblock Load (0.2ms) SELECT "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 [["key", "homepage.welcome"]]
3298
+  (0.1ms) rollback transaction
3299
+  (0.0ms) begin transaction
3300
+ Txtblx::Textblock Load (0.1ms) 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
+  (0.0ms) rollback transaction
3305
+  (0.1ms) begin transaction
3306
+  (0.1ms) SAVEPOINT active_record_1
3307
+ SQL (0.1ms) 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
+ SQL (0.2ms) UPDATE "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) [["tag", "draft"]]
3312
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3314
+  (0.0ms) SAVEPOINT active_record_1
3315
+ SQL (0.1ms) 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.636001"]]
3316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3317
+  (0.0ms) SAVEPOINT active_record_1
3318
+ SQL (0.2ms) 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
+ SQL (0.1ms) 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 14:06:33.638930"], ["updated_at", "2015-05-11 14:06:33.638930"]]
3323
+  (0.0ms) 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
+ Txtblx::Textblock Load (0.1ms) SELECT "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 [["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
+  (0.2ms) 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.5
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-04-28 00:00:00.000000000 Z
11
+ date: 2015-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails