active_blog 0.6.0 → 0.7.0

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.
data/README.markdown CHANGED
@@ -23,6 +23,7 @@ ActiveBlog has the following dependencies:
23
23
  * ActiveAdmin, for the backend
24
24
  * Devise, for admin authentication
25
25
  * Redcarpet, for markdown rendering
26
+ * PostgreSQL, for storage
26
27
 
27
28
  # How to install ActiveBlog
28
29
 
@@ -32,7 +33,7 @@ Add the following line to your Gemfile
32
33
 
33
34
  Run Bundler
34
35
 
35
- bundle update active_blog
36
+ bundle update --source active_blog
36
37
 
37
38
  Run the generator
38
39
 
@@ -52,10 +53,19 @@ To create a new blog post, visit the admin area located at:
52
53
 
53
54
  http://localhost:5000/admin/blog_posts
54
55
 
56
+ # How to hack on ActiveBlog
57
+
58
+ Setup the development and test databases
59
+
60
+ rake app:db:setup
61
+ rake app:db:test:clone
62
+
63
+ Running tests
64
+
65
+ rake test
55
66
 
56
67
  # TODO
57
68
 
58
- * The ActiveAdmin BlogPost form should show realtime Markdown updates
59
69
  * The ActiveAdmin BlogPost form should allow users to upload content to S3
60
- * Tests
61
- * Document Parent App Hooks (content_for :sidebar, content_for :title, content_for: head)
70
+ * Document Parent App Hooks (content_for :sidebar, content_for :title, content_for: head)
71
+ * Missing ActiveAdmin UI tests.
@@ -22,11 +22,11 @@ module ActiveBlog
22
22
  content_tag(:span, "", :itemprop => name, :content => content)
23
23
  end
24
24
 
25
- def blog_post_path(blog_post)
25
+ def blog_post_path_for(blog_post)
26
26
  if blog_post.new_record?
27
- admin_blog_posts_path(blog_post)
27
+ admin_active_blog_blog_posts_path(blog_post)
28
28
  else
29
- admin_blog_post_path(blog_post)
29
+ admin_active_blog_blog_post_path(blog_post)
30
30
  end
31
31
  end
32
32
  end
@@ -1,5 +1,5 @@
1
1
  <div id="main_form">
2
- <%= semantic_form_for(@blog_post, :url => blog_post_path(@blog_post)) do |f| %>
2
+ <%= semantic_form_for(@active_blog_blog_post, :url => blog_post_path_for(@active_blog_blog_post)) do |f| %>
3
3
  <%= f.inputs "Write a new blog post" do %>
4
4
  <%= f.input :title, :as => :string, :required => true, :hint => "A great blog post title", :input_html => { :placeholder => "A great blog post title" } %>
5
5
  <%= f.input :cached_slug, :as => :string, :label => "Slug", :hint => "#{active_blog_url}/...", :input_html => { :disabled => true } %>
@@ -1,10 +1,10 @@
1
- <div class="panel <%= @blog_post.new_record? ? "new" : "show" %> blog">
2
- <h3><%= @blog_post.new_record? ? "Live Preview" : "Blog Entry" %></h3>
1
+ <div class="panel <%= @active_blog_blog_post.new_record? ? "new" : "show" %> blog">
2
+ <h3><%= @active_blog_blog_post.new_record? ? "Live Preview" : "Blog Entry" %></h3>
3
3
  <div>
4
- <h4><%= @blog_post.title || "[Title]" %>
4
+ <h4><%= @active_blog_blog_post.title || "[Title]" %>
5
5
  <span>
6
- <% if @blog_post.cached_slug %>
7
- (<%= active_blog_post_url(:cached_slug => @blog_post.cached_slug) %>)
6
+ <% if @active_blog_blog_post.cached_slug %>
7
+ (<%= active_blog_post_url(:cached_slug => @active_blog_blog_post.cached_slug) %>)
8
8
  <% end %>
9
9
  </span>
10
10
  </h4>
@@ -13,6 +13,6 @@
13
13
 
14
14
  </div>
15
15
  <div>
