rich_cms 1.0.0 → 2.0.0

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.
Files changed (59) hide show
  1. data/CHANGELOG +4 -0
  2. data/README.textile +29 -7
  3. data/Rakefile +2 -2
  4. data/VERSION +1 -1
  5. data/lib/app/controllers/rich/._cms_controller.rb +0 -0
  6. data/lib/app/controllers/rich/cms_controller.rb +10 -14
  7. data/lib/app/views/._rich_cms.html.erb +0 -0
  8. data/lib/app/views/rich/cms/_dock.html.erb +8 -0
  9. data/lib/app/views/rich/cms/dock/.__menu.html.erb +0 -0
  10. data/lib/app/views/rich/cms/dock/.__panel.html.erb +0 -0
  11. data/lib/app/views/rich/cms/dock/_menu.html.erb +23 -0
  12. data/lib/app/views/rich/cms/dock/_panel.html.erb +3 -0
  13. data/lib/app/views/rich/cms/dock/panel/.__login.html.erb +0 -0
  14. data/lib/app/views/rich/cms/{bar → dock}/panel/_edit.html.erb +1 -1
  15. data/lib/app/views/rich/cms/{bar → dock}/panel/_login.html.erb +8 -4
  16. data/lib/app/views/rich_cms.html.erb +7 -2
  17. data/lib/assets/jzip/jquery/core.jz +159 -0
  18. data/lib/assets/jzip/jquery/extensions/browser_detect.js +8 -0
  19. data/lib/assets/jzip/jquery/extensions/modules.js +11 -1
  20. data/lib/assets/jzip/jquery/raccoon_tip.js +191 -0
  21. data/lib/assets/jzip/jquery/ui/components/core.js +18 -0
  22. data/lib/assets/jzip/jquery/ui/components/draggable.js +797 -0
  23. data/lib/assets/jzip/jquery/ui/components/mouse.js +151 -0
  24. data/lib/assets/jzip/jquery/ui/components/widget.js +237 -0
  25. data/lib/assets/jzip/jquery/ui/rich_cms/core.jz +5 -0
  26. data/lib/assets/jzip/jquery/ui/rich_cms/draggable.jz +2 -0
  27. data/lib/assets/jzip/jquery/ui/rich_cms/mouse.jz +3 -0
  28. data/lib/assets/jzip/jquery/ui/rich_cms/widget.jz +4 -0
  29. data/lib/assets/jzip/rich/cms/dock.js +61 -0
  30. data/lib/assets/jzip/rich/cms/editor.js +29 -31
  31. data/lib/assets/jzip/rich/cms/menu.js +19 -0
  32. data/lib/assets/jzip/rich/cms.js +19 -0
  33. data/lib/assets/jzip/rich.js +4 -27
  34. data/lib/assets/jzip/rich_cms.jz +7 -2
  35. data/lib/assets/sass/rich_cms/_content.sass +13 -0
  36. data/lib/assets/sass/rich_cms/_dock.sass +44 -0
  37. data/lib/assets/sass/rich_cms/_menu.sass +38 -0
  38. data/lib/assets/sass/rich_cms/_panel.sass +24 -0
  39. data/lib/assets/sass/rich_cms.sass +6 -3
  40. data/lib/assets/sass/tools/_css3.sass +18 -0
  41. data/lib/config/routes.rb +7 -5
  42. data/lib/rich/cms/actionpack/action_controller/._base.rb +0 -0
  43. data/lib/rich/cms/actionpack/action_controller/base.rb +11 -10
  44. data/lib/rich/cms/actionpack/action_view/._base.rb +0 -0
  45. data/lib/rich/cms/actionpack/action_view/base.rb +9 -1
  46. data/lib/rich/cms/content/item.rb +16 -12
  47. data/lib/rich/cms/engine.rb +11 -8
  48. data/lib/rich_cms.rb +3 -1
  49. data/rich_cms.gemspec +39 -19
  50. metadata +43 -19
  51. data/lib/app/views/rich/cms/_bar.html.erb +0 -4
  52. data/lib/app/views/rich/cms/_config.html.erb +0 -5
  53. data/lib/app/views/rich/cms/bar/_menu.html.erb +0 -16
  54. data/lib/app/views/rich/cms/bar/_panel.html.erb +0 -3
  55. data/lib/assets/jzip/jquery/core.js +0 -168
  56. data/lib/assets/jzip/rich/cms/login.js +0 -12
  57. data/lib/assets/sass/_bar.sass +0 -45
  58. data/lib/assets/sass/_editables.sass +0 -6
  59. /data/lib/assets/sass/{_mixins.sass → tools/_mixins.sass} +0 -0
