txtblx 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/tasks/txtblx_tasks.rake +35 -4
- data/lib/txtblx/version.rb +1 -1
- data/spec/dummy/log/test.log +320 -0
- data/spec/spec_helper.rb +3 -0
- metadata +34 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf78830b02ee2da1279afd7d714030b952d80672
|
4
|
+
data.tar.gz: c2855853900673c0279d1345fd2393ad6bb63679
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7034f641f68213955a01538f5342a7ed8601bbc8c828b594be3ba6c3d247c4fcbd66e38f0e2869389450af7669cf78fe32e2a301ba679639fd7cebe9a1cf970
|
7
|
+
data.tar.gz: c961bea1de2dc7e3536af77a2eea0c2b518ea9c2a11f2da470e8811effb9d25a3da33f061afc41a9516cc1c15979ace157c8be401a01bc7a645809c71f86c8a6
|
data/README.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Textblocks
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/txtblx.svg)](http://badge.fury.io/rb/txtblx)
|
4
|
+
[![Build Status](https://travis-ci.org/codevise/txtblx.svg?branch=master)](https://travis-ci.org/codevise/txtblx)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/codevise/txtblx/badges/gpa.svg)](https://codeclimate.com/github/codevise/txtblx)
|
6
|
+
[![Test Coverage](https://codeclimate.com/github/codevise/txtblx/badges/coverage.svg)](https://codeclimate.com/github/codevise/txtblx)
|
7
|
+
|
8
|
+
|
3
9
|
## Editable, revisioned front-end texts for rails apps.
|
4
10
|
|
5
11
|
Txtblx provides a simple way to allow Active Admin users to edit interface copy.
|
data/lib/tasks/txtblx_tasks.rake
CHANGED
@@ -1,4 +1,35 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
|
2
|
+
namespace :txtblx do
|
3
|
+
desc "Import Textblocks from files"
|
4
|
+
|
5
|
+
task import: :environment do
|
6
|
+
|
7
|
+
txtdir = Rails.root.join('textblocks')
|
8
|
+
puts "Looking for markdown files in #{txtdir}"
|
9
|
+
Dir.glob(File.join(txtdir, "*.md")) do |mdfile|
|
10
|
+
key = File.basename(mdfile, '.md')
|
11
|
+
puts "Processing key '#{key}'"
|
12
|
+
|
13
|
+
Txtblx::Textblock.find_or_create_by(key: key) do |txtb|
|
14
|
+
description_indicator = '->'
|
15
|
+
|
16
|
+
lines = File.readlines(mdfile)
|
17
|
+
|
18
|
+
first_line = lines.first.strip
|
19
|
+
if first_line.start_with?(description_indicator)
|
20
|
+
description = first_line[description_indicator.length, first_line.length]
|
21
|
+
content = lines[1, lines.length].join("\n")
|
22
|
+
else
|
23
|
+
description = key
|
24
|
+
content = lines.join("\n")
|
25
|
+
end
|
26
|
+
|
27
|
+
puts " -- Created Textblock (#{description})"
|
28
|
+
txtb.text = content
|
29
|
+
txtb.description = description
|
30
|
+
txtb.save
|
31
|
+
txtb.publish
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/txtblx/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -2725,3 +2725,323 @@ Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.1ms)
|
|
2725
2725
|
[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-09 14:19:19.977601"], ["updated_at", "2015-04-09 14:19:19.977601"]]
|
2726
2726
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2727
2727
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2728
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2729
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2730
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"[0m
|
2731
|
+
[1m[35mSQL (0.4ms)[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-04-09 15:07:35.628075"], ["updated_at", "2015-04-09 15:07:35.628075"]]
|
2732
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-04-09 15:07:35.664845' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2733
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2734
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2735
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
2736
|
+
[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-04-09 15:07:35.671162"], ["updated_at", "2015-04-09 15:07:35.671162"]]
|
2737
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2738
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2739
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2740
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2741
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"[0m
|
2742
|
+
[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-04-09 15:07:35.676439"], ["updated_at", "2015-04-09 15:07:35.676439"]]
|
2743
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-04-09 15:07:35.678490' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2744
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2745
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2746
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
2747
|
+
[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-04-09 15:07:35.679240"], ["updated_at", "2015-04-09 15:07:35.679240"]]
|
2748
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2749
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2750
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2751
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2752
|
+
[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-04-09 15:07:35.690099"], ["updated_at", "2015-04-09 15:07:35.690099"]]
|
2753
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-04-09 15:07:35.692615' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2754
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2755
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2756
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
2757
|
+
[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-09 15:07:35.693538"], ["updated_at", "2015-04-09 15:07:35.693538"]]
|
2758
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2759
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2760
|
+
[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-04-09 15:07:35.695740"], ["updated_at", "2015-04-09 15:07:35.695740"]]
|
2761
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2762
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2763
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-04-09 15:07:35.698207' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2764
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2765
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2766
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
2767
|
+
[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-04-09 15:07:35.698910"], ["updated_at", "2015-04-09 15:07:35.698910"]]
|
2768
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2769
|
+
Started GET "/" for 127.0.0.1 at 2015-04-09 17:07:35 +0200
|
2770
|
+
Processing by DummiesController#index as HTML
|
2771
|
+
[1m[35mTxtblx::Textblock Load (0.2ms)[0m SELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags
|
2772
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2773
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2774
|
+
AND snaps_tags.tag = 'published' WHERE (snaps_tags.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1 [["key", "homepage.welcome"]]
|
2775
|
+
Rendered dummies/index.html.erb within layouts/application (7.8ms)
|
2776
|
+
Completed 200 OK in 30ms (Views: 29.8ms | ActiveRecord: 0.2ms)
|
2777
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2778
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2779
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2780
|
+
[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-04-09 15:07:35.764400"], ["updated_at", "2015-04-09 15:07:35.764400"]]
|
2781
|
+
[1m[36mSQL (1.9ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-04-09 15:07:35.766927' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2782
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2783
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2784
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
2785
|
+
[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-04-09 15:07:35.769601"], ["updated_at", "2015-04-09 15:07:35.769601"]]
|
2786
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2787
|
+
[1m[35m (0.9ms)[0m SAVEPOINT active_record_1
|
2788
|
+
[1m[36mSQL (0.4ms)[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-04-09 15:07:35.829267"], ["updated_at", "2015-04-09 15:07:35.829267"]]
|
2789
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2790
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2791
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-04-09 15:07:35.833298' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2792
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2793
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2794
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
2795
|
+
[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-04-09 15:07:35.834269"], ["updated_at", "2015-04-09 15:07:35.834269"]]
|
2796
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2797
|
+
[1m[36mTxtblx::Textblock Load (0.1ms)[0m [1mSELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags
|
2798
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2799
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2800
|
+
AND snaps_tags.tag = 'published' WHERE (snaps_tags.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1[0m [["key", "homepage.welcome"]]
|
2801
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2802
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2803
|
+
[1m[35mTxtblx::Textblock Load (0.1ms)[0m SELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags
|
2804
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2805
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2806
|
+
AND snaps_tags.tag = 'published' WHERE (snaps_tags.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1 [["key", "homepage.welcome"]]
|
2807
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2808
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2809
|
+
[1m[35mTxtblx::Textblock Load (0.3ms)[0m SELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags
|
2810
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2811
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2812
|
+
AND snaps_tags.tag = 'published' WHERE (snaps_tags.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1 [["key", "homepage.welcome"]]
|
2813
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2814
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2815
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2816
|
+
[1m[35mSQL (0.3ms)[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-04-09 15:08:09.099166"], ["updated_at", "2015-04-09 15:08:09.099166"]]
|
2817
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-04-09 15:08:09.113909' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2818
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2819
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2820
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
2821
|
+
[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-04-09 15:08:09.115032"], ["updated_at", "2015-04-09 15:08:09.115032"]]
|
2822
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2823
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2824
|
+
[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-04-09 15:08:09.117639"], ["updated_at", "2015-04-09 15:08:09.117639"]]
|
2825
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2826
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2827
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-04-09 15:08:09.119956' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2828
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2829
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2830
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
2831
|
+
[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-04-09 15:08:09.120590"], ["updated_at", "2015-04-09 15:08:09.120590"]]
|
2832
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2833
|
+
[1m[36mTxtblx::Textblock Load (0.1ms)[0m [1mSELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags
|
2834
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2835
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2836
|
+
AND snaps_tags.tag = 'published' WHERE (snaps_tags.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1[0m [["key", "homepage.welcome"]]
|
2837
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2838
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2839
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2840
|
+
[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-04-09 15:08:09.127465"], ["updated_at", "2015-04-09 15:08:09.127465"]]
|
2841
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-04-09 15:08:09.129521' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2842
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2843
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2844
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
2845
|
+
[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-09 15:08:09.130359"], ["updated_at", "2015-04-09 15:08:09.130359"]]
|
2846
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2847
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2848
|
+
[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-04-09 15:08:09.132289"], ["updated_at", "2015-04-09 15:08:09.132289"]]
|
2849
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2850
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2851
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-04-09 15:08:09.134279' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2852
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2853
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2854
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
2855
|
+
[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-04-09 15:08:09.134848"], ["updated_at", "2015-04-09 15:08:09.134848"]]
|
2856
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2857
|
+
Started GET "/" for 127.0.0.1 at 2015-04-09 17:08:09 +0200
|
2858
|
+
Processing by DummiesController#index as HTML
|
2859
|
+
[1m[35mTxtblx::Textblock Load (0.1ms)[0m SELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags
|
2860
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2861
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2862
|
+
AND snaps_tags.tag = 'published' WHERE (snaps_tags.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1 [["key", "homepage.welcome"]]
|
2863
|
+
Rendered dummies/index.html.erb within layouts/application (2.4ms)
|
2864
|
+
Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.1ms)
|
2865
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2866
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2867
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2868
|
+
[1m[35m (0.1ms)[0m SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
|
2869
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "txtblx_textblocks" ("key", "text", "text_html", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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-04-09 15:08:09.250952"], ["updated_at", "2015-04-09 15:08:09.250952"]]
|
2870
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-04-09 15:08:09.252850' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2871
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2872
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2873
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
2874
|
+
[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-09 15:08:09.253726"], ["updated_at", "2015-04-09 15:08:09.253726"]]
|
2875
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2876
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2877
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2878
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2879
|
+
[1m[35m (0.1ms)[0m SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
|
2880
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "txtblx_textblocks" ("key", "text", "text_html", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["key", "some key"], ["text", "some text"], ["text_html", "<p>some text</p>"], ["perma_id", 1], ["created_at", "2015-04-09 15:08:09.257641"], ["updated_at", "2015-04-09 15:08:09.257641"]]
|
2881
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-04-09 15:08:09.259196' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2882
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2883
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2884
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
2885
|
+
[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-09 15:08:09.259787"], ["updated_at", "2015-04-09 15:08:09.259787"]]
|
2886
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2887
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2888
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2889
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2890
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"[0m
|
2891
|
+
[1m[35mSQL (0.4ms)[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-04-10 20:17:22.499850"], ["updated_at", "2015-04-10 20:17:22.499850"]]
|
2892
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-04-10 20:17:22.528588' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2893
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2894
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2895
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
2896
|
+
[1m[35mSQL (0.2ms)[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-04-10 20:17:22.531462"], ["updated_at", "2015-04-10 20:17:22.531462"]]
|
2897
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2898
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2899
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2900
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2901
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"[0m
|
2902
|
+
[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-04-10 20:17:22.538061"], ["updated_at", "2015-04-10 20:17:22.538061"]]
|
2903
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-04-10 20:17:22.540520' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2904
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2905
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2906
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
2907
|
+
[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-04-10 20:17:22.541334"], ["updated_at", "2015-04-10 20:17:22.541334"]]
|
2908
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2909
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2910
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2911
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2912
|
+
[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-04-10 20:17:22.546693"], ["updated_at", "2015-04-10 20:17:22.546693"]]
|
2913
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-04-10 20:17:22.548826' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2914
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2915
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2916
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
2917
|
+
[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:17:22.549592"], ["updated_at", "2015-04-10 20:17:22.549592"]]
|
2918
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2919
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2920
|
+
[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-04-10 20:17:22.546693"], ["updated_at", "2015-04-10 20:17:22.551393"]]
|
2921
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2922
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2923
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-04-10 20:17:22.553325' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2924
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2925
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2926
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
2927
|
+
[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-04-10 20:17:22.553924"], ["updated_at", "2015-04-10 20:17:22.553924"]]
|
2928
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2929
|
+
Started GET "/" for 127.0.0.1 at 2015-04-10 22:17:22 +0200
|
2930
|
+
Processing by DummiesController#index as HTML
|
2931
|
+
[1m[35mTxtblx::Textblock Load (0.2ms)[0m SELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
2932
|
+
ON txtblx_textblocks.id = t_published.record_id
|
2933
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
2934
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1 [["key", "homepage.welcome"]]
|
2935
|
+
Rendered dummies/index.html.erb within layouts/application (46.2ms)
|
2936
|
+
Completed 200 OK in 56ms (Views: 55.7ms | ActiveRecord: 0.2ms)
|
2937
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2938
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2939
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2940
|
+
[1m[35mSQL (0.3ms)[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-04-10 20:17:22.630741"], ["updated_at", "2015-04-10 20:17:22.630741"]]
|
2941
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-04-10 20:17:22.634823' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2942
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2943
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2944
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
2945
|
+
[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-04-10 20:17:22.636520"], ["updated_at", "2015-04-10 20:17:22.636520"]]
|
2946
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2947
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2948
|
+
[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-04-10 20:17:22.630741"], ["updated_at", "2015-04-10 20:17:22.638784"]]
|
2949
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2950
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2951
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-04-10 20:17:22.640724' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2952
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2953
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2954
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
2955
|
+
[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-04-10 20:17:22.641347"], ["updated_at", "2015-04-10 20:17:22.641347"]]
|
2956
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2957
|
+
[1m[36mTxtblx::Textblock Load (0.1ms)[0m [1mSELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
2958
|
+
ON txtblx_textblocks.id = t_published.record_id
|
2959
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
2960
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1[0m [["key", "homepage.welcome"]]
|
2961
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2962
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2963
|
+
[1m[35mTxtblx::Textblock Load (0.1ms)[0m SELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
2964
|
+
ON txtblx_textblocks.id = t_published.record_id
|
2965
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
2966
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1 [["key", "homepage.welcome"]]
|
2967
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2968
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2969
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2970
|
+
[1m[36mSQL (0.3ms)[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-04-10 20:19:31.761642"], ["updated_at", "2015-04-10 20:19:31.761642"]]
|
2971
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-04-10 20:19:31.783040' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2972
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2973
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2974
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
2975
|
+
[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:31.784985"], ["updated_at", "2015-04-10 20:19:31.784985"]]
|
2976
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2977
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2978
|
+
[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-04-10 20:19:31.761642"], ["updated_at", "2015-04-10 20:19:31.787233"]]
|
2979
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2980
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2981
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-04-10 20:19:31.789495' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
2982
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
2983
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
2984
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
2985
|
+
[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-04-10 20:19:31.790092"], ["updated_at", "2015-04-10 20:19:31.790092"]]
|
2986
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2987
|
+
Started GET "/" for 127.0.0.1 at 2015-04-10 22:19:31 +0200
|
2988
|
+
Processing by DummiesController#index as HTML
|
2989
|
+
[1m[35mTxtblx::Textblock Load (0.2ms)[0m SELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
2990
|
+
ON txtblx_textblocks.id = t_published.record_id
|
2991
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
2992
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1 [["key", "homepage.welcome"]]
|
2993
|
+
Rendered dummies/index.html.erb within layouts/application (4.5ms)
|
2994
|
+
Completed 200 OK in 14ms (Views: 13.9ms | ActiveRecord: 0.2ms)
|
2995
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2996
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2997
|
+
[1m[36mTxtblx::Textblock Load (0.1ms)[0m [1mSELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
2998
|
+
ON txtblx_textblocks.id = t_published.record_id
|
2999
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
3000
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1[0m [["key", "homepage.welcome"]]
|
3001
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3002
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3003
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3004
|
+
[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-04-10 20:19:31.975131"], ["updated_at", "2015-04-10 20:19:31.975131"]]
|
3005
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-04-10 20:19:31.977195' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3006
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3007
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3008
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
3009
|
+
[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:31.977948"], ["updated_at", "2015-04-10 20:19:31.977948"]]
|
3010
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3011
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3012
|
+
[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-04-10 20:19:31.975131"], ["updated_at", "2015-04-10 20:19:31.979691"]]
|
3013
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3014
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3015
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2015-04-10 20:19:31.981619' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3016
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3017
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3018
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
3019
|
+
[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-04-10 20:19:31.982198"], ["updated_at", "2015-04-10 20:19:31.982198"]]
|
3020
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3021
|
+
[1m[35mTxtblx::Textblock Load (0.1ms)[0m SELECT "txtblx_textblocks".* FROM "txtblx_textblocks" INNER JOIN snaps_tags t_published
|
3022
|
+
ON txtblx_textblocks.id = t_published.record_id
|
3023
|
+
AND t_published.record_type = 'Txtblx::Textblock'
|
3024
|
+
AND t_published.tag = 'published' WHERE (t_published.superseded_at IS NULL) AND "txtblx_textblocks"."key" = ? LIMIT 1 [["key", "homepage.welcome"]]
|
3025
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3026
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3027
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3028
|
+
[1m[35m (0.1ms)[0m SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
|
3029
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "txtblx_textblocks" ("key", "text", "text_html", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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-04-10 20:19:32.074731"], ["updated_at", "2015-04-10 20:19:32.074731"]]
|
3030
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-04-10 20:19:32.076666' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3031
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3032
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3033
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
3034
|
+
[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.077415"], ["updated_at", "2015-04-10 20:19:32.077415"]]
|
3035
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3036
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3037
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3038
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3039
|
+
[1m[35m (0.1ms)[0m SELECT MAX("txtblx_textblocks"."perma_id") FROM "txtblx_textblocks"
|
3040
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "txtblx_textblocks" ("key", "text", "text_html", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["key", "some key"], ["text", "some text"], ["text_html", "<p>some text</p>"], ["perma_id", 1], ["created_at", "2015-04-10 20:19:32.080865"], ["updated_at", "2015-04-10 20:19:32.080865"]]
|
3041
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2015-04-10 20:19:32.082328' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN txtblx_textblocks
|
3042
|
+
ON txtblx_textblocks.id = snaps_tags.record_id
|
3043
|
+
AND snaps_tags.record_type = 'Txtblx::Textblock'
|
3044
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3047
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
data/spec/spec_helper.rb
CHANGED
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.3
|
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-
|
11
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: snaps
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -56,60 +56,74 @@ dependencies:
|
|
56
56
|
name: auto_html
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.6.4
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.6.4
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sqlite3
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.3.10
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.3.10
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '3.2'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '3.2'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: capybara
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 2.4.4
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 2.4.4
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: factory_girl_rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '4.5'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '4.5'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: codeclimate-test-reporter
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - '>='
|