16
- <%= markdown(@blog_post.body || "Body") %>
16
+ <%= markdown(@active_blog_blog_post.body || "Body") %>
17
17
  </div>
18
18
  </div>
@@ -9,7 +9,7 @@
9
9
  <h1><%= active_blog_title %></h1>
10
10
 
11
11
  <% if @blog_posts.empty? %>
12
- <%= link_to "Write your first blog post", new_admin_blog_post_path %>
12
+ <%= link_to "Write your first blog post", new_admin_active_blog_blog_post_path %>
13
13
  <% end %>
14
14
 
15
15
  <div itemprop="blogPosts">
@@ -1,3 +1,3 @@
1
1
  module ActiveBlog
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -4,22 +4,20 @@
4
4
  # Ensure the SQLite 3 gem is defined in your Gemfile
5
5
  # gem 'sqlite3'
6
6
  development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
7
+ adapter: postgresql
8
+ encoding: unicode
9
+ database: active_blog_development
9
10
  pool: 5
10
- timeout: 5000
11
+ username: postgres
12
+ password:
11
13
 
12
14
  # Warning: The database defined as "test" will be erased and
13
15
  # re-generated from your development database when you run "rake".
14
16
  # Do not set this db to the same as development or production.
15
17
  test:
16
- adapter: sqlite3
17
- database: db/test.sqlite3
18
+ adapter: postgresql
19
+ encoding: unicode
20
+ database: active_blog_test
18
21
  pool: 5
19
- timeout: 5000
20
-
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
22
+ username: postgres
23
+ password:
@@ -96,3 +96,137 @@ Migrating to CreateActiveBlogBlogPosts (20111116040223)
96
96
   (0.1ms) PRAGMA index_list("active_blog_blog_posts")
97
97
   (0.1ms) PRAGMA index_info('index_active_blog_blog_posts_on_cached_slug')
98
98
   (0.0ms) PRAGMA index_info('index_active_blog_blog_posts_on_id')
