aslakjo-comatose 2.0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +195 -0
- data/INSTALL +20 -0
- data/LICENSE +20 -0
- data/MANIFEST +91 -0
- data/README.markdown +159 -0
- data/Rakefile +176 -0
- data/SPECS +61 -0
- data/about.yml +7 -0
- data/bin/comatose +112 -0
- data/comatose.gemspec +113 -0
- data/generators/comatose_migration/USAGE +15 -0
- data/generators/comatose_migration/comatose_migration_generator.rb +74 -0
- data/generators/comatose_migration/templates/migration.rb +35 -0
- data/generators/comatose_migration/templates/v4_upgrade.rb +15 -0
- data/generators/comatose_migration/templates/v6_upgrade.rb +23 -0
- data/generators/comatose_migration/templates/v7_upgrade.rb +22 -0
- data/init.rb +2 -0
- data/install.rb +18 -0
- data/lib/acts_as_versioned.rb +543 -0
- data/lib/comatose/comatose_drop.rb +79 -0
- data/lib/comatose/configuration.rb +69 -0
- data/lib/comatose/page_wrapper.rb +119 -0
- data/lib/comatose/processing_context.rb +69 -0
- data/lib/comatose/tasks/admin.rb +60 -0
- data/lib/comatose/tasks/data.rb +82 -0
- data/lib/comatose/tasks/setup.rb +52 -0
- data/lib/comatose/version.rb +4 -0
- data/lib/comatose.rb +33 -0
- data/lib/comatose_admin_controller.rb +395 -0
- data/lib/comatose_admin_helper.rb +37 -0
- data/lib/comatose_controller.rb +138 -0
- data/lib/comatose_helper.rb +3 -0
- data/lib/comatose_page.rb +141 -0
- data/lib/liquid/block.rb +96 -0
- data/lib/liquid/context.rb +190 -0
- data/lib/liquid/document.rb +17 -0
- data/lib/liquid/drop.rb +48 -0
- data/lib/liquid/errors.rb +7 -0
- data/lib/liquid/extensions.rb +53 -0
- data/lib/liquid/file_system.rb +62 -0
- data/lib/liquid/htmltags.rb +64 -0
- data/lib/liquid/standardfilters.rb +111 -0
- data/lib/liquid/standardtags.rb +399 -0
- data/lib/liquid/strainer.rb +42 -0
- data/lib/liquid/tag.rb +25 -0
- data/lib/liquid/template.rb +88 -0
- data/lib/liquid/variable.rb +39 -0
- data/lib/liquid.rb +52 -0
- data/lib/redcloth.rb +1129 -0
- data/lib/support/class_options.rb +36 -0
- data/lib/support/inline_rendering.rb +48 -0
- data/lib/support/route_mapper.rb +50 -0
- data/lib/text_filters/markdown.rb +14 -0
- data/lib/text_filters/markdown_smartypants.rb +15 -0
- data/lib/text_filters/none.rb +8 -0
- data/lib/text_filters/rdoc.rb +13 -0
- data/lib/text_filters/simple.rb +8 -0
- data/lib/text_filters/textile.rb +15 -0
- data/lib/text_filters.rb +140 -0
- data/rails/init.rb +3 -0
- data/resources/layouts/comatose_admin_template.html.erb +28 -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 +401 -0
- data/resources/public/stylesheets/comatose_admin.css +404 -0
- data/tasks/comatose.rake +9 -0
- data/test/behaviors.rb +106 -0
- data/test/fixtures/comatose_pages.yml +96 -0
- data/test/functional/comatose_admin_controller_test.rb +114 -0
- data/test/functional/comatose_controller_test.rb +44 -0
- data/test/javascripts/test.html +26 -0
- data/test/javascripts/test_runner.js +307 -0
- data/test/test_helper.rb +55 -0
- data/test/unit/class_options_test.rb +52 -0
- data/test/unit/comatose_page_test.rb +136 -0
- data/test/unit/processing_context_test.rb +108 -0
- data/test/unit/text_filters_test.rb +52 -0
- data/views/comatose_admin/_form.html.erb +96 -0
- data/views/comatose_admin/_page_list_item.html.erb +60 -0
- data/views/comatose_admin/delete.html.erb +18 -0
- data/views/comatose_admin/edit.html.erb +5 -0
- data/views/comatose_admin/index.html.erb +29 -0
- data/views/comatose_admin/new.html.erb +5 -0
- data/views/comatose_admin/reorder.html.erb +30 -0
- data/views/comatose_admin/versions.html.erb +40 -0
- data/views/layouts/comatose_admin.html.erb +837 -0
- data/views/layouts/comatose_admin_customize.html.erb +28 -0
- data/views/layouts/comatose_content.html.erb +17 -0
- 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
|