txtblx 0.0.3 → 0.0.4
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 -1
- data/lib/txtblx/configuration.rb +5 -0
- data/lib/txtblx/engine.rb +0 -4
- data/lib/txtblx/version.rb +1 -1
- data/spec/dummy/config/initializers/txtblx.rb +2 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +14 -24
- data/spec/dummy/log/test.log +85 -2962
- data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- metadata +61 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 875453f25d4ee37a2e911b8645c2b01e4f217b6e
|
4
|
+
data.tar.gz: 8a65c28bd93a5ec1606b2cb713273ae2b7f27c34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0541bb623490b597e5f05d3c477dc51adfa3fea55ff0cabf0e3e3c4fe239560d66f3c68dd82fac98eb96f859129f27c34a4bb2dc9bff72e083b74bcb5e0a99a6
|
7
|
+
data.tar.gz: 995403047749f836f44bd85f957ef0f1e6d5dbb4d9eb3c876d3920019b8f00a853b78551b3640a36d27e10d78294f16badffd927f2ce7fc1f5ba638089423435
|
data/README.md
CHANGED
@@ -34,8 +34,13 @@ Txtblx provides a simple way to allow Active Admin users to edit interface copy.
|
|
34
34
|
|
35
35
|
## Active Admin Integration
|
36
36
|
|
37
|
-
Txtblx comes with an ActiveAdmin page to manage Textblocks
|
37
|
+
Txtblx comes with an ActiveAdmin page to manage Textblocks.
|
38
|
+
Load it in an initializer:
|
38
39
|
|
40
|
+
# config/initializers/txtblx.rb
|
41
|
+
Txtblx.configure do |config|
|
42
|
+
config.load_active_admin
|
43
|
+
end
|
39
44
|
|
40
45
|
### CanCan Integration
|
41
46
|
|
data/lib/txtblx/configuration.rb
CHANGED
data/lib/txtblx/engine.rb
CHANGED
data/lib/txtblx/version.rb
CHANGED
Binary file
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,25 +1,15 @@
|
|
1
|
-
[1m[36m (
|
2
|
-
[1m[35m (
|
3
|
-
[1m[36m (
|
4
|
-
[1m[
|
5
|
-
|
6
|
-
[1m[
|
7
|
-
[1m[
|
8
|
-
[1m[
|
9
|
-
[1m[
|
1
|
+
[1m[36m (24.5ms)[0m [1mCREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2
|
+
[1m[35m (25.9ms)[0m CREATE TABLE "txtblx_textblocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "perma_id" integer, "key" varchar, "description" varchar, "text" text, "text_html" text, "path" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
3
|
+
[1m[36m (36.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
4
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5
|
+
[1m[36m (22.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
7
|
+
[1m[36m (18.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150405222157')[0m
|
8
|
+
[1m[35m (23.6ms)[0m 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)
|
9
|
+
[1m[36m (16.9ms)[0m [1mCREATE 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) [0m
|
10
|
+
[1m[35m (32.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
11
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
12
|
+
[1m[35m (28.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
13
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
14
|
+
[1m[35m (29.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150405222157')
|
10
15
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
12
|
-
Migrating to CreateTxtblxTextblocks (20150405222157)
|
13
|
-
[1m[35m (0.1ms)[0m begin transaction
|
14
|
-
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
|
15
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150405222157"]]
|
16
|
-
[1m[36m (31.2ms)[0m [1mcommit transaction[0m
|
17
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
18
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
20
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21
|
-
Migrating to CreateSnapsTags (20150406173449)
|
22
|
-
[1m[35m (0.1ms)[0m begin transaction
|
23
|
-
[1m[36m (0.1ms)[0m [1mCREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
24
|
-
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
|
-
[1m[35m (0.0ms)[0m rollback transaction
|