comfortable_mexican_sofa 0.0.18 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +8 -8
- data/Gemfile +11 -0
- data/Gemfile.lock +91 -0
- data/README.md +4 -0
- data/Rakefile +28 -57
- data/VERSION +1 -1
- data/app/controllers/application_controller.rb +5 -0
- data/app/controllers/cms_admin/base_controller.rb +1 -21
- data/app/controllers/cms_admin/layouts_controller.rb +23 -38
- data/app/controllers/cms_admin/pages_controller.rb +24 -40
- data/app/controllers/cms_admin/snippets_controller.rb +26 -34
- data/app/controllers/cms_admin/uploads_controller.rb +27 -0
- data/app/controllers/cms_content_controller.rb +22 -19
- data/app/models/cms_block.rb +20 -6
- data/app/models/cms_layout.rb +34 -80
- data/app/models/cms_page.rb +44 -102
- data/app/models/cms_snippet.rb +12 -7
- data/app/models/cms_upload.rb +36 -0
- data/app/views/cms_admin/layouts/_form.html.erb +6 -0
- data/app/views/cms_admin/layouts/_index_branch.html.erb +24 -0
- data/app/views/cms_admin/layouts/edit.html.erb +6 -0
- data/app/views/cms_admin/layouts/index.html.erb +6 -0
- data/app/views/cms_admin/layouts/new.html.erb +6 -0
- data/app/views/cms_admin/pages/_form.html.erb +14 -0
- data/app/views/cms_admin/pages/_form_blocks.html.erb +7 -0
- data/app/views/cms_admin/pages/_index_branch.html.erb +27 -0
- data/app/views/cms_admin/pages/edit.html.erb +6 -0
- data/app/views/cms_admin/pages/form_blocks.js.erb +1 -0
- data/app/views/cms_admin/pages/index.html.erb +6 -0
- data/app/views/cms_admin/pages/new.html.erb +6 -0
- data/app/views/cms_admin/snippets/_form.html.erb +2 -0
- data/app/views/cms_admin/snippets/edit.html.erb +6 -0
- data/app/views/cms_admin/snippets/index.html.erb +3 -0
- data/app/views/cms_admin/snippets/new.html.erb +6 -0
- data/app/views/cms_admin/uploads/_index.html.erb +8 -0
- data/app/views/cms_admin/uploads/_upload.html.erb +11 -0
- data/app/views/cms_admin/uploads/destroy.js.erb +3 -0
- data/app/views/cms_admin/uploads/index.html.erb +2 -0
- data/app/views/layouts/cms_admin.html.erb +36 -0
- data/comfortable_mexican_sofa.gemspec +141 -197
- data/config.ru +4 -0
- data/config/application.rb +44 -0
- data/config/boot.rb +13 -0
- data/{test/rails_root/config → config}/database.yml +0 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +22 -0
- data/config/environments/production.rb +49 -0
- data/config/environments/test.rb +35 -0
- data/{test/rails_root/config → config}/initializers/backtrace_silencers.rb +2 -2
- data/{test/rails_root/config → config}/initializers/inflections.rb +1 -1
- data/{test/rails_root/config → config}/initializers/mime_types.rb +0 -0
- data/config/initializers/paperclip.rb +3 -0
- data/config/initializers/secret_token.rb +7 -0
- data/config/initializers/session_store.rb +8 -0
- data/{test/rails_root/config → config}/locales/en.yml +1 -1
- data/config/routes.rb +20 -0
- data/db/migrate/01_create_cms.rb +73 -0
- data/db/seeds.rb +7 -0
- data/doc/README_FOR_APP +95 -0
- data/lib/comfortable_mexican_sofa.rb +34 -39
- data/lib/comfortable_mexican_sofa/cms_acts_as_tree.rb +42 -49
- data/lib/comfortable_mexican_sofa/cms_form_builder.rb +107 -0
- data/lib/comfortable_mexican_sofa/cms_rails_extensions.rb +25 -5
- data/lib/comfortable_mexican_sofa/cms_tag.rb +90 -85
- data/lib/comfortable_mexican_sofa/cms_tag/field_datetime.rb +26 -0
- data/lib/comfortable_mexican_sofa/cms_tag/field_integer.rb +26 -0
- data/lib/comfortable_mexican_sofa/cms_tag/field_string.rb +26 -0
- data/lib/comfortable_mexican_sofa/cms_tag/field_text.rb +26 -0
- data/lib/comfortable_mexican_sofa/cms_tag/page_datetime.rb +22 -0
- data/lib/comfortable_mexican_sofa/cms_tag/page_integer.rb +22 -0
- data/lib/comfortable_mexican_sofa/cms_tag/page_string.rb +22 -0
- data/lib/comfortable_mexican_sofa/cms_tag/page_text.rb +22 -0
- data/lib/comfortable_mexican_sofa/cms_tag/partial.rb +20 -0
- data/lib/comfortable_mexican_sofa/cms_tag/snippet.rb +18 -0
- data/{generators/cms/templates → lib/generators}/README +0 -20
- data/lib/generators/cms_generator.rb +28 -0
- data/public/404.html +26 -0
- data/public/422.html +26 -0
- data/public/500.html +26 -0
- data/{test/rails_root/public → public}/favicon.ico +0 -0
- data/public/images/comfortable_mexican_sofa/body_bg.jpg +0 -0
- data/{generators/cms/templates/images → public/images/comfortable_mexican_sofa}/icon_regular.gif +0 -0
- data/public/javascripts/comfortable_mexican_sofa/cms.js +53 -0
- data/public/javascripts/comfortable_mexican_sofa/jquery-ui.js +325 -0
- data/public/javascripts/comfortable_mexican_sofa/jquery.js +154 -0
- data/public/javascripts/comfortable_mexican_sofa/plupload/plupload.full.min.js +1 -0
- data/public/javascripts/comfortable_mexican_sofa/plupload/plupload.html4.min.js +1 -0
- data/public/javascripts/comfortable_mexican_sofa/plupload/plupload.html5.min.js +1 -0
- data/public/javascripts/comfortable_mexican_sofa/rails.js +132 -0
- data/public/javascripts/comfortable_mexican_sofa/uploader.js +47 -0
- data/{test/rails_root/public → public}/robots.txt +0 -0
- data/public/stylesheets/comfortable_mexican_sofa/jquery-ui.css +305 -0
- data/public/stylesheets/comfortable_mexican_sofa/reset.css +1 -0
- data/public/stylesheets/comfortable_mexican_sofa/structure.css +194 -0
- data/public/stylesheets/comfortable_mexican_sofa/typography.css +20 -0
- data/script/rails +6 -0
- data/test/fixtures/README.md +22 -0
- data/test/fixtures/cms_blocks.yml +10 -34
- data/test/fixtures/cms_layouts.yml +37 -33
- data/test/fixtures/cms_pages.yml +11 -32
- data/test/fixtures/cms_snippets.yml +2 -6
- data/test/fixtures/cms_uploads.yml +4 -0
- data/test/fixtures/files/invalid_file.gif +9 -0
- data/test/fixtures/files/valid_image.jpg +0 -0
- data/test/functional/cms_admin/base_controller_test.rb +9 -0
- data/test/functional/cms_admin/layouts_controller_test.rb +61 -46
- data/test/functional/cms_admin/pages_controller_test.rb +201 -102
- data/test/functional/cms_admin/snippets_controller_test.rb +46 -39
- data/test/functional/cms_admin/uploads_controller_test.rb +32 -0
- data/test/functional/cms_content_controller_test.rb +37 -32
- data/test/test_helper.rb +29 -9
- data/test/unit/cms_block_test.rb +60 -0
- data/test/unit/cms_layout_test.rb +48 -0
- data/test/unit/cms_page_test.rb +122 -0
- data/test/unit/cms_snippet_test.rb +23 -0
- data/test/unit/cms_tag_test.rb +149 -0
- data/test/unit/cms_tags/field_datetime_test.rb +36 -0
- data/test/unit/cms_tags/field_integer_test.rb +35 -0
- data/test/unit/cms_tags/field_string_test.rb +35 -0
- data/test/unit/cms_tags/field_text_test.rb +34 -0
- data/test/unit/cms_tags/page_datetime_test.rb +36 -0
- data/test/unit/cms_tags/page_integer_test.rb +35 -0
- data/test/unit/cms_tags/page_string_test.rb +35 -0
- data/test/unit/cms_tags/page_text_test.rb +36 -0
- data/test/unit/cms_tags/partial_test.rb +30 -0
- data/test/unit/cms_tags/snippet_test.rb +34 -0
- data/test/unit/cms_upload_test.rb +30 -0
- metadata +176 -215
- data/CHANGELOG.rdoc +0 -2
- data/LICENSE +0 -20
- data/README.rdoc +0 -55
- data/app/controllers/cms_admin/attachments_controller.rb +0 -55
- data/app/controllers/cms_admin/categories_controller.rb +0 -69
- data/app/controllers/cms_admin/sections_controller.rb +0 -17
- data/app/controllers/cms_common/render_page.rb +0 -47
- data/app/helpers/cms_helper.rb +0 -12
- data/app/models/cms_attachment.rb +0 -17
- data/app/models/cms_attachment_categorization.rb +0 -5
- data/app/models/cms_category.rb +0 -36
- data/app/models/cms_page_categorization.rb +0 -6
- data/app/views/cms_admin/attachments/_details.html.haml +0 -27
- data/app/views/cms_admin/attachments/_form.html.haml +0 -24
- data/app/views/cms_admin/attachments/edit.html.haml +0 -10
- data/app/views/cms_admin/attachments/index.html.haml +0 -36
- data/app/views/cms_admin/attachments/new.html.haml +0 -8
- data/app/views/cms_admin/categories/_category.html.haml +0 -21
- data/app/views/cms_admin/categories/_category_subform.html.haml +0 -12
- data/app/views/cms_admin/categories/_form.html.haml +0 -18
- data/app/views/cms_admin/categories/_new.html.haml +0 -7
- data/app/views/cms_admin/categories/_toggle_link.html.haml +0 -9
- data/app/views/cms_admin/categories/_tree_branch.html.haml +0 -36
- data/app/views/cms_admin/categories/children.js.rjs +0 -10
- data/app/views/cms_admin/categories/create.js.rjs +0 -9
- data/app/views/cms_admin/categories/edit.html.haml +0 -10
- data/app/views/cms_admin/categories/index.html.haml +0 -7
- data/app/views/cms_admin/categories/new.html.haml +0 -8
- data/app/views/cms_admin/categories/show.html.haml +0 -17
- data/app/views/cms_admin/layouts/_details.html.haml +0 -6
- data/app/views/cms_admin/layouts/_form.html.haml +0 -19
- data/app/views/cms_admin/layouts/_toggle_link.html.haml +0 -9
- data/app/views/cms_admin/layouts/_tree_branch.html.haml +0 -39
- data/app/views/cms_admin/layouts/children.js.rjs +0 -10
- data/app/views/cms_admin/layouts/edit.html.haml +0 -10
- data/app/views/cms_admin/layouts/index.html.haml +0 -7
- data/app/views/cms_admin/layouts/new.html.haml +0 -8
- data/app/views/cms_admin/pages/_details.html.haml +0 -25
- data/app/views/cms_admin/pages/_form.html.haml +0 -45
- data/app/views/cms_admin/pages/_form_blocks.html.haml +0 -48
- data/app/views/cms_admin/pages/_toggle_link.html.haml +0 -10
- data/app/views/cms_admin/pages/_tree_branch.html.haml +0 -41
- data/app/views/cms_admin/pages/children.js.rjs +0 -10
- data/app/views/cms_admin/pages/edit.html.haml +0 -11
- data/app/views/cms_admin/pages/form_blocks.js.rjs +0 -1
- data/app/views/cms_admin/pages/index.html.haml +0 -6
- data/app/views/cms_admin/pages/new.html.haml +0 -9
- data/app/views/cms_admin/sections/show.html.haml +0 -23
- data/app/views/cms_admin/snippets/_form.html.haml +0 -10
- data/app/views/cms_admin/snippets/edit.html.haml +0 -10
- data/app/views/cms_admin/snippets/index.html.haml +0 -26
- data/app/views/cms_admin/snippets/new.html.haml +0 -8
- data/app/views/cms_content/show.xml.rxml +0 -27
- data/app/views/cms_content/sitemap.xml.rxml +0 -16
- data/app/views/layouts/cms_admin.html.haml +0 -44
- data/config/cms_routes.rb +0 -25
- data/generators/cms/cms_generator.rb +0 -55
- data/generators/cms/templates/images/arrow_bottom.gif +0 -0
- data/generators/cms/templates/images/arrow_right.gif +0 -0
- data/generators/cms/templates/images/icon_attachment.gif +0 -0
- data/generators/cms/templates/images/icon_category.gif +0 -0
- data/generators/cms/templates/images/icon_draft.gif +0 -0
- data/generators/cms/templates/images/icon_layout.gif +0 -0
- data/generators/cms/templates/images/icon_move.gif +0 -0
- data/generators/cms/templates/images/icon_snippet.gif +0 -0
- data/generators/cms/templates/images/logo.png +0 -0
- data/generators/cms/templates/initializers/cms.rb +0 -14
- data/generators/cms/templates/initializers/paperclip.rb +0 -14
- data/generators/cms/templates/javascripts/codemirror_init.js +0 -16
- data/generators/cms/templates/javascripts/mce_init.js +0 -17
- data/generators/cms/templates/javascripts/utilities.js +0 -27
- data/generators/cms/templates/migrations/create_cms.rb +0 -113
- data/generators/cms/templates/stylesheets/cms_master.sass +0 -414
- data/init.rb +0 -1
- data/lib/comfortable_mexican_sofa/acts_as_categorized.rb +0 -87
- data/lib/comfortable_mexican_sofa/acts_as_published.rb +0 -60
- data/lib/comfortable_mexican_sofa/cms_tags/attachment.rb +0 -3
- data/lib/comfortable_mexican_sofa/cms_tags/block.rb +0 -117
- data/lib/comfortable_mexican_sofa/cms_tags/helper.rb +0 -3
- data/lib/comfortable_mexican_sofa/cms_tags/page_block.rb +0 -119
- data/lib/comfortable_mexican_sofa/cms_tags/partial.rb +0 -19
- data/lib/comfortable_mexican_sofa/cms_tags/snippet.rb +0 -19
- data/rails/init.rb +0 -1
- data/test/fixtures/cms_attachment_categorizations.yml +0 -7
- data/test/fixtures/cms_attachments.yml +0 -6
- data/test/fixtures/cms_categories.yml +0 -19
- data/test/fixtures/cms_page_categorizations.yml +0 -15
- data/test/fixtures/files/upload_file.txt +0 -1
- data/test/functional/cms_admin/attachments_controller_test.rb +0 -63
- data/test/functional/cms_admin/categories_controller_test.rb +0 -86
- data/test/functional/cms_admin/sections_controller_test.rb +0 -9
- data/test/models/cms_attachment_test.rb +0 -16
- data/test/models/cms_block_test.rb +0 -11
- data/test/models/cms_categorization_test.rb +0 -39
- data/test/models/cms_category_test.rb +0 -71
- data/test/models/cms_layout_test.rb +0 -44
- data/test/models/cms_page_test.rb +0 -55
- data/test/models/cms_snippet_test.rb +0 -16
- data/test/models/cms_tag_test.rb +0 -70
- data/test/rails_root/README +0 -243
- data/test/rails_root/Rakefile +0 -10
- data/test/rails_root/app/controllers/application_controller.rb +0 -10
- data/test/rails_root/app/helpers/application_helper.rb +0 -3
- data/test/rails_root/app/views/cms/under-development.html.haml +0 -1
- data/test/rails_root/app/views/complex_page/_example.html.erb +0 -1
- data/test/rails_root/config/boot.rb +0 -110
- data/test/rails_root/config/environment.rb +0 -48
- data/test/rails_root/config/environments/development.rb +0 -17
- data/test/rails_root/config/environments/production.rb +0 -28
- data/test/rails_root/config/environments/test.rb +0 -28
- data/test/rails_root/config/initializers/new_rails_defaults.rb +0 -19
- data/test/rails_root/config/initializers/session_store.rb +0 -15
- data/test/rails_root/config/routes.rb +0 -43
- data/test/rails_root/doc/README_FOR_APP +0 -2
- data/test/rails_root/public/404.html +0 -30
- data/test/rails_root/public/422.html +0 -30
- data/test/rails_root/public/500.html +0 -30
- data/test/rails_root/public/images/rails.png +0 -0
- data/test/rails_root/public/index.html +0 -275
- data/test/rails_root/public/javascripts/application.js +0 -2
- data/test/rails_root/public/javascripts/controls.js +0 -963
- data/test/rails_root/public/javascripts/dragdrop.js +0 -973
- data/test/rails_root/public/javascripts/effects.js +0 -1128
- data/test/rails_root/public/javascripts/prototype.js +0 -4320
- data/test/rails_root/public/stylesheets/sass/cms_master.sass +0 -414
- data/test/rails_root/script/about +0 -4
- data/test/rails_root/script/console +0 -3
- data/test/rails_root/script/dbconsole +0 -3
- data/test/rails_root/script/destroy +0 -3
- data/test/rails_root/script/generate +0 -3
- data/test/rails_root/script/performance/benchmarker +0 -3
- data/test/rails_root/script/performance/profiler +0 -3
- data/test/rails_root/script/plugin +0 -3
- data/test/rails_root/script/runner +0 -3
- data/test/rails_root/script/server +0 -3
@@ -0,0 +1,30 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../test_helper'
|
2
|
+
|
3
|
+
class PartialTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
def test_initialize_tag
|
6
|
+
%w(
|
7
|
+
<cms:partial:partial_name/>
|
8
|
+
<cms:partial:path/to/partial>
|
9
|
+
).each do |tag_signature|
|
10
|
+
assert tag = CmsTag::Partial.initialize_tag(cms_pages(:default), tag_signature)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_initialize_tag_failure
|
15
|
+
%w(
|
16
|
+
<cms:partial>
|
17
|
+
<cms:not_partial:label/>
|
18
|
+
not_a_tag
|
19
|
+
).each do |tag_signature|
|
20
|
+
assert_nil CmsTag::Partial.initialize_tag(cms_pages(:default), tag_signature)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_content_and_render
|
25
|
+
tag = CmsTag::Partial.initialize_tag(cms_pages(:default), "<cms:partial:path/to/patial>")
|
26
|
+
assert_equal "<%= render :partial => 'path/to/patial' %>", tag.content
|
27
|
+
assert_equal "<%= render :partial => 'path/to/patial' %>", tag.render
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../test_helper'
|
2
|
+
|
3
|
+
class SnippetTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
def test_initialize_tag
|
6
|
+
%w(
|
7
|
+
<cms:snippet:label/>
|
8
|
+
<cms:snippet:label>
|
9
|
+
).each do |tag_signature|
|
10
|
+
assert tag = CmsTag::Snippet.initialize_tag(cms_pages(:default), tag_signature)
|
11
|
+
assert_equal 'label', tag.label
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_initialize_tag_failure
|
16
|
+
%w(
|
17
|
+
<cms:snippet>
|
18
|
+
<cms:not_snippet:label/>
|
19
|
+
not_a_tag
|
20
|
+
).each do |tag_signature|
|
21
|
+
assert_nil CmsTag::Snippet.initialize_tag(cms_pages(:default), tag_signature)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_content_and_render
|
26
|
+
tag = CmsTag::Snippet.initialize_tag(cms_pages(:default), "<cms:snippet:default>")
|
27
|
+
assert_equal 'default_snippet_content', tag.content
|
28
|
+
assert_equal 'default_snippet_content', tag.render
|
29
|
+
|
30
|
+
tag = CmsTag::Snippet.initialize_tag(cms_pages(:default), "<cms:snippet:doesnot_exist>")
|
31
|
+
assert_equal nil, tag.content
|
32
|
+
assert_equal '', tag.render
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
|
3
|
+
class CmsUploadTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
def test_validations
|
6
|
+
assert_no_difference 'CmsUpload.count' do
|
7
|
+
upload = CmsUpload.create
|
8
|
+
assert upload.errors.present?
|
9
|
+
assert_has_errors_on upload, [:file_file_name]
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_create
|
14
|
+
assert_difference 'CmsUpload.count', 2 do
|
15
|
+
upload = CmsUpload.create(:file => fixture_file_upload('files/valid_image.jpg', 'image/jpeg'))
|
16
|
+
assert upload.image?
|
17
|
+
upload = CmsUpload.create(:uploaded_file => fixture_file_upload('files/valid_image.jpg'))
|
18
|
+
assert upload.image?
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_create_fails_on_invalid_file
|
23
|
+
assert_no_difference 'CmsUpload.count' do
|
24
|
+
upload = CmsUpload.create(:file => fixture_file_upload('files/invalid_file.gif', 'image/gif'))
|
25
|
+
assert upload.errors.present?
|
26
|
+
assert_has_errors_on upload, :file
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
metadata
CHANGED
@@ -1,67 +1,72 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comfortable_mexican_sofa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 23
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
|
-
- Oleg Khabarov
|
13
|
+
- Oleg Khabarov
|
14
|
+
- The Working Group Inc
|
8
15
|
autorequire:
|
9
16
|
bindir: bin
|
10
17
|
cert_chain: []
|
11
18
|
|
12
|
-
date:
|
19
|
+
date: 2010-10-13 00:00:00 -04:00
|
13
20
|
default_executable:
|
14
21
|
dependencies:
|
15
22
|
- !ruby/object:Gem::Dependency
|
16
|
-
|
17
|
-
|
18
|
-
version_requirement:
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
20
25
|
requirements:
|
21
26
|
- - ">="
|
22
27
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
25
|
-
-
|
26
|
-
|
28
|
+
hash: 7
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 0
|
32
|
+
- 0
|
33
|
+
version: 3.0.0
|
27
34
|
type: :runtime
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: "0"
|
34
|
-
version:
|
35
|
+
name: rails
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: *id001
|
35
38
|
- !ruby/object:Gem::Dependency
|
36
|
-
|
37
|
-
|
38
|
-
version_requirement:
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
40
41
|
requirements:
|
41
42
|
- - ">="
|
42
43
|
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
45
|
-
-
|
46
|
-
|
44
|
+
hash: 19
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 0
|
48
|
+
- 6
|
49
|
+
version: 0.0.6
|
47
50
|
type: :runtime
|
48
|
-
version_requirement:
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: "0"
|
54
|
-
version:
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
51
|
name: active_link_to
|
57
|
-
|
58
|
-
|
59
|
-
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: *id002
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
60
57
|
requirements:
|
61
58
|
- - ">="
|
62
59
|
- !ruby/object:Gem::Version
|
63
|
-
|
64
|
-
|
60
|
+
hash: 5
|
61
|
+
segments:
|
62
|
+
- 2
|
63
|
+
- 3
|
64
|
+
- 3
|
65
|
+
version: 2.3.3
|
66
|
+
type: :runtime
|
67
|
+
name: paperclip
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *id003
|
65
70
|
description: ""
|
66
71
|
email: oleg@theworkinggroup.ca
|
67
72
|
executables: []
|
@@ -69,182 +74,138 @@ executables: []
|
|
69
74
|
extensions: []
|
70
75
|
|
71
76
|
extra_rdoc_files:
|
72
|
-
-
|
73
|
-
- README.rdoc
|
77
|
+
- README.md
|
74
78
|
files:
|
75
79
|
- .gitignore
|
76
|
-
-
|
77
|
-
-
|
78
|
-
- README.
|
80
|
+
- Gemfile
|
81
|
+
- Gemfile.lock
|
82
|
+
- README.md
|
79
83
|
- Rakefile
|
80
84
|
- VERSION
|
81
|
-
- app/controllers/
|
85
|
+
- app/controllers/application_controller.rb
|
82
86
|
- app/controllers/cms_admin/base_controller.rb
|
83
|
-
- app/controllers/cms_admin/categories_controller.rb
|
84
87
|
- app/controllers/cms_admin/layouts_controller.rb
|
85
88
|
- app/controllers/cms_admin/pages_controller.rb
|
86
|
-
- app/controllers/cms_admin/sections_controller.rb
|
87
89
|
- app/controllers/cms_admin/snippets_controller.rb
|
88
|
-
- app/controllers/
|
90
|
+
- app/controllers/cms_admin/uploads_controller.rb
|
89
91
|
- app/controllers/cms_content_controller.rb
|
90
|
-
- app/helpers/cms_helper.rb
|
91
|
-
- app/models/cms_attachment.rb
|
92
|
-
- app/models/cms_attachment_categorization.rb
|
93
92
|
- app/models/cms_block.rb
|
94
|
-
- app/models/cms_category.rb
|
95
93
|
- app/models/cms_layout.rb
|
96
94
|
- app/models/cms_page.rb
|
97
|
-
- app/models/cms_page_categorization.rb
|
98
95
|
- app/models/cms_snippet.rb
|
99
|
-
- app/
|
100
|
-
- app/views/cms_admin/
|
101
|
-
- app/views/cms_admin/
|
102
|
-
- app/views/cms_admin/
|
103
|
-
- app/views/cms_admin/
|
104
|
-
- app/views/cms_admin/
|
105
|
-
- app/views/cms_admin/
|
106
|
-
- app/views/cms_admin/
|
107
|
-
- app/views/cms_admin/
|
108
|
-
- app/views/cms_admin/
|
109
|
-
- app/views/cms_admin/
|
110
|
-
- app/views/cms_admin/
|
111
|
-
- app/views/cms_admin/
|
112
|
-
- app/views/cms_admin/
|
113
|
-
- app/views/cms_admin/
|
114
|
-
- app/views/cms_admin/
|
115
|
-
- app/views/cms_admin/
|
116
|
-
- app/views/cms_admin/
|
117
|
-
- app/views/cms_admin/
|
118
|
-
- app/views/cms_admin/
|
119
|
-
- app/views/cms_admin/
|
120
|
-
- app/views/
|
121
|
-
- app/views/cms_admin/layouts/edit.html.haml
|
122
|
-
- app/views/cms_admin/layouts/index.html.haml
|
123
|
-
- app/views/cms_admin/layouts/new.html.haml
|
124
|
-
- app/views/cms_admin/pages/_details.html.haml
|
125
|
-
- app/views/cms_admin/pages/_form.html.haml
|
126
|
-
- app/views/cms_admin/pages/_form_blocks.html.haml
|
127
|
-
- app/views/cms_admin/pages/_toggle_link.html.haml
|
128
|
-
- app/views/cms_admin/pages/_tree_branch.html.haml
|
129
|
-
- app/views/cms_admin/pages/children.js.rjs
|
130
|
-
- app/views/cms_admin/pages/edit.html.haml
|
131
|
-
- app/views/cms_admin/pages/form_blocks.js.rjs
|
132
|
-
- app/views/cms_admin/pages/index.html.haml
|
133
|
-
- app/views/cms_admin/pages/new.html.haml
|
134
|
-
- app/views/cms_admin/sections/show.html.haml
|
135
|
-
- app/views/cms_admin/snippets/_form.html.haml
|
136
|
-
- app/views/cms_admin/snippets/edit.html.haml
|
137
|
-
- app/views/cms_admin/snippets/index.html.haml
|
138
|
-
- app/views/cms_admin/snippets/new.html.haml
|
139
|
-
- app/views/cms_content/show.xml.rxml
|
140
|
-
- app/views/cms_content/sitemap.xml.rxml
|
141
|
-
- app/views/layouts/cms_admin.html.haml
|
96
|
+
- app/models/cms_upload.rb
|
97
|
+
- app/views/cms_admin/layouts/_form.html.erb
|
98
|
+
- app/views/cms_admin/layouts/_index_branch.html.erb
|
99
|
+
- app/views/cms_admin/layouts/edit.html.erb
|
100
|
+
- app/views/cms_admin/layouts/index.html.erb
|
101
|
+
- app/views/cms_admin/layouts/new.html.erb
|
102
|
+
- app/views/cms_admin/pages/_form.html.erb
|
103
|
+
- app/views/cms_admin/pages/_form_blocks.html.erb
|
104
|
+
- app/views/cms_admin/pages/_index_branch.html.erb
|
105
|
+
- app/views/cms_admin/pages/edit.html.erb
|
106
|
+
- app/views/cms_admin/pages/form_blocks.js.erb
|
107
|
+
- app/views/cms_admin/pages/index.html.erb
|
108
|
+
- app/views/cms_admin/pages/new.html.erb
|
109
|
+
- app/views/cms_admin/snippets/_form.html.erb
|
110
|
+
- app/views/cms_admin/snippets/edit.html.erb
|
111
|
+
- app/views/cms_admin/snippets/index.html.erb
|
112
|
+
- app/views/cms_admin/snippets/new.html.erb
|
113
|
+
- app/views/cms_admin/uploads/_index.html.erb
|
114
|
+
- app/views/cms_admin/uploads/_upload.html.erb
|
115
|
+
- app/views/cms_admin/uploads/destroy.js.erb
|
116
|
+
- app/views/cms_admin/uploads/index.html.erb
|
117
|
+
- app/views/layouts/cms_admin.html.erb
|
142
118
|
- comfortable_mexican_sofa.gemspec
|
143
|
-
- config
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
154
|
-
-
|
155
|
-
-
|
156
|
-
-
|
157
|
-
-
|
158
|
-
-
|
159
|
-
-
|
160
|
-
-
|
161
|
-
-
|
162
|
-
- generators/cms/templates/stylesheets/cms_master.sass
|
163
|
-
- init.rb
|
119
|
+
- config.ru
|
120
|
+
- config/application.rb
|
121
|
+
- config/boot.rb
|
122
|
+
- config/database.yml
|
123
|
+
- config/environment.rb
|
124
|
+
- config/environments/development.rb
|
125
|
+
- config/environments/production.rb
|
126
|
+
- config/environments/test.rb
|
127
|
+
- config/initializers/backtrace_silencers.rb
|
128
|
+
- config/initializers/inflections.rb
|
129
|
+
- config/initializers/mime_types.rb
|
130
|
+
- config/initializers/paperclip.rb
|
131
|
+
- config/initializers/secret_token.rb
|
132
|
+
- config/initializers/session_store.rb
|
133
|
+
- config/locales/en.yml
|
134
|
+
- config/routes.rb
|
135
|
+
- db/migrate/01_create_cms.rb
|
136
|
+
- db/seeds.rb
|
137
|
+
- doc/README_FOR_APP
|
164
138
|
- lib/comfortable_mexican_sofa.rb
|
165
|
-
- lib/comfortable_mexican_sofa/acts_as_categorized.rb
|
166
|
-
- lib/comfortable_mexican_sofa/acts_as_published.rb
|
167
139
|
- lib/comfortable_mexican_sofa/cms_acts_as_tree.rb
|
140
|
+
- lib/comfortable_mexican_sofa/cms_form_builder.rb
|
168
141
|
- lib/comfortable_mexican_sofa/cms_rails_extensions.rb
|
169
142
|
- lib/comfortable_mexican_sofa/cms_tag.rb
|
170
|
-
- lib/comfortable_mexican_sofa/
|
171
|
-
- lib/comfortable_mexican_sofa/
|
172
|
-
- lib/comfortable_mexican_sofa/
|
173
|
-
- lib/comfortable_mexican_sofa/
|
174
|
-
- lib/comfortable_mexican_sofa/
|
175
|
-
- lib/comfortable_mexican_sofa/
|
176
|
-
-
|
177
|
-
-
|
178
|
-
-
|
143
|
+
- lib/comfortable_mexican_sofa/cms_tag/field_datetime.rb
|
144
|
+
- lib/comfortable_mexican_sofa/cms_tag/field_integer.rb
|
145
|
+
- lib/comfortable_mexican_sofa/cms_tag/field_string.rb
|
146
|
+
- lib/comfortable_mexican_sofa/cms_tag/field_text.rb
|
147
|
+
- lib/comfortable_mexican_sofa/cms_tag/page_datetime.rb
|
148
|
+
- lib/comfortable_mexican_sofa/cms_tag/page_integer.rb
|
149
|
+
- lib/comfortable_mexican_sofa/cms_tag/page_string.rb
|
150
|
+
- lib/comfortable_mexican_sofa/cms_tag/page_text.rb
|
151
|
+
- lib/comfortable_mexican_sofa/cms_tag/partial.rb
|
152
|
+
- lib/comfortable_mexican_sofa/cms_tag/snippet.rb
|
153
|
+
- lib/generators/README
|
154
|
+
- lib/generators/cms_generator.rb
|
155
|
+
- public/404.html
|
156
|
+
- public/422.html
|
157
|
+
- public/500.html
|
158
|
+
- public/favicon.ico
|
159
|
+
- public/images/comfortable_mexican_sofa/body_bg.jpg
|
160
|
+
- public/images/comfortable_mexican_sofa/icon_regular.gif
|
161
|
+
- public/javascripts/comfortable_mexican_sofa/cms.js
|
162
|
+
- public/javascripts/comfortable_mexican_sofa/jquery-ui.js
|
163
|
+
- public/javascripts/comfortable_mexican_sofa/jquery.js
|
164
|
+
- public/javascripts/comfortable_mexican_sofa/plupload/plupload.full.min.js
|
165
|
+
- public/javascripts/comfortable_mexican_sofa/plupload/plupload.html4.min.js
|
166
|
+
- public/javascripts/comfortable_mexican_sofa/plupload/plupload.html5.min.js
|
167
|
+
- public/javascripts/comfortable_mexican_sofa/rails.js
|
168
|
+
- public/javascripts/comfortable_mexican_sofa/uploader.js
|
169
|
+
- public/robots.txt
|
170
|
+
- public/stylesheets/comfortable_mexican_sofa/jquery-ui.css
|
171
|
+
- public/stylesheets/comfortable_mexican_sofa/reset.css
|
172
|
+
- public/stylesheets/comfortable_mexican_sofa/structure.css
|
173
|
+
- public/stylesheets/comfortable_mexican_sofa/typography.css
|
174
|
+
- script/rails
|
175
|
+
- test/fixtures/README.md
|
179
176
|
- test/fixtures/cms_blocks.yml
|
180
|
-
- test/fixtures/cms_categories.yml
|
181
177
|
- test/fixtures/cms_layouts.yml
|
182
|
-
- test/fixtures/cms_page_categorizations.yml
|
183
178
|
- test/fixtures/cms_pages.yml
|
184
179
|
- test/fixtures/cms_snippets.yml
|
185
|
-
- test/fixtures/
|
186
|
-
- test/
|
187
|
-
- test/
|
180
|
+
- test/fixtures/cms_uploads.yml
|
181
|
+
- test/fixtures/files/invalid_file.gif
|
182
|
+
- test/fixtures/files/valid_image.jpg
|
183
|
+
- test/functional/cms_admin/base_controller_test.rb
|
188
184
|
- test/functional/cms_admin/layouts_controller_test.rb
|
189
185
|
- test/functional/cms_admin/pages_controller_test.rb
|
190
|
-
- test/functional/cms_admin/sections_controller_test.rb
|
191
186
|
- test/functional/cms_admin/snippets_controller_test.rb
|
187
|
+
- test/functional/cms_admin/uploads_controller_test.rb
|
192
188
|
- test/functional/cms_content_controller_test.rb
|
193
|
-
- test/models/cms_attachment_test.rb
|
194
|
-
- test/models/cms_block_test.rb
|
195
|
-
- test/models/cms_categorization_test.rb
|
196
|
-
- test/models/cms_category_test.rb
|
197
|
-
- test/models/cms_layout_test.rb
|
198
|
-
- test/models/cms_page_test.rb
|
199
|
-
- test/models/cms_snippet_test.rb
|
200
|
-
- test/models/cms_tag_test.rb
|
201
|
-
- test/rails_root/README
|
202
|
-
- test/rails_root/Rakefile
|
203
|
-
- test/rails_root/app/controllers/application_controller.rb
|
204
|
-
- test/rails_root/app/helpers/application_helper.rb
|
205
|
-
- test/rails_root/app/views/cms/under-development.html.haml
|
206
|
-
- test/rails_root/app/views/complex_page/_example.html.erb
|
207
|
-
- test/rails_root/config/boot.rb
|
208
|
-
- test/rails_root/config/database.yml
|
209
|
-
- test/rails_root/config/environment.rb
|
210
|
-
- test/rails_root/config/environments/development.rb
|
211
|
-
- test/rails_root/config/environments/production.rb
|
212
|
-
- test/rails_root/config/environments/test.rb
|
213
|
-
- test/rails_root/config/initializers/backtrace_silencers.rb
|
214
|
-
- test/rails_root/config/initializers/inflections.rb
|
215
|
-
- test/rails_root/config/initializers/mime_types.rb
|
216
|
-
- test/rails_root/config/initializers/new_rails_defaults.rb
|
217
|
-
- test/rails_root/config/initializers/session_store.rb
|
218
|
-
- test/rails_root/config/locales/en.yml
|
219
|
-
- test/rails_root/config/routes.rb
|
220
|
-
- test/rails_root/doc/README_FOR_APP
|
221
|
-
- test/rails_root/public/404.html
|
222
|
-
- test/rails_root/public/422.html
|
223
|
-
- test/rails_root/public/500.html
|
224
|
-
- test/rails_root/public/favicon.ico
|
225
|
-
- test/rails_root/public/images/rails.png
|
226
|
-
- test/rails_root/public/index.html
|
227
|
-
- test/rails_root/public/javascripts/application.js
|
228
|
-
- test/rails_root/public/javascripts/controls.js
|
229
|
-
- test/rails_root/public/javascripts/dragdrop.js
|
230
|
-
- test/rails_root/public/javascripts/effects.js
|
231
|
-
- test/rails_root/public/javascripts/prototype.js
|
232
|
-
- test/rails_root/public/robots.txt
|
233
|
-
- test/rails_root/public/stylesheets/sass/cms_master.sass
|
234
|
-
- test/rails_root/script/about
|
235
|
-
- test/rails_root/script/console
|
236
|
-
- test/rails_root/script/dbconsole
|
237
|
-
- test/rails_root/script/destroy
|
238
|
-
- test/rails_root/script/generate
|
239
|
-
- test/rails_root/script/performance/benchmarker
|
240
|
-
- test/rails_root/script/performance/profiler
|
241
|
-
- test/rails_root/script/plugin
|
242
|
-
- test/rails_root/script/runner
|
243
|
-
- test/rails_root/script/server
|
244
|
-
- test/rails_root/vendor/plugins/.gitignore
|
245
189
|
- test/test_helper.rb
|
190
|
+
- test/unit/cms_block_test.rb
|
191
|
+
- test/unit/cms_layout_test.rb
|
192
|
+
- test/unit/cms_page_test.rb
|
193
|
+
- test/unit/cms_snippet_test.rb
|
194
|
+
- test/unit/cms_tag_test.rb
|
195
|
+
- test/unit/cms_tags/field_datetime_test.rb
|
196
|
+
- test/unit/cms_tags/field_integer_test.rb
|
197
|
+
- test/unit/cms_tags/field_string_test.rb
|
198
|
+
- test/unit/cms_tags/field_text_test.rb
|
199
|
+
- test/unit/cms_tags/page_datetime_test.rb
|
200
|
+
- test/unit/cms_tags/page_integer_test.rb
|
201
|
+
- test/unit/cms_tags/page_string_test.rb
|
202
|
+
- test/unit/cms_tags/page_text_test.rb
|
203
|
+
- test/unit/cms_tags/partial_test.rb
|
204
|
+
- test/unit/cms_tags/snippet_test.rb
|
205
|
+
- test/unit/cms_upload_test.rb
|
206
|
+
- tmp/restart.txt
|
246
207
|
has_rdoc: true
|
247
|
-
homepage: http://theworkinggroup
|
208
|
+
homepage: http://github.com/theworkinggroup/comfortable-mexican-sofa
|
248
209
|
licenses: []
|
249
210
|
|
250
211
|
post_install_message:
|
@@ -253,51 +214,51 @@ rdoc_options:
|
|
253
214
|
require_paths:
|
254
215
|
- lib
|
255
216
|
required_ruby_version: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
256
218
|
requirements:
|
257
219
|
- - ">="
|
258
220
|
- !ruby/object:Gem::Version
|
221
|
+
hash: 3
|
222
|
+
segments:
|
223
|
+
- 0
|
259
224
|
version: "0"
|
260
|
-
version:
|
261
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
|
+
none: false
|
262
227
|
requirements:
|
263
228
|
- - ">="
|
264
229
|
- !ruby/object:Gem::Version
|
230
|
+
hash: 3
|
231
|
+
segments:
|
232
|
+
- 0
|
265
233
|
version: "0"
|
266
|
-
version:
|
267
234
|
requirements: []
|
268
235
|
|
269
|
-
rubyforge_project:
|
270
|
-
rubygems_version: 1.3.
|
236
|
+
rubyforge_project:
|
237
|
+
rubygems_version: 1.3.7
|
271
238
|
signing_key:
|
272
239
|
specification_version: 3
|
273
240
|
summary: ComfortableMexicanSofa is a Rails Engine CMS gem
|
274
241
|
test_files:
|
275
|
-
- test/functional/cms_admin/
|
276
|
-
- test/functional/cms_admin/categories_controller_test.rb
|
242
|
+
- test/functional/cms_admin/base_controller_test.rb
|
277
243
|
- test/functional/cms_admin/layouts_controller_test.rb
|
278
244
|
- test/functional/cms_admin/pages_controller_test.rb
|
279
|
-
- test/functional/cms_admin/sections_controller_test.rb
|
280
245
|
- test/functional/cms_admin/snippets_controller_test.rb
|
246
|
+
- test/functional/cms_admin/uploads_controller_test.rb
|
281
247
|
- test/functional/cms_content_controller_test.rb
|
282
|
-
- test/models/cms_attachment_test.rb
|
283
|
-
- test/models/cms_block_test.rb
|
284
|
-
- test/models/cms_categorization_test.rb
|
285
|
-
- test/models/cms_category_test.rb
|
286
|
-
- test/models/cms_layout_test.rb
|
287
|
-
- test/models/cms_page_test.rb
|
288
|
-
- test/models/cms_snippet_test.rb
|
289
|
-
- test/models/cms_tag_test.rb
|
290
|
-
- test/rails_root/app/controllers/application_controller.rb
|
291
|
-
- test/rails_root/app/helpers/application_helper.rb
|
292
|
-
- test/rails_root/config/boot.rb
|
293
|
-
- test/rails_root/config/environment.rb
|
294
|
-
- test/rails_root/config/environments/development.rb
|
295
|
-
- test/rails_root/config/environments/production.rb
|
296
|
-
- test/rails_root/config/environments/test.rb
|
297
|
-
- test/rails_root/config/initializers/backtrace_silencers.rb
|
298
|
-
- test/rails_root/config/initializers/inflections.rb
|
299
|
-
- test/rails_root/config/initializers/mime_types.rb
|
300
|
-
- test/rails_root/config/initializers/new_rails_defaults.rb
|
301
|
-
- test/rails_root/config/initializers/session_store.rb
|
302
|
-
- test/rails_root/config/routes.rb
|
303
248
|
- test/test_helper.rb
|
249
|
+
- test/unit/cms_block_test.rb
|
250
|
+
- test/unit/cms_layout_test.rb
|
251
|
+
- test/unit/cms_page_test.rb
|
252
|
+
- test/unit/cms_snippet_test.rb
|
253
|
+
- test/unit/cms_tag_test.rb
|
254
|
+
- test/unit/cms_tags/field_datetime_test.rb
|
255
|
+
- test/unit/cms_tags/field_integer_test.rb
|
256
|
+
- test/unit/cms_tags/field_string_test.rb
|
257
|
+
- test/unit/cms_tags/field_text_test.rb
|
258
|
+
- test/unit/cms_tags/page_datetime_test.rb
|
259
|
+
- test/unit/cms_tags/page_integer_test.rb
|
260
|
+
- test/unit/cms_tags/page_string_test.rb
|
261
|
+
- test/unit/cms_tags/page_text_test.rb
|
262
|
+
- test/unit/cms_tags/partial_test.rb
|
263
|
+
- test/unit/cms_tags/snippet_test.rb
|
264
|
+
- test/unit/cms_upload_test.rb
|