rich_cms 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/README.textile +1 -1
- data/VERSION +1 -1
- data/lib/generators/rich/authlogic_user/authlogic_user_generator.rb +1 -0
- data/lib/generators/rich/authlogic_user/templates/model.rb +0 -4
- data/lib/generators/rich/authlogic_user/templates/session.rb +4 -0
- data/lib/generators/rich/cms_content/cms_content_generator.rb +1 -0
- data/rails_generators/rich_authlogic_user/rich_authlogic_user_generator.rb +6 -3
- data/rails_generators/rich_cms_content/rich_cms_content_generator.rb +6 -3
- data/rich_cms.gemspec +2 -2
- metadata +4 -4
data/CHANGELOG
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
= Rich-CMS CHANGELOG
|
2
2
|
|
3
|
+
== Version 2.1.2 (November 9, 2010)
|
4
|
+
|
5
|
+
* Defining the 'to_key' method in the correct file (which fixes Authlogic in Rails 3)
|
6
|
+
* Fixed the Rails generators once and for all
|
7
|
+
|
3
8
|
== Version 2.1.1 (November 8, 2010)
|
4
9
|
|
5
10
|
* Fixed the Rails 3 generators which conflicted with Rich-I18n
|
data/README.textile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.2
|
@@ -16,6 +16,7 @@ module Rich
|
|
16
16
|
filename = "config/initializers/enrichments.rb"
|
17
17
|
line = "\nRich::Cms::Engine.authenticate(:authlogic, {:class_name => \"#{model_class_name}\", :identifier => :email})"
|
18
18
|
|
19
|
+
create_file filename unless File.exists?(filename)
|
19
20
|
return if File.open(filename).readlines.collect(&:strip).include? line.strip
|
20
21
|
|
21
22
|
File.open(filename, "a+") do |file|
|
@@ -16,6 +16,7 @@ module Rich
|
|
16
16
|
filename = "config/initializers/enrichments.rb"
|
17
17
|
line = "\nRich::Cms::Engine.register(\".#{model_file_name}\", {:class_name => \"#{model_class_name}\"})"
|
18
18
|
|
19
|
+
create_file filename unless File.exists?(filename)
|
19
20
|
return if File.open(filename).readlines.collect(&:strip).include? line.strip
|
20
21
|
|
21
22
|
File.open(filename, "a+") do |file|
|
@@ -15,9 +15,12 @@ class RichAuthlogicUserGenerator < Rails::Generator::Base
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def after_generate
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
filename = destination_path("config/initializers/enrichments.rb")
|
19
|
+
line = "\nRich::Cms::Engine.authenticate(:authlogic, {:class_name => \"#{model_class_name}\", :identifier => :email})"
|
20
|
+
|
21
|
+
File.open(filename, "a+") do |file|
|
22
|
+
file << line
|
23
|
+
end unless File.open(filename).readlines.collect(&:strip).include? line.strip
|
21
24
|
|
22
25
|
system "rake db:migrate" if options[:migrate]
|
23
26
|
end
|
@@ -14,9 +14,12 @@ class RichCmsContentGenerator < Rails::Generator::Base
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def after_generate
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
filename = destination_path("config/initializers/enrichments.rb")
|
18
|
+
line = "\nRich::Cms::Engine.register(\".#{model_file_name}\", {:class_name => \"#{model_class_name}\"})"
|
19
|
+
|
20
|
+
File.open(filename, "a+") do |file|
|
21
|
+
file << line
|
22
|
+
end unless File.open(filename).readlines.collect(&:strip).include? line.strip
|
20
23
|
|
21
24
|
system "rake db:migrate" if options[:migrate]
|
22
25
|
end
|
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.1.
|
8
|
+
s.version = "2.1.2"
|
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-11-
|
12
|
+
s.date = %q{2010-11-09}
|
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 = [
|
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: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 2.1.
|
9
|
+
- 2
|
10
|
+
version: 2.1.2
|
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-11-
|
18
|
+
date: 2010-11-09 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|