comfortable_mexican_sofa 0.0.18 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.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
data/app/models/cms_snippet.rb
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
class CmsSnippet < ActiveRecord::Base
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
# -- Validations ----------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
:
|
|
4
|
+
|
|
5
|
+
validates :label,
|
|
6
|
+
:presence => true,
|
|
7
|
+
:uniqueness => true,
|
|
8
|
+
:format => { :with => /^\w[a-z0-9_-]*$/i }
|
|
8
9
|
|
|
9
10
|
# -- Class Methods --------------------------------------------------------
|
|
11
|
+
|
|
10
12
|
def self.content_for(label)
|
|
11
|
-
s = find_by_label(label)
|
|
12
|
-
s.blank? ? '' : s.content
|
|
13
|
+
(s = find_by_label(label)) ? s.content : ''
|
|
13
14
|
end
|
|
14
15
|
|
|
16
|
+
def self.initialize_or_find(cms_page, label)
|
|
17
|
+
find_by_label(label) || new(:label => label)
|
|
18
|
+
end
|
|
19
|
+
|
|
15
20
|
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
class CmsUpload < ActiveRecord::Base
|
|
2
|
+
|
|
3
|
+
# -- AR Extensions --------------------------------------------------------
|
|
4
|
+
has_attached_file :file,
|
|
5
|
+
:styles => { :thumb => '48x48>' }
|
|
6
|
+
|
|
7
|
+
before_post_process :image?
|
|
8
|
+
|
|
9
|
+
# -- Relationships --------------------------------------------------------
|
|
10
|
+
belongs_to :cms_page
|
|
11
|
+
|
|
12
|
+
# -- Validations ----------------------------------------------------------
|
|
13
|
+
validates_attachment_presence :file
|
|
14
|
+
|
|
15
|
+
# -- Instance Methods -----------------------------------------------------
|
|
16
|
+
def image?
|
|
17
|
+
!(file_content_type =~ /^image.*/).nil?
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def uploaded_file=(data)
|
|
21
|
+
if data.present?
|
|
22
|
+
data.content_type = MIME::Types.type_for(data.original_filename).to_s
|
|
23
|
+
self.file = data
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def icon
|
|
28
|
+
if self.image?
|
|
29
|
+
self.file.url(:thumb)
|
|
30
|
+
else
|
|
31
|
+
ext = self.file_file_name.split('.').last
|
|
32
|
+
FILE_ICONS.include?(ext) ? "cms/file_icons/#{ext}.png" : "cms/file_icons/_blank.png"
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<%= form.text_field :label, :label => 'Layout Name' %>
|
|
2
|
+
<%= form.select :parent_id, CmsLayout.options_for_select(@cms_layout), :include_blank => true %>
|
|
3
|
+
<%= form.select :app_layout, CmsLayout.app_layouts_for_select, :include_blank => true %>
|
|
4
|
+
<%= form.text_area :content %>
|
|
5
|
+
<%= form.text_area :css %>
|
|
6
|
+
<%= form.text_area :js %>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<% cms_layout ||= index_branch %>
|
|
2
|
+
|
|
3
|
+
<li id='cms_layout_<%= cms_layout.id %>'>
|
|
4
|
+
<div class='item'>
|
|
5
|
+
<div class='icon'>
|
|
6
|
+
<% if cms_layout.siblings.size > 0 %>
|
|
7
|
+
<div class='dragger'></div>
|
|
8
|
+
<% end %>
|
|
9
|
+
</div>
|
|
10
|
+
<div class='action_links'>
|
|
11
|
+
<%= link_to 'Add Child Layout', new_cms_admin_layout_path(:parent_id => cms_layout.id) %>
|
|
12
|
+
<%= link_to 'Edit', edit_cms_admin_layout_path(cms_layout) %>
|
|
13
|
+
<%= link_to 'Delete', cms_admin_layout_path(cms_layout), :method => :delete, :confirm => 'Are you sure?' %>
|
|
14
|
+
</div>
|
|
15
|
+
<div class='label'>
|
|
16
|
+
<%= link_to cms_layout.label, edit_cms_admin_layout_path(cms_layout) %>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<% if cms_layout.children.present? %>
|
|
20
|
+
<ul>
|
|
21
|
+
<%= render :partial => 'index_branch', :collection => cms_layout.children %>
|
|
22
|
+
</ul>
|
|
23
|
+
<% end %>
|
|
24
|
+
</li>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<%= form.text_field :label, :id => (@cms_page.new_record?? 'slugify' : nil) %>
|
|
2
|
+
|
|
3
|
+
<div class='page_form_extras'>
|
|
4
|
+
<%= form.text_field :slug, :id => 'slug' %>
|
|
5
|
+
<%= form.select :cms_layout_id, CmsLayout.options_for_select, {}, 'data-page-id' => @cms_page.id.to_i, :label => 'Layout' %>
|
|
6
|
+
<%= form.select :parent_id, CmsPage.options_for_select(@cms_page) %>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<%= render :partial => 'form_blocks' %>
|
|
10
|
+
|
|
11
|
+
<% content_for :right_column do %>
|
|
12
|
+
<h2>Uploads</h2>
|
|
13
|
+
<%= render :partial => 'cms_admin/uploads/index' %>
|
|
14
|
+
<% end %>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<% cms_page ||= index_branch %>
|
|
2
|
+
|
|
3
|
+
<li id='cms_page_<%= cms_page.id %>'>
|
|
4
|
+
<div class='item'>
|
|
5
|
+
<div class='icon'>
|
|
6
|
+
<% if cms_page.siblings.size > 0 %>
|
|
7
|
+
<div class='dragger'></div>
|
|
8
|
+
<% end %>
|
|
9
|
+
</div>
|
|
10
|
+
<div class='action_links'>
|
|
11
|
+
<%= link_to 'Add Child Page', new_cms_admin_page_path(:parent_id => cms_page.id) %>
|
|
12
|
+
<%= link_to 'Edit', edit_cms_admin_page_path(cms_page) %>
|
|
13
|
+
<%= link_to 'Delete', cms_admin_page_path(cms_page), :method => :delete, :confirm => 'Are you sure?' %>
|
|
14
|
+
</div>
|
|
15
|
+
<div class='label'>
|
|
16
|
+
<%= link_to cms_page.label, edit_cms_admin_page_path(cms_page) %>
|
|
17
|
+
<div class='url'>
|
|
18
|
+
<%= link_to cms_page.full_path, cms_page.full_path %>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<% if cms_page.children.present? %>
|
|
23
|
+
<ul>
|
|
24
|
+
<%= render :partial => 'index_branch', :collection => cms_page.children %>
|
|
25
|
+
</ul>
|
|
26
|
+
<% end %>
|
|
27
|
+
</li>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$('#form_blocks').replaceWith('<%= escape_javascript(render(:partial => "form_blocks")) %>')
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<div class='upload' id="<%= dom_id(upload) %>">
|
|
2
|
+
<div class='thumb'>
|
|
3
|
+
<%= image_tag(upload.icon) %>
|
|
4
|
+
<%= link_to 'delete', cms_admin_upload_path(upload), :method => :delete, :remote => true %>
|
|
5
|
+
</div>
|
|
6
|
+
<div class='name'>
|
|
7
|
+
<%= link_to upload.file_file_name, upload.file.url, :target => '_blank' %>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
|
5
|
+
<title>Comfortable Mexican Sofa</title>
|
|
6
|
+
<%= csrf_meta_tag %>
|
|
7
|
+
<%= stylesheet_link_tag :cms %>
|
|
8
|
+
<%= javascript_include_tag :cms %>
|
|
9
|
+
<%= yield :head %>
|
|
10
|
+
</head>
|
|
11
|
+
<body id='cms_admin'>
|
|
12
|
+
<div class='body_wrapper'>
|
|
13
|
+
<div class='left_column'>
|
|
14
|
+
<div class='left_column_content'>
|
|
15
|
+
<%= active_link_to 'Layouts', cms_admin_layouts_path %>
|
|
16
|
+
<%= active_link_to 'Pages', cms_admin_pages_path %>
|
|
17
|
+
<%= active_link_to 'Snippets', cms_admin_snippets_path %>
|
|
18
|
+
<%= yield :left_column %>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class='right_column'>
|
|
22
|
+
<div class='right_column_content'>
|
|
23
|
+
<%= yield :right_column %>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class='center_column'>
|
|
27
|
+
<% flash.each do |type, message| %>
|
|
28
|
+
<div class='flash <%= type %>'><%= message %></div>
|
|
29
|
+
<% end %>
|
|
30
|
+
<div class='center_column_content'>
|
|
31
|
+
<%= yield %>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</body>
|
|
36
|
+
</html>
|
|
@@ -1,254 +1,198 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
|
-
# DO NOT EDIT THIS FILE
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{comfortable_mexican_sofa}
|
|
8
|
-
s.version = "0.0
|
|
8
|
+
s.version = "1.0.0"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
-
s.authors = ["Oleg Khabarov, The Working Group Inc"]
|
|
12
|
-
s.date = %q{
|
|
11
|
+
s.authors = ["Oleg Khabarov", "The Working Group Inc"]
|
|
12
|
+
s.date = %q{2010-10-13}
|
|
13
13
|
s.description = %q{}
|
|
14
14
|
s.email = %q{oleg@theworkinggroup.ca}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
16
|
-
"
|
|
17
|
-
"README.rdoc"
|
|
16
|
+
"README.md"
|
|
18
17
|
]
|
|
19
18
|
s.files = [
|
|
20
19
|
".gitignore",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"README.
|
|
20
|
+
"Gemfile",
|
|
21
|
+
"Gemfile.lock",
|
|
22
|
+
"README.md",
|
|
24
23
|
"Rakefile",
|
|
25
24
|
"VERSION",
|
|
26
|
-
"app/controllers/
|
|
25
|
+
"app/controllers/application_controller.rb",
|
|
27
26
|
"app/controllers/cms_admin/base_controller.rb",
|
|
28
|
-
"app/controllers/cms_admin/categories_controller.rb",
|
|
29
27
|
"app/controllers/cms_admin/layouts_controller.rb",
|
|
30
28
|
"app/controllers/cms_admin/pages_controller.rb",
|
|
31
|
-
"app/controllers/cms_admin/sections_controller.rb",
|
|
32
29
|
"app/controllers/cms_admin/snippets_controller.rb",
|
|
33
|
-
"app/controllers/
|
|
30
|
+
"app/controllers/cms_admin/uploads_controller.rb",
|
|
34
31
|
"app/controllers/cms_content_controller.rb",
|
|
35
|
-
"app/helpers/cms_helper.rb",
|
|
36
|
-
"app/models/cms_attachment.rb",
|
|
37
|
-
"app/models/cms_attachment_categorization.rb",
|
|
38
32
|
"app/models/cms_block.rb",
|
|
39
|
-
"app/models/cms_category.rb",
|
|
40
33
|
"app/models/cms_layout.rb",
|
|
41
34
|
"app/models/cms_page.rb",
|
|
42
|
-
"app/models/cms_page_categorization.rb",
|
|
43
35
|
"app/models/cms_snippet.rb",
|
|
44
|
-
"app/
|
|
45
|
-
"app/views/cms_admin/
|
|
46
|
-
"app/views/cms_admin/
|
|
47
|
-
"app/views/cms_admin/
|
|
48
|
-
"app/views/cms_admin/
|
|
49
|
-
"app/views/cms_admin/
|
|
50
|
-
"app/views/cms_admin/
|
|
51
|
-
"app/views/cms_admin/
|
|
52
|
-
"app/views/cms_admin/
|
|
53
|
-
"app/views/cms_admin/
|
|
54
|
-
"app/views/cms_admin/
|
|
55
|
-
"app/views/cms_admin/
|
|
56
|
-
"app/views/cms_admin/
|
|
57
|
-
"app/views/cms_admin/
|
|
58
|
-
"app/views/cms_admin/
|
|
59
|
-
"app/views/cms_admin/
|
|
60
|
-
"app/views/cms_admin/
|
|
61
|
-
"app/views/cms_admin/
|
|
62
|
-
"app/views/cms_admin/
|
|
63
|
-
"app/views/cms_admin/
|
|
64
|
-
"app/views/cms_admin/
|
|
65
|
-
"app/views/
|
|
66
|
-
"app/views/cms_admin/layouts/edit.html.haml",
|
|
67
|
-
"app/views/cms_admin/layouts/index.html.haml",
|
|
68
|
-
"app/views/cms_admin/layouts/new.html.haml",
|
|
69
|
-
"app/views/cms_admin/pages/_details.html.haml",
|
|
70
|
-
"app/views/cms_admin/pages/_form.html.haml",
|
|
71
|
-
"app/views/cms_admin/pages/_form_blocks.html.haml",
|
|
72
|
-
"app/views/cms_admin/pages/_toggle_link.html.haml",
|
|
73
|
-
"app/views/cms_admin/pages/_tree_branch.html.haml",
|
|
74
|
-
"app/views/cms_admin/pages/children.js.rjs",
|
|
75
|
-
"app/views/cms_admin/pages/edit.html.haml",
|
|
76
|
-
"app/views/cms_admin/pages/form_blocks.js.rjs",
|
|
77
|
-
"app/views/cms_admin/pages/index.html.haml",
|
|
78
|
-
"app/views/cms_admin/pages/new.html.haml",
|
|
79
|
-
"app/views/cms_admin/sections/show.html.haml",
|
|
80
|
-
"app/views/cms_admin/snippets/_form.html.haml",
|
|
81
|
-
"app/views/cms_admin/snippets/edit.html.haml",
|
|
82
|
-
"app/views/cms_admin/snippets/index.html.haml",
|
|
83
|
-
"app/views/cms_admin/snippets/new.html.haml",
|
|
84
|
-
"app/views/cms_content/show.xml.rxml",
|
|
85
|
-
"app/views/cms_content/sitemap.xml.rxml",
|
|
86
|
-
"app/views/layouts/cms_admin.html.haml",
|
|
36
|
+
"app/models/cms_upload.rb",
|
|
37
|
+
"app/views/cms_admin/layouts/_form.html.erb",
|
|
38
|
+
"app/views/cms_admin/layouts/_index_branch.html.erb",
|
|
39
|
+
"app/views/cms_admin/layouts/edit.html.erb",
|
|
40
|
+
"app/views/cms_admin/layouts/index.html.erb",
|
|
41
|
+
"app/views/cms_admin/layouts/new.html.erb",
|
|
42
|
+
"app/views/cms_admin/pages/_form.html.erb",
|
|
43
|
+
"app/views/cms_admin/pages/_form_blocks.html.erb",
|
|
44
|
+
"app/views/cms_admin/pages/_index_branch.html.erb",
|
|
45
|
+
"app/views/cms_admin/pages/edit.html.erb",
|
|
46
|
+
"app/views/cms_admin/pages/form_blocks.js.erb",
|
|
47
|
+
"app/views/cms_admin/pages/index.html.erb",
|
|
48
|
+
"app/views/cms_admin/pages/new.html.erb",
|
|
49
|
+
"app/views/cms_admin/snippets/_form.html.erb",
|
|
50
|
+
"app/views/cms_admin/snippets/edit.html.erb",
|
|
51
|
+
"app/views/cms_admin/snippets/index.html.erb",
|
|
52
|
+
"app/views/cms_admin/snippets/new.html.erb",
|
|
53
|
+
"app/views/cms_admin/uploads/_index.html.erb",
|
|
54
|
+
"app/views/cms_admin/uploads/_upload.html.erb",
|
|
55
|
+
"app/views/cms_admin/uploads/destroy.js.erb",
|
|
56
|
+
"app/views/cms_admin/uploads/index.html.erb",
|
|
57
|
+
"app/views/layouts/cms_admin.html.erb",
|
|
87
58
|
"comfortable_mexican_sofa.gemspec",
|
|
88
|
-
"config
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"generators/cms/templates/stylesheets/cms_master.sass",
|
|
108
|
-
"init.rb",
|
|
59
|
+
"config.ru",
|
|
60
|
+
"config/application.rb",
|
|
61
|
+
"config/boot.rb",
|
|
62
|
+
"config/database.yml",
|
|
63
|
+
"config/environment.rb",
|
|
64
|
+
"config/environments/development.rb",
|
|
65
|
+
"config/environments/production.rb",
|
|
66
|
+
"config/environments/test.rb",
|
|
67
|
+
"config/initializers/backtrace_silencers.rb",
|
|
68
|
+
"config/initializers/inflections.rb",
|
|
69
|
+
"config/initializers/mime_types.rb",
|
|
70
|
+
"config/initializers/paperclip.rb",
|
|
71
|
+
"config/initializers/secret_token.rb",
|
|
72
|
+
"config/initializers/session_store.rb",
|
|
73
|
+
"config/locales/en.yml",
|
|
74
|
+
"config/routes.rb",
|
|
75
|
+
"db/migrate/01_create_cms.rb",
|
|
76
|
+
"db/seeds.rb",
|
|
77
|
+
"doc/README_FOR_APP",
|
|
109
78
|
"lib/comfortable_mexican_sofa.rb",
|
|
110
|
-
"lib/comfortable_mexican_sofa/acts_as_categorized.rb",
|
|
111
|
-
"lib/comfortable_mexican_sofa/acts_as_published.rb",
|
|
112
79
|
"lib/comfortable_mexican_sofa/cms_acts_as_tree.rb",
|
|
80
|
+
"lib/comfortable_mexican_sofa/cms_form_builder.rb",
|
|
113
81
|
"lib/comfortable_mexican_sofa/cms_rails_extensions.rb",
|
|
114
82
|
"lib/comfortable_mexican_sofa/cms_tag.rb",
|
|
115
|
-
"lib/comfortable_mexican_sofa/
|
|
116
|
-
"lib/comfortable_mexican_sofa/
|
|
117
|
-
"lib/comfortable_mexican_sofa/
|
|
118
|
-
"lib/comfortable_mexican_sofa/
|
|
119
|
-
"lib/comfortable_mexican_sofa/
|
|
120
|
-
"lib/comfortable_mexican_sofa/
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
83
|
+
"lib/comfortable_mexican_sofa/cms_tag/field_datetime.rb",
|
|
84
|
+
"lib/comfortable_mexican_sofa/cms_tag/field_integer.rb",
|
|
85
|
+
"lib/comfortable_mexican_sofa/cms_tag/field_string.rb",
|
|
86
|
+
"lib/comfortable_mexican_sofa/cms_tag/field_text.rb",
|
|
87
|
+
"lib/comfortable_mexican_sofa/cms_tag/page_datetime.rb",
|
|
88
|
+
"lib/comfortable_mexican_sofa/cms_tag/page_integer.rb",
|
|
89
|
+
"lib/comfortable_mexican_sofa/cms_tag/page_string.rb",
|
|
90
|
+
"lib/comfortable_mexican_sofa/cms_tag/page_text.rb",
|
|
91
|
+
"lib/comfortable_mexican_sofa/cms_tag/partial.rb",
|
|
92
|
+
"lib/comfortable_mexican_sofa/cms_tag/snippet.rb",
|
|
93
|
+
"lib/generators/README",
|
|
94
|
+
"lib/generators/cms_generator.rb",
|
|
95
|
+
"public/404.html",
|
|
96
|
+
"public/422.html",
|
|
97
|
+
"public/500.html",
|
|
98
|
+
"public/favicon.ico",
|
|
99
|
+
"public/images/comfortable_mexican_sofa/body_bg.jpg",
|
|
100
|
+
"public/images/comfortable_mexican_sofa/icon_regular.gif",
|
|
101
|
+
"public/javascripts/comfortable_mexican_sofa/cms.js",
|
|
102
|
+
"public/javascripts/comfortable_mexican_sofa/jquery-ui.js",
|
|
103
|
+
"public/javascripts/comfortable_mexican_sofa/jquery.js",
|
|
104
|
+
"public/javascripts/comfortable_mexican_sofa/plupload/plupload.full.min.js",
|
|
105
|
+
"public/javascripts/comfortable_mexican_sofa/plupload/plupload.html4.min.js",
|
|
106
|
+
"public/javascripts/comfortable_mexican_sofa/plupload/plupload.html5.min.js",
|
|
107
|
+
"public/javascripts/comfortable_mexican_sofa/rails.js",
|
|
108
|
+
"public/javascripts/comfortable_mexican_sofa/uploader.js",
|
|
109
|
+
"public/robots.txt",
|
|
110
|
+
"public/stylesheets/comfortable_mexican_sofa/jquery-ui.css",
|
|
111
|
+
"public/stylesheets/comfortable_mexican_sofa/reset.css",
|
|
112
|
+
"public/stylesheets/comfortable_mexican_sofa/structure.css",
|
|
113
|
+
"public/stylesheets/comfortable_mexican_sofa/typography.css",
|
|
114
|
+
"script/rails",
|
|
115
|
+
"test/fixtures/README.md",
|
|
124
116
|
"test/fixtures/cms_blocks.yml",
|
|
125
|
-
"test/fixtures/cms_categories.yml",
|
|
126
117
|
"test/fixtures/cms_layouts.yml",
|
|
127
|
-
"test/fixtures/cms_page_categorizations.yml",
|
|
128
118
|
"test/fixtures/cms_pages.yml",
|
|
129
119
|
"test/fixtures/cms_snippets.yml",
|
|
130
|
-
"test/fixtures/
|
|
131
|
-
"test/
|
|
132
|
-
"test/
|
|
120
|
+
"test/fixtures/cms_uploads.yml",
|
|
121
|
+
"test/fixtures/files/invalid_file.gif",
|
|
122
|
+
"test/fixtures/files/valid_image.jpg",
|
|
123
|
+
"test/functional/cms_admin/base_controller_test.rb",
|
|
133
124
|
"test/functional/cms_admin/layouts_controller_test.rb",
|
|
134
125
|
"test/functional/cms_admin/pages_controller_test.rb",
|
|
135
|
-
"test/functional/cms_admin/sections_controller_test.rb",
|
|
136
126
|
"test/functional/cms_admin/snippets_controller_test.rb",
|
|
127
|
+
"test/functional/cms_admin/uploads_controller_test.rb",
|
|
137
128
|
"test/functional/cms_content_controller_test.rb",
|
|
138
|
-
"test/
|
|
139
|
-
"test/
|
|
140
|
-
"test/
|
|
141
|
-
"test/
|
|
142
|
-
"test/
|
|
143
|
-
"test/
|
|
144
|
-
"test/
|
|
145
|
-
"test/
|
|
146
|
-
"test/
|
|
147
|
-
"test/
|
|
148
|
-
"test/
|
|
149
|
-
"test/
|
|
150
|
-
"test/
|
|
151
|
-
"test/
|
|
152
|
-
"test/
|
|
153
|
-
"test/
|
|
154
|
-
"test/
|
|
155
|
-
"
|
|
156
|
-
"test/rails_root/config/environments/production.rb",
|
|
157
|
-
"test/rails_root/config/environments/test.rb",
|
|
158
|
-
"test/rails_root/config/initializers/backtrace_silencers.rb",
|
|
159
|
-
"test/rails_root/config/initializers/inflections.rb",
|
|
160
|
-
"test/rails_root/config/initializers/mime_types.rb",
|
|
161
|
-
"test/rails_root/config/initializers/new_rails_defaults.rb",
|
|
162
|
-
"test/rails_root/config/initializers/session_store.rb",
|
|
163
|
-
"test/rails_root/config/locales/en.yml",
|
|
164
|
-
"test/rails_root/config/routes.rb",
|
|
165
|
-
"test/rails_root/doc/README_FOR_APP",
|
|
166
|
-
"test/rails_root/public/404.html",
|
|
167
|
-
"test/rails_root/public/422.html",
|
|
168
|
-
"test/rails_root/public/500.html",
|
|
169
|
-
"test/rails_root/public/favicon.ico",
|
|
170
|
-
"test/rails_root/public/images/rails.png",
|
|
171
|
-
"test/rails_root/public/index.html",
|
|
172
|
-
"test/rails_root/public/javascripts/application.js",
|
|
173
|
-
"test/rails_root/public/javascripts/controls.js",
|
|
174
|
-
"test/rails_root/public/javascripts/dragdrop.js",
|
|
175
|
-
"test/rails_root/public/javascripts/effects.js",
|
|
176
|
-
"test/rails_root/public/javascripts/prototype.js",
|
|
177
|
-
"test/rails_root/public/robots.txt",
|
|
178
|
-
"test/rails_root/public/stylesheets/sass/cms_master.sass",
|
|
179
|
-
"test/rails_root/script/about",
|
|
180
|
-
"test/rails_root/script/console",
|
|
181
|
-
"test/rails_root/script/dbconsole",
|
|
182
|
-
"test/rails_root/script/destroy",
|
|
183
|
-
"test/rails_root/script/generate",
|
|
184
|
-
"test/rails_root/script/performance/benchmarker",
|
|
185
|
-
"test/rails_root/script/performance/profiler",
|
|
186
|
-
"test/rails_root/script/plugin",
|
|
187
|
-
"test/rails_root/script/runner",
|
|
188
|
-
"test/rails_root/script/server",
|
|
189
|
-
"test/rails_root/vendor/plugins/.gitignore",
|
|
190
|
-
"test/test_helper.rb"
|
|
129
|
+
"test/test_helper.rb",
|
|
130
|
+
"test/unit/cms_block_test.rb",
|
|
131
|
+
"test/unit/cms_layout_test.rb",
|
|
132
|
+
"test/unit/cms_page_test.rb",
|
|
133
|
+
"test/unit/cms_snippet_test.rb",
|
|
134
|
+
"test/unit/cms_tag_test.rb",
|
|
135
|
+
"test/unit/cms_tags/field_datetime_test.rb",
|
|
136
|
+
"test/unit/cms_tags/field_integer_test.rb",
|
|
137
|
+
"test/unit/cms_tags/field_string_test.rb",
|
|
138
|
+
"test/unit/cms_tags/field_text_test.rb",
|
|
139
|
+
"test/unit/cms_tags/page_datetime_test.rb",
|
|
140
|
+
"test/unit/cms_tags/page_integer_test.rb",
|
|
141
|
+
"test/unit/cms_tags/page_string_test.rb",
|
|
142
|
+
"test/unit/cms_tags/page_text_test.rb",
|
|
143
|
+
"test/unit/cms_tags/partial_test.rb",
|
|
144
|
+
"test/unit/cms_tags/snippet_test.rb",
|
|
145
|
+
"test/unit/cms_upload_test.rb",
|
|
146
|
+
"tmp/restart.txt"
|
|
191
147
|
]
|
|
192
|
-
s.homepage = %q{http://theworkinggroup
|
|
148
|
+
s.homepage = %q{http://github.com/theworkinggroup/comfortable-mexican-sofa}
|
|
193
149
|
s.rdoc_options = ["--charset=UTF-8"]
|
|
194
150
|
s.require_paths = ["lib"]
|
|
195
|
-
s.
|
|
196
|
-
s.rubygems_version = %q{1.3.5}
|
|
151
|
+
s.rubygems_version = %q{1.3.7}
|
|
197
152
|
s.summary = %q{ComfortableMexicanSofa is a Rails Engine CMS gem}
|
|
198
153
|
s.test_files = [
|
|
199
|
-
"test/functional/cms_admin/
|
|
200
|
-
"test/functional/cms_admin/categories_controller_test.rb",
|
|
154
|
+
"test/functional/cms_admin/base_controller_test.rb",
|
|
201
155
|
"test/functional/cms_admin/layouts_controller_test.rb",
|
|
202
156
|
"test/functional/cms_admin/pages_controller_test.rb",
|
|
203
|
-
"test/functional/cms_admin/sections_controller_test.rb",
|
|
204
157
|
"test/functional/cms_admin/snippets_controller_test.rb",
|
|
158
|
+
"test/functional/cms_admin/uploads_controller_test.rb",
|
|
205
159
|
"test/functional/cms_content_controller_test.rb",
|
|
206
|
-
"test/
|
|
207
|
-
"test/
|
|
208
|
-
"test/
|
|
209
|
-
"test/
|
|
210
|
-
"test/
|
|
211
|
-
"test/
|
|
212
|
-
"test/
|
|
213
|
-
"test/
|
|
214
|
-
"test/
|
|
215
|
-
"test/
|
|
216
|
-
"test/
|
|
217
|
-
"test/
|
|
218
|
-
"test/
|
|
219
|
-
"test/
|
|
220
|
-
"test/
|
|
221
|
-
"test/
|
|
222
|
-
"test/
|
|
223
|
-
"test/rails_root/config/initializers/mime_types.rb",
|
|
224
|
-
"test/rails_root/config/initializers/new_rails_defaults.rb",
|
|
225
|
-
"test/rails_root/config/initializers/session_store.rb",
|
|
226
|
-
"test/rails_root/config/routes.rb",
|
|
227
|
-
"test/test_helper.rb"
|
|
160
|
+
"test/test_helper.rb",
|
|
161
|
+
"test/unit/cms_block_test.rb",
|
|
162
|
+
"test/unit/cms_layout_test.rb",
|
|
163
|
+
"test/unit/cms_page_test.rb",
|
|
164
|
+
"test/unit/cms_snippet_test.rb",
|
|
165
|
+
"test/unit/cms_tag_test.rb",
|
|
166
|
+
"test/unit/cms_tags/field_datetime_test.rb",
|
|
167
|
+
"test/unit/cms_tags/field_integer_test.rb",
|
|
168
|
+
"test/unit/cms_tags/field_string_test.rb",
|
|
169
|
+
"test/unit/cms_tags/field_text_test.rb",
|
|
170
|
+
"test/unit/cms_tags/page_datetime_test.rb",
|
|
171
|
+
"test/unit/cms_tags/page_integer_test.rb",
|
|
172
|
+
"test/unit/cms_tags/page_string_test.rb",
|
|
173
|
+
"test/unit/cms_tags/page_text_test.rb",
|
|
174
|
+
"test/unit/cms_tags/partial_test.rb",
|
|
175
|
+
"test/unit/cms_tags/snippet_test.rb",
|
|
176
|
+
"test/unit/cms_upload_test.rb"
|
|
228
177
|
]
|
|
229
178
|
|
|
230
179
|
if s.respond_to? :specification_version then
|
|
231
180
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
232
181
|
s.specification_version = 3
|
|
233
182
|
|
|
234
|
-
if Gem::Version.new(Gem::
|
|
235
|
-
s.add_runtime_dependency(%q<
|
|
236
|
-
s.add_runtime_dependency(%q<
|
|
237
|
-
s.add_runtime_dependency(%q<paperclip>, [">=
|
|
238
|
-
s.add_runtime_dependency(%q<calendar_date_select>, [">= 0"])
|
|
239
|
-
s.add_runtime_dependency(%q<active_link_to>, [">= 0"])
|
|
183
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
184
|
+
s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
|
|
185
|
+
s.add_runtime_dependency(%q<active_link_to>, [">= 0.0.6"])
|
|
186
|
+
s.add_runtime_dependency(%q<paperclip>, [">= 2.3.3"])
|
|
240
187
|
else
|
|
241
|
-
s.add_dependency(%q<
|
|
242
|
-
s.add_dependency(%q<
|
|
243
|
-
s.add_dependency(%q<paperclip>, [">=
|
|
244
|
-
s.add_dependency(%q<calendar_date_select>, [">= 0"])
|
|
245
|
-
s.add_dependency(%q<active_link_to>, [">= 0"])
|
|
188
|
+
s.add_dependency(%q<rails>, [">= 3.0.0"])
|
|
189
|
+
s.add_dependency(%q<active_link_to>, [">= 0.0.6"])
|
|
190
|
+
s.add_dependency(%q<paperclip>, [">= 2.3.3"])
|
|
246
191
|
end
|
|
247
192
|
else
|
|
248
|
-
s.add_dependency(%q<
|
|
249
|
-
s.add_dependency(%q<
|
|
250
|
-
s.add_dependency(%q<paperclip>, [">=
|
|
251
|
-
s.add_dependency(%q<calendar_date_select>, [">= 0"])
|
|
252
|
-
s.add_dependency(%q<active_link_to>, [">= 0"])
|
|
193
|
+
s.add_dependency(%q<rails>, [">= 3.0.0"])
|
|
194
|
+
s.add_dependency(%q<active_link_to>, [">= 0.0.6"])
|
|
195
|
+
s.add_dependency(%q<paperclip>, [">= 2.3.3"])
|
|
253
196
|
end
|
|
254
197
|
end
|
|
198
|
+
|