content_block 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c9587e4af87be958a4620210ddcf12c1f74e449
4
- data.tar.gz: 038285f8ddd76ca6634e857b7ab87519cf2b0397
3
+ metadata.gz: 606d706713ff5899bc2334c40545ca5b8c455837
4
+ data.tar.gz: a2738fa366f807dabe7861ebb1838b27fc16274e
5
5
  SHA512:
6
- metadata.gz: 974897e75867ea21571297de5c33ff40004fedbabe7f2ceb65d9ec061a1db55a2d5a5cbb7e509af33dc8d302061039fb83b75142b0129220630abfad8e7995aa
7
- data.tar.gz: 1ba6940d0376f369216f882c8cc425aa936184925658cbe0edff2e8764ffb6b078c3b2890bc8f4cc4eaf913964c87dcd838880155ce975e0c72a398626667233
6
+ metadata.gz: 316f2de938d81bd9d51e3101440cfa05dd76380956f2d2ad62d82718caf97ad2823eaaf60d9470460d9e8d04413a387c6ca131a44a826d3960bc88c5bdef343c
7
+ data.tar.gz: 1920a34142a716aa36720197d00cb97e2cc26c19ca5dce6f40977535516ed053cd4df9d133966988ecaf89f17e6d080517f12dd3b963dcbd4214e7134427b8f2
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Build Status](https://travis-ci.org/commonmedia/content_block.png)](https://travis-ci.org/commonmedia/content_block)
4
4
  [![Coverage Status](https://coveralls.io/repos/commonmedia/content_block/badge.png)](https://coveralls.io/r/commonmedia/content_block)
5
5
  [![Code Climate](https://codeclimate.com/github/commonmedia/content_block.png)](https://codeclimate.com/github/commonmedia/content_block)
6
- [![GitHub version](https://badge.fury.io/gh/commonmedia%2Fcontent_block.png)](http://badge.fury.io/gh/commonmedia%2Fcontent_block)
6
+ [![Gem Version](https://badge.fury.io/rb/content_block.svg)](http://badge.fury.io/rb/content_block)
7
7
 
8
8
  A block, as used within this gem, is a section of content (either an image, simple text, or rich text that includes markup).
9
9
  This gem allows you to create these different types of blocks, and place them throughout the site.
@@ -2,11 +2,12 @@ module ContentBlock
2
2
  module BlockHelper
3
3
  def rich_block(find_by)
4
4
  block = ContentBlock::RichBlock.where('id = ? OR name = ?', find_by, find_by).first
5
- block.content.html_safe
5
+ block.try(:content).try(:html_safe)
6
6
  end
7
7
 
8
8
  def rich_block_with_title(find_by, wrapper)
9
9
  block = ContentBlock::RichBlock.where('id = ? OR name = ?', find_by, find_by).first
10
+ return nil unless block.present?
10
11
  wrapped_title = "<#{wrapper}>#{block.title}</#{wrapper}>"
11
12
  "#{wrapped_title}#{block.content}".html_safe
12
13
  end
@@ -9,11 +9,5 @@ module ContentBlock
9
9
  g.assets false
10
10
  g.helper false
11
11
  end
12
-
13
- # initializer 'content_block.action_controller' do |app|
14
- # ActiveSupport.on_load :action_controller do
15
- # helper ContentBlock::ApplicationHelper
16
- # end
17
- # end
18
12
  end
19
13
  end
@@ -1,3 +1,3 @@
1
1
  module ContentBlock
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -36285,3 +36285,444 @@ Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
36285
36285
   (0.1ms) rollback transaction
36286
36286
   (0.1ms) begin transaction
36287
36287
   (0.1ms) rollback transaction
36288
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
36289
+  (0.2ms) begin transaction
36290
+ Rendered /Users/jchevalier/Documents/Code/CommonMedia/content_block/app/views/content_block/rich_blocks/show.html.erb (5.3ms)
36291
+  (0.1ms) rollback transaction
36292
+  (0.1ms) begin transaction
36293
+ Rendered /Users/jchevalier/Documents/Code/CommonMedia/content_block/app/views/content_block/rich_blocks/_form.html.erb (43.9ms)
36294
+  (0.1ms) rollback transaction
36295
+  (0.1ms) begin transaction
36296
+  (0.1ms) rollback transaction
36297
+  (0.2ms) begin transaction
36298
+  (0.4ms) rollback transaction
36299
+  (0.1ms) begin transaction
36300
+  (0.1ms) rollback transaction
36301
+  (0.1ms) begin transaction
36302
+  (0.1ms) rollback transaction
36303
+  (0.1ms) begin transaction
36304
+  (0.1ms) rollback transaction
36305
+  (0.0ms) begin transaction
36306
+  (0.1ms) rollback transaction
36307
+  (0.0ms) begin transaction
36308
+  (0.0ms) rollback transaction
36309
+  (0.1ms) begin transaction
36310
+ Rendered /Users/jchevalier/Documents/Code/CommonMedia/content_block/app/views/content_block/rich_blocks/_form.html.erb (10.5ms)
36311
+  (0.1ms) rollback transaction
36312
+  (0.1ms) begin transaction
36313
+ Processing by ContentBlock::RichBlocksController#create as HTML
36314
+ Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}}
36315
+  (0.1ms) SAVEPOINT active_record_1
36316
+ SQL (0.6ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.687165"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.687165"]]
36317
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36318
+ Redirected to http://test.host/content-block/rich-blocks/1
36319
+ Completed 302 Found in 14ms (ActiveRecord: 0.7ms)
36320
+  (0.4ms) rollback transaction
36321
+  (0.1ms) begin transaction
36322
+  (0.2ms) SELECT COUNT(*) FROM "content_block_rich_blocks"
36323
+ Processing by ContentBlock::RichBlocksController#create as HTML
36324
+ Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}}
36325
+  (0.1ms) SAVEPOINT active_record_1
36326
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.713177"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.713177"]]
36327
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36328
+ Redirected to http://test.host/content-block/rich-blocks/1
36329
+ Completed 302 Found in 12ms (ActiveRecord: 0.6ms)
36330
+  (0.1ms) SELECT COUNT(*) FROM "content_block_rich_blocks"
36331
+  (0.5ms) rollback transaction
36332
+  (0.1ms) begin transaction
36333
+ Processing by ContentBlock::RichBlocksController#create as HTML
36334
+ Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}}
36335
+  (0.1ms) SAVEPOINT active_record_1
36336
+ SQL (0.5ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.726200"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.726200"]]
36337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36338
+ Redirected to http://test.host/content-block/rich-blocks/1
36339
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
36340
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" ORDER BY "content_block_rich_blocks"."id" DESC LIMIT 1
36341
+  (0.5ms) rollback transaction
36342
+  (0.1ms) begin transaction
36343
+ Processing by ContentBlock::RichBlocksController#create as HTML
36344
+ Parameters: {"rich_block"=>{"name"=>"invalid value"}}
36345
+ Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 0.0ms)
36346
+  (0.1ms) rollback transaction
36347
+  (0.1ms) begin transaction
36348
+ Processing by ContentBlock::RichBlocksController#create as HTML
36349
+ Parameters: {"rich_block"=>{"name"=>"invalid value"}}
36350
+ Completed 200 OK in 6ms (Views: 1.8ms | ActiveRecord: 0.0ms)
36351
+  (0.1ms) rollback transaction
36352
+  (0.1ms) begin transaction
36353
+  (0.1ms) SAVEPOINT active_record_1
36354
+ SQL (0.5ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.759014"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.759014"]]
36355
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36356
+ Processing by ContentBlock::RichBlocksController#update as HTML
36357
+ Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}, "id"=>"1"}
36358
+ ContentBlock::RichBlock Load (0.2ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36359
+  (0.1ms) SAVEPOINT active_record_1
36360
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36361
+ Redirected to http://test.host/content-block/rich-blocks/1
36362
+ Completed 302 Found in 8ms (ActiveRecord: 0.4ms)
36363
+  (0.8ms) rollback transaction
36364
+  (0.1ms) begin transaction
36365
+  (0.1ms) SAVEPOINT active_record_1
36366
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.778732"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.778732"]]
36367
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36368
+ Processing by ContentBlock::RichBlocksController#update as HTML
36369
+ Parameters: {"rich_block"=>{"name"=>"MyString"}, "id"=>"1"}
36370
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36371
+ Completed 200 OK in 7ms (Views: 2.2ms | ActiveRecord: 0.1ms)
36372
+  (0.5ms) rollback transaction
36373
+  (0.1ms) begin transaction
36374
+  (0.1ms) SAVEPOINT active_record_1
36375
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.792662"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.792662"]]
36376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36377
+ Processing by ContentBlock::RichBlocksController#update as HTML
36378
+ Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}, "id"=>"1"}
36379
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36380
+  (0.1ms) SAVEPOINT active_record_1
36381
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36382
+ Redirected to http://test.host/content-block/rich-blocks/1
36383
+ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)
36384
+  (0.5ms) rollback transaction
36385
+  (0.1ms) begin transaction
36386
+  (0.1ms) SAVEPOINT active_record_1
36387
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.807908"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.807908"]]
36388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36389
+ Processing by ContentBlock::RichBlocksController#update as HTML
36390
+ Parameters: {"rich_block"=>{"name"=>"invalid value"}, "id"=>"1"}
36391
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36392
+  (0.1ms) SAVEPOINT active_record_1
36393
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
36394
+ Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 0.2ms)
36395
+  (0.4ms) rollback transaction
36396
+  (0.1ms) begin transaction
36397
+  (0.1ms) SAVEPOINT active_record_1
36398
+ SQL (0.5ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.822800"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.822800"]]
36399
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36400
+ Processing by ContentBlock::RichBlocksController#update as HTML
36401
+ Parameters: {"rich_block"=>{"name"=>"invalid value"}, "id"=>"1"}
36402
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36403
+  (0.1ms) SAVEPOINT active_record_1
36404
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
36405
+ Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 0.2ms)
36406
+  (0.5ms) rollback transaction
36407
+  (0.1ms) begin transaction
36408
+  (0.1ms) SAVEPOINT active_record_1
36409
+ SQL (0.5ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.839449"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.839449"]]
36410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36411
+ Processing by ContentBlock::RichBlocksController#edit as HTML
36412
+ Parameters: {"id"=>"1"}
36413
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36414
+ Completed 200 OK in 6ms (Views: 1.8ms | ActiveRecord: 0.1ms)
36415
+  (0.4ms) rollback transaction
36416
+  (0.1ms) begin transaction
36417
+  (0.1ms) SAVEPOINT active_record_1
36418
+ SQL (0.5ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.852915"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.852915"]]
36419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36420
+ Processing by ContentBlock::RichBlocksController#show as HTML
36421
+ Parameters: {"id"=>"1"}
36422
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36423
+ Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.1ms)
36424
+  (0.4ms) rollback transaction
36425
+  (0.1ms) begin transaction
36426
+  (0.1ms) SAVEPOINT active_record_1
36427
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.868170"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.868170"]]
36428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36429
+ Processing by ContentBlock::RichBlocksController#index as HTML
36430
+ Completed 200 OK in 12ms (Views: 3.2ms | ActiveRecord: 0.0ms)
36431
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks"
36432
+  (0.4ms) rollback transaction
36433
+  (0.1ms) begin transaction
36434
+ Processing by ContentBlock::RichBlocksController#new as HTML
36435
+ Completed 200 OK in 7ms (Views: 1.5ms | ActiveRecord: 0.0ms)
36436
+  (0.1ms) rollback transaction
36437
+  (0.1ms) begin transaction
36438
+  (0.1ms) SAVEPOINT active_record_1
36439
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.897557"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.897557"]]
36440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36441
+  (0.1ms) SELECT COUNT(*) FROM "content_block_rich_blocks"
36442
+ Processing by ContentBlock::RichBlocksController#destroy as HTML
36443
+ Parameters: {"id"=>"1"}
36444
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36445
+  (0.1ms) SAVEPOINT active_record_1
36446
+ SQL (1.1ms) DELETE FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? [["id", 1]]
36447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36448
+ Redirected to http://test.host/content-block/rich-blocks
36449
+ Completed 302 Found in 9ms (ActiveRecord: 1.4ms)
36450
+  (0.1ms) SELECT COUNT(*) FROM "content_block_rich_blocks"
36451
+  (0.5ms) rollback transaction
36452
+  (0.1ms) begin transaction
36453
+  (0.1ms) SAVEPOINT active_record_1
36454
+ SQL (0.3ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:26.914320"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:26.914320"]]
36455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36456
+ Processing by ContentBlock::RichBlocksController#destroy as HTML
36457
+ Parameters: {"id"=>"1"}
36458
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36459
+  (0.1ms) SAVEPOINT active_record_1
36460
+ SQL (0.5ms) DELETE FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? [["id", 1]]
36461
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36462
+ Redirected to http://test.host/content-block/rich-blocks
36463
+ Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
36464
+  (2.2ms) rollback transaction
36465
+  (0.1ms) begin transaction
36466
+ Processing by ContentBlock::RichBlocksController#index as HTML
36467
+ Redirected to http://test.host/users/sign_in
36468
+ Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
36469
+  (0.1ms) rollback transaction
36470
+  (0.1ms) begin transaction
36471
+  (0.1ms) rollback transaction
36472
+  (0.1ms) begin transaction
36473
+ Processing by ContentBlock::AdminController#index as HTML
36474
+ Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.0ms)
36475
+  (0.1ms) rollback transaction
36476
+  (0.1ms) begin transaction
36477
+ Processing by ContentBlock::AdminController#index as HTML
36478
+ Redirected to http://test.host/users/sign_in
36479
+ Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
36480
+  (0.1ms) rollback transaction
36481
+  (0.1ms) begin transaction
36482
+  (0.1ms) rollback transaction
36483
+  (0.1ms) begin transaction
36484
+  (0.1ms) rollback transaction
36485
+  (0.0ms) begin transaction
36486
+  (0.1ms) rollback transaction
36487
+  (0.1ms) begin transaction
36488
+  (0.1ms) rollback transaction
36489
+  (0.1ms) begin transaction
36490
+  (0.1ms) rollback transaction
36491
+  (0.1ms) begin transaction
36492
+  (0.1ms) rollback transaction
36493
+  (0.1ms) begin transaction
36494
+  (0.1ms) rollback transaction
36495
+  (0.1ms) begin transaction
36496
+  (0.1ms) rollback transaction
36497
+  (0.1ms) begin transaction
36498
+  (0.1ms) SAVEPOINT active_record_1
36499
+ SQL (0.3ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:27.014317"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:27.014317"]]
36500
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36501
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE (id = 'Name' OR name = 'Name') ORDER BY "content_block_rich_blocks"."id" ASC LIMIT 1
36502
+  (0.4ms) rollback transaction
36503
+  (0.1ms) begin transaction
36504
+  (0.1ms) SAVEPOINT active_record_1
36505
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:43:27.020714"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:43:27.020714"]]
36506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36507
+ ContentBlock::RichBlock Load (0.2ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE (id = 'Name' OR name = 'Name') ORDER BY "content_block_rich_blocks"."id" ASC LIMIT 1
36508
+  (0.6ms) rollback transaction
36509
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
36510
+  (0.2ms) begin transaction
36511
+  (0.1ms) rollback transaction
36512
+  (0.1ms) begin transaction
36513
+  (0.0ms) rollback transaction
36514
+  (0.1ms) begin transaction
36515
+  (0.1ms) rollback transaction
36516
+  (0.1ms) begin transaction
36517
+  (0.1ms) rollback transaction
36518
+  (0.1ms) begin transaction
36519
+  (0.1ms) rollback transaction
36520
+  (0.1ms) begin transaction
36521
+  (0.1ms) rollback transaction
36522
+  (0.1ms) begin transaction
36523
+  (0.1ms) rollback transaction
36524
+  (0.1ms) begin transaction
36525
+  (0.1ms) rollback transaction
36526
+  (0.1ms) begin transaction
36527
+  (0.1ms) rollback transaction
36528
+  (0.1ms) begin transaction
36529
+  (0.1ms) rollback transaction
36530
+  (0.1ms) begin transaction
36531
+  (0.1ms) rollback transaction
36532
+  (0.1ms) begin transaction
36533
+  (0.1ms) rollback transaction
36534
+  (0.1ms) begin transaction
36535
+  (0.1ms) rollback transaction
36536
+  (0.1ms) begin transaction
36537
+  (0.1ms) SAVEPOINT active_record_1
36538
+ SQL (0.6ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.407891"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.407891"]]
36539
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36540
+ ContentBlock::RichBlock Load (0.2ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE (id = 'Name' OR name = 'Name') ORDER BY "content_block_rich_blocks"."id" ASC LIMIT 1
36541
+  (1.8ms) rollback transaction
36542
+  (0.1ms) begin transaction
36543
+  (0.1ms) SAVEPOINT active_record_1
36544
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.420852"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.420852"]]
36545
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36546
+ ContentBlock::RichBlock Load (0.2ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE (id = 'Name' OR name = 'Name') ORDER BY "content_block_rich_blocks"."id" ASC LIMIT 1
36547
+  (0.4ms) rollback transaction
36548
+  (0.1ms) begin transaction
36549
+ Rendered /Users/jchevalier/Documents/Code/CommonMedia/content_block/app/views/content_block/rich_blocks/_form.html.erb (35.4ms)
36550
+  (0.2ms) rollback transaction
36551
+  (0.1ms) begin transaction
36552
+ Rendered /Users/jchevalier/Documents/Code/CommonMedia/content_block/app/views/content_block/rich_blocks/_form.html.erb (7.0ms)
36553
+  (0.2ms) rollback transaction
36554
+  (0.1ms) begin transaction
36555
+  (0.1ms) rollback transaction
36556
+  (0.1ms) begin transaction
36557
+  (0.1ms) rollback transaction
36558
+  (0.1ms) begin transaction
36559
+  (0.1ms) rollback transaction
36560
+  (0.1ms) begin transaction
36561
+  (0.0ms) rollback transaction
36562
+  (0.1ms) begin transaction
36563
+ Processing by ContentBlock::AdminController#index as HTML
36564
+ Redirected to http://test.host/users/sign_in
36565
+ Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
36566
+  (0.1ms) rollback transaction
36567
+  (0.1ms) begin transaction
36568
+ Processing by ContentBlock::AdminController#index as HTML
36569
+ Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 0.0ms)
36570
+  (0.1ms) rollback transaction
36571
+  (0.1ms) begin transaction
36572
+  (0.1ms) SAVEPOINT active_record_1
36573
+ SQL (0.3ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.566795"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.566795"]]
36574
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36575
+ Processing by ContentBlock::RichBlocksController#update as HTML
36576
+ Parameters: {"rich_block"=>{"name"=>"invalid value"}, "id"=>"1"}
36577
+ ContentBlock::RichBlock Load (0.2ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36578
+  (0.1ms) SAVEPOINT active_record_1
36579
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
36580
+ Completed 200 OK in 10ms (Views: 4.5ms | ActiveRecord: 0.3ms)
36581
+  (0.8ms) rollback transaction
36582
+  (0.1ms) begin transaction
36583
+  (0.1ms) SAVEPOINT active_record_1
36584
+ SQL (0.3ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.584811"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.584811"]]
36585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36586
+ Processing by ContentBlock::RichBlocksController#update as HTML
36587
+ Parameters: {"rich_block"=>{"name"=>"invalid value"}, "id"=>"1"}
36588
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36589
+  (0.2ms) SAVEPOINT active_record_1
36590
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
36591
+ Completed 200 OK in 7ms (Views: 1.5ms | ActiveRecord: 0.3ms)
36592
+  (0.9ms) rollback transaction
36593
+  (0.1ms) begin transaction
36594
+  (0.1ms) SAVEPOINT active_record_1
36595
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.600395"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.600395"]]
36596
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36597
+ Processing by ContentBlock::RichBlocksController#update as HTML
36598
+ Parameters: {"rich_block"=>{"name"=>"MyString"}, "id"=>"1"}
36599
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36600
+ Completed 200 OK in 9ms (Views: 1.4ms | ActiveRecord: 0.1ms)
36601
+  (0.6ms) rollback transaction
36602
+  (0.1ms) begin transaction
36603
+  (0.1ms) SAVEPOINT active_record_1
36604
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.616286"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.616286"]]
36605
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36606
+ Processing by ContentBlock::RichBlocksController#update as HTML
36607
+ Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}, "id"=>"1"}
36608
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36609
+  (0.1ms) SAVEPOINT active_record_1
36610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36611
+ Redirected to http://test.host/content-block/rich-blocks/1
36612
+ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)
36613
+  (0.5ms) rollback transaction
36614
+  (0.1ms) begin transaction
36615
+  (0.1ms) SAVEPOINT active_record_1
36616
+ SQL (0.3ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.630174"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.630174"]]
36617
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36618
+ Processing by ContentBlock::RichBlocksController#update as HTML
36619
+ Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}, "id"=>"1"}
36620
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36621
+  (0.1ms) SAVEPOINT active_record_1
36622
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36623
+ Redirected to http://test.host/content-block/rich-blocks/1
36624
+ Completed 302 Found in 8ms (ActiveRecord: 0.3ms)
36625
+  (0.4ms) rollback transaction
36626
+  (0.1ms) begin transaction
36627
+ Processing by ContentBlock::RichBlocksController#new as HTML
36628
+ Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 0.0ms)
36629
+  (0.1ms) rollback transaction
36630
+  (0.1ms) begin transaction
36631
+  (0.1ms) SAVEPOINT active_record_1
36632
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.657518"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.657518"]]
36633
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36634
+ Processing by ContentBlock::RichBlocksController#edit as HTML
36635
+ Parameters: {"id"=>"1"}
36636
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36637
+ Completed 200 OK in 7ms (Views: 1.1ms | ActiveRecord: 0.1ms)
36638
+  (0.8ms) rollback transaction
36639
+  (0.1ms) begin transaction
36640
+ Processing by ContentBlock::RichBlocksController#index as HTML
36641
+ Redirected to http://test.host/users/sign_in
36642
+ Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
36643
+  (0.1ms) rollback transaction
36644
+  (0.1ms) begin transaction
36645
+  (0.1ms) SAVEPOINT active_record_1
36646
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.681097"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.681097"]]
36647
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36648
+ Processing by ContentBlock::RichBlocksController#index as HTML
36649
+ Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.0ms)
36650
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks"
36651
+  (0.4ms) rollback transaction
36652
+  (0.1ms) begin transaction
36653
+  (0.1ms) SAVEPOINT active_record_1
36654
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.696337"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.696337"]]
36655
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36656
+ Processing by ContentBlock::RichBlocksController#show as HTML
36657
+ Parameters: {"id"=>"1"}
36658
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36659
+ Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 0.1ms)
36660
+  (0.4ms) rollback transaction
36661
+  (0.1ms) begin transaction
36662
+  (0.1ms) SAVEPOINT active_record_1
36663
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.711418"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.711418"]]
36664
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36665
+ Processing by ContentBlock::RichBlocksController#destroy as HTML
36666
+ Parameters: {"id"=>"1"}
36667
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36668
+  (0.1ms) SAVEPOINT active_record_1
36669
+ SQL (1.1ms) DELETE FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? [["id", 1]]
36670
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36671
+ Redirected to http://test.host/content-block/rich-blocks
36672
+ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)
36673
+  (0.5ms) rollback transaction
36674
+  (0.1ms) begin transaction
36675
+  (0.1ms) SAVEPOINT active_record_1
36676
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.725948"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.725948"]]
36677
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36678
+  (0.1ms) SELECT COUNT(*) FROM "content_block_rich_blocks"
36679
+ Processing by ContentBlock::RichBlocksController#destroy as HTML
36680
+ Parameters: {"id"=>"1"}
36681
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
36682
+  (0.1ms) SAVEPOINT active_record_1
36683
+ SQL (0.4ms) DELETE FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? [["id", 1]]
36684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36685
+ Redirected to http://test.host/content-block/rich-blocks
36686
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
36687
+  (0.1ms) SELECT COUNT(*) FROM "content_block_rich_blocks"
36688
+  (0.5ms) rollback transaction
36689
+  (0.1ms) begin transaction
36690
+ Processing by ContentBlock::RichBlocksController#create as HTML
36691
+ Parameters: {"rich_block"=>{"name"=>"invalid value"}}
36692
+ Completed 200 OK in 8ms (Views: 1.2ms | ActiveRecord: 0.0ms)
36693
+  (0.1ms) rollback transaction
36694
+  (0.1ms) begin transaction
36695
+ Processing by ContentBlock::RichBlocksController#create as HTML
36696
+ Parameters: {"rich_block"=>{"name"=>"invalid value"}}
36697
+ Completed 200 OK in 4ms (Views: 1.2ms | ActiveRecord: 0.0ms)
36698
+  (0.1ms) rollback transaction
36699
+  (0.1ms) begin transaction
36700
+  (0.2ms) SELECT COUNT(*) FROM "content_block_rich_blocks"
36701
+ Processing by ContentBlock::RichBlocksController#create as HTML
36702
+ Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}}
36703
+  (0.1ms) SAVEPOINT active_record_1
36704
+ SQL (0.3ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.772328"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.772328"]]
36705
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36706
+ Redirected to http://test.host/content-block/rich-blocks/1
36707
+ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
36708
+  (0.1ms) SELECT COUNT(*) FROM "content_block_rich_blocks"
36709
+  (0.4ms) rollback transaction
36710
+  (0.1ms) begin transaction
36711
+ Processing by ContentBlock::RichBlocksController#create as HTML
36712
+ Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}}
36713
+  (0.2ms) SAVEPOINT active_record_1
36714
+ SQL (0.4ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.787182"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.787182"]]
36715
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36716
+ Redirected to http://test.host/content-block/rich-blocks/1
36717
+ Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
36718
+ ContentBlock::RichBlock Load (0.1ms) SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" ORDER BY "content_block_rich_blocks"."id" DESC LIMIT 1
36719
+  (0.4ms) rollback transaction
36720
+  (0.1ms) begin transaction
36721
+ Processing by ContentBlock::RichBlocksController#create as HTML
36722
+ Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}}
36723
+  (0.1ms) SAVEPOINT active_record_1
36724
+ SQL (0.5ms) INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-04-24 18:44:22.799482"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-04-24 18:44:22.799482"]]
36725
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36726
+ Redirected to http://test.host/content-block/rich-blocks/1
36727
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
36728
+  (0.5ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: content_block
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Chevalier