aslakjo-comatose 2.0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/CHANGELOG +195 -0
  2. data/INSTALL +20 -0
  3. data/LICENSE +20 -0
  4. data/MANIFEST +91 -0
  5. data/README.markdown +159 -0
  6. data/Rakefile +176 -0
  7. data/SPECS +61 -0
  8. data/about.yml +7 -0
  9. data/bin/comatose +112 -0
  10. data/comatose.gemspec +113 -0
  11. data/generators/comatose_migration/USAGE +15 -0
  12. data/generators/comatose_migration/comatose_migration_generator.rb +74 -0
  13. data/generators/comatose_migration/templates/migration.rb +35 -0
  14. data/generators/comatose_migration/templates/v4_upgrade.rb +15 -0
  15. data/generators/comatose_migration/templates/v6_upgrade.rb +23 -0
  16. data/generators/comatose_migration/templates/v7_upgrade.rb +22 -0
  17. data/init.rb +2 -0
  18. data/install.rb +18 -0
  19. data/lib/acts_as_versioned.rb +543 -0
  20. data/lib/comatose/comatose_drop.rb +79 -0
  21. data/lib/comatose/configuration.rb +69 -0
  22. data/lib/comatose/page_wrapper.rb +119 -0
  23. data/lib/comatose/processing_context.rb +69 -0
  24. data/lib/comatose/tasks/admin.rb +60 -0
  25. data/lib/comatose/tasks/data.rb +82 -0
  26. data/lib/comatose/tasks/setup.rb +52 -0
  27. data/lib/comatose/version.rb +4 -0
  28. data/lib/comatose.rb +33 -0
  29. data/lib/comatose_admin_controller.rb +395 -0
  30. data/lib/comatose_admin_helper.rb +37 -0
  31. data/lib/comatose_controller.rb +138 -0
  32. data/lib/comatose_helper.rb +3 -0
  33. data/lib/comatose_page.rb +141 -0
  34. data/lib/liquid/block.rb +96 -0
  35. data/lib/liquid/context.rb +190 -0
  36. data/lib/liquid/document.rb +17 -0
  37. data/lib/liquid/drop.rb +48 -0
  38. data/lib/liquid/errors.rb +7 -0
  39. data/lib/liquid/extensions.rb +53 -0
  40. data/lib/liquid/file_system.rb +62 -0
  41. data/lib/liquid/htmltags.rb +64 -0
  42. data/lib/liquid/standardfilters.rb +111 -0
  43. data/lib/liquid/standardtags.rb +399 -0
  44. data/lib/liquid/strainer.rb +42 -0
  45. data/lib/liquid/tag.rb +25 -0
  46. data/lib/liquid/template.rb +88 -0
  47. data/lib/liquid/variable.rb +39 -0
  48. data/lib/liquid.rb +52 -0
  49. data/lib/redcloth.rb +1129 -0
  50. data/lib/support/class_options.rb +36 -0
  51. data/lib/support/inline_rendering.rb +48 -0
  52. data/lib/support/route_mapper.rb +50 -0
  53. data/lib/text_filters/markdown.rb +14 -0
  54. data/lib/text_filters/markdown_smartypants.rb +15 -0
  55. data/lib/text_filters/none.rb +8 -0
  56. data/lib/text_filters/rdoc.rb +13 -0
  57. data/lib/text_filters/simple.rb +8 -0
  58. data/lib/text_filters/textile.rb +15 -0
  59. data/lib/text_filters.rb +140 -0
  60. data/rails/init.rb +3 -0
  61. data/resources/layouts/comatose_admin_template.html.erb +28 -0
  62. data/resources/public/images/collapsed.gif +0 -0
  63. data/resources/public/images/expanded.gif +0 -0
  64. data/resources/public/images/no-children.gif +0 -0
  65. data/resources/public/images/page.gif +0 -0
  66. data/resources/public/images/spinner.gif +0 -0
  67. data/resources/public/images/title-hover-bg.gif +0 -0
  68. data/resources/public/javascripts/comatose_admin.js +401 -0
  69. data/resources/public/stylesheets/comatose_admin.css +404 -0
  70. data/tasks/comatose.rake +9 -0
  71. data/test/behaviors.rb +106 -0
  72. data/test/fixtures/comatose_pages.yml +96 -0
  73. data/test/functional/comatose_admin_controller_test.rb +114 -0
  74. data/test/functional/comatose_controller_test.rb +44 -0
  75. data/test/javascripts/test.html +26 -0
  76. data/test/javascripts/test_runner.js +307 -0
  77. data/test/test_helper.rb +55 -0
  78. data/test/unit/class_options_test.rb +52 -0
  79. data/test/unit/comatose_page_test.rb +136 -0
  80. data/test/unit/processing_context_test.rb +108 -0
  81. data/test/unit/text_filters_test.rb +52 -0
  82. data/views/comatose_admin/_form.html.erb +96 -0
  83. data/views/comatose_admin/_page_list_item.html.erb +60 -0
  84. data/views/comatose_admin/delete.html.erb +18 -0
  85. data/views/comatose_admin/edit.html.erb +5 -0
  86. data/views/comatose_admin/index.html.erb +29 -0
  87. data/views/comatose_admin/new.html.erb +5 -0
  88. data/views/comatose_admin/reorder.html.erb +30 -0
  89. data/views/comatose_admin/versions.html.erb +40 -0
  90. data/views/layouts/comatose_admin.html.erb +837 -0
  91. data/views/layouts/comatose_admin_customize.html.erb +28 -0
  92. data/views/layouts/comatose_content.html.erb +17 -0
  93. metadata +148 -0