99
+  (0.1ms) SHOW search_path
100
+  (10.8ms) CREATE TABLE "active_blog_blog_posts" ("id" serial primary key, "title" character varying(255), "body" text, "draft" boolean, "published_at" timestamp, "cached_slug" character varying(255), "custom_url" character varying(255), "user_id" integer, "created_at" timestamp, "updated_at" timestamp)
101
+  (3.5ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
102
+ FROM pg_class t
103
+ INNER JOIN pg_index d ON t.oid = d.indrelid
104
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
105
+ WHERE i.relkind = 'i'
106
+ AND d.indisprimary = 'f'
107
+ AND t.relname = 'active_blog_blog_posts'
108
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
109
+ ORDER BY i.relname
110
+ 
111
+  (1.4ms) CREATE UNIQUE INDEX "index_active_blog_blog_posts_on_cached_slug" ON "active_blog_blog_posts" ("cached_slug")
112
+  (1.4ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
113
+ FROM pg_class t
114
+ INNER JOIN pg_index d ON t.oid = d.indrelid
115
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
116
+ WHERE i.relkind = 'i'
117
+ AND d.indisprimary = 'f'
118
+ AND t.relname = 'active_blog_blog_posts'
119
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
120
+ ORDER BY i.relname
121
+ 
122
+ Columns for index index_active_blog_blog_posts_on_cached_slug on active_blog_blog_posts (0.9ms) SELECT a.attnum, a.attname
123
+ FROM pg_attribute a
124
+ WHERE a.attrelid = 49053
125
+ AND a.attnum IN (6)
126
+  (1.2ms) CREATE INDEX "index_active_blog_blog_posts_on_id" ON "active_blog_blog_posts" ("id")
127
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
128
+  (1.0ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
129
+ FROM pg_class t
130
+ INNER JOIN pg_index d ON t.oid = d.indrelid
131
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
132
+ WHERE i.relkind = 'i'
133
+ AND d.indisprimary = 'f'
134
+ AND t.relname = 'schema_migrations'
135
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
136
+ ORDER BY i.relname
137
+ 
138
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
139
+  (0.2ms) SELECT version FROM "schema_migrations"
140
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111116040223')
141
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
142
+  (0.1ms) SHOW search_path
143
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
144
+ Migrating to CreateActiveBlogBlogPosts (20111116040223)
145
+  (0.1ms) SHOW search_path
146
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
147
+  (2.6ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
148
+ FROM pg_class t
149
+ INNER JOIN pg_index d ON t.oid = d.indrelid
150
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
151
+ WHERE i.relkind = 'i'
152
+ AND d.indisprimary = 'f'
153
+ AND t.relname = 'active_blog_blog_posts'
154
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
155
+ ORDER BY i.relname
156
+ 
157
+ Columns for index index_active_blog_blog_posts_on_cached_slug on active_blog_blog_posts (0.4ms) SELECT a.attnum, a.attname
158
+ FROM pg_attribute a
159
+ WHERE a.attrelid = 49053
160
+ AND a.attnum IN (6)
161
+ Columns for index index_active_blog_blog_posts_on_id on active_blog_blog_posts (0.3ms)  SELECT a.attnum, a.attname
162
+ FROM pg_attribute a
163
+ WHERE a.attrelid = 49053
164
+ AND a.attnum IN (1)
165
+ 
166
+  (0.1ms) SHOW search_path
167
+  (0.2ms) SELECT version FROM schema_migrations
168
+  (0.1ms) SHOW search_path
169
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
170
+  (2.4ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
171
+ FROM pg_class t
172
+ INNER JOIN pg_index d ON t.oid = d.indrelid
173
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
174
+ WHERE i.relkind = 'i'
175
+ AND d.indisprimary = 'f'
176
+ AND t.relname = 'active_blog_blog_posts'
177
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
178
+ ORDER BY i.relname
179
+ 
180
+ Columns for index index_active_blog_blog_posts_on_cached_slug on active_blog_blog_posts (0.4ms) SELECT a.attnum, a.attname
181
+ FROM pg_attribute a
182
+ WHERE a.attrelid = 49053
183
+ AND a.attnum IN (6)
184
+ Columns for index index_active_blog_blog_posts_on_id on active_blog_blog_posts (0.2ms)  SELECT a.attnum, a.attname
185
+ FROM pg_attribute a
186
+ WHERE a.attrelid = 49053
187
+ AND a.attnum IN (1)
188
+ 
189
+  (1.1ms) SET search_path TO public
190
+  (126.3ms) DROP DATABASE IF EXISTS "active_blog_test"
191
+  (0.1ms) SET search_path TO public
192
+  (415.3ms) CREATE DATABASE "active_blog_test" ENCODING = 'unicode'
193
+  (0.1ms) SHOW search_path
194
+  (7.5ms) CREATE TABLE "active_blog_blog_posts" ("id" serial primary key, "title" character varying(255), "body" text, "draft" boolean, "published_at" timestamp, "cached_slug" character varying(255), "custom_url" character varying(255), "user_id" integer, "created_at" timestamp, "updated_at" timestamp) 
195
+  (1.8ms) SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
196
+ FROM pg_class t
197
+ INNER JOIN pg_index d ON t.oid = d.indrelid
198
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
199
+ WHERE i.relkind = 'i'
200
+ AND d.indisprimary = 'f'
201
+ AND t.relname = 'active_blog_blog_posts'
202
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
203
+ ORDER BY i.relname
204
+  (1.2ms) CREATE UNIQUE INDEX "index_active_blog_blog_posts_on_cached_slug" ON "active_blog_blog_posts" ("cached_slug")
205
+  (0.8ms) SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
206
+ FROM pg_class t
207
+ INNER JOIN pg_index d ON t.oid = d.indrelid
208
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
209
+ WHERE i.relkind = 'i'
210
+ AND d.indisprimary = 'f'
211
+ AND t.relname = 'active_blog_blog_posts'
212
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
213
+ ORDER BY i.relname
214
+ Columns for index index_active_blog_blog_posts_on_cached_slug on active_blog_blog_posts (0.6ms)  SELECT a.attnum, a.attname
215
+ FROM pg_attribute a
216
+ WHERE a.attrelid = 49071
217
+ AND a.attnum IN (6)
218
+ 
219
+  (0.9ms) CREATE INDEX "index_active_blog_blog_posts_on_id" ON "active_blog_blog_posts" ("id")
220
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
221
+  (0.7ms) SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
222
+ FROM pg_class t
223
+ INNER JOIN pg_index d ON t.oid = d.indrelid
224
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
225
+ WHERE i.relkind = 'i'
226
+ AND d.indisprimary = 'f'
227
+ AND t.relname = 'schema_migrations'
228
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
229
+ ORDER BY i.relname
230
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
231
+  (0.2ms) SELECT version FROM "schema_migrations"
232
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111116040223')
@@ -1265,3 +1265,283 @@ Completed 500 Internal Server Error in 85ms
1265
1265
   (0.0ms) SAVEPOINT active_record_1
1266
1266
   (0.1ms) SELECT 1 FROM "active_blog_blog_posts" WHERE "active_blog_blog_posts"."cached_slug" = 'what-is-the-meaning-of-life' LIMIT 1
1267
1267
   (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1268
+  (0.2ms) SHOW search_path
1269
+  (0.2ms) BEGIN
1270
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1271
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1272
+ ^
1273
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1274
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1275
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1276
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1277
+ AND a.attnum > 0 AND NOT a.attisdropped
1278
+ ORDER BY a.attnum
1279
+  (0.1ms) ROLLBACK
1280
+  (0.1ms) BEGIN
1281
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1282
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1283
+ ^
1284
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1285
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1286
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1287
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1288
+ AND a.attnum > 0 AND NOT a.attisdropped
1289
+ ORDER BY a.attnum
1290
+  (0.0ms) ROLLBACK
1291
+  (0.1ms) BEGIN
1292
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1293
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1294
+ ^
1295
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1296
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1297
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1298
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1299
+ AND a.attnum > 0 AND NOT a.attisdropped
1300
+ ORDER BY a.attnum
1301
+  (0.0ms) ROLLBACK
1302
+  (0.1ms) BEGIN
1303
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1304
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1305
+ ^
1306
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1307
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1308
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1309
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1310
+ AND a.attnum > 0 AND NOT a.attisdropped
1311
+ ORDER BY a.attnum
1312
+  (0.0ms) ROLLBACK
1313
+  (0.1ms) BEGIN
1314
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1315
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1316
+ ^
1317
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1318
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1319
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1320
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1321
+ AND a.attnum > 0 AND NOT a.attisdropped
1322
+ ORDER BY a.attnum
1323
+  (0.1ms) ROLLBACK
1324
+  (0.1ms) BEGIN
1325
+  (0.2ms) ROLLBACK
1326
+  (0.1ms) BEGIN
1327
+  (0.1ms) ROLLBACK
1328
+  (0.1ms) BEGIN
1329
+  (0.2ms) ROLLBACK
1330
+  (0.2ms) BEGIN
1331
+  (0.1ms) ROLLBACK
1332
+  (0.1ms) BEGIN
1333
+  (0.1ms) ROLLBACK
1334
+  (0.1ms) BEGIN
1335
+  (0.1ms) ROLLBACK
1336
+  (0.3ms) SHOW search_path
1337
+  (0.2ms) BEGIN
1338
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1339
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1340
+ ^
1341
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1342
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1343
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1344
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1345
+ AND a.attnum > 0 AND NOT a.attisdropped
1346
+ ORDER BY a.attnum
1347
+  (0.1ms) ROLLBACK
1348
+  (0.1ms) BEGIN
1349
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1350
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1351
+ ^
1352
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1353
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1354
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1355
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1356
+ AND a.attnum > 0 AND NOT a.attisdropped
1357
+ ORDER BY a.attnum
1358
+  (0.1ms) ROLLBACK
1359
+  (0.1ms) BEGIN
1360
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1361
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1362
+ ^
1363
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1364
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1365
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1366
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1367
+ AND a.attnum > 0 AND NOT a.attisdropped
1368
+ ORDER BY a.attnum
1369
+  (0.0ms) ROLLBACK
1370
+  (0.1ms) BEGIN
1371
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1372
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1373
+ ^
1374
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1375
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1376
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1377
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1378
+ AND a.attnum > 0 AND NOT a.attisdropped
1379
+ ORDER BY a.attnum
1380
+  (0.0ms) ROLLBACK
1381
+  (0.1ms) BEGIN
1382
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1383
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1384
+ ^
1385
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1386
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1387
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1388
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1389
+ AND a.attnum > 0 AND NOT a.attisdropped
1390
+ ORDER BY a.attnum
1391
+  (0.0ms) ROLLBACK
1392
+  (0.1ms) BEGIN
1393
+  (0.1ms) ROLLBACK
1394
+  (0.1ms) BEGIN
1395
+  (0.1ms) ROLLBACK
1396
+  (0.1ms) BEGIN
1397
+  (0.1ms) ROLLBACK
1398
+  (0.1ms) BEGIN
1399
+  (0.1ms) ROLLBACK
1400
+  (0.1ms) BEGIN
1401
+  (0.1ms) ROLLBACK
1402
+  (0.1ms) BEGIN
1403
+  (0.3ms) ROLLBACK
1404
+  (0.2ms) SHOW search_path
1405
+  (0.1ms) BEGIN
1406
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1407
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1408
+ ^
1409
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1410
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1411
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1412
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1413
+ AND a.attnum > 0 AND NOT a.attisdropped
1414
+ ORDER BY a.attnum
1415
+  (0.1ms) ROLLBACK
1416
+  (0.1ms) BEGIN
1417
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1418
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1419
+ ^
1420
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1421
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1422
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1423
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1424
+ AND a.attnum > 0 AND NOT a.attisdropped
1425
+ ORDER BY a.attnum
1426
+  (0.0ms) ROLLBACK
1427
+  (0.1ms) BEGIN
1428
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1429
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1430
+ ^
1431
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1432
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1433
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1434
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1435
+ AND a.attnum > 0 AND NOT a.attisdropped
1436
+ ORDER BY a.attnum
1437
+  (0.0ms) ROLLBACK
1438
+  (0.1ms) BEGIN
1439
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1440
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1441
+ ^
1442
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1443
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1444
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1445
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1446
+ AND a.attnum > 0 AND NOT a.attisdropped
1447
+ ORDER BY a.attnum
1448
+  (0.0ms) ROLLBACK
1449
+  (0.1ms) BEGIN
1450
+ PGError: ERROR: relation "active_blog_blog_posts" does not exist
1451
+ LINE 4: WHERE a.attrelid = '"active_blog_blog_posts"'::...
1452
+ ^
1453
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
1454
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1455
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1456
+ WHERE a.attrelid = '"active_blog_blog_posts"'::regclass
1457
+ AND a.attnum > 0 AND NOT a.attisdropped
1458
+ ORDER BY a.attnum
1459
+  (0.1ms) ROLLBACK
1460
+  (0.1ms) BEGIN
1461
+  (0.1ms) ROLLBACK
1462
+  (0.1ms) BEGIN
1463
+  (0.0ms) ROLLBACK
1464
+  (0.0ms) BEGIN
1465
+  (0.1ms) ROLLBACK
1466
+  (0.1ms) BEGIN
1467
+  (0.1ms) ROLLBACK
1468
+  (0.1ms) BEGIN
1469
+  (0.1ms) ROLLBACK
1470
+  (0.1ms) BEGIN
1471
+  (0.1ms) ROLLBACK
1472
+  (0.2ms) SHOW search_path
1473
+  (0.2ms) BEGIN
1474
+  (0.2ms) ROLLBACK
1475
+  (0.1ms) BEGIN
1476
+  (0.1ms) SAVEPOINT active_record_1
1477
+  (2.5ms) SELECT 1 FROM "active_blog_blog_posts" WHERE "active_blog_blog_posts"."cached_slug" = 'the-title-is-great' LIMIT 1
1478
+  (1.2ms) ROLLBACK TO SAVEPOINT active_record_1
1479
+  (0.1ms) SAVEPOINT active_record_1
1480
+  (0.2ms) SELECT 1 FROM "active_blog_blog_posts" WHERE "active_blog_blog_posts"."cached_slug" = 'the-title-is-great' LIMIT 1
1481
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1482
+  (0.1ms) ROLLBACK
1483
+  (0.1ms) BEGIN
1484
+  (0.1ms) SAVEPOINT active_record_1
1485
+  (0.2ms) SELECT 1 FROM "active_blog_blog_posts" WHERE "active_blog_blog_posts"."cached_slug" = 'the-title-is-great' LIMIT 1
1486
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1487
+  (0.0ms) ROLLBACK
1488
+  (0.1ms) BEGIN
1489
+  (0.0ms) SAVEPOINT active_record_1
1490
+  (0.2ms) SELECT 1 FROM "active_blog_blog_posts" WHERE "active_blog_blog_posts"."cached_slug" = 'archives' LIMIT 1
1491
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1492
+  (0.0ms) ROLLBACK
1493
+  (0.1ms) BEGIN
1494
+  (0.1ms) SAVEPOINT active_record_1
1495
+  (0.2ms) SELECT 1 FROM "active_blog_blog_posts" WHERE "active_blog_blog_posts"."cached_slug" = 'what-is-the-meaning-of-life' LIMIT 1
1496
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1497
+  (0.0ms) ROLLBACK
1498
+  (0.1ms) BEGIN
1499
+  (0.2ms) ROLLBACK
1500
+  (0.1ms) BEGIN
1501
+  (0.1ms) ROLLBACK
1502
+  (0.1ms) BEGIN
1503
+  (0.2ms) ROLLBACK
1504
+  (0.1ms) BEGIN
1505
+  (0.1ms) ROLLBACK
1506
+  (0.1ms) BEGIN
1507
+  (0.1ms) ROLLBACK
1508
+  (0.1ms) BEGIN
1509
+  (0.1ms) ROLLBACK
1510
+  (0.2ms) SHOW search_path
1511
+  (0.1ms) BEGIN
1512
+  (0.2ms) ROLLBACK
1513
+  (0.1ms) BEGIN
1514
+  (0.2ms) SAVEPOINT active_record_1
1515
+  (0.9ms) SELECT 1 FROM "active_blog_blog_posts" WHERE "active_blog_blog_posts"."cached_slug" = 'the-title-is-great' LIMIT 1
1516
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1517
+  (0.1ms) SAVEPOINT active_record_1
1518
+  (0.2ms) SELECT 1 FROM "active_blog_blog_posts" WHERE "active_blog_blog_posts"."cached_slug" = 'the-title-is-great' LIMIT 1
1519
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1520
+  (0.1ms) ROLLBACK
1521
+  (0.1ms) BEGIN
1522
+  (0.1ms) SAVEPOINT active_record_1
1523
+  (0.2ms) SELECT 1 FROM "active_blog_blog_posts" WHERE "active_blog_blog_posts"."cached_slug" = 'the-title-is-great' LIMIT 1
1524
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1525
+  (0.0ms) ROLLBACK
1526
+  (0.1ms) BEGIN
1527
+  (0.1ms) SAVEPOINT active_record_1
1528
+  (0.2ms) SELECT 1 FROM "active_blog_blog_posts" WHERE "active_blog_blog_posts"."cached_slug" = 'archives' LIMIT 1
1529
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1530
+  (0.0ms) ROLLBACK
1531
+  (0.1ms) BEGIN
1532
+  (0.0ms) SAVEPOINT active_record_1
1533
+  (0.1ms) SELECT 1 FROM "active_blog_blog_posts" WHERE "active_blog_blog_posts"."cached_slug" = 'what-is-the-meaning-of-life' LIMIT 1
1534
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1535
+  (0.0ms) ROLLBACK
1536
+  (0.1ms) BEGIN
1537
+  (0.1ms) ROLLBACK
1538
+  (0.1ms) BEGIN
1539
+  (0.1ms) ROLLBACK
1540
+  (0.1ms) BEGIN
1541
+  (0.1ms) ROLLBACK
1542
+  (0.1ms) BEGIN
1543
+  (0.0ms) ROLLBACK
1544
+  (0.1ms) BEGIN
1545
+  (0.0ms) ROLLBACK
1546
+  (0.0ms) BEGIN
1547
+  (0.0ms) ROLLBACK
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,33 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-24 00:00:00.000000000Z
12
+ date: 2012-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70109452485420 !ruby/object:Gem::Requirement
16
+ requirement: &70184895537940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 3.1.1
21
+ version: 3.2.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70109452485420
24
+ version_requirements: *70184895537940
25
+ - !ruby/object:Gem::Dependency
26
+ name: activeadmin
27
+ requirement: &70184895537280 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 0.4.0
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70184895537280
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: redcarpet
27
- requirement: &70109452484360 !ruby/object:Gem::Requirement
38
+ requirement: &70184895536300 !ruby/object:Gem::Requirement
28
39
  none: false
29
40
  requirements:
30
41
  - - ~>
@@ -32,10 +43,10 @@ dependencies:
32
43
  version: 2.0.0b5
33
44
  type: :runtime
34
45
  prerelease: false
35
- version_requirements: *70109452484360
46
+ version_requirements: *70184895536300
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: kaminari
38
- requirement: &70109452483080 !ruby/object:Gem::Requirement
49
+ requirement: &70184895535840 !ruby/object:Gem::Requirement
39
50
  none: false
40
51
  requirements:
41
52
  - - ! '>='
@@ -43,10 +54,10 @@ dependencies:
43
54
  version: '0'
44
55
  type: :runtime
45
56
  prerelease: false
46
- version_requirements: *70109452483080
57
+ version_requirements: *70184895535840
47
58
  - !ruby/object:Gem::Dependency
48
- name: sqlite3
49
- requirement: &70109452480760 !ruby/object:Gem::Requirement
59
+ name: pg
60
+ requirement: &70184895535320 !ruby/object:Gem::Requirement
50
61
  none: false
51
62
  requirements:
52
63
  - - ! '>='
@@ -54,7 +65,7 @@ dependencies:
54
65
  version: '0'
55
66
  type: :development
56
67
  prerelease: false
57
- version_requirements: *70109452480760
68
+ version_requirements: *70184895535320
58
69
  description: ActiveBlog is a Rails Engine for Blogging
59
70
  email:
60
71
  - mchung@gmail.com
@@ -122,9 +133,7 @@ files:
122
133
  - test/dummy/config/locales/en.yml
123
134
  - test/dummy/config/routes.rb
124
135
  - test/dummy/config.ru
125
- - test/dummy/db/development.sqlite3
126
136
  - test/dummy/db/schema.rb
127
- - test/dummy/db/test.sqlite3
128
137
  - test/dummy/log/development.log
129
138
  - test/dummy/log/test.log
130
139
  - test/dummy/public/404.html
@@ -155,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
164
  version: '0'
156
165
  segments:
157
166
  - 0
158
- hash: -3288390780198975727
167
+ hash: 92190475283492527
159
168
  required_rubygems_version: !ruby/object:Gem::Requirement
160
169
  none: false
161
170
  requirements:
@@ -164,10 +173,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
173
  version: '0'
165
174
  segments:
166
175
  - 0
167
- hash: -3288390780198975727
176
+ hash: 92190475283492527
168
177
  requirements: []
169
178
  rubyforge_project:
170
- rubygems_version: 1.8.6
179
+ rubygems_version: 1.8.10
171
180
  signing_key:
172
181
  specification_version: 3
173
182
  summary: A barebones, markdown, blogging Rails Engine.
@@ -194,9 +203,7 @@ test_files:
194
203
  - test/dummy/config/locales/en.yml
195
204
  - test/dummy/config/routes.rb
196
205
  - test/dummy/config.ru
197
- - test/dummy/db/development.sqlite3
198
206
  - test/dummy/db/schema.rb
199
- - test/dummy/db/test.sqlite3
200
207
  - test/dummy/log/development.log
201
208
  - test/dummy/log/test.log
202
209
  - test/dummy/public/404.html
Binary file
Binary file