@@ -0,0 +1,44 @@
1
+
2
+ #rich_cms_dock
3
+ margin: 15px
4
+ z-index: 999
5
+ +inline_block
6
+ +fixed
7
+ *position: absolute
8
+
9
+ &.top
10
+ top: 0
11
+ &.bottom
12
+ bottom: 0
13
+ &.left
14
+ left: 0
15
+ &.right
16
+ right: 0
17
+ &.middle
18
+ width: 500px
19
+ left: 50%
20
+ margin-left: -250px
21
+ text-align: center
22
+
23
+ &.ui-draggable-dragging
24
+ +opacity(0.5)
25
+
26
+ #x1, #x2, #y1, #x, #y
27
+ display: none
28
+ +fixed
29
+ &.display
30
+ +block
31
+
32
+ #x1, #x2, #x
33
+ width: 1px
34
+ height: 100%
35
+
36
+ #y1, #y
37
+ width: 100%
38
+ height: 1px
39
+
40
+ #x1, #x2, #y1
41
+ background: red
42
+
43
+ #x, #y
44
+ background: green
@@ -0,0 +1,38 @@
1
+
2
+ #rich_cms_menu
3
+ padding: 5px 0
4
+ color: #222
5
+ font:
6
+ family: "Helvetica Neue", "Helvetica", "Arial", "sans-serif"
7
+ size: 12px
8
+ weight: bold
9
+ *border: 1px solid #555
10
+ background: #FDFDFD
11
+ +inline_block
12
+ +border_radius(5px)
13
+ +box_shadow(rgba(0, 0, 0, 0.5), 0, 1px, 2px)
14
+
15
+ li
16
+ padding: 0 17px
17
+ *padding: 1px 17px
18
+ line-height: 1
19
+ border-right: 1px solid #BBB
20
+ +box-shadow(white, 1px, 0, 0)
21
+ +inline_block
22
+
23
+ &:first-child
24
+ cursor: move
25
+ &:last-child
26
+ border: 0
27
+ +box-shadow(transparent, 0, 0, 0)
28
+ &.last
29
+ *border: 0
30
+
31
+ a
32
+ color: #4183C4
33
+ cursor: pointer
34
+ outline: 0
35
+ text-decoration: none
36
+ &:hover
37
+ text-decoration: underline
38
+ +text-shadow(transparent, 0, 0)
@@ -0,0 +1,24 @@
1
+
2
+ #rich_cms_panel
3
+ width: 200px
4
+ padding-right: 5px
5
+
6
+ form
7
+ .inputs
8
+ label
9
+ font-size: 12px
10
+ +block
11
+ abbr
12
+ padding-left: 2px
13
+ border: 0
14
+ li
15
+ &.string, &.password
16
+ input
17
+ width: 100%
18
+ +block
19
+
20
+ .buttons
21
+ padding-top: 9px
22
+
23
+ a
24
+ font-size: 12px
@@ -1,4 +1,7 @@
1
1
 
2
- @import mixins
3
- @import bar
4
- @import editables
2
+ @import tools/mixins
3
+ @import tools/css3
4
+ @import rich_cms/dock
5
+ @import rich_cms/menu
6
+ @import rich_cms/panel
7
+ @import rich_cms/content
@@ -0,0 +1,18 @@
1
+
2
+ =text_shadow(!color, !x, !y, !blur = 0)
3
+ text-shadow: !color !x !y !blur
4
+
5
+ =gradient(!top, !bottom)
6
+ background: !top
7
+ background-image: -webkit-gradient(linear, left top, left bottom, from(!top), to(!bottom))
8
+ background-image: -moz-linear-gradient(top, !top, !bottom)
9
+
10
+ =border_radius(!radius)
11
+ border-radius = !radius
12
+ -moz-border-radius = !radius
13
+ -webkit-border-radius = !radius
14
+
15
+ =box_shadow(!color, !x, !y, !size)
16
+ box-shadow: !color !x !y !size
17
+ -moz-box-shadow: !color !x !y !size
18
+ -webkit-box-shadow: !color !x !y !size
data/lib/config/routes.rb CHANGED
@@ -1,17 +1,19 @@
1
- # Redefine clear! method to do nothing (usually it erases the routes)
1
+ # TODO: add routes the right way as this is evil
2
2
  class << ActionController::Routing::Routes;self;end.class_eval do
