rich_cms 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  = Rich-CMS CHANGELOG
2
2
 
3
+ == Version 2.1.1 (November 8, 2010)
4
+
5
+ * Fixed the Rails 3 generators which conflicted with Rich-I18n
6
+
3
7
  == Version 2.1.0 (November 8, 2010)
4
8
 
5
9
  * Made Rich-CMS Rails 2 and 3 compatible (woot!) Thanks Mark Mulder (@bitterzoet) for contributing
data/README.textile CHANGED
@@ -265,7 +265,6 @@ h2. ToDo's
265
265
  * Provide tools to use Textile, MarkDown, image files upload and models (e.g. products)
266
266
  * Provide compatibility with other authentication mechanisms other than AuthLogic
267
267
  * Add cache feature which uses the standard Rails cache (rich_cms_tag ".cms_content", "test_content", :cache => true)
268
- * Make Rich-CMS compatible with Rails 3
269
268
 
270
269
  h2. Enrichments
271
270
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.1.1
@@ -1,12 +1,12 @@
1
- require "generators/rich"
1
+ require "generators/rich_cms"
2
2
 
3
3
  module Rich
4
4
  module Generators
5
5
 
6
- class AuthlogicUserGenerator < Base
6
+ class AuthlogicUserGenerator < ::RichCms::Generators::Base
7
7
 
8
8
  include Rails::Generators::Migration
9
- include Rich::Generators::Migration
9
+ include RichCms::Generators::Migration
10
10
 
11
11
  desc "Creates Authlogic model and migration and also registers authenticated model to Rich-CMS."
12
12
  argument :model_name, :type => :string , :default => "user"
@@ -16,7 +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
- return if File.open(filename, "a+").readlines.include? line.strip
19
+ return if File.open(filename).readlines.collect(&:strip).include? line.strip
20
20
 
21
21
  File.open(filename, "a+") do |file|
22
22
  file << line
@@ -1,12 +1,12 @@
1
- require "generators/rich"
1
+ require "generators/rich_cms"
2
2
 
3
3
  module Rich
4
4
  module Generators
5
5
 
6
- class CmsContentGenerator < Base
6
+ class CmsContentGenerator < ::RichCms::Generators::Base
7
7
 
8
8
  include Rails::Generators::Migration
9
- include Rich::Generators::Migration
9
+ include RichCms::Generators::Migration
10
10
 
11
11
  desc "Creates Rich-CMS content model and migration and also registers content to Rich-CMS."
12
12
  argument :model_name, :type => :string , :default => "cms_content"
@@ -16,7 +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
- return if File.open(filename, "a+").readlines.include? line.strip
19
+ return if File.open(filename).readlines.collect(&:strip).include? line.strip
20
20
 
21
21
  File.open(filename, "a+") do |file|
22
22
  file << line
@@ -1,6 +1,6 @@
1
1
  require "rails/generators/named_base"
2
2
 
3
- module Rich
3
+ module RichCms
4
4
  module Generators
5
5
 
6
6
  class Base < Rails::Generators::Base
data/rich_cms.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rich_cms}
8
- s.version = "2.1.0"
8
+ s.version = "2.1.1"
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"]
@@ -67,13 +67,13 @@ Gem::Specification.new do |s|
67
67
  "config/routes.rb",
68
68
  "init.rb",
69
69
  "install.rb",
70
- "lib/generators/rich.rb",
71
70
  "lib/generators/rich/authlogic_user/authlogic_user_generator.rb",
72
71
  "lib/generators/rich/authlogic_user/templates/migration.rb",
73
72
  "lib/generators/rich/authlogic_user/templates/model.rb",
74
73
  "lib/generators/rich/authlogic_user/templates/session.rb",
75
74
  "lib/generators/rich/cms_content/cms_content_generator.rb",
76
75
  "lib/generators/rich/cms_content/templates/migration.rb",
76
+ "lib/generators/rich_cms.rb",
77
77
  "lib/rich/cms/actionpack.rb",
78
78
  "lib/rich/cms/actionpack/action_controller/base.rb",
79
79
  "lib/rich/cms/actionpack/action_view/base.rb",
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: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 0
10
- version: 2.1.0
9
+ - 1
10
+ version: 2.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Engel
@@ -140,13 +140,13 @@ files:
140
140
  - config/routes.rb
141
141
  - init.rb
142
142
  - install.rb
143
- - lib/generators/rich.rb
144
143
  - lib/generators/rich/authlogic_user/authlogic_user_generator.rb
145
144
  - lib/generators/rich/authlogic_user/templates/migration.rb
146
145
  - lib/generators/rich/authlogic_user/templates/model.rb
147
146
  - lib/generators/rich/authlogic_user/templates/session.rb
148
147
  - lib/generators/rich/cms_content/cms_content_generator.rb
149
148
  - lib/generators/rich/cms_content/templates/migration.rb
149
+ - lib/generators/rich_cms.rb
150
150
  - lib/rich/cms/actionpack.rb
151
151
  - lib/rich/cms/actionpack/action_controller/base.rb
152
152
  - lib/rich/cms/actionpack/action_view/base.rb