content_block 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 +4 -0
- data/lib/content_block/version.rb +1 -1
- data/spec/dummy/log/test.log +220 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 621f3ac62b6de0fd0f85b9f0006442e62c104f04
|
4
|
+
data.tar.gz: ca321c323d81c20a3465f669ae81e31b25d0be4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d43cd334cd566934d090c4fa4ab17255c49f2fb6ded893a150451843bcc0a4d7e0e4b394760a3a23acf5ae63b551c1328de5844af8100e084b041fb6509d11b8
|
7
|
+
data.tar.gz: 9caeffae972ccef356de0ecaea5075d2b87164e527a8cf08e17cc672f6af5da286070610089892a88c3ca03f4ed91280e0b676f3e055b664e08f8415f8c24fdd
|
data/README.md
CHANGED
@@ -3,6 +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
|
+
[![Dependency Status](https://gemnasium.com/commonmedia/content_block.svg)](https://gemnasium.com/commonmedia/content_block)
|
6
7
|
[![Gem Version](https://badge.fury.io/rb/content_block.svg)](http://badge.fury.io/rb/content_block)
|
7
8
|
|
8
9
|
A block, as used within this gem, is a section of content (either an image, simple text, or rich text that includes markup).
|
@@ -49,11 +50,14 @@ To use a block in your view without displaying its title
|
|
49
50
|
|
50
51
|
<%= rich_block('IDENTIFIER') %>
|
51
52
|
|
53
|
+
For example, if a block has an `id` of '1' and a `name` of 'content page', it can be displayed with either `<%= rich_block(1) %>` or `<%= rich_block('content page') %>`.
|
54
|
+
|
52
55
|
To use a block in your view and display its title
|
53
56
|
(`IDENTIFIER` is either the `name` or the `id` of the block to be displayed & `TAG` is the HTML tag you'd like the title to be wrapped in):
|
54
57
|
|
55
58
|
<%= rich_block_with_title('IDENTIFIER', 'TAG') %>
|
56
59
|
|
60
|
+
For example, if a block has an `id` of '1' and you want to display its title in an `<h4>` tag, then it would be displayed with `<%= rich_block_with_title(1, 'h4') %>`.
|
57
61
|
|
58
62
|
## Contributing
|
59
63
|
|
data/spec/dummy/log/test.log
CHANGED
@@ -36726,3 +36726,223 @@ Processing by ContentBlock::RichBlocksController#create as HTML
|
|
36726
36726
|
Redirected to http://test.host/content-block/rich-blocks/1
|
36727
36727
|
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
36728
36728
|
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
36729
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36730
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36731
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36732
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36733
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36734
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36735
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
36736
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36737
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
36738
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36739
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36740
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36741
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36742
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36743
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36744
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-05-07 13:17:43.681045"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.681045"]]
|
36745
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36746
|
+
[1m[35mContentBlock::RichBlock Load (0.1ms)[0m 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
|
36747
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
36748
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36749
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36750
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-05-07 13:17:43.689643"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.689643"]]
|
36751
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36752
|
+
[1m[35mContentBlock::RichBlock Load (0.2ms)[0m 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
|
36753
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
36754
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36755
|
+
Rendered /Users/jchevalier/Documents/Code/CommonMedia/content_block/app/views/content_block/rich_blocks/_form.html.erb (26.8ms)
|
36756
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36757
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36758
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36759
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36760
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36761
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36762
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36763
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36764
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36765
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36766
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36767
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-05-07 13:17:43.792676"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.792676"]]
|
36768
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36769
|
+
Processing by ContentBlock::RichBlocksController#index as HTML
|
36770
|
+
Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.0ms)
|
36771
|
+
[1m[35mContentBlock::RichBlock Load (0.2ms)[0m SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks"
|
36772
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
36773
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36774
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36775
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-05-07 13:17:43.809999"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.809999"]]
|
36776
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36777
|
+
Processing by ContentBlock::RichBlocksController#show as HTML
|
36778
|
+
Parameters: {"id"=>"1"}
|
36779
|
+
[1m[35mContentBlock::RichBlock Load (0.1ms)[0m SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
|
36780
|
+
Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.1ms)
|
36781
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
36782
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36783
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36784
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-05-07 13:17:43.823682"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.823682"]]
|
36785
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36786
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "content_block_rich_blocks"
|
36787
|
+
Processing by ContentBlock::RichBlocksController#destroy as HTML
|
36788
|
+
Parameters: {"id"=>"1"}
|
36789
|
+
[1m[36mContentBlock::RichBlock Load (0.1ms)[0m [1mSELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
36790
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36791
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ?[0m [["id", 1]]
|
36792
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
36793
|
+
Redirected to http://test.host/content-block/rich-blocks
|
36794
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.9ms)
|
36795
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "content_block_rich_blocks"[0m
|
36796
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
36797
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36798
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36799
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "Content"], ["created_at", "2014-05-07 13:17:43.847298"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.847298"]]
|
36800
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
36801
|
+
Processing by ContentBlock::RichBlocksController#destroy as HTML
|
36802
|
+
Parameters: {"id"=>"1"}
|
36803
|
+
[1m[36mContentBlock::RichBlock Load (0.1ms)[0m [1mSELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
36804
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36805
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ?[0m [["id", 1]]
|
36806
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
36807
|
+
Redirected to http://test.host/content-block/rich-blocks
|
36808
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
|
36809
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
36810
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36811
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36812
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-05-07 13:17:43.859444"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.859444"]]
|
36813
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36814
|
+
Processing by ContentBlock::RichBlocksController#update as HTML
|
36815
|
+
Parameters: {"rich_block"=>{"name"=>"MyString"}, "id"=>"1"}
|
36816
|
+
[1m[35mContentBlock::RichBlock Load (0.1ms)[0m SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
|
36817
|
+
Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
36818
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
36819
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36820
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36821
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-05-07 13:17:43.870420"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.870420"]]
|
36822
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36823
|
+
Processing by ContentBlock::RichBlocksController#update as HTML
|
36824
|
+
Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}, "id"=>"1"}
|
36825
|
+
[1m[35mContentBlock::RichBlock Load (0.1ms)[0m SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
|
36826
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36827
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36828
|
+
Redirected to http://test.host/content-block/rich-blocks/1
|
36829
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
|
36830
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
36831
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36832
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36833
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-05-07 13:17:43.880574"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.880574"]]
|
36834
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36835
|
+
Processing by ContentBlock::RichBlocksController#update as HTML
|
36836
|
+
Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}, "id"=>"1"}
|
36837
|
+
[1m[35mContentBlock::RichBlock Load (0.1ms)[0m SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
|
36838
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36839
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
36840
|
+
Redirected to http://test.host/content-block/rich-blocks/1
|
36841
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
|
36842
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
36843
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36844
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36845
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-05-07 13:17:43.892197"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.892197"]]
|
36846
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36847
|
+
Processing by ContentBlock::RichBlocksController#update as HTML
|
36848
|
+
Parameters: {"rich_block"=>{"name"=>"invalid value"}, "id"=>"1"}
|
36849
|
+
[1m[35mContentBlock::RichBlock Load (0.1ms)[0m SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
|
36850
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36851
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
36852
|
+
Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.2ms)
|
36853
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
36854
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36855
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36856
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-05-07 13:17:43.902909"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.902909"]]
|
36857
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36858
|
+
Processing by ContentBlock::RichBlocksController#update as HTML
|
36859
|
+
Parameters: {"rich_block"=>{"name"=>"invalid value"}, "id"=>"1"}
|
36860
|
+
[1m[35mContentBlock::RichBlock Load (0.1ms)[0m SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
|
36861
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36862
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
36863
|
+
Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.2ms)
|
36864
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
36865
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36866
|
+
Processing by ContentBlock::RichBlocksController#new as HTML
|
36867
|
+
Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
36868
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36869
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36870
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36871
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-05-07 13:17:43.925974"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.925974"]]
|
36872
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36873
|
+
Processing by ContentBlock::RichBlocksController#edit as HTML
|
36874
|
+
Parameters: {"id"=>"1"}
|
36875
|
+
[1m[35mContentBlock::RichBlock Load (0.1ms)[0m SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" WHERE "content_block_rich_blocks"."id" = ? LIMIT 1 [["id", 1]]
|
36876
|
+
Completed 200 OK in 4ms (Views: 1.1ms | ActiveRecord: 0.1ms)
|
36877
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
36878
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36879
|
+
Processing by ContentBlock::RichBlocksController#index as HTML
|
36880
|
+
Redirected to http://test.host/users/sign_in
|
36881
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
|
36882
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36883
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36884
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "content_block_rich_blocks"[0m
|
36885
|
+
Processing by ContentBlock::RichBlocksController#create as HTML
|
36886
|
+
Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}}
|
36887
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36888
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "Content"], ["created_at", "2014-05-07 13:17:43.948755"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.948755"]]
|
36889
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36890
|
+
Redirected to http://test.host/content-block/rich-blocks/1
|
36891
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
36892
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "content_block_rich_blocks"[0m
|
36893
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
36894
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36895
|
+
Processing by ContentBlock::RichBlocksController#create as HTML
|
36896
|
+
Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}}
|
36897
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36898
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "Content"], ["created_at", "2014-05-07 13:17:43.958266"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.958266"]]
|
36899
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
36900
|
+
Redirected to http://test.host/content-block/rich-blocks/1
|
36901
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
36902
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
36903
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36904
|
+
Processing by ContentBlock::RichBlocksController#create as HTML
|
36905
|
+
Parameters: {"rich_block"=>{"name"=>"Name", "title"=>"Title", "content"=>"Content"}}
|
36906
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36907
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "content_block_rich_blocks" ("content", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Content"], ["created_at", "2014-05-07 13:17:43.968412"], ["name", "Name"], ["title", "Title"], ["updated_at", "2014-05-07 13:17:43.968412"]]
|
36908
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36909
|
+
Redirected to http://test.host/content-block/rich-blocks/1
|
36910
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
|
36911
|
+
[1m[35mContentBlock::RichBlock Load (0.1ms)[0m SELECT "content_block_rich_blocks".* FROM "content_block_rich_blocks" ORDER BY "content_block_rich_blocks"."id" DESC LIMIT 1
|
36912
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
36913
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36914
|
+
Processing by ContentBlock::RichBlocksController#create as HTML
|
36915
|
+
Parameters: {"rich_block"=>{"name"=>"invalid value"}}
|
36916
|
+
Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.0ms)
|
36917
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36918
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36919
|
+
Processing by ContentBlock::RichBlocksController#create as HTML
|
36920
|
+
Parameters: {"rich_block"=>{"name"=>"invalid value"}}
|
36921
|
+
Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.0ms)
|
36922
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36923
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36924
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36925
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36926
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36927
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36928
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
36929
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36930
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
36931
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36932
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36933
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36934
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
36935
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36936
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36937
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36938
|
+
Rendered /Users/jchevalier/Documents/Code/CommonMedia/content_block/app/views/content_block/rich_blocks/_form.html.erb (7.1ms)
|
36939
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36940
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36941
|
+
Processing by ContentBlock::AdminController#index as HTML
|
36942
|
+
Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.0ms)
|
36943
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36944
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36945
|
+
Processing by ContentBlock::AdminController#index as HTML
|
36946
|
+
Redirected to http://test.host/users/sign_in
|
36947
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
|
36948
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: content_block
|
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
|
- James Chevalier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|