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
data/lib/rich/cms/engine.rb
CHANGED
@@ -1,87 +1,98 @@
|
|
1
1
|
|
2
2
|
module Rich
|
3
3
|
module Cms
|
4
|
-
|
5
|
-
|
4
|
+
class Engine < Rails::Engine
|
5
|
+
|
6
6
|
class RichCmsError < StandardError
|
7
7
|
end
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
target_dir = File.join RAILS_ROOT, "public", "images", "rich", "cms"
|
35
|
-
|
36
|
-
FileUtils.rm_r target_dir if File.exists? target_dir
|
37
|
-
FileUtils.mkdir_p target_dir
|
38
|
-
FileUtils.cp_r source_dir, target_dir
|
39
|
-
end
|
40
|
-
|
41
|
-
def current_controller=(current_controller)
|
42
|
-
@current_controller = current_controller
|
43
|
-
@can_render_metadata = nil
|
44
|
-
end
|
45
|
-
|
46
|
-
def authenticate(logic, specs)
|
47
|
-
@authentication = AuthenticationSpecs.new(logic, specs)
|
48
|
-
end
|
49
|
-
|
50
|
-
def register(*args)
|
51
|
-
(editables = args.first.is_a?(Hash) ? args.first : Hash[*args]).each do |selector, specs|
|
52
|
-
if @editable_content.keys.include?(selector)
|
53
|
-
raise RichCmsError, "Already registered editable content identified with #{selector.inspect}"
|
8
|
+
|
9
|
+
class << self
|
10
|
+
|
11
|
+
attr_reader :authentication, :editable_content
|
12
|
+
|
13
|
+
def init
|
14
|
+
@authentication = AuthenticationSpecs.new
|
15
|
+
@editable_content = {}
|
16
|
+
|
17
|
+
%w(controllers).each do |dir|
|
18
|
+
path = File.join File.dirname(__FILE__), "..", "..", "app", dir
|
19
|
+
$LOAD_PATH << path
|
20
|
+
ActiveSupport::Dependencies.autoload_paths << path
|
21
|
+
ActiveSupport::Dependencies.autoload_once_paths.delete path
|
22
|
+
end
|
23
|
+
|
24
|
+
procedure = proc {
|
25
|
+
::Jzip::Engine.add_template_location({File.expand_path("../../../../assets/jzip", __FILE__) => File.join(Rails.root, "public", "javascripts")})
|
26
|
+
::Sass::Plugin.add_template_location( File.expand_path("../../../../assets/sass", __FILE__), File.join(Rails.root, "public", "stylesheets") )
|
27
|
+
copy_assets
|
28
|
+
}
|
29
|
+
|
30
|
+
if Rails::VERSION::MAJOR >= 3
|
31
|
+
config.after_initialize do
|
32
|
+
procedure.call
|
33
|
+
end
|
54
34
|
else
|
55
|
-
|
35
|
+
procedure.call
|
56
36
|
end
|
57
37
|
end
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
def can_render_metadata?
|
69
|
-
if @can_render_metadata.nil?
|
70
|
-
@can_render_metadata = case authentication.logic
|
71
|
-
when :authlogic
|
72
|
-
@current_controller.try :current_rich_cms_admin
|
73
|
-
when nil
|
74
|
-
true
|
75
|
-
end
|
76
|
-
else
|
77
|
-
@can_render_metadata
|
38
|
+
|
39
|
+
def copy_assets
|
40
|
+
return if Rails.env == "test"
|
41
|
+
|
42
|
+
source_dir = File.join File.dirname(__FILE__), "..", "..", "..", "assets", "images", "."
|
43
|
+
target_dir = File.join Rails.root, "public", "images", "rich", "cms"
|
44
|
+
|
45
|
+
FileUtils.rm_r target_dir if File.exists? target_dir
|
46
|
+
FileUtils.mkdir_p target_dir
|
47
|
+
FileUtils.cp_r source_dir, target_dir
|
78
48
|
end
|
49
|
+
|
50
|
+
def current_controller=(current_controller)
|
51
|
+
@current_controller = current_controller
|
52
|
+
@can_render_metadata = nil
|
53
|
+
end
|
54
|
+
|
55
|
+
def authenticate(logic, specs)
|
56
|
+
@authentication = AuthenticationSpecs.new(logic, specs)
|
57
|
+
end
|
58
|
+
|
59
|
+
def register(*args)
|
60
|
+
(editables = args.first.is_a?(Hash) ? args.first : Hash[*args]).each do |selector, specs|
|
61
|
+
if @editable_content.keys.include?(selector)
|
62
|
+
raise RichCmsError, "Already registered editable content identified with #{selector.inspect}"
|
63
|
+
else
|
64
|
+
@editable_content[selector] = Cms::Content::Group.build(selector, specs)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
def to_content_tag(selector, identifiers, options = {})
|
70
|
+
editable_content[selector].fetch(identifiers).to_tag options
|
71
|
+
end
|
72
|
+
|
73
|
+
def editable_content_javascript_hash
|
74
|
+
"{#{@editable_content.collect{|k, v| v.to_javascript_hash}.join ", "}}".html_safe
|
75
|
+
end
|
76
|
+
|
77
|
+
def can_render_metadata?
|
78
|
+
if @can_render_metadata.nil?
|
79
|
+
@can_render_metadata = case authentication.logic
|
80
|
+
when :authlogic
|
81
|
+
@current_controller.try :current_rich_cms_admin
|
82
|
+
when nil
|
83
|
+
true
|
84
|
+
end
|
85
|
+
else
|
86
|
+
@can_render_metadata
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
private
|
91
|
+
|
92
|
+
AuthenticationSpecs = Struct.new(:logic, :specs)
|
93
|
+
|
79
94
|
end
|
80
|
-
|
81
|
-
private
|
82
|
-
|
83
|
-
AuthenticationSpecs = Struct.new(:logic, :specs)
|
84
|
-
|
95
|
+
|
85
96
|
end
|
86
97
|
end
|
87
98
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "rails", "engine.rb")
|
data/lib/rich_cms.rb
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
require "authlogic"
|
2
|
-
require "jzip"
|
3
|
-
require "sass/plugin"
|
4
|
-
|
5
2
|
require "formtastic"
|
6
|
-
|
3
|
+
require "jzip"
|
4
|
+
require "haml"
|
7
5
|
|
8
|
-
require "
|
6
|
+
require "rich/cms/core"
|
7
|
+
require "rich/cms/activesupport"
|
9
8
|
require "rich/cms/actionpack"
|
9
|
+
require "rich/cms/rails"
|
10
10
|
require "rich/cms/engine"
|
11
11
|
require "rich/cms/content/group"
|
12
|
-
require "rich/cms/content/item"
|
12
|
+
require "rich/cms/content/item"
|
13
|
+
|
14
|
+
require "config/routes" if Rails::VERSION::MAJOR < 3
|
@@ -13,12 +13,12 @@ class RichAuthlogicUserGenerator < Rails::Generator::Base
|
|
13
13
|
m.migration_template "migration.rb", "db/migrate", :migration_file_name => migration_file_name
|
14
14
|
end
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
def after_generate
|
18
18
|
File.open(destination_path("config/initializers/enrichments.rb"), "a+") do |file|
|
19
19
|
file << "\nRich::Cms::Engine.authenticate(:authlogic, {:class_name => \"#{model_class_name}\", :identifier => :email})"
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
22
|
system "rake db:migrate" if options[:migrate]
|
23
23
|
end
|
24
24
|
|
@@ -29,7 +29,7 @@ class RichAuthlogicUserGenerator < Rails::Generator::Base
|
|
29
29
|
def model_class_name
|
30
30
|
@name.classify
|
31
31
|
end
|
32
|
-
|
32
|
+
|
33
33
|
def table_name
|
34
34
|
model_file_name.gsub("/", "_").pluralize
|
35
35
|
end
|
@@ -49,7 +49,7 @@ protected
|
|
49
49
|
opt.separator "Options:"
|
50
50
|
opt.on("-m", "--migrate", "Run 'rake db:migrate' after generating model and migration.") { options[:migrate] = true }
|
51
51
|
end
|
52
|
-
|
52
|
+
|
53
53
|
def banner
|
54
54
|
<<-EOS
|
55
55
|
Creates Authlogic model and migration and also registers authenticated model to Rich-CMS.
|
@@ -12,12 +12,12 @@ class RichCmsContentGenerator < Rails::Generator::Base
|
|
12
12
|
m.migration_template "migration.rb", "db/migrate", :migration_file_name => migration_file_name
|
13
13
|
end
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
def after_generate
|
17
17
|
File.open(destination_path("config/initializers/enrichments.rb"), "a+") do |file|
|
18
18
|
file << "\nRich::Cms::Engine.register(\".#{model_file_name}\", {:class_name => \"#{model_class_name}\"})"
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
system "rake db:migrate" if options[:migrate]
|
22
22
|
end
|
23
23
|
|
@@ -28,7 +28,7 @@ class RichCmsContentGenerator < Rails::Generator::Base
|
|
28
28
|
def model_class_name
|
29
29
|
@name.classify
|
30
30
|
end
|
31
|
-
|
31
|
+
|
32
32
|
def table_name
|
33
33
|
model_file_name.gsub("/", "_").pluralize
|
34
34
|
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.0
|
8
|
+
s.version = "2.1.0"
|
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-
|
12
|
+
s.date = %q{2010-11-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 = [
|
@@ -22,60 +22,71 @@ Gem::Specification.new do |s|
|
|
22
22
|
"README.textile",
|
23
23
|
"Rakefile",
|
24
24
|
"VERSION",
|
25
|
+
"app/controllers/rich/cms_controller.rb",
|
26
|
+
"app/views/rich/cms/_dock.html.erb",
|
27
|
+
"app/views/rich/cms/dock/_menu.html.erb",
|
28
|
+
"app/views/rich/cms/dock/_panel.html.erb",
|
29
|
+
"app/views/rich/cms/dock/panel/_edit.html.erb",
|
30
|
+
"app/views/rich/cms/dock/panel/_login.html.erb",
|
31
|
+
"app/views/rich/cms/dock/panel/edit/_rails2.html.erb",
|
32
|
+
"app/views/rich/cms/dock/panel/edit/_rails3.html.erb",
|
33
|
+
"app/views/rich/cms/dock/panel/login/_rails2.html.erb",
|
34
|
+
"app/views/rich/cms/dock/panel/login/_rails3.html.erb",
|
35
|
+
"app/views/rich_cms.html.erb",
|
36
|
+
"assets/images/cleditor/buttons.gif",
|
37
|
+
"assets/images/cleditor/toolbar.gif",
|
38
|
+
"assets/jzip/jquery/cleditor.js",
|
39
|
+
"assets/jzip/jquery/core.jz",
|
40
|
+
"assets/jzip/jquery/extensions/ajaxify.js",
|
41
|
+
"assets/jzip/jquery/extensions/browser_detect.js",
|
42
|
+
"assets/jzip/jquery/extensions/modules.js",
|
43
|
+
"assets/jzip/jquery/extensions/object.js",
|
44
|
+
"assets/jzip/jquery/raccoon_tip.js",
|
45
|
+
"assets/jzip/jquery/ui/components/core.js",
|
46
|
+
"assets/jzip/jquery/ui/components/draggable.js",
|
47
|
+
"assets/jzip/jquery/ui/components/mouse.js",
|
48
|
+
"assets/jzip/jquery/ui/components/widget.js",
|
49
|
+
"assets/jzip/jquery/ui/rich_cms/core.jz",
|
50
|
+
"assets/jzip/jquery/ui/rich_cms/draggable.jz",
|
51
|
+
"assets/jzip/jquery/ui/rich_cms/mouse.jz",
|
52
|
+
"assets/jzip/jquery/ui/rich_cms/widget.jz",
|
53
|
+
"assets/jzip/rich.js",
|
54
|
+
"assets/jzip/rich/cms.js",
|
55
|
+
"assets/jzip/rich/cms/dock.js",
|
56
|
+
"assets/jzip/rich/cms/editor.js",
|
57
|
+
"assets/jzip/rich/cms/menu.js",
|
58
|
+
"assets/jzip/rich_cms.jz",
|
59
|
+
"assets/sass/rich_cms.sass",
|
60
|
+
"assets/sass/rich_cms/_content.sass",
|
61
|
+
"assets/sass/rich_cms/_dock.sass",
|
62
|
+
"assets/sass/rich_cms/_menu.sass",
|
63
|
+
"assets/sass/rich_cms/_panel.sass",
|
64
|
+
"assets/sass/rich_cms/_reset.sass",
|
65
|
+
"assets/sass/tools/_css3.sass",
|
66
|
+
"assets/sass/tools/_mixins.sass",
|
67
|
+
"config/routes.rb",
|
25
68
|
"init.rb",
|
26
69
|
"install.rb",
|
27
|
-
"lib/
|
28
|
-
"lib/
|
29
|
-
"lib/
|
30
|
-
"lib/
|
31
|
-
"lib/
|
32
|
-
"lib/
|
33
|
-
"lib/
|
34
|
-
"lib/app/views/rich/cms/dock/_panel.html.erb",
|
35
|
-
"lib/app/views/rich/cms/dock/panel/.__login.html.erb",
|
36
|
-
"lib/app/views/rich/cms/dock/panel/_edit.html.erb",
|
37
|
-
"lib/app/views/rich/cms/dock/panel/_login.html.erb",
|
38
|
-
"lib/app/views/rich_cms.html.erb",
|
39
|
-
"lib/assets/images/cleditor/buttons.gif",
|
40
|
-
"lib/assets/images/cleditor/toolbar.gif",
|
41
|
-
"lib/assets/jzip/jquery/cleditor.js",
|
42
|
-
"lib/assets/jzip/jquery/core.jz",
|
43
|
-
"lib/assets/jzip/jquery/extensions/ajaxify.js",
|
44
|
-
"lib/assets/jzip/jquery/extensions/browser_detect.js",
|
45
|
-
"lib/assets/jzip/jquery/extensions/modules.js",
|
46
|
-
"lib/assets/jzip/jquery/extensions/object.js",
|
47
|
-
"lib/assets/jzip/jquery/raccoon_tip.js",
|
48
|
-
"lib/assets/jzip/jquery/ui/components/core.js",
|
49
|
-
"lib/assets/jzip/jquery/ui/components/draggable.js",
|
50
|
-
"lib/assets/jzip/jquery/ui/components/mouse.js",
|
51
|
-
"lib/assets/jzip/jquery/ui/components/widget.js",
|
52
|
-
"lib/assets/jzip/jquery/ui/rich_cms/core.jz",
|
53
|
-
"lib/assets/jzip/jquery/ui/rich_cms/draggable.jz",
|
54
|
-
"lib/assets/jzip/jquery/ui/rich_cms/mouse.jz",
|
55
|
-
"lib/assets/jzip/jquery/ui/rich_cms/widget.jz",
|
56
|
-
"lib/assets/jzip/rich.js",
|
57
|
-
"lib/assets/jzip/rich/cms.js",
|
58
|
-
"lib/assets/jzip/rich/cms/dock.js",
|
59
|
-
"lib/assets/jzip/rich/cms/editor.js",
|
60
|
-
"lib/assets/jzip/rich/cms/menu.js",
|
61
|
-
"lib/assets/jzip/rich_cms.jz",
|
62
|
-
"lib/assets/sass/rich_cms.sass",
|
63
|
-
"lib/assets/sass/rich_cms/_content.sass",
|
64
|
-
"lib/assets/sass/rich_cms/_dock.sass",
|
65
|
-
"lib/assets/sass/rich_cms/_menu.sass",
|
66
|
-
"lib/assets/sass/rich_cms/_panel.sass",
|
67
|
-
"lib/assets/sass/rich_cms/_reset.sass",
|
68
|
-
"lib/assets/sass/tools/_css3.sass",
|
69
|
-
"lib/assets/sass/tools/_mixins.sass",
|
70
|
-
"lib/config/routes.rb",
|
70
|
+
"lib/generators/rich.rb",
|
71
|
+
"lib/generators/rich/authlogic_user/authlogic_user_generator.rb",
|
72
|
+
"lib/generators/rich/authlogic_user/templates/migration.rb",
|
73
|
+
"lib/generators/rich/authlogic_user/templates/model.rb",
|
74
|
+
"lib/generators/rich/authlogic_user/templates/session.rb",
|
75
|
+
"lib/generators/rich/cms_content/cms_content_generator.rb",
|
76
|
+
"lib/generators/rich/cms_content/templates/migration.rb",
|
71
77
|
"lib/rich/cms/actionpack.rb",
|
72
|
-
"lib/rich/cms/actionpack/action_controller/._base.rb",
|
73
78
|
"lib/rich/cms/actionpack/action_controller/base.rb",
|
74
|
-
"lib/rich/cms/actionpack/action_view/._base.rb",
|
75
79
|
"lib/rich/cms/actionpack/action_view/base.rb",
|
80
|
+
"lib/rich/cms/activesupport.rb",
|
81
|
+
"lib/rich/cms/activesupport/active_support/dependencies.rb",
|
76
82
|
"lib/rich/cms/content/group.rb",
|
77
83
|
"lib/rich/cms/content/item.rb",
|
84
|
+
"lib/rich/cms/core.rb",
|
85
|
+
"lib/rich/cms/core/string.rb",
|
86
|
+
"lib/rich/cms/core/string/html_safe.rb",
|
78
87
|
"lib/rich/cms/engine.rb",
|
88
|
+
"lib/rich/cms/rails.rb",
|
89
|
+
"lib/rich/cms/rails/engine.rb",
|
79
90
|
"lib/rich_cms.rb",
|
80
91
|
"rails/init.rb",
|
81
92
|
"rails_generators/rich_authlogic_user/rich_authlogic_user_generator.rb",
|
@@ -89,7 +100,6 @@ Gem::Specification.new do |s|
|
|
89
100
|
"rails_generators/rich_cms_content/templates/model.rb",
|
90
101
|
"rich_cms.gemspec",
|
91
102
|
"tasks/rich_cms_tasks.rake",
|
92
|
-
"test/engine_test.rb",
|
93
103
|
"test/test_helper.rb",
|
94
104
|
"uninstall.rb"
|
95
105
|
]
|
@@ -99,8 +109,7 @@ Gem::Specification.new do |s|
|
|
99
109
|
s.rubygems_version = %q{1.3.7}
|
100
110
|
s.summary = %q{Enrichments (e9s) module for a pluggable CMS frontend}
|
101
111
|
s.test_files = [
|
102
|
-
"test/
|
103
|
-
"test/test_helper.rb"
|
112
|
+
"test/test_helper.rb"
|
104
113
|
]
|
105
114
|
|
106
115
|
if s.respond_to? :specification_version then
|
@@ -108,21 +117,21 @@ Gem::Specification.new do |s|
|
|
108
117
|
s.specification_version = 3
|
109
118
|
|
110
119
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
111
|
-
s.add_runtime_dependency(%q<authlogic>, [">=
|
112
|
-
s.add_runtime_dependency(%q<formtastic>, ["
|
120
|
+
s.add_runtime_dependency(%q<authlogic>, [">= 2.1.2"])
|
121
|
+
s.add_runtime_dependency(%q<formtastic>, [">= 1.1.0"])
|
113
122
|
s.add_runtime_dependency(%q<haml>, [">= 3"])
|
114
|
-
s.add_runtime_dependency(%q<jzip>, [">= 1.0.
|
123
|
+
s.add_runtime_dependency(%q<jzip>, [">= 1.0.11"])
|
115
124
|
else
|
116
|
-
s.add_dependency(%q<authlogic>, [">=
|
117
|
-
s.add_dependency(%q<formtastic>, ["
|
125
|
+
s.add_dependency(%q<authlogic>, [">= 2.1.2"])
|
126
|
+
s.add_dependency(%q<formtastic>, [">= 1.1.0"])
|
118
127
|
s.add_dependency(%q<haml>, [">= 3"])
|
119
|
-
s.add_dependency(%q<jzip>, [">= 1.0.
|
128
|
+
s.add_dependency(%q<jzip>, [">= 1.0.11"])
|
120
129
|
end
|
121
130
|
else
|
122
|
-
s.add_dependency(%q<authlogic>, [">=
|
123
|
-
s.add_dependency(%q<formtastic>, ["
|
131
|
+
s.add_dependency(%q<authlogic>, [">= 2.1.2"])
|
132
|
+
s.add_dependency(%q<formtastic>, [">= 1.1.0"])
|
124
133
|
s.add_dependency(%q<haml>, [">= 3"])
|
125
|
-
s.add_dependency(%q<jzip>, [">= 1.0.
|
134
|
+
s.add_dependency(%q<jzip>, [">= 1.0.11"])
|
126
135
|
end
|
127
136
|
end
|
128
137
|
|