rich_cms 2.0.7 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +10 -1
- data/README.textile +58 -16
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/{lib/app → app}/controllers/rich/cms_controller.rb +7 -7
- data/{lib/app → app}/views/rich/cms/_dock.html.erb +1 -1
- data/{lib/app → app}/views/rich/cms/dock/_menu.html.erb +1 -1
- data/{lib/app → app}/views/rich/cms/dock/_panel.html.erb +1 -1
- data/app/views/rich/cms/dock/panel/_edit.html.erb +1 -0
- data/app/views/rich/cms/dock/panel/_login.html.erb +1 -0
- data/app/views/rich/cms/dock/panel/edit/_rails3.html.erb +10 -0
- data/{lib/app/views/rich/cms/dock/panel/_login.html.erb → app/views/rich/cms/dock/panel/login/_rails2.html.erb} +4 -4
- data/app/views/rich/cms/dock/panel/login/_rails3.html.erb +15 -0
- data/{lib/app → app}/views/rich_cms.html.erb +1 -1
- data/{lib/assets → assets}/jzip/jquery/cleditor.js +14 -14
- data/assets/jzip/jquery/extensions/ajaxify.js +26 -0
- data/{lib/assets → assets}/jzip/jquery/raccoon_tip.js +22 -22
- data/assets/jzip/jquery/ui/components/draggable.js +797 -0
- data/assets/jzip/jquery/ui/components/mouse.js +151 -0
- data/assets/jzip/jquery/ui/components/widget.js +237 -0
- data/{lib/assets → assets}/jzip/rich/cms/dock.js +5 -5
- data/{lib/assets → assets}/jzip/rich/cms/editor.js +21 -21
- data/{lib/assets → assets}/jzip/rich/cms/menu.js +3 -3
- data/{lib/assets → assets}/jzip/rich/cms.js +1 -1
- data/{lib/assets → assets}/sass/rich_cms/_dock.sass +2 -2
- data/{lib/assets → assets}/sass/rich_cms/_menu.sass +2 -2
- data/{lib/assets → assets}/sass/rich_cms/_panel.sass +2 -2
- data/{lib/assets → assets}/sass/tools/_mixins.sass +5 -5
- data/config/routes.rb +36 -0
- data/lib/generators/rich/authlogic_user/authlogic_user_generator.rb +63 -0
- data/lib/generators/rich/authlogic_user/templates/migration.rb +25 -0
- data/lib/generators/rich/authlogic_user/templates/model.rb +12 -0
- data/lib/generators/rich/authlogic_user/templates/session.rb +7 -0
- data/lib/generators/rich/cms_content/cms_content_generator.rb +59 -0
- data/lib/generators/rich/cms_content/templates/migration.rb +15 -0
- data/lib/generators/rich.rb +25 -0
- data/lib/rich/cms/actionpack/action_controller/base.rb +8 -8
- data/lib/rich/cms/actionpack/action_view/base.rb +14 -14
- data/lib/rich/cms/activesupport/active_support/dependencies.rb +12 -0
- data/lib/rich/cms/activesupport.rb +1 -0
- data/lib/rich/cms/content/group.rb +13 -13
- data/lib/rich/cms/content/item.rb +17 -17
- data/lib/rich/cms/core/string/html_safe.rb +18 -0
- data/lib/rich/cms/core/string.rb +6 -0
- data/lib/rich/cms/core.rb +1 -0
- data/lib/rich/cms/engine.rb +85 -74
- data/lib/rich/cms/rails/engine.rb +5 -0
- data/lib/rich/cms/rails.rb +1 -0
- data/lib/rich_cms.rb +8 -6
- data/rails_generators/rich_authlogic_user/rich_authlogic_user_generator.rb +4 -4
- data/rails_generators/rich_authlogic_user/templates/migration.rb +1 -1
- data/rails_generators/rich_authlogic_user/templates/model.rb +1 -1
- data/rails_generators/rich_authlogic_user/templates/session.rb +4 -0
- data/rails_generators/rich_cms_content/rich_cms_content_generator.rb +3 -3
- data/rails_generators/rich_cms_content/templates/migration.rb +1 -1
- data/rich_cms.gemspec +69 -60
- data/test/test_helper.rb +4 -1
- metadata +73 -62
- data/lib/app/controllers/rich/._cms_controller.rb +0 -0
- data/lib/app/views/._rich_cms.html.erb +0 -0
- data/lib/app/views/rich/cms/dock/.__menu.html.erb +0 -0
- data/lib/app/views/rich/cms/dock/.__panel.html.erb +0 -0
- data/lib/app/views/rich/cms/dock/panel/.__login.html.erb +0 -0
- data/lib/assets/jzip/jquery/extensions/ajaxify.js +0 -26
- data/lib/assets/jzip/jquery/ui/components/draggable.js +0 -797
- data/lib/assets/jzip/jquery/ui/components/mouse.js +0 -151
- data/lib/assets/jzip/jquery/ui/components/widget.js +0 -237
- data/lib/config/routes.rb +0 -19
- data/lib/rich/cms/actionpack/action_controller/._base.rb +0 -0
- data/lib/rich/cms/actionpack/action_view/._base.rb +0 -0
- data/test/engine_test.rb +0 -15
- /data/{lib/app/views/rich/cms/dock/panel/_edit.html.erb → app/views/rich/cms/dock/panel/edit/_rails2.html.erb} +0 -0
- /data/{lib/assets → assets}/images/cleditor/buttons.gif +0 -0
- /data/{lib/assets → assets}/images/cleditor/toolbar.gif +0 -0
- /data/{lib/assets → assets}/jzip/jquery/core.jz +0 -0
- /data/{lib/assets → assets}/jzip/jquery/extensions/browser_detect.js +0 -0
- /data/{lib/assets → assets}/jzip/jquery/extensions/modules.js +0 -0
- /data/{lib/assets → assets}/jzip/jquery/extensions/object.js +0 -0
- /data/{lib/assets → assets}/jzip/jquery/ui/components/core.js +0 -0
- /data/{lib/assets → assets}/jzip/jquery/ui/rich_cms/core.jz +0 -0
- /data/{lib/assets → assets}/jzip/jquery/ui/rich_cms/draggable.jz +0 -0
- /data/{lib/assets → assets}/jzip/jquery/ui/rich_cms/mouse.jz +0 -0
- /data/{lib/assets → assets}/jzip/jquery/ui/rich_cms/widget.jz +0 -0
- /data/{lib/assets → assets}/jzip/rich.js +0 -0
- /data/{lib/assets → assets}/jzip/rich_cms.jz +0 -0
- /data/{lib/assets → assets}/sass/rich_cms/_content.sass +0 -0
- /data/{lib/assets → assets}/sass/rich_cms/_reset.sass +0 -0
- /data/{lib/assets → assets}/sass/rich_cms.sass +0 -0
- /data/{lib/assets → assets}/sass/tools/_css3.sass +0 -0
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rich_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 2.0.7
|
10
|
+
version: 2.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Engel
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-11-08 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,10 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 15
|
30
30
|
segments:
|
31
|
-
-
|
32
|
-
|
31
|
+
- 2
|
32
|
+
- 1
|
33
|
+
- 2
|
34
|
+
version: 2.1.2
|
33
35
|
type: :runtime
|
34
36
|
version_requirements: *id001
|
35
37
|
- !ruby/object:Gem::Dependency
|
@@ -38,14 +40,14 @@ dependencies:
|
|
38
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
41
|
none: false
|
40
42
|
requirements:
|
41
|
-
- - "
|
43
|
+
- - ">="
|
42
44
|
- !ruby/object:Gem::Version
|
43
|
-
hash:
|
45
|
+
hash: 19
|
44
46
|
segments:
|
45
47
|
- 1
|
46
|
-
- 0
|
47
48
|
- 1
|
48
|
-
|
49
|
+
- 0
|
50
|
+
version: 1.1.0
|
49
51
|
type: :runtime
|
50
52
|
version_requirements: *id002
|
51
53
|
- !ruby/object:Gem::Dependency
|
@@ -70,12 +72,12 @@ dependencies:
|
|
70
72
|
requirements:
|
71
73
|
- - ">="
|
72
74
|
- !ruby/object:Gem::Version
|
73
|
-
hash:
|
75
|
+
hash: 1
|
74
76
|
segments:
|
75
77
|
- 1
|
76
78
|
- 0
|
77
|
-
-
|
78
|
-
version: 1.0.
|
79
|
+
- 11
|
80
|
+
version: 1.0.11
|
79
81
|
type: :runtime
|
80
82
|
version_requirements: *id004
|
81
83
|
description: Rich-CMS is a module of E9s (http://github.com/archan937/e9s) which provides a frontend for your CMS content. You can use this gem to manage CMS content or translations (in an internationalized application). The installation and setup process is very easily done. You will have to register content at the Rich-CMS engine and also you will have to specify the authentication mechanism. Both are one-liners.
|
@@ -93,60 +95,71 @@ files:
|
|
93
95
|
- README.textile
|
94
96
|
- Rakefile
|
95
97
|
- VERSION
|
98
|
+
- app/controllers/rich/cms_controller.rb
|
99
|
+
- app/views/rich/cms/_dock.html.erb
|
100
|
+
- app/views/rich/cms/dock/_menu.html.erb
|
101
|
+
- app/views/rich/cms/dock/_panel.html.erb
|
102
|
+
- app/views/rich/cms/dock/panel/_edit.html.erb
|
103
|
+
- app/views/rich/cms/dock/panel/_login.html.erb
|
104
|
+
- app/views/rich/cms/dock/panel/edit/_rails2.html.erb
|
105
|
+
- app/views/rich/cms/dock/panel/edit/_rails3.html.erb
|
106
|
+
- app/views/rich/cms/dock/panel/login/_rails2.html.erb
|
107
|
+
- app/views/rich/cms/dock/panel/login/_rails3.html.erb
|
108
|
+
- app/views/rich_cms.html.erb
|
109
|
+
- assets/images/cleditor/buttons.gif
|
110
|
+
- assets/images/cleditor/toolbar.gif
|
111
|
+
- assets/jzip/jquery/cleditor.js
|
112
|
+
- assets/jzip/jquery/core.jz
|
113
|
+
- assets/jzip/jquery/extensions/ajaxify.js
|
114
|
+
- assets/jzip/jquery/extensions/browser_detect.js
|
115
|
+
- assets/jzip/jquery/extensions/modules.js
|
116
|
+
- assets/jzip/jquery/extensions/object.js
|
117
|
+
- assets/jzip/jquery/raccoon_tip.js
|
118
|
+
- assets/jzip/jquery/ui/components/core.js
|
119
|
+
- assets/jzip/jquery/ui/components/draggable.js
|
120
|
+
- assets/jzip/jquery/ui/components/mouse.js
|
121
|
+
- assets/jzip/jquery/ui/components/widget.js
|
122
|
+
- assets/jzip/jquery/ui/rich_cms/core.jz
|
123
|
+
- assets/jzip/jquery/ui/rich_cms/draggable.jz
|
124
|
+
- assets/jzip/jquery/ui/rich_cms/mouse.jz
|
125
|
+
- assets/jzip/jquery/ui/rich_cms/widget.jz
|
126
|
+
- assets/jzip/rich.js
|
127
|
+
- assets/jzip/rich/cms.js
|
128
|
+
- assets/jzip/rich/cms/dock.js
|
129
|
+
- assets/jzip/rich/cms/editor.js
|
130
|
+
- assets/jzip/rich/cms/menu.js
|
131
|
+
- assets/jzip/rich_cms.jz
|
132
|
+
- assets/sass/rich_cms.sass
|
133
|
+
- assets/sass/rich_cms/_content.sass
|
134
|
+
- assets/sass/rich_cms/_dock.sass
|
135
|
+
- assets/sass/rich_cms/_menu.sass
|
136
|
+
- assets/sass/rich_cms/_panel.sass
|
137
|
+
- assets/sass/rich_cms/_reset.sass
|
138
|
+
- assets/sass/tools/_css3.sass
|
139
|
+
- assets/sass/tools/_mixins.sass
|
140
|
+
- config/routes.rb
|
96
141
|
- init.rb
|
97
142
|
- install.rb
|
98
|
-
- lib/
|
99
|
-
- lib/
|
100
|
-
- lib/
|
101
|
-
- lib/
|
102
|
-
- lib/
|
103
|
-
- lib/
|
104
|
-
- lib/
|
105
|
-
- lib/app/views/rich/cms/dock/_panel.html.erb
|
106
|
-
- lib/app/views/rich/cms/dock/panel/.__login.html.erb
|
107
|
-
- lib/app/views/rich/cms/dock/panel/_edit.html.erb
|
108
|
-
- lib/app/views/rich/cms/dock/panel/_login.html.erb
|
109
|
-
- lib/app/views/rich_cms.html.erb
|
110
|
-
- lib/assets/images/cleditor/buttons.gif
|
111
|
-
- lib/assets/images/cleditor/toolbar.gif
|
112
|
-
- lib/assets/jzip/jquery/cleditor.js
|
113
|
-
- lib/assets/jzip/jquery/core.jz
|
114
|
-
- lib/assets/jzip/jquery/extensions/ajaxify.js
|
115
|
-
- lib/assets/jzip/jquery/extensions/browser_detect.js
|
116
|
-
- lib/assets/jzip/jquery/extensions/modules.js
|
117
|
-
- lib/assets/jzip/jquery/extensions/object.js
|
118
|
-
- lib/assets/jzip/jquery/raccoon_tip.js
|
119
|
-
- lib/assets/jzip/jquery/ui/components/core.js
|
120
|
-
- lib/assets/jzip/jquery/ui/components/draggable.js
|
121
|
-
- lib/assets/jzip/jquery/ui/components/mouse.js
|
122
|
-
- lib/assets/jzip/jquery/ui/components/widget.js
|
123
|
-
- lib/assets/jzip/jquery/ui/rich_cms/core.jz
|
124
|
-
- lib/assets/jzip/jquery/ui/rich_cms/draggable.jz
|
125
|
-
- lib/assets/jzip/jquery/ui/rich_cms/mouse.jz
|
126
|
-
- lib/assets/jzip/jquery/ui/rich_cms/widget.jz
|
127
|
-
- lib/assets/jzip/rich.js
|
128
|
-
- lib/assets/jzip/rich/cms.js
|
129
|
-
- lib/assets/jzip/rich/cms/dock.js
|
130
|
-
- lib/assets/jzip/rich/cms/editor.js
|
131
|
-
- lib/assets/jzip/rich/cms/menu.js
|
132
|
-
- lib/assets/jzip/rich_cms.jz
|
133
|
-
- lib/assets/sass/rich_cms.sass
|
134
|
-
- lib/assets/sass/rich_cms/_content.sass
|
135
|
-
- lib/assets/sass/rich_cms/_dock.sass
|
136
|
-
- lib/assets/sass/rich_cms/_menu.sass
|
137
|
-
- lib/assets/sass/rich_cms/_panel.sass
|
138
|
-
- lib/assets/sass/rich_cms/_reset.sass
|
139
|
-
- lib/assets/sass/tools/_css3.sass
|
140
|
-
- lib/assets/sass/tools/_mixins.sass
|
141
|
-
- lib/config/routes.rb
|
143
|
+
- lib/generators/rich.rb
|
144
|
+
- lib/generators/rich/authlogic_user/authlogic_user_generator.rb
|
145
|
+
- lib/generators/rich/authlogic_user/templates/migration.rb
|
146
|
+
- lib/generators/rich/authlogic_user/templates/model.rb
|
147
|
+
- lib/generators/rich/authlogic_user/templates/session.rb
|
148
|
+
- lib/generators/rich/cms_content/cms_content_generator.rb
|
149
|
+
- lib/generators/rich/cms_content/templates/migration.rb
|
142
150
|
- lib/rich/cms/actionpack.rb
|
143
|
-
- lib/rich/cms/actionpack/action_controller/._base.rb
|
144
151
|
- lib/rich/cms/actionpack/action_controller/base.rb
|
145
|
-
- lib/rich/cms/actionpack/action_view/._base.rb
|
146
152
|
- lib/rich/cms/actionpack/action_view/base.rb
|
153
|
+
- lib/rich/cms/activesupport.rb
|
154
|
+
- lib/rich/cms/activesupport/active_support/dependencies.rb
|
147
155
|
- lib/rich/cms/content/group.rb
|
148
156
|
- lib/rich/cms/content/item.rb
|
157
|
+
- lib/rich/cms/core.rb
|
158
|
+
- lib/rich/cms/core/string.rb
|
159
|
+
- lib/rich/cms/core/string/html_safe.rb
|
149
160
|
- lib/rich/cms/engine.rb
|
161
|
+
- lib/rich/cms/rails.rb
|
162
|
+
- lib/rich/cms/rails/engine.rb
|
150
163
|
- lib/rich_cms.rb
|
151
164
|
- rails/init.rb
|
152
165
|
- rails_generators/rich_authlogic_user/rich_authlogic_user_generator.rb
|
@@ -160,7 +173,6 @@ files:
|
|
160
173
|
- rails_generators/rich_cms_content/templates/model.rb
|
161
174
|
- rich_cms.gemspec
|
162
175
|
- tasks/rich_cms_tasks.rake
|
163
|
-
- test/engine_test.rb
|
164
176
|
- test/test_helper.rb
|
165
177
|
- uninstall.rb
|
166
178
|
has_rdoc: true
|
@@ -198,5 +210,4 @@ signing_key:
|
|
198
210
|
specification_version: 3
|
199
211
|
summary: Enrichments (e9s) module for a pluggable CMS frontend
|
200
212
|
test_files:
|
201
|
-
- test/engine_test.rb
|
202
213
|
- test/test_helper.rb
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,26 +0,0 @@
|
|
1
|
-
|
2
|
-
$.ajaxFormHandlers = {};
|
3
|
-
|
4
|
-
$.extend({
|
5
|
-
registerAjaxFormHandler: function(handlers) {
|
6
|
-
$.extend($.ajaxFormHandlers, handlers);
|
7
|
-
}
|
8
|
-
});
|
9
|
-
|
10
|
-
$("form.ajaxify").live("submit", function(event) {
|
11
|
-
var form = $(this);
|
12
|
-
|
13
|
-
$.ajax({
|
14
|
-
type: form.attr("method") || "GET",
|
15
|
-
url : form.attr("action") || window.location.href,
|
16
|
-
data: form.serialize(),
|
17
|
-
success: function(response) {
|
18
|
-
var handler = $.ajaxFormHandlers[form.attr("name")];
|
19
|
-
if (handler) {
|
20
|
-
handler(form, response);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
});
|
24
|
-
|
25
|
-
event.preventDefault();
|
26
|
-
});
|