3
3
  define_method :clear!, lambda {}
4
4
  end
5
+ # END
5
6
 
6
7
  ActionController::Routing::Routes.draw do |map|
7
-
8
8
  map.namespace :rich, :path_prefix => "" do |rich|
9
9
 
10
- rich.cms_root "cms", :controller => "cms", :action => "show"
11
- %w(hide login logout update).each do |action|
10
+ %w(login logout update).each do |action|
12
11
  rich.send "cms_#{action}", "cms/#{action}", :controller => "cms", :action => action
13
12
  end
14
13
 
14
+ rich.cms "cms" , :controller => "cms", :action => "display", :display => true
15
+ rich.cms_hide "cms/hide" , :controller => "cms", :action => "display", :display => false
16
+ rich.connect "cms/position", :controller => "cms", :action => "position"
17
+
15
18
  end
16
-
17
19
  end
@@ -2,15 +2,23 @@
2
2
  module ActionController
3
3
  class Base
4
4
 
5
- around_filter :assign_current_controller
6
- helper_method :current_rich_cms_admin, :current_rich_cms_admin_name, :rich_cms_authenticated_class, :rich_cms_authentication_inputs
5
+ around_filter :prepare_rich_cms
7
6
 
8
- def assign_current_controller
7
+ def prepare_rich_cms
9
8
  ::Rich::Cms::Engine.current_controller = self
10
9
  yield
11
10
  ensure
12
11
  ::Rich::Cms::Engine.current_controller = nil
13
12
  end
13
+
14
+ view_path = File.join File.dirname(__FILE__), "..", "..", "..", "..", "app", "views"
15
+ if respond_to? :append_view_path
16
+ self.append_view_path view_path
17
+ elsif respond_to? :view_paths
18
+ self.view_paths << view_path
19
+ end
20
+
21
+ helper_method :current_rich_cms_admin, :current_rich_cms_admin_name, :rich_cms_authenticated_class, :rich_cms_authentication_inputs
14
22
 
15
23
  def require_current_rich_cms_admin
16
24
  unless current_rich_cms_admin
@@ -50,12 +58,5 @@ module ActionController
50
58
  end
51
59
  end
52
60
 
53
- view_path = File.join File.dirname(__FILE__), "..", "..", "..", "..", "app", "views"
54
- if respond_to? :append_view_path
55
- self.append_view_path view_path
56
- elsif respond_to? :view_paths
57
- self.view_paths << view_path
58
- end
59
-
60
61
  end
61
62
  end
@@ -3,13 +3,21 @@ module ActionView
3
3
  class Base
4
4
 
5
5
  def rich_cms
6
- render :file => File.join(File.dirname(__FILE__), "..", "..", "..", "..", "app", "views", "rich_cms.html.erb") if session[:rich_cms].try(:fetch, :display, nil)
6
+ render :file => File.join(File.dirname(__FILE__), "..", "..", "..", "..", "app", "views", "rich_cms.html.erb") if display_rich_cms?
7
7
  end
8
8
 
9
+ def display_rich_cms?
10
+ !!session[:rich_cms].try(:fetch, :display, nil)
11
+ end
12
+
9
13
  def link(name, options = nil)
10
14
  options = {:class => options || name.underscore} unless options.is_a?(Hash)
11
15
  link_to name, "#", options
12
16
  end
17
+
18
+ def rich_cms_tag(*args)
19
+ Rich::Cms::Engine.to_content_tag *args
20
+ end
13
21
 
14
22
  end
15
23
  end
@@ -44,23 +44,27 @@ module Rich
44
44
  hash.merge({:__selector__ => selector, :__identifier__ => identifier})
45
45
  end
46
46
 
47
- def to_tag
48
- default = @object.attributes.values_at(*@group.identifiers) if @object.new_record?
47
+ def to_tag(options = {})
48
+ tag = options[:tag] || @group.tag || :span
49
+ attrs = []
49
50
 
50
- return @object.send(@group.value) unless Engine.can_render_metadata?
51
+ default = @group.identifiers.size == 1 ? @object.send(@group.identifiers.first) : @object.attributes.values_at(*@group.identifiers).inspect
52
+ value = @object.send(@group.value)
51
53
 
52
- keys = @group.keys << @group.value.to_s
53
- data = @object.attributes.reject{|k, v| !keys.include?(k.to_s)}
54
-
55
- tag = @group.tag || :span
56
- attrs = data.collect{|k, v| "data-#{k}=\"#{::ERB::Util.html_escape v}\""}.join " "
57
- value = @object.new_record? ? "< #{default.size == 1 ? default.first : default.inspect} >" : @object.send(@group.value)
54
+ if Engine.can_render_metadata?
55
+ default = "< #{default} >"
56
+ keys = @group.keys << @group.value.to_s
57
+ data = @object.attributes.reject{|k, v| !keys.include?(k.to_s)}
58
58
 
59
- if class_name = @group.selector.match(/^\.\w+$/)
60
- attrs = "class=\"#{class_name.to_s.gsub(/^\./, "")}\" #{attrs}"
59
+ if class_name = @group.selector.match(/^\.\w+$/)
60
+ (options[:html] ||= {}).store :class, [class_name.to_s.gsub(/^\./, ""), options[:html].try(:fetch, :class, nil)].compact.join(" ")
61
+ end
62
+
63
+ attrs << options[:html].collect{|k, v| "#{k}=\"#{::ERB::Util.html_escape v}\""}.join(" ") if options[:html]
64
+ attrs << data .collect{|k, v| "data-#{k}=\"#{::ERB::Util.html_escape v}\""}.join(" ")
61
65
  end
62
66
 
63
- "<#{tag} #{attrs}>#{value}</#{tag}>"
67
+ "<#{tag} #{attrs.join(" ")}>#{value.blank? ? default : value}</#{tag}>"
64
68
  end
65
69
 
66
70
  end
@@ -21,10 +21,15 @@ module Rich
21
21
  ActiveSupport::Dependencies.load_once_paths.delete path
22
22
  end
23
23
 
24
- ::Jzip::Plugin.add_template_location({File.join(File.dirname(__FILE__), "..", "..", "assets", "jzip") => File.join(RAILS_ROOT, "public", "javascripts")})
24
+ ::Jzip::Engine.add_template_location({File.join(File.dirname(__FILE__), "..", "..", "assets", "jzip") => File.join(RAILS_ROOT, "public", "javascripts")})
25
25
  ::Sass::Plugin.add_template_location( File.join(File.dirname(__FILE__), "..", "..", "assets", "sass"), File.join(RAILS_ROOT, "public", "stylesheets") )
26
26
  end
27
27
 
28
+ def current_controller=(current_controller)
29
+ @current_controller = current_controller
30
+ @can_render_metadata = nil
31
+ end
32
+
28
33
  def authenticate(logic, specs)
29
34
  @authentication = AuthenticationSpecs.new(logic, specs)
30
35
  end
@@ -39,19 +44,17 @@ module Rich
39
44
  end
40
45
  end
41
46
 
42
- def to_content_tag(selector, identifiers)
43
- editable_content[selector].fetch(identifiers).to_tag
47
+ def to_content_tag(*args)
48
+ selector = args.shift
49
+ options = args.extract_options!
50
+ identifiers = args
51
+ editable_content[selector].fetch(identifiers).to_tag options
44
52
  end
45
53
 
46
54
  def editable_content_javascript_hash
47
55
  "{#{@editable_content.collect{|k, v| v.to_javascript_hash}.join ", "}}"
48
56
  end
49
57
 
50
- def current_controller=(current_controller)
51
- @current_controller = current_controller
52
- @can_render_metadata = nil
53
- end
54
-
55
58
  def can_render_metadata?
