aslakjo-comatose 2.0.5.8 → 2.0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +0 -0
- data/INSTALL +0 -0
- data/LICENSE +0 -0
- data/MANIFEST +0 -0
- data/README.markdown +0 -0
- data/Rakefile +0 -0
- data/SPECS +0 -0
- data/about.yml +0 -0
- data/comatose.gemspec +1 -1
- data/generators/comatose_migration/USAGE +0 -0
- data/generators/comatose_migration/comatose_migration_generator.rb +0 -0
- data/generators/comatose_migration/templates/migration.rb +1 -6
- data/generators/comatose_migration/templates/v4_upgrade.rb +0 -0
- data/generators/comatose_migration/templates/v6_upgrade.rb +0 -0
- data/generators/comatose_migration/templates/v7_upgrade.rb +0 -0
- data/init.rb +0 -0
- data/install.rb +0 -0
- data/lib/acts_as_versioned.rb +0 -0
- data/lib/comatose.rb +4 -8
- data/lib/comatose/comatose_drop.rb +0 -0
- data/lib/comatose/configuration.rb +0 -0
- data/lib/comatose/page_wrapper.rb +0 -0
- data/lib/comatose/processing_context.rb +0 -0
- data/lib/comatose/tasks/admin.rb +0 -0
- data/lib/comatose/tasks/data.rb +0 -0
- data/lib/comatose/tasks/setup.rb +0 -0
- data/lib/comatose/version.rb +0 -0
- data/lib/comatose_admin_controller.rb +0 -0
- data/lib/comatose_admin_helper.rb +0 -0
- data/lib/comatose_controller.rb +0 -0
- data/lib/comatose_helper.rb +0 -0
- data/lib/comatose_page.rb +2 -1
- data/lib/liquid.rb +0 -0
- data/lib/liquid/block.rb +0 -0
- data/lib/liquid/context.rb +0 -0
- data/lib/liquid/document.rb +0 -0
- data/lib/liquid/drop.rb +0 -0
- data/lib/liquid/errors.rb +0 -0
- data/lib/liquid/extensions.rb +0 -0
- data/lib/liquid/file_system.rb +0 -0
- data/lib/liquid/htmltags.rb +0 -0
- data/lib/liquid/standardfilters.rb +0 -0
- data/lib/liquid/standardtags.rb +0 -0
- data/lib/liquid/strainer.rb +0 -0
- data/lib/liquid/tag.rb +0 -0
- data/lib/liquid/template.rb +0 -0
- data/lib/liquid/variable.rb +0 -0
- data/lib/redcloth.rb +0 -0
- data/lib/support/class_options.rb +0 -0
- data/lib/support/inline_rendering.rb +0 -0
- data/lib/support/route_mapper.rb +0 -0
- data/lib/text_filters.rb +0 -0
- data/lib/text_filters/markdown.rb +0 -0
- data/lib/text_filters/markdown_smartypants.rb +0 -0
- data/lib/text_filters/none.rb +0 -0
- data/lib/text_filters/rdoc.rb +0 -0
- data/lib/text_filters/simple.rb +0 -0
- data/lib/text_filters/textile.rb +0 -0
- data/rails/init.rb +0 -0
- data/resources/layouts/comatose_admin_template.html.erb +0 -0
- data/resources/public/images/collapsed.gif +0 -0
- data/resources/public/images/expanded.gif +0 -0
- data/resources/public/images/no-children.gif +0 -0
- data/resources/public/images/page.gif +0 -0
- data/resources/public/images/spinner.gif +0 -0
- data/resources/public/images/title-hover-bg.gif +0 -0
- data/resources/public/javascripts/comatose_admin.js +0 -0
- data/resources/public/stylesheets/comatose_admin.css +0 -0
- data/tasks/comatose.rake +0 -0
- data/test/behaviors.rb +0 -0
- data/test/fixtures/comatose_pages.yml +0 -0
- data/test/functional/comatose_admin_controller_test.rb +0 -0
- data/test/functional/comatose_controller_test.rb +0 -0
- data/test/javascripts/test.html +0 -0
- data/test/javascripts/test_runner.js +0 -0
- data/test/test_helper.rb +0 -0
- data/test/unit/class_options_test.rb +0 -0
- data/test/unit/comatose_page_test.rb +0 -0
- data/test/unit/processing_context_test.rb +0 -0
- data/test/unit/text_filters_test.rb +0 -0
- data/views/comatose_admin/_form.html.erb +0 -0
- data/views/comatose_admin/_page_list_item.html.erb +0 -0
- data/views/comatose_admin/delete.html.erb +0 -0
- data/views/comatose_admin/edit.html.erb +0 -0
- data/views/comatose_admin/index.html.erb +0 -0
- data/views/comatose_admin/new.html.erb +0 -0
- data/views/comatose_admin/reorder.html.erb +0 -0
- data/views/comatose_admin/versions.html.erb +0 -0
- data/views/layouts/comatose_admin.html.erb +0 -0
- data/views/layouts/comatose_admin_customize.html.erb +0 -0
- data/views/layouts/comatose_content.html.erb +0 -0
- metadata +1 -1
data/CHANGELOG
CHANGED
File without changes
|
data/INSTALL
CHANGED
File without changes
|
data/LICENSE
CHANGED
File without changes
|
data/MANIFEST
CHANGED
File without changes
|
data/README.markdown
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/SPECS
CHANGED
File without changes
|
data/about.yml
CHANGED
File without changes
|
data/comatose.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated on Tue May 20 20:13:12 -0500 2008
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = "aslakjo-comatose"
|
4
|
-
s.version = "2.0.5.
|
4
|
+
s.version = "2.0.5.9"
|
5
5
|
s.date = "2008-10-31" # 2008-05-20
|
6
6
|
s.summary = "Micro CMS designed for being embedded into existing Rails applications"
|
7
7
|
s.email = "matt@elucidata.net"
|
File without changes
|
File without changes
|
@@ -1,8 +1,3 @@
|
|
1
|
-
class ComatosePage < ActiveRecord::Base
|
2
|
-
set_table_name 'comatose_pages'
|
3
|
-
acts_as_versioned :table_name=>'comatose_page_versions', :if_changed => [:title, :slug, :keywords, :body]
|
4
|
-
end
|
5
|
-
|
6
1
|
|
7
2
|
class <%= class_name %> < ActiveRecord::Migration
|
8
3
|
|
@@ -24,7 +19,7 @@ class <%= class_name %> < ActiveRecord::Migration
|
|
24
19
|
end
|
25
20
|
ComatosePage.create_versioned_table
|
26
21
|
puts "Creating the default 'Home Page'..."
|
27
|
-
|
22
|
+
Comatose.create_root_page( :title=>'Home Page', :body=>"h1. Welcome\n\nYour content goes here...", :author=>'System' )
|
28
23
|
end
|
29
24
|
|
30
25
|
def self.down
|
File without changes
|
File without changes
|
File without changes
|
data/init.rb
CHANGED
File without changes
|
data/install.rb
CHANGED
File without changes
|
data/lib/acts_as_versioned.rb
CHANGED
File without changes
|
data/lib/comatose.rb
CHANGED
@@ -35,13 +35,9 @@ end
|
|
35
35
|
|
36
36
|
module Comatose
|
37
37
|
def self.create_root_page(options ={})
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
raise "There exists a comatose root page, cant create another one"
|
43
|
-
end
|
44
|
-
rescue
|
45
|
-
true
|
38
|
+
raise "Root page already exists" if ComatosePage.root
|
39
|
+
root = ComatosePage.create({:title=>'root page', :body=>"Welcome to comatose", :author=>'System', :parent_id=>nil}.merge(options))
|
40
|
+
root.save(false)
|
41
|
+
raise "Failed to save root page" if root.new_record?
|
46
42
|
end
|
47
43
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/comatose/tasks/admin.rb
CHANGED
File without changes
|
data/lib/comatose/tasks/data.rb
CHANGED
File without changes
|
data/lib/comatose/tasks/setup.rb
CHANGED
File without changes
|
data/lib/comatose/version.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/comatose_controller.rb
CHANGED
File without changes
|
data/lib/comatose_helper.rb
CHANGED
File without changes
|
data/lib/comatose_page.rb
CHANGED
@@ -21,6 +21,7 @@ class ComatosePage < ActiveRecord::Base
|
|
21
21
|
define_option :active_mount_info, {:root=>'', :index=>''}
|
22
22
|
|
23
23
|
acts_as_tree :order => "position, title"
|
24
|
+
|
24
25
|
acts_as_list :scope => :parent_id
|
25
26
|
|
26
27
|
#before_create :create_full_path
|
@@ -101,6 +102,7 @@ class ComatosePage < ActiveRecord::Base
|
|
101
102
|
def record_timestamps
|
102
103
|
false
|
103
104
|
end
|
105
|
+
|
104
106
|
def self.record_timestamps
|
105
107
|
false
|
106
108
|
end
|
@@ -111,7 +113,6 @@ protected
|
|
111
113
|
instance_eval &Comatose.config.after_page_save
|
112
114
|
end
|
113
115
|
|
114
|
-
|
115
116
|
# Creates a URI path based on the Page tree
|
116
117
|
def create_full_path
|
117
118
|
if parent_node = self.parent
|
data/lib/liquid.rb
CHANGED
File without changes
|
data/lib/liquid/block.rb
CHANGED
File without changes
|
data/lib/liquid/context.rb
CHANGED
File without changes
|
data/lib/liquid/document.rb
CHANGED
File without changes
|
data/lib/liquid/drop.rb
CHANGED
File without changes
|
data/lib/liquid/errors.rb
CHANGED
File without changes
|
data/lib/liquid/extensions.rb
CHANGED
File without changes
|
data/lib/liquid/file_system.rb
CHANGED
File without changes
|
data/lib/liquid/htmltags.rb
CHANGED
File without changes
|
File without changes
|
data/lib/liquid/standardtags.rb
CHANGED
File without changes
|
data/lib/liquid/strainer.rb
CHANGED
File without changes
|
data/lib/liquid/tag.rb
CHANGED
File without changes
|
data/lib/liquid/template.rb
CHANGED
File without changes
|
data/lib/liquid/variable.rb
CHANGED
File without changes
|
data/lib/redcloth.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/support/route_mapper.rb
CHANGED
File without changes
|
data/lib/text_filters.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/text_filters/none.rb
CHANGED
File without changes
|
data/lib/text_filters/rdoc.rb
CHANGED
File without changes
|
data/lib/text_filters/simple.rb
CHANGED
File without changes
|
data/lib/text_filters/textile.rb
CHANGED
File without changes
|
data/rails/init.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/tasks/comatose.rake
CHANGED
File without changes
|
data/test/behaviors.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/javascripts/test.html
CHANGED
File without changes
|
File without changes
|
data/test/test_helper.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|