@@ -0,0 +1,28 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html class="noscript" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=<%= Comatose.config.content_type %>"/>
6
+ <title>Comatose Admin</title>
7
+ <%= stylesheet_link_tag 'comatose_admin' %>
8
+ <%= javascript_include_tag :defaults %>
9
+ <%= javascript_include_tag 'comatose_admin' %>
10
+ </head>
11
+ <body>
12
+ <div id="page-container">
13
+ <div id="header">
14
+ <h1><%= link_to Comatose.config.admin_title, :controller=>controller.controller_name, :action=>'index' %></h1>
15
+ <div id="flash">
16
+ <span id="flash-content"><%= flash[:notice] %></span>
17
+ </div>
18
+ <h5><%= Comatose.config.admin_sub_title %></h5>
19
+ </div>
20
+ <div id="content">
21
+ <%= yield %>
22
+ </div>
23
+ <div id="footer">
24
+ Powered by <a href="http://comatose.rubyforge.org" target="_new_window">Comatose <%= Comatose::VERSION_STRING %></a>, created by <a href="http://www.mattmccray.com" target="_new_window">M@ McCray</a>.
25
+ </div>
26
+ </div>
27
+ </body>
28
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=<%= Comatose.config.content_type %>"/>
6
+ <meta name="Generator" content="Comatose"/>
7
+ <meta name="Keywords" content="<%= @page.keywords %>"/>
8
+ <title><%= @page.title %></title>
9
+ <style>
10
+ BODY { font-family: sans-serif; color: #555; }
11
+ h1, h2, h3, h4, h5 { font-family: serif; color: #000; }
12
+ </style>
13
+ </head>
14
+ <body>
15
+ <%= yield %>
16
+ </body>
17
+ </html>
metadata ADDED
@@ -0,0 +1,148 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aslakjo-comatose
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.5.2
5
+ platform: ruby
6
+ authors:
7
+ - M@ McCray
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-10-31 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Comatose is a micro CMS designed for being embedded into existing Rails applications.
17
+ email: matt@elucidata.net
18
+ executables:
19
+ - comatose
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.markdown
24
+ - CHANGELOG
25
+ - SPECS
26
+ - LICENSE
27
+ files:
28
+ - CHANGELOG
29
+ - INSTALL
30
+ - LICENSE
31
+ - MANIFEST
32
+ - README.markdown
33
+ - Rakefile
34
+ - SPECS
35
+ - about.yml
36
+ - bin/comatose
37
+ - comatose.gemspec
38
+ - generators/comatose_migration/comatose_migration_generator.rb
39
+ - generators/comatose_migration/templates/migration.rb
40
+ - generators/comatose_migration/templates/v4_upgrade.rb
41
+ - generators/comatose_migration/templates/v6_upgrade.rb
42
+ - generators/comatose_migration/templates/v7_upgrade.rb
43
+ - generators/comatose_migration/USAGE
44
+ - init.rb
45
+ - install.rb
46
+ - lib/acts_as_versioned.rb
47
+ - lib/comatose/comatose_drop.rb
48
+ - lib/comatose/configuration.rb
49
+ - lib/comatose/page_wrapper.rb
50
+ - lib/comatose/processing_context.rb
51
+ - lib/comatose/tasks/admin.rb
52
+ - lib/comatose/tasks/data.rb
53
+ - lib/comatose/tasks/setup.rb
54
+ - lib/comatose/version.rb
55
+ - lib/comatose.rb
56
+ - lib/comatose_admin_controller.rb
57
+ - lib/comatose_admin_helper.rb
58
+ - lib/comatose_controller.rb
59
+ - lib/comatose_helper.rb
60
+ - lib/comatose_page.rb
61
+ - lib/liquid/block.rb
62
+ - lib/liquid/context.rb
63
+ - lib/liquid/document.rb
64
+ - lib/liquid/drop.rb
65
+ - lib/liquid/errors.rb
66
+ - lib/liquid/extensions.rb
67
+ - lib/liquid/file_system.rb
68
+ - lib/liquid/htmltags.rb
69
+ - lib/liquid/standardfilters.rb
70
+ - lib/liquid/standardtags.rb
71
+ - lib/liquid/strainer.rb
72
+ - lib/liquid/tag.rb
73
+ - lib/liquid/template.rb
74
+ - lib/liquid/variable.rb
75
+ - lib/liquid.rb
76
+ - lib/redcloth.rb
77
+ - lib/support/class_options.rb
78
+ - lib/support/inline_rendering.rb
79
+ - lib/support/route_mapper.rb
80
+ - lib/text_filters/markdown.rb
81
+ - lib/text_filters/markdown_smartypants.rb
82
+ - lib/text_filters/none.rb
83
+ - lib/text_filters/rdoc.rb
84
+ - lib/text_filters/simple.rb
85
+ - lib/text_filters/textile.rb
86
+ - lib/text_filters.rb
87
+ - rails/init.rb
88
+ - resources/layouts/comatose_admin_template.html.erb
89
+ - resources/public/images/collapsed.gif
90
+ - resources/public/images/expanded.gif
91
+ - resources/public/images/no-children.gif
92
+ - resources/public/images/page.gif
93
+ - resources/public/images/spinner.gif
94
+ - resources/public/images/title-hover-bg.gif
95
+ - resources/public/javascripts/comatose_admin.js
96
+ - resources/public/stylesheets/comatose_admin.css
97
+ - tasks/comatose.rake
98
+ - views/comatose_admin/_form.html.erb
99
+ - views/comatose_admin/_page_list_item.html.erb
100
+ - views/comatose_admin/delete.html.erb
101
+ - views/comatose_admin/edit.html.erb
102
+ - views/comatose_admin/index.html.erb
103
+ - views/comatose_admin/new.html.erb
104
+ - views/comatose_admin/reorder.html.erb
105
+ - views/comatose_admin/versions.html.erb
106
+ - views/layouts/comatose_admin.html.erb
107
+ - views/layouts/comatose_admin_customize.html.erb
108
+ - views/layouts/comatose_content.html.erb
109
+ has_rdoc: true
110
+ homepage: http://comatose.rubyforge.org
111
+ licenses:
112
+ post_install_message:
113
+ rdoc_options:
114
+ - --main
115
+ - README.markdown
116
+ require_paths:
117
+ - lib
118
+ required_ruby_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: "0"
123
+ version:
124
+ required_rubygems_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: "0"
129
+ version:
130
+ requirements: []
131
+
132
+ rubyforge_project: comatose
133
+ rubygems_version: 1.3.5
134
+ signing_key:
135
+ specification_version: 2
136
+ summary: Micro CMS designed for being embedded into existing Rails applications
137
+ test_files:
138
+ - test/behaviors.rb
139
+ - test/fixtures/comatose_pages.yml
140
+ - test/functional/comatose_admin_controller_test.rb
141
+ - test/functional/comatose_controller_test.rb
142
+ - test/javascripts/test.html
143
+ - test/javascripts/test_runner.js
144
+ - test/test_helper.rb
145
+ - test/unit/class_options_test.rb
146
+ - test/unit/comatose_page_test.rb
147
+ - test/unit/processing_context_test.rb
148
+ - test/unit/text_filters_test.rb