slightcms 0.0.9 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/.bnsignore +0 -0
  2. data/.gitignore +0 -0
  3. data/History.rdoc +0 -0
  4. data/README.rdoc +0 -0
  5. data/Rakefile +0 -0
  6. data/VERSION +1 -1
  7. data/bin/slightcms +0 -0
  8. data/generators/slightcms_setup/{templates/INSTALL → INSTALL} +0 -0
  9. data/generators/slightcms_setup/images/arrow_down.png +0 -0
  10. data/generators/slightcms_setup/images/arrow_up.png +0 -0
  11. data/generators/slightcms_setup/images/main-menu-bg-divider.gif +0 -0
  12. data/generators/slightcms_setup/images/main-menu-bg-hover.gif +0 -0
  13. data/generators/slightcms_setup/images/main-menu-bg.gif +0 -0
  14. data/generators/slightcms_setup/images/page.png +0 -0
  15. data/generators/slightcms_setup/images/page_add.png +0 -0
  16. data/generators/slightcms_setup/images/page_delete.png +0 -0
  17. data/generators/slightcms_setup/images/page_edit.png +0 -0
  18. data/generators/slightcms_setup/javascripts/jquery-1.4.min.js +151 -0
  19. data/generators/slightcms_setup/javascripts/slightcms.js +0 -0
  20. data/generators/slightcms_setup/slightcms_setup_generator.rb +6 -3
  21. data/generators/slightcms_setup/stylesheets/960.css +1 -0
  22. data/generators/slightcms_setup/stylesheets/reset.css +1 -0
  23. data/generators/slightcms_setup/stylesheets/slightcms.css +0 -0
  24. data/generators/slightcms_setup/stylesheets/text.css +1 -0
  25. data/generators/slightcms_setup/templates/{slightcms_setup_migration.rb → migrate/slightcms_setup_migration.rb} +3 -10
  26. data/lib/app/controller/slightcms/admin/assets_controller.rb +47 -0
  27. data/lib/app/controller/slightcms/admin/layouts_controller.rb +65 -0
  28. data/lib/app/controller/slightcms/admin/pages_controller.rb +80 -0
  29. data/lib/app/controller/slightcms/pages_controller.rb +24 -0
  30. data/lib/app/models/asset.rb +55 -0
  31. data/lib/app/models/layout.rb +10 -0
  32. data/lib/app/models/page.rb +34 -23
  33. data/lib/app/models/part.rb +1 -1
  34. data/lib/app/views/layouts/slightcms_admin_interface.html.erb +36 -0
  35. data/lib/app/views/slightcms/admin/assets/index.html.erb +12 -0
  36. data/lib/app/views/slightcms/admin/assets/new.html.erb +10 -0
  37. data/lib/app/views/slightcms/admin/layouts/edit.html.erb +10 -0
  38. data/lib/app/views/slightcms/admin/layouts/index.html.erb +13 -0
  39. data/lib/app/views/slightcms/admin/layouts/new.html.erb +12 -0
  40. data/lib/app/views/slightcms/admin/pages/_page_list_item.html.erb +14 -0
  41. data/lib/app/views/slightcms/admin/pages/_page_part_fields.html.erb +4 -0
  42. data/lib/app/views/slightcms/admin/pages/edit.html.erb +19 -0
  43. data/lib/app/views/slightcms/admin/pages/index.html.erb +8 -0
  44. data/lib/app/views/slightcms/admin/pages/new.html.erb +20 -0
  45. data/lib/app/views/slightcms/pages/show.html.erb +1 -0
  46. data/lib/slightcms.rb +7 -1
  47. data/slightcms.gemspec +36 -5
  48. data/spec/slightcms_spec.rb +0 -0
  49. data/spec/spec_helper.rb +0 -0
  50. data/test/test_slightcms.rb +0 -0
  51. metadata +77 -23
