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.
Files changed (92) hide show
  1. data/CHANGELOG +0 -0
  2. data/INSTALL +0 -0
  3. data/LICENSE +0 -0
  4. data/MANIFEST +0 -0
  5. data/README.markdown +0 -0
  6. data/Rakefile +0 -0
  7. data/SPECS +0 -0
  8. data/about.yml +0 -0
  9. data/comatose.gemspec +1 -1
  10. data/generators/comatose_migration/USAGE +0 -0
  11. data/generators/comatose_migration/comatose_migration_generator.rb +0 -0
  12. data/generators/comatose_migration/templates/migration.rb +1 -6
  13. data/generators/comatose_migration/templates/v4_upgrade.rb +0 -0
  14. data/generators/comatose_migration/templates/v6_upgrade.rb +0 -0
  15. data/generators/comatose_migration/templates/v7_upgrade.rb +0 -0
  16. data/init.rb +0 -0
  17. data/install.rb +0 -0
  18. data/lib/acts_as_versioned.rb +0 -0
  19. data/lib/comatose.rb +4 -8
  20. data/lib/comatose/comatose_drop.rb +0 -0
  21. data/lib/comatose/configuration.rb +0 -0
  22. data/lib/comatose/page_wrapper.rb +0 -0
  23. data/lib/comatose/processing_context.rb +0 -0
  24. data/lib/comatose/tasks/admin.rb +0 -0
  25. data/lib/comatose/tasks/data.rb +0 -0
  26. data/lib/comatose/tasks/setup.rb +0 -0
  27. data/lib/comatose/version.rb +0 -0
  28. data/lib/comatose_admin_controller.rb +0 -0
  29. data/lib/comatose_admin_helper.rb +0 -0
  30. data/lib/comatose_controller.rb +0 -0
  31. data/lib/comatose_helper.rb +0 -0
  32. data/lib/comatose_page.rb +2 -1
  33. data/lib/liquid.rb +0 -0
  34. data/lib/liquid/block.rb +0 -0
  35. data/lib/liquid/context.rb +0 -0
  36. data/lib/liquid/document.rb +0 -0
  37. data/lib/liquid/drop.rb +0 -0
  38. data/lib/liquid/errors.rb +0 -0
  39. data/lib/liquid/extensions.rb +0 -0
  40. data/lib/liquid/file_system.rb +0 -0
  41. data/lib/liquid/htmltags.rb +0 -0
  42. data/lib/liquid/standardfilters.rb +0 -0
  43. data/lib/liquid/standardtags.rb +0 -0
  44. data/lib/liquid/strainer.rb +0 -0
  45. data/lib/liquid/tag.rb +0 -0
  46. data/lib/liquid/template.rb +0 -0
  47. data/lib/liquid/variable.rb +0 -0
  48. data/lib/redcloth.rb +0 -0
  49. data/lib/support/class_options.rb +0 -0
  50. data/lib/support/inline_rendering.rb +0 -0
  51. data/lib/support/route_mapper.rb +0 -0
  52. data/lib/text_filters.rb +0 -0
  53. data/lib/text_filters/markdown.rb +0 -0
  54. data/lib/text_filters/markdown_smartypants.rb +0 -0
  55. data/lib/text_filters/none.rb +0 -0
  56. data/lib/text_filters/rdoc.rb +0 -0
  57. data/lib/text_filters/simple.rb +0 -0
  58. data/lib/text_filters/textile.rb +0 -0
  59. data/rails/init.rb +0 -0
  60. data/resources/layouts/comatose_admin_template.html.erb +0 -0
  61. data/resources/public/images/collapsed.gif +0 -0
  62. data/resources/public/images/expanded.gif +0 -0
  63. data/resources/public/images/no-children.gif +0 -0
  64. data/resources/public/images/page.gif +0 -0
  65. data/resources/public/images/spinner.gif +0 -0
  66. data/resources/public/images/title-hover-bg.gif +0 -0
  67. data/resources/public/javascripts/comatose_admin.js +0 -0
  68. data/resources/public/stylesheets/comatose_admin.css +0 -0
  69. data/tasks/comatose.rake +0 -0
  70. data/test/behaviors.rb +0 -0
  71. data/test/fixtures/comatose_pages.yml +0 -0
  72. data/test/functional/comatose_admin_controller_test.rb +0 -0
  73. data/test/functional/comatose_controller_test.rb +0 -0
  74. data/test/javascripts/test.html +0 -0
  75. data/test/javascripts/test_runner.js +0 -0
  76. data/test/test_helper.rb +0 -0
  77. data/test/unit/class_options_test.rb +0 -0
  78. data/test/unit/comatose_page_test.rb +0 -0
  79. data/test/unit/processing_context_test.rb +0 -0
  80. data/test/unit/text_filters_test.rb +0 -0
  81. data/views/comatose_admin/_form.html.erb +0 -0
  82. data/views/comatose_admin/_page_list_item.html.erb +0 -0
  83. data/views/comatose_admin/delete.html.erb +0 -0
  84. data/views/comatose_admin/edit.html.erb +0 -0
  85. data/views/comatose_admin/index.html.erb +0 -0
  86. data/views/comatose_admin/new.html.erb +0 -0
  87. data/views/comatose_admin/reorder.html.erb +0 -0
  88. data/views/comatose_admin/versions.html.erb +0 -0
  89. data/views/layouts/comatose_admin.html.erb +0 -0
  90. data/views/layouts/comatose_admin_customize.html.erb +0 -0
  91. data/views/layouts/comatose_content.html.erb +0 -0
  92. 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.8"
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
@@ -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
- ComatosePage.create( :title=>'Home Page', :body=>"h1. Welcome\n\nYour content goes here...", :author=>'System' )
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
data/init.rb CHANGED
File without changes
data/install.rb CHANGED
File without changes
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
- unless ComatosePage.root
39
- page = ComatosePage.create({:title=>'root page', :body=>"Welcome to comatose", :author=>'System', :parent_id=>nil}.merge(options))
40
- page.save(false)
41
- else
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
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/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
File without changes
File without changes
data/lib/liquid/drop.rb CHANGED
File without changes
data/lib/liquid/errors.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/lib/liquid/tag.rb CHANGED
File without changes
File without changes
File without changes
data/lib/redcloth.rb CHANGED
File without changes
File without changes
File without changes
File without changes
data/lib/text_filters.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aslakjo-comatose
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5.8
4
+ version: 2.0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - M@ McCray