rich_cms 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README.textile +15 -11
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/app/controllers/rich/cms_controller.rb +21 -8
- data/rich_cms.gemspec +3 -3
- metadata +5 -5
data/CHANGELOG
CHANGED
data/README.textile
CHANGED
@@ -192,37 +192,41 @@ jQuery<br>
|
|
192
192
|
AuthLogic<br>
|
193
193
|
"http://github.com/binarylogic/authlogic":http://github.com/binarylogic/authlogic
|
194
194
|
|
195
|
-
|
196
|
-
"http://github.com/
|
195
|
+
Formtastic<br>
|
196
|
+
"http://github.com/justinfrench/formtastic":http://github.com/justinfrench/formtastic
|
197
197
|
|
198
198
|
SASS<br>
|
199
199
|
"http://sass-lang.com":http://sass-lang.com
|
200
200
|
|
201
|
-
|
202
|
-
"http://
|
201
|
+
Jzip<br>
|
202
|
+
"http://codehero.es/rails_gems_plugins/jzip":http://codehero.es/rails_gems_plugins/jzip <br>
|
203
|
+
"http://github.com/archan937/jzip":http://github.com/archan937/jzip
|
203
204
|
|
204
205
|
RaccoonTip<br>
|
206
|
+
"http://codehero.es/jquery_libraries/raccoon_tip":http://codehero.es/jquery_libraries/raccoon_tip <br>
|
205
207
|
"http://github.com/archan937/raccoon_tip":http://github.com/archan937/raccoon_tip
|
206
208
|
|
207
209
|
SeatHolder<br>
|
210
|
+
"http://codehero.es/jquery_libraries/seat_holder":http://codehero.es/jquery_libraries/seat_holder <br>
|
208
211
|
"http://github.com/archan937/seat_holder":http://github.com/archan937/seat_holder
|
209
212
|
|
210
213
|
h2. ToDo's
|
211
214
|
|
212
|
-
*
|
213
|
-
*
|
215
|
+
* Provide better conventions for content rendering
|
216
|
+
* Provide tools to use Textile, MarkDown, image files upload and models (e.g. products)
|
214
217
|
* Provide compatibility with other authentication mechanisms other than AuthLogic
|
215
218
|
* Add cache feature which uses the standard Rails cache (rich_cms_tag ".cms_content", "test_content", :cache => true)
|
219
|
+
* Make Rich-CMS compatible with Rails 3
|
216
220
|
|
217
|
-
h2.
|
221
|
+
h2. Enrichments
|
218
222
|
|
219
|
-
|
223
|
+
The all-in-one gem at - "http://codehero.es/rails_gems_plugins/e9s":http://codehero.es/rails_gems_plugins/e9s - "http://github.com/archan937/e9s":http://github.com/archan937/e9s
|
220
224
|
|
221
225
|
h3. E9s modules
|
222
226
|
|
223
|
-
* Rich-CMS
|
224
|
-
* Rich-i18n
|
225
|
-
* Rich-pluralization
|
227
|
+
* Rich-CMS <br> "http://codehero.es/rails_gems_plugins/rich_cms":http://codehero.es/rails_gems_plugins/rich_cms <br> "http://github.com/archan937/rich_cms":http://github.com/archan937/rich_cms
|
228
|
+
* Rich-i18n <br> "http://codehero.es/rails_gems_plugins/rich_i18n":http://codehero.es/rails_gems_plugins/rich_i18n <br> "http://github.com/archan937/rich_i18n":http://github.com/archan937/rich_i18n
|
229
|
+
* Rich-pluralization <br> "http://codehero.es/rails_gems_plugins/rich_pluralization":http://codehero.es/rails_gems_plugins/rich_pluralization <br> "http://github.com/archan937/rich_pluralization":http://github.com/archan937/rich_pluralization
|
226
230
|
|
227
231
|
h2. License
|
228
232
|
|
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ begin
|
|
9
9
|
gemspec.summary = "Enrichments (e9s) module for a pluggable CMS frontend"
|
10
10
|
gemspec.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."
|
11
11
|
gemspec.email = "paul.engel@holder.nl"
|
12
|
-
gemspec.homepage = "http://
|
12
|
+
gemspec.homepage = "http://codehero.es/rails_gems_plugins/rich_cms"
|
13
13
|
gemspec.author = "Paul Engel"
|
14
14
|
|
15
15
|
gemspec.add_dependency "authlogic"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.6
|
@@ -19,7 +19,23 @@ module Rich
|
|
19
19
|
when :authlogic
|
20
20
|
@current_rich_cms_admin_session = rich_cms_authenticated_class.new params[key = rich_cms_authenticated_class.name.underscore.gsub("/", "_")]
|
21
21
|
authenticated = @current_rich_cms_admin_session.save
|
22
|
+
|
23
|
+
after_rich_cms_login authenticated, key
|
24
|
+
end
|
25
|
+
end
|
22
26
|
|
27
|
+
def logout
|
28
|
+
case rich_cms_auth.logic
|
29
|
+
when :authlogic
|
30
|
+
(@current_rich_cms_admin_session ||= rich_cms_authenticated_class.find).destroy
|
31
|
+
end
|
32
|
+
session[:rich_cms] = nil
|
33
|
+
|
34
|
+
after_rich_cms_logout
|
35
|
+
end
|
36
|
+
|
37
|
+
unless ::ApplicationController.instance_methods.include?("after_rich_cms_login")
|
38
|
+
def after_rich_cms_login(authenticated, key)
|
23
39
|
if request.xhr?
|
24
40
|
render :update do |page|
|
25
41
|
if authenticated
|
@@ -30,17 +46,14 @@ module Rich
|
|
30
46
|
end
|
31
47
|
else
|
32
48
|
redirect_to request.referrer
|
33
|
-
end
|
49
|
+
end
|
34
50
|
end
|
35
51
|
end
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
(@current_rich_cms_admin_session ||= rich_cms_authenticated_class.find).destroy
|
52
|
+
|
53
|
+
unless ::ApplicationController.instance_methods.include?("after_rich_cms_logout")
|
54
|
+
def after_rich_cms_logout
|
55
|
+
redirect_to request.referrer
|
41
56
|
end
|
42
|
-
session[:rich_cms] = nil
|
43
|
-
redirect_to request.referrer
|
44
57
|
end
|
45
58
|
|
46
59
|
def update
|
data/rich_cms.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rich_cms}
|
8
|
-
s.version = "2.0.
|
8
|
+
s.version = "2.0.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Paul Engel"]
|
12
|
-
s.date = %q{2010-10-
|
12
|
+
s.date = %q{2010-10-08}
|
13
13
|
s.description = %q{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.}
|
14
14
|
s.email = %q{paul.engel@holder.nl}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -90,7 +90,7 @@ Gem::Specification.new do |s|
|
|
90
90
|
"test/test_helper.rb",
|
91
91
|
"uninstall.rb"
|
92
92
|
]
|
93
|
-
s.homepage = %q{http://
|
93
|
+
s.homepage = %q{http://codehero.es/rails_gems_plugins/rich_cms}
|
94
94
|
s.rdoc_options = ["--charset=UTF-8"]
|
95
95
|
s.require_paths = ["lib"]
|
96
96
|
s.rubygems_version = %q{1.3.7}
|
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: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 6
|
10
|
+
version: 2.0.6
|
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-10-
|
18
|
+
date: 2010-10-08 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -161,7 +161,7 @@ files:
|
|
161
161
|
- test/test_helper.rb
|
162
162
|
- uninstall.rb
|
163
163
|
has_rdoc: true
|
164
|
-
homepage: http://
|
164
|
+
homepage: http://codehero.es/rails_gems_plugins/rich_cms
|
165
165
|
licenses: []
|
166
166
|
|
167
167
|
post_install_message:
|