@@ -0,0 +1,24 @@
1
+ module Slightcms
2
+ class PagesController < ApplicationController
3
+
4
+ # Render a page by its full path
5
+ def show
6
+ @page = Slightcms::Page.find_by_path(params[:path])
7
+ if @page.nil?
8
+ flash[:error] = "The site you are looking for doesn't exist!"
9
+ render_404
10
+ return
11
+ else
12
+ @page_content = @page.render_content
13
+ end
14
+
15
+ end
16
+
17
+ end
18
+
19
+ # Render a 404 error page
20
+ def render_404
21
+ render :status => "404"
22
+ end
23
+
24
+ end
@@ -5,6 +5,61 @@ module Slightcms
5
5
  # Change default table name
6
6
  set_table_name "slightcms_assets"
7
7
 
8
+ # Validations
9
+ validates_presence_of :name
10
+ validates_presence_of :filename
11
+ validates_presence_of :size
12
+ validates_presence_of :content_type
13
+
14
+ # Callbacks
15
+ after_create :store_file_in_filesystem
16
+ after_destroy :remove_file_from_file_system
17
+
18
+ def file=(uploaded_file)
19
+ @uploaded_file = uploaded_file
20
+ write_attribute(:content_type, @uploaded_file.content_type)
21
+ write_attribute(:size, File.size(@uploaded_file))
22
+ write_attribute(:filename, sanitize_filename(@uploaded_file.original_filename))
23
+ end
24
+
25
+ # Method to get the public file path
26
+ def public_file_path
27
+ "slightcms/assets/#{self.id}/#{self.filename}"
28
+ end
29
+
30
+ private
31
+
32
+ # Method to store file in filesystem
33
+ def store_file_in_filesystem
34
+ if !File.exists?(File.dirname(absolute_file_path))
35
+ Dir.mkdir(File.dirname(absolute_file_path))
36
+ end
37
+ if @uploaded_file.instance_of?(Tempfile)
38
+ FileUtils.copy(@uploaded_file.local_path, absolute_file_path)
39
+ else
40
+ File.open(absolute_file_path, "wb") { |f| f.write(@uploaded_file.read) }
41
+ end
42
+ end
43
+
44
+ # Method to remove the file from the filesystem
45
+ def remove_file_from_file_system
46
+ if File.exists?(absolute_file_path)
47
+ File.delete(absolute_file_path)
48
+ Dir.rmdir(File.dirname(absolute_file_path))
49
+ end
50
+ end
51
+
52
+ # Method to get the absolute path for the file
53
+ def absolute_file_path
54
+ File.expand_path("#{RAILS_ROOT}/public/slightcms/assets/#{self.id}/#{self.filename}")
55
+ end
56
+
57
+ # Replace non standard signs with underscores
58
+ def sanitize_filename(filename)
59
+ just_filename = File.basename(filename)
60
+ just_filename.gsub(/[^\w\.\_]/,'_')
61
+ end
62
+
8
63
  end
9
64
 
10
65
  end
@@ -14,6 +14,16 @@ module Slightcms
14
14
  validates_presence_of :name
15
15
  validates_uniqueness_of :name
16
16
  validates_presence_of :content
17
+
18
+ # Create a file accessor
19
+ attr_accessor :file
20
+
21
+ # Write file to content if file is uploaded
22
+ def file=(uploaded_file)
23
+ unless uploaded_file.nil?
24
+ write_attribute(:content, uploaded_file.read)
25
+ end
26
+ end
17
27
 
18
28
  end
19
29
 
@@ -15,24 +15,28 @@ module Slightcms
15
15
  belongs_to :layout, :class_name => "Slightcms::Layout"
16
16
  has_many :parts, :class_name => "Slightcms::Part", :dependent => :destroy
17
17
 
18
+ # accept nested attributes for page-parts
19
+ accepts_nested_attributes_for :parts,
20
+ :reject_if => lambda { |a| a[:content].blank? },
21
+ :allow_destroy => true
22
+
18
23
  # Validations
19
24
  validates_presence_of :title
20
25
  validates_presence_of :slug
21
26
  validates_uniqueness_of :slug, :scope => :parent_id
22
27
 
23
28
  # Callbacks
29
+ before_validation :create_slug
24
30
  before_create :create_path
25
- before_validation do |record|
26
- if record.slug.blank? && !record.title.blank?
27
- create_slug(record)
28
- end
29
- end
30
31
 
31
- protected
32
+ # protected
32
33
 
33
- # Render the pages content
34
+ # Render the page's content
34
35
  def render_content