56
59
  if @can_render_metadata.nil?
57
60
  @can_render_metadata = case authentication.logic
data/lib/rich_cms.rb CHANGED
@@ -1,6 +1,8 @@
1
1
 
2
- require "config/routes"
2
+ require "jzip"
3
+ require "sass/plugin"
3
4
 
5
+ require "config/routes"
4
6
  require "rich/cms/actionpack"
5
7
  require "rich/cms/engine"
6
8
  require "rich/cms/content/group"
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 = "1.0.0"
8
+ s.version = "2.0.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-08-16}
12
+ s.date = %q{2010-09-03}
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 = [
@@ -24,30 +24,50 @@ Gem::Specification.new do |s|
24
24
  "VERSION",
25
25
  "init.rb",
26
26
  "install.rb",
27
+ "lib/app/controllers/rich/._cms_controller.rb",
27
28
  "lib/app/controllers/rich/cms_controller.rb",
28
- "lib/app/views/rich/cms/_bar.html.erb",
29
- "lib/app/views/rich/cms/_config.html.erb",
30
- "lib/app/views/rich/cms/bar/_menu.html.erb",
31
- "lib/app/views/rich/cms/bar/_panel.html.erb",
32
- "lib/app/views/rich/cms/bar/panel/_edit.html.erb",
33
- "lib/app/views/rich/cms/bar/panel/_login.html.erb",
29
+ "lib/app/views/._rich_cms.html.erb",
30
+ "lib/app/views/rich/cms/_dock.html.erb",
31
+ "lib/app/views/rich/cms/dock/.__menu.html.erb",
32
+ "lib/app/views/rich/cms/dock/.__panel.html.erb",
33
+ "lib/app/views/rich/cms/dock/_menu.html.erb",
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",
34
38
  "lib/app/views/rich_cms.html.erb",
35
- "lib/assets/jzip/jquery/core.js",
39
+ "lib/assets/jzip/jquery/core.jz",
36
40
  "lib/assets/jzip/jquery/extensions/ajaxify.js",
41
+ "lib/assets/jzip/jquery/extensions/browser_detect.js",
37
42
  "lib/assets/jzip/jquery/extensions/modules.js",
38
43
  "lib/assets/jzip/jquery/extensions/object.js",
44
+ "lib/assets/jzip/jquery/raccoon_tip.js",
45
+ "lib/assets/jzip/jquery/ui/components/core.js",
46
+ "lib/assets/jzip/jquery/ui/components/draggable.js",
47
+ "lib/assets/jzip/jquery/ui/components/mouse.js",
48
+ "lib/assets/jzip/jquery/ui/components/widget.js",
49
+ "lib/assets/jzip/jquery/ui/rich_cms/core.jz",
50
+ "lib/assets/jzip/jquery/ui/rich_cms/draggable.jz",
51
+ "lib/assets/jzip/jquery/ui/rich_cms/mouse.jz",
52
+ "lib/assets/jzip/jquery/ui/rich_cms/widget.jz",
39
53
  "lib/assets/jzip/rich.js",
40
54
  "lib/assets/jzip/rich/cms.js",
55
+ "lib/assets/jzip/rich/cms/dock.js",
41
56
  "lib/assets/jzip/rich/cms/editor.js",
42
- "lib/assets/jzip/rich/cms/login.js",
57
+ "lib/assets/jzip/rich/cms/menu.js",
43
58
  "lib/assets/jzip/rich_cms.jz",
44
- "lib/assets/sass/_bar.sass",
45
- "lib/assets/sass/_editables.sass",
46
- "lib/assets/sass/_mixins.sass",
47
59
  "lib/assets/sass/rich_cms.sass",
60
+ "lib/assets/sass/rich_cms/_content.sass",
61
+ "lib/assets/sass/rich_cms/_dock.sass",
62
+ "lib/assets/sass/rich_cms/_menu.sass",
63
+ "lib/assets/sass/rich_cms/_panel.sass",
64
+ "lib/assets/sass/tools/_css3.sass",
65
+ "lib/assets/sass/tools/_mixins.sass",
48
66
  "lib/config/routes.rb",
49
67
  "lib/rich/cms/actionpack.rb",
68
+ "lib/rich/cms/actionpack/action_controller/._base.rb",
50
69
  "lib/rich/cms/actionpack/action_controller/base.rb",
70
+ "lib/rich/cms/actionpack/action_view/._base.rb",
51
71
  "lib/rich/cms/actionpack/action_view/base.rb",
52
72
  "lib/rich/cms/content/group.rb",
53
73
  "lib/rich/cms/content/item.rb",
@@ -75,18 +95,18 @@ Gem::Specification.new do |s|
75
95
  s.specification_version = 3
76
96
 
77
97
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
78
- s.add_runtime_dependency(%q<jzip>, [">= 0"])
98
+ s.add_runtime_dependency(%q<jzip>, [">= 1.0.10"])
79
99
  s.add_runtime_dependency(%q<haml>, [">= 3"])
80
- s.add_runtime_dependency(%q<formtastic>, [">= 0"])
100
+ s.add_runtime_dependency(%q<formtastic>, ["= 0.9.7"])
81
101
  else
82
- s.add_dependency(%q<jzip>, [">= 0"])
102
+ s.add_dependency(%q<jzip>, [">= 1.0.10"])
83
103
  s.add_dependency(%q<haml>, [">= 3"])
84
- s.add_dependency(%q<formtastic>, [">= 0"])
104
+ s.add_dependency(%q<formtastic>, ["= 0.9.7"])
85
105
  end
86
106
  else
87
- s.add_dependency(%q<jzip>, [">= 0"])
107
+ s.add_dependency(%q<jzip>, [">= 1.0.10"])
88
108
  s.add_dependency(%q<haml>, [">= 3"])
89
- s.add_dependency(%q<formtastic>, [">= 0"])
109
+ s.add_dependency(%q<formtastic>, ["= 0.9.7"])
90
110
  end
91
111
  end
92
112
 
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: 23
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
- - 1
7
+ - 2
8
8
  - 0
9
9
  - 0
10
- version: 1.0.0
10
+ version: 2.0.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-08-16 00:00:00 +02:00
18
+ date: 2010-09-03 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -28,8 +28,10 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  hash: 3
30
30
  segments:
31
+ - 1
31
32
  - 0
32
- version: "0"
33
+ - 10
34
+ version: 1.0.10
33
35
  type: :runtime
34
36
  version_requirements: *id001
35
37
  - !ruby/object:Gem::Dependency
@@ -52,12 +54,14 @@ dependencies:
52
54
  requirement: &id003 !ruby/object:Gem::Requirement
53
55
  none: false
54
56
  requirements:
55
- - - ">="
57
+ - - "="
56
58
  - !ruby/object:Gem::Version
57
- hash: 3
59
+ hash: 53
58
60
  segments:
59
61
  - 0
60
- version: "0"
62
+ - 9
63
+ - 7
64
+ version: 0.9.7
61
65
  type: :runtime
62
66
  version_requirements: *id003
63
67
  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.
@@ -77,30 +81,50 @@ files:
77
81
  - VERSION
78
82
  - init.rb
79
83
  - install.rb
84
+ - lib/app/controllers/rich/._cms_controller.rb
80
85
  - lib/app/controllers/rich/cms_controller.rb
81
- - lib/app/views/rich/cms/_bar.html.erb
82
- - lib/app/views/rich/cms/_config.html.erb
83
- - lib/app/views/rich/cms/bar/_menu.html.erb
84
- - lib/app/views/rich/cms/bar/_panel.html.erb
85
- - lib/app/views/rich/cms/bar/panel/_edit.html.erb
86
- - lib/app/views/rich/cms/bar/panel/_login.html.erb
86
+ - lib/app/views/._rich_cms.html.erb
87
+ - lib/app/views/rich/cms/_dock.html.erb
88
+ - lib/app/views/rich/cms/dock/.__menu.html.erb
89
+ - lib/app/views/rich/cms/dock/.__panel.html.erb
90
+ - lib/app/views/rich/cms/dock/_menu.html.erb
91
+ - lib/app/views/rich/cms/dock/_panel.html.erb
92
+ - lib/app/views/rich/cms/dock/panel/.__login.html.erb
93
+ - lib/app/views/rich/cms/dock/panel/_edit.html.erb
94
+ - lib/app/views/rich/cms/dock/panel/_login.html.erb
87
95
  - lib/app/views/rich_cms.html.erb
88
- - lib/assets/jzip/jquery/core.js
96
+ - lib/assets/jzip/jquery/core.jz
89
97
  - lib/assets/jzip/jquery/extensions/ajaxify.js
98
+ - lib/assets/jzip/jquery/extensions/browser_detect.js
90
99
  - lib/assets/jzip/jquery/extensions/modules.js
91
100
  - lib/assets/jzip/jquery/extensions/object.js
101
+ - lib/assets/jzip/jquery/raccoon_tip.js
102
+ - lib/assets/jzip/jquery/ui/components/core.js
103
+ - lib/assets/jzip/jquery/ui/components/draggable.js
104
+ - lib/assets/jzip/jquery/ui/components/mouse.js
105
+ - lib/assets/jzip/jquery/ui/components/widget.js
106
+ - lib/assets/jzip/jquery/ui/rich_cms/core.jz
107
+ - lib/assets/jzip/jquery/ui/rich_cms/draggable.jz
108
+ - lib/assets/jzip/jquery/ui/rich_cms/mouse.jz
109
+ - lib/assets/jzip/jquery/ui/rich_cms/widget.jz
92
110
  - lib/assets/jzip/rich.js
93
111
  - lib/assets/jzip/rich/cms.js
112
+ - lib/assets/jzip/rich/cms/dock.js
94
113
  - lib/assets/jzip/rich/cms/editor.js
95
- - lib/assets/jzip/rich/cms/login.js
114
+ - lib/assets/jzip/rich/cms/menu.js
96
115
  - lib/assets/jzip/rich_cms.jz
97
- - lib/assets/sass/_bar.sass
98
- - lib/assets/sass/_editables.sass
99
- - lib/assets/sass/_mixins.sass
100
116
  - lib/assets/sass/rich_cms.sass
117
+ - lib/assets/sass/rich_cms/_content.sass
118
+ - lib/assets/sass/rich_cms/_dock.sass
119
+ - lib/assets/sass/rich_cms/_menu.sass
120
+ - lib/assets/sass/rich_cms/_panel.sass
121
+ - lib/assets/sass/tools/_css3.sass
122
+ - lib/assets/sass/tools/_mixins.sass
101
123
  - lib/config/routes.rb
102
124
  - lib/rich/cms/actionpack.rb
125
+ - lib/rich/cms/actionpack/action_controller/._base.rb
103
126
  - lib/rich/cms/actionpack/action_controller/base.rb
127
+ - lib/rich/cms/actionpack/action_view/._base.rb
104
128
  - lib/rich/cms/actionpack/action_view/base.rb
105
129
  - lib/rich/cms/content/group.rb
106
130
  - lib/rich/cms/content/item.rb
@@ -1,4 +0,0 @@
1
- <div id="rich_cms_bar">
2
- <%= render :partial => "rich/cms/bar/menu" %>
3
- <%= render :partial => "rich/cms/bar/panel" %>
4
- </div>
@@ -1,5 +0,0 @@
1
- <script type="text/javascript">
2
- $(function() {
3
- Rich.Cms.Editor.register(<%= Rich::Cms::Engine.editable_content_javascript_hash %>);
4
- });
5
- </script>
@@ -1,16 +0,0 @@
1
- <div class="menu">
2
- <% if current_rich_cms_admin %>
3
- <%= link "Mark copy", :class => "mark" %>
4
- <% end %>
5
-
6
- <% unless current_rich_cms_admin %>
7
- <%= link "Login" %>
8
- <% else %>
9
- <div class="admin">
10
- Logged in as <strong><%= current_rich_cms_admin_name %></strong>
11
- &nbsp;&nbsp;
12
- <%= link_to "Hide" , rich_cms_hide_path %>
13
- <%= link_to "Logout", rich_cms_logout_path %>
14
- </div>
15
- <% end %>
16
- </div>
@@ -1,3 +0,0 @@
1
- <div class="panel">
2
- <%= render :partial => "rich/cms/bar/panel/#{current_rich_cms_admin.nil? ? "login" : "edit"}" %>
3
- </div>