35
36
  content = self.layout.content
37
+ content.gsub!(/(#{Regexp.escape("<!-- slightcms:page:title -->")})/mi, self.title)
38
+ content.gsub!(/(#{Regexp.escape("<!-- slightcms:page:keywords -->")})/mi, self.keywords)
39
+ content.gsub!(/(#{Regexp.escape("<!-- slightcms:page:description -->")})/mi, self.description)
36
40
  self.parts each do |part|
37
41
  content.gsub!(/(#{Regexp.escape("<!-- slightcms:part:#{part.name} -->")})/mi, part.render_content)
38
42
  end
@@ -46,40 +50,47 @@ module Slightcms
46
50
  private
47
51
 
48
52
  # Create a unique slug for SEO purposes
49
- def create_slug(record)
50
- proposed_slug = record.title.downcase.gsub!(/[^a-z1-9]+/, '-')
53
+ def create_slug
54
+ if self.slug.blank? && !self.title.blank?
55
+ proposed_slug = self.title.downcase.gsub!(/[^a-z1-9]+/, '-')
51
56
 
52
- existing = true
53
- suffix = ""
54
- i = 2
57
+ existing = true
58
+ suffix = ""
59
+ i = 2
55
60
 
56
- # Check if slug already exists
57
- while existing != nil
58
- existing = self.class.find :first, :conditions => {:slug => proposed_slug + suffix}
59
- if existing
60
- suffix = "-#{i}"
61
- i += 1
62
- else
63
- self.slug = proposed_slug + suffix
61
+ # Check if slug already exists
62
+ while existing != nil
63
+ existing = self.class.find :first, :conditions => {:slug => proposed_slug + suffix}
64
+ if existing
65
+ suffix = "-#{i}"
66
+ i += 1
67
+ else
68
+ self.slug = proposed_slug + suffix
69
+ end
64
70
  end
65
71
  end
66
72
  end
67
73
 
68
74
  # Create page's path
69
75
  def create_path
70
- self.path = parent.path + "/#{self.slug}"
76
+ if parent.nil?
77
+ write_attribute(:path, self.slug)
78
+ else
79
+ write_attribute(:path, parent.path + "/#{self.slug}")
80
+ end
71
81
  end
72
82
 
73
83
  # Generate the page's path and save the object
74
- def create_path!
84
+ def create_path_and_save
75
85
  create_path
76
86
  save
87
+ update_children_path
77
88
  end
78
89
 
79
90
  # Update the children's path
80
91
  def update_children_path
81
92
  children.each do |child|
82
- create_path!
93
+ child.create_path_and_save
83
94
  end
84
95
  end
85
96
  end
@@ -2,7 +2,7 @@ module Slightcms
2
2
  class Part < ActiveRecord::Base
3
3
 
4
4
  # Change default table name
5
- set_table_name "slightcms_parts"
5
+ set_table_name "slightcms_page_parts"
6
6
  # Associations
7
7
  belongs_to :page, :class_name => "Slightcms::Page"
8
8
 
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
3
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
6
+ <head>
7
+ <title>slightCMS</title>
8
+ <link rel="stylesheet" href="slightcms/stylesheets/reset.css" type="text/css" media="screen">
9
+ <link rel="stylesheet" href="slightcms/stylesheets/960.css" type="text/css" media="screen">
10
+ </head>
11
+
12
+ <body>
13
+ <div id="wrapper" class="container_12">
14
+ <div id="header" class="grid_12">
15
+ <h1>slightCMS</h1>
16
+ <ul class="main-menu">
17
+ <li><%= link_to "Pages", slightcms_pages_path %></li>
18
+ <li><%= link_to "Layouts", slightcms_layouts_path %></li>
19
+ <li><%= link_to "Assets", slightcms_assets_path %></li>
20
+ </ul>
21
+ </div>
22
+ <div id="content" class="grid_12">
23
+ <% if flash[:notice] %>
24
+ <div class="flash notice"><%= flash[:notice] %></div>
25
+ <% end %>
26
+ <% if flash[:error] %>
27
+ <div class="flash error"><%= flash[:error] %></div>
28
+ <% end %>
29
+ <%= yield %>
30
+ </div>
31
+ <div id="footer" class="grid_12">
32
+ &copy; 2010 - Matthias Nitsch
33
+ </div>
34
+ </div>
35
+ </body>
36
+ </html>
@@ -0,0 +1,12 @@
1
+ <h1>Assets</h1>
2
+ <%= link_to "New Asset", new_slightcms_asset_path %>
3
+ <ul id="assets">
4
+ <% @assets.each do |asset| %>
5
+ <li>
6
+ <%= asset.name %>
7
+ <ul class="item-menu">
8
+ <li><%= link_to "Delete", asset, :confirm => "Are you sure?", :method => :delete %></li>
9
+ </ul>
10
+ </li>
11
+ <% end %>
12
+ </ul>
@@ -0,0 +1,10 @@
1
+ <h1>New Asset</h1>
2
+ <% form_for @asset, :html => {:multipart => true} do |form| %>
3
+ <%= form.label :name, "Name" %>
4
+ <%= form.text_field :name %>
5
+ <%= form.label :file, "File" %>
6
+ <%= form.file_field :file %>
7
+ <%= submit_tag 'Upload Asset' %>
8
+ <% end %>
9
+
10
+ <%= link_to "Back to assets", slightcms_assets_path %>
@@ -0,0 +1,10 @@
1
+ <h1>Edit Layout</h1>
2
+ <% form_for @layout do |form| %>
3
+ <%= form.label :name, "Name"%>
4
+ <%= form.text_field :name %>
5
+ <%= form.label :content, "Content" %>
6
+ <%= form.text_area :content %>
7
+ <%= submit_tag 'Create Layout' %>
8
+ <% end %>
9
+
10
+ <%= link_to "Back to layouts", slightcms_layouts_path %>
@@ -0,0 +1,13 @@
1
+ <h1>Layouts</h1>
2
+ <%= link_to "New Layout", new_slightcms_layout_path %>
3
+ <ul id="layouts">
4
+ <% @layouts.each do |layout| %>
5
+ <li>
6
+ <%= layout.name %>
7
+ <ul class="item-menu">
8
+ <li><%= link_to "Edit", edit_slightcms_layout_path(layout) %>
9
+ <li><%= link_to "Delete", layout, :confirm => "Are you sure?", :method => :delete %></li>
10
+ </ul>
11
+ </li>
12
+ <% end %>
13
+ </ul>
@@ -0,0 +1,12 @@
1
+ <h1>New Layout</h1>
2
+ <% form_for @layout, :html => {:multipart => true} do |form| %>
3
+ <%= form.label :name, "Name"%>
4
+ <%= form.text_field :name %>
5
+ <%= form.label :content, "Content" %>
6
+ <%= form.text_area :content %>
7
+ <%= form.label :file, "File" %>
8
+ <%= form.file_field :file %>
9
+ <%= submit_tag 'Create Layout' %>
10
+ <% end %>
11
+
12
+ <%= link_to "Back to layouts", slightcms_layouts_path %>
@@ -0,0 +1,14 @@
1
+ <li>
2
+ <div class="page-name">
3
+ <%= page.title %>
4
+ <%= link_to "Edit", edit_slightcms_page_path(page) %>
5
+ <%= link_to "Delete", page, :confirm => "Are you sure?", :method => :delete %>
6
+ </div>
7
+ <% if page.children.size > 0 %>
8
+ <ul>
9
+ <% page.children.each do |page| %>
10
+ <%= render :partial => 'page_list_item', :locals => {:page => page } %>
11
+ <% end %>
12
+ </ul>
13
+ <% end %>
14
+ </li>
@@ -0,0 +1,4 @@
1
+ <%= f.label :name, "Name" %>
2
+ <%= f.text_field :name %>
3
+ <%= f.label :content, "Content" %>
4
+ <%= f.text_area :content %>
@@ -0,0 +1,19 @@
1
+ <h1>Edit Page</h1>
2
+ <% form_for @page do |form| %>
3
+ <%= form.label :title, "Title"%>
4
+ <%= form.text_field :title %>
5
+ <%= form.label :slug, "Slug" %>
6
+ <%= form.text_field :slug %>
7
+ <%= form.label :keywords, "Keywords" %>
8
+ <%= form.text_field :keywords %>
9
+ <%= form.label :description, "Description" %>
10
+ <%= form.text_area :description %>
11
+ <%= form.label :published, "Published?" %>
12
+ <%= form.check_box :published %>
13
+ <%= form.fields_for :parts do |builder| %>
14
+ <%= render :partial => 'page_part_form', :form => builder %>
15
+ <% end %>
16
+ <%= submit_tag 'Edit Page' %>
17
+ <% end %>
18
+
19
+ <%= link_to "Back to pages", slightcms_pages_path %>
@@ -0,0 +1,8 @@
1
+ <h1>Pages</h1>
2
+ <ul id="page-tree">
3
+ <% @pages.each do |page| %>
4
+ <% if page.parent_id.nil? %>
5
+ <%= render :partial => 'page_list_item', :locals => {:page => page} %>
6
+ <% end %>
7
+ <% end %>
8
+ </ul>
@@ -0,0 +1,20 @@
1
+ <h1>New Page</h1>
2
+ <% form_for @page do |form| %>
3
+ <%= form.error_messages %>
4
+ <%= form.label :title, "Title"%>
5
+ <%= form.text_field :title %>
6
+ <%= form.label :slug, "Slug" %>
7
+ <%= form.text_field :slug %>
8
+ <%= form.label :keywords, "Keywords" %>
9
+ <%= form.text_field :keywords %>
10
+ <%= form.label :description, "Description" %>
11
+ <%= form.text_area :description %>
12
+ <%= form.label :published, "Published?" %>
13
+ <%= form.check_box :published %>
14
+ <% form.fields_for :parts do |builder| %>
15
+ <%= render 'page_part_fields', :f => builder %>
16
+ <% end %>
17
+ <%= submit_tag 'Create Page' %>
18
+ <% end %>
19
+
20
+ <%= link_to "Back to pages", slightcms_pages_path %>
@@ -0,0 +1 @@
1
+ <%= @page_content %>
data/lib/slightcms.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  module Slightcms
3
3
 
4
4
  # :stopdoc:
5
- VERSION = '0.0.9'
5
+ VERSION = '0.0.10'
6
6
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
7
7
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
8
8
  # :startdoc:
@@ -45,9 +45,15 @@ module Slightcms
45
45
  end # module Slightcms
46
46
 
47
47
  # Slightcms.require_all_libs_relative_to(__FILE__)
48
+ ActionController::Base.prepend_view_path Slightcms.libpath + "app/views/"
48
49
  require 'acts_as_tree'
49
50
  require 'acts_as_list'
50
51
  require "app/models/layout"
51
52
  require "app/models/page"
52
53
  require "app/models/part"
53
54
  require "app/models/asset"
55
+ require "app/controller/slightcms/pages_controller"
56
+ require "app/controller/slightcms/admin/layouts_controller"
57
+ require "app/controller/slightcms/admin/pages_controller"
58
+ require "app/controller/slightcms/admin/assets_controller"
59
+ require "app/helpers/application_helper"
data/slightcms.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{slightcms}
8
- s.version = "0.0.9"
8
+ s.version = "0.0.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matthias Nitsch"]
12
- s.date = %q{2010-01-10}
12
+ s.date = %q{2010-04-15}
13
13
  s.default_executable = %q{slightcms}
14
14
  s.description = %q{}
15
15
  s.email = %q{matthias.nitsch@me.com}
@@ -25,13 +25,44 @@ Gem::Specification.new do |s|
25
25
  "Rakefile",
26
26
  "VERSION",
27
27
  "bin/slightcms",
28
+ "generators/slightcms_setup/INSTALL",
29
+ "generators/slightcms_setup/images/arrow_down.png",
30
+ "generators/slightcms_setup/images/arrow_up.png",
31
+ "generators/slightcms_setup/images/main-menu-bg-divider.gif",
32
+ "generators/slightcms_setup/images/main-menu-bg-hover.gif",
33
+ "generators/slightcms_setup/images/main-menu-bg.gif",
34
+ "generators/slightcms_setup/images/page.png",
35
+ "generators/slightcms_setup/images/page_add.png",
36
+ "generators/slightcms_setup/images/page_delete.png",
37
+ "generators/slightcms_setup/images/page_edit.png",
38
+ "generators/slightcms_setup/javascripts/jquery-1.4.min.js",
39
+ "generators/slightcms_setup/javascripts/slightcms.js",
28
40
  "generators/slightcms_setup/slightcms_setup_generator.rb",
29
- "generators/slightcms_setup/templates/INSTALL",
30
- "generators/slightcms_setup/templates/slightcms_setup_migration.rb",
41
+ "generators/slightcms_setup/stylesheets/960.css",
42
+ "generators/slightcms_setup/stylesheets/reset.css",
43
+ "generators/slightcms_setup/stylesheets/slightcms.css",
44
+ "generators/slightcms_setup/stylesheets/text.css",
45
+ "generators/slightcms_setup/templates/migrate/slightcms_setup_migration.rb",
46
+ "lib/app/controller/slightcms/admin/assets_controller.rb",
47
+ "lib/app/controller/slightcms/admin/layouts_controller.rb",
48
+ "lib/app/controller/slightcms/admin/pages_controller.rb",
49
+ "lib/app/controller/slightcms/pages_controller.rb",
31
50
  "lib/app/models/asset.rb",
32
51
  "lib/app/models/layout.rb",
33
52
  "lib/app/models/page.rb",
34
53
  "lib/app/models/part.rb",
54
+ "lib/app/views/layouts/slightcms_admin_interface.html.erb",
55
+ "lib/app/views/slightcms/admin/assets/index.html.erb",
56
+ "lib/app/views/slightcms/admin/assets/new.html.erb",
57
+ "lib/app/views/slightcms/admin/layouts/edit.html.erb",
58
+ "lib/app/views/slightcms/admin/layouts/index.html.erb",
59
+ "lib/app/views/slightcms/admin/layouts/new.html.erb",
60
+ "lib/app/views/slightcms/admin/pages/_page_list_item.html.erb",
61
+ "lib/app/views/slightcms/admin/pages/_page_part_fields.html.erb",
62
+ "lib/app/views/slightcms/admin/pages/edit.html.erb",
63
+ "lib/app/views/slightcms/admin/pages/index.html.erb",
64
+ "lib/app/views/slightcms/admin/pages/new.html.erb",
65
+ "lib/app/views/slightcms/pages/show.html.erb",
35
66
  "lib/slightcms.rb",
36
67
  "slightcms.gemspec",
37
68
  "spec/slightcms_spec.rb",
@@ -41,7 +72,7 @@ Gem::Specification.new do |s|
41
72
  s.homepage = %q{http://github.com/mnitsch/slightcms}
42
73
  s.rdoc_options = ["--charset=UTF-8"]
43
74
  s.require_paths = ["lib"]
44
- s.rubygems_version = %q{1.3.5}
75
+ s.rubygems_version = %q{1.3.6}
45
76
  s.summary = %q{slightCMS is a small CMS, built for integration into existing rails applications}
46
77
  s.test_files = [
47
78
  "spec/slightcms_spec.rb",
File without changes
data/spec/spec_helper.rb CHANGED
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slightcms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 11
9
+ version: 0.0.11
5
10
  platform: ruby
6
11
  authors:
7
12
  - Matthias Nitsch
@@ -9,49 +14,65 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-01-10 00:00:00 +01:00
17
+ date: 2010-04-15 00:00:00 +02:00
13
18
  default_executable: slightcms
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: rails
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 3
30
+ - 5
23
31
  version: 2.3.5
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: acts_as_tree
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ - 1
44
+ - 0
33
45
  version: 0.1.0
34
- version:
46
+ type: :runtime
47
+ version_requirements: *id002
35
48
  - !ruby/object:Gem::Dependency
36
49
  name: acts_as_list
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
40
52
  requirements:
41
53
  - - ">="
42
54
  - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
57
+ - 1
58
+ - 2
43
59
  version: 0.1.2
44
- version:
60
+ type: :runtime
61
+ version_requirements: *id003
45
62
  - !ruby/object:Gem::Dependency
46
63
  name: acts_as_versioned
47
- type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
50
66
  requirements:
51
67
  - - ">="
52
68
  - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
71
+ - 2
72
+ - 3
53
73
  version: 0.2.3
54
- version:
74
+ type: :runtime
75
+ version_requirements: *id004
55
76
  description: ""
56
77
  email: matthias.nitsch@me.com
57
78
  executables:
@@ -68,13 +89,44 @@ files:
68
89
  - Rakefile
69
90
  - VERSION
70
91
  - bin/slightcms
92
+ - generators/slightcms_setup/INSTALL
93
+ - generators/slightcms_setup/images/arrow_down.png
94
+ - generators/slightcms_setup/images/arrow_up.png
95
+ - generators/slightcms_setup/images/main-menu-bg-divider.gif
96
+ - generators/slightcms_setup/images/main-menu-bg-hover.gif
97
+ - generators/slightcms_setup/images/main-menu-bg.gif
98
+ - generators/slightcms_setup/images/page.png
99
+ - generators/slightcms_setup/images/page_add.png
100
+ - generators/slightcms_setup/images/page_delete.png
101
+ - generators/slightcms_setup/images/page_edit.png
102
+ - generators/slightcms_setup/javascripts/jquery-1.4.min.js
103
+ - generators/slightcms_setup/javascripts/slightcms.js
71
104
  - generators/slightcms_setup/slightcms_setup_generator.rb
72
- - generators/slightcms_setup/templates/INSTALL
73
- - generators/slightcms_setup/templates/slightcms_setup_migration.rb
105
+ - generators/slightcms_setup/stylesheets/960.css
106
+ - generators/slightcms_setup/stylesheets/reset.css
107
+ - generators/slightcms_setup/stylesheets/slightcms.css
108
+ - generators/slightcms_setup/stylesheets/text.css
109
+ - generators/slightcms_setup/templates/migrate/slightcms_setup_migration.rb
110
+ - lib/app/controller/slightcms/admin/assets_controller.rb
111
+ - lib/app/controller/slightcms/admin/layouts_controller.rb
112
+ - lib/app/controller/slightcms/admin/pages_controller.rb
113
+ - lib/app/controller/slightcms/pages_controller.rb
74
114
  - lib/app/models/asset.rb
75
115
  - lib/app/models/layout.rb
76
116
  - lib/app/models/page.rb
77
117
  - lib/app/models/part.rb
118
+ - lib/app/views/layouts/slightcms_admin_interface.html.erb
119
+ - lib/app/views/slightcms/admin/assets/index.html.erb
120
+ - lib/app/views/slightcms/admin/assets/new.html.erb
121
+ - lib/app/views/slightcms/admin/layouts/edit.html.erb
122
+ - lib/app/views/slightcms/admin/layouts/index.html.erb
123
+ - lib/app/views/slightcms/admin/layouts/new.html.erb
124
+ - lib/app/views/slightcms/admin/pages/_page_list_item.html.erb
125
+ - lib/app/views/slightcms/admin/pages/_page_part_fields.html.erb
126
+ - lib/app/views/slightcms/admin/pages/edit.html.erb
127
+ - lib/app/views/slightcms/admin/pages/index.html.erb
128
+ - lib/app/views/slightcms/admin/pages/new.html.erb
129
+ - lib/app/views/slightcms/pages/show.html.erb
78
130
  - lib/slightcms.rb
79
131
  - slightcms.gemspec
80
132
  - spec/slightcms_spec.rb
@@ -93,18 +145,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
145
  requirements:
94
146
  - - ">="
95
147
  - !ruby/object:Gem::Version
148
+ segments:
149
+ - 0
96
150
  version: "0"
97
- version:
98
151
  required_rubygems_version: !ruby/object:Gem::Requirement
99
152
  requirements:
100
153
  - - ">="
101
154
  - !ruby/object:Gem::Version
155
+ segments:
156
+ - 0
102
157
  version: "0"
103
- version:
104
158
  requirements: []
105
159
 
106
160
  rubyforge_project:
107
- rubygems_version: 1.3.5
161
+ rubygems_version: 1.3.6
108
162
  signing_key:
109
163
  specification_version: 3
110
164
  summary: slightCMS is a small CMS, built for integration into existing rails applications