slightcms 0.0.11 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/.DS_Store +0 -0
  2. data/.document +5 -0
  3. data/.rspec +1 -0
  4. data/Gemfile +12 -0
  5. data/Gemfile.lock +90 -0
  6. data/LICENSE.txt +20 -0
  7. data/README.rdoc +14 -37
  8. data/Rakefile +45 -17
  9. data/VERSION +1 -1
  10. data/{lib/app/controller → app/controllers}/slightcms/pages_controller.rb +8 -8
  11. data/lib/generators/slightcms/install.rb +19 -0
  12. data/lib/generators/templates/README +7 -0
  13. data/lib/slightcms.rb +0 -59
  14. data/slightcms.gemspec +42 -76
  15. data/spec/slightcms_spec.rb +5 -4
  16. data/spec/spec_helper.rb +9 -12
  17. metadata +60 -98
  18. data/.bnsignore +0 -18
  19. data/.gitignore +0 -3
  20. data/History.rdoc +0 -4
  21. data/bin/slightcms +0 -7
  22. data/generators/slightcms_setup/INSTALL +0 -1
  23. data/generators/slightcms_setup/images/arrow_down.png +0 -0
  24. data/generators/slightcms_setup/images/arrow_up.png +0 -0
  25. data/generators/slightcms_setup/images/main-menu-bg-divider.gif +0 -0
  26. data/generators/slightcms_setup/images/main-menu-bg-hover.gif +0 -0
  27. data/generators/slightcms_setup/images/main-menu-bg.gif +0 -0
  28. data/generators/slightcms_setup/images/page.png +0 -0
  29. data/generators/slightcms_setup/images/page_add.png +0 -0
  30. data/generators/slightcms_setup/images/page_delete.png +0 -0
  31. data/generators/slightcms_setup/images/page_edit.png +0 -0
  32. data/generators/slightcms_setup/javascripts/jquery-1.4.min.js +0 -151
  33. data/generators/slightcms_setup/javascripts/slightcms.js +0 -0
  34. data/generators/slightcms_setup/slightcms_setup_generator.rb +0 -29
  35. data/generators/slightcms_setup/stylesheets/960.css +0 -1
  36. data/generators/slightcms_setup/stylesheets/reset.css +0 -1
  37. data/generators/slightcms_setup/stylesheets/slightcms.css +0 -0
  38. data/generators/slightcms_setup/stylesheets/text.css +0 -1
  39. data/generators/slightcms_setup/templates/migrate/slightcms_setup_migration.rb +0 -54
  40. data/lib/app/controller/slightcms/admin/assets_controller.rb +0 -47
  41. data/lib/app/controller/slightcms/admin/layouts_controller.rb +0 -65
  42. data/lib/app/controller/slightcms/admin/pages_controller.rb +0 -80
  43. data/lib/app/models/asset.rb +0 -65
  44. data/lib/app/models/layout.rb +0 -30
  45. data/lib/app/models/page.rb +0 -97
  46. data/lib/app/models/part.rb +0 -21
  47. data/lib/app/views/layouts/slightcms_admin_interface.html.erb +0 -36
  48. data/lib/app/views/slightcms/admin/assets/index.html.erb +0 -12
  49. data/lib/app/views/slightcms/admin/assets/new.html.erb +0 -10
  50. data/lib/app/views/slightcms/admin/layouts/edit.html.erb +0 -10
  51. data/lib/app/views/slightcms/admin/layouts/index.html.erb +0 -13
  52. data/lib/app/views/slightcms/admin/layouts/new.html.erb +0 -12
  53. data/lib/app/views/slightcms/admin/pages/_page_list_item.html.erb +0 -14
  54. data/lib/app/views/slightcms/admin/pages/_page_part_fields.html.erb +0 -4
  55. data/lib/app/views/slightcms/admin/pages/edit.html.erb +0 -19
  56. data/lib/app/views/slightcms/admin/pages/index.html.erb +0 -8
  57. data/lib/app/views/slightcms/admin/pages/new.html.erb +0 -20
  58. data/lib/app/views/slightcms/pages/show.html.erb +0 -1
  59. data/test/test_slightcms.rb +0 -0
data/.DS_Store ADDED
Binary file
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "rails", "~> 3.0.6"
4
+
5
+ # Add dependencies to develop your gem here.
6
+ # Include everything needed to run rake, tests, features, etc.
7
+ group :development do
8
+ gem "rspec", "~> 2.3.0"
9
+ gem "bundler", "~> 1.0.0"
10
+ gem "jeweler", "~> 1.5.2"
11
+ gem "rcov", ">= 0"
12
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,90 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ abstract (1.0.0)
5
+ actionmailer (3.0.6)
6
+ actionpack (= 3.0.6)
7
+ mail (~> 2.2.15)
8
+ actionpack (3.0.6)
9
+ activemodel (= 3.0.6)
10
+ activesupport (= 3.0.6)
11
+ builder (~> 2.1.2)
12
+ erubis (~> 2.6.6)
13
+ i18n (~> 0.5.0)
14
+ rack (~> 1.2.1)
15
+ rack-mount (~> 0.6.14)
16
+ rack-test (~> 0.5.7)
17
+ tzinfo (~> 0.3.23)
18
+ activemodel (3.0.6)
19
+ activesupport (= 3.0.6)
20
+ builder (~> 2.1.2)
21
+ i18n (~> 0.5.0)
22
+ activerecord (3.0.6)
23
+ activemodel (= 3.0.6)
24
+ activesupport (= 3.0.6)
25
+ arel (~> 2.0.2)
26
+ tzinfo (~> 0.3.23)
27
+ activeresource (3.0.6)
28
+ activemodel (= 3.0.6)
29
+ activesupport (= 3.0.6)
30
+ activesupport (3.0.6)
31
+ arel (2.0.9)
32
+ builder (2.1.2)
33
+ diff-lcs (1.1.2)
34
+ erubis (2.6.6)
35
+ abstract (>= 1.0.0)
36
+ git (1.2.5)
37
+ i18n (0.5.0)
38
+ jeweler (1.5.2)
39
+ bundler (~> 1.0.0)
40
+ git (>= 1.2.5)
41
+ rake
42
+ mail (2.2.16)
43
+ activesupport (>= 2.3.6)
44
+ i18n (>= 0.4.0)
45
+ mime-types (~> 1.16)
46
+ treetop (~> 1.4.8)
47
+ mime-types (1.16)
48
+ polyglot (0.3.1)
49
+ rack (1.2.2)
50
+ rack-mount (0.6.14)
51
+ rack (>= 1.0.0)
52
+ rack-test (0.5.7)
53
+ rack (>= 1.0)
54
+ rails (3.0.6)
55
+ actionmailer (= 3.0.6)
56
+ actionpack (= 3.0.6)
57
+ activerecord (= 3.0.6)
58
+ activeresource (= 3.0.6)
59
+ activesupport (= 3.0.6)
60
+ bundler (~> 1.0)
61
+ railties (= 3.0.6)
62
+ railties (3.0.6)
63
+ actionpack (= 3.0.6)
64
+ activesupport (= 3.0.6)
65
+ rake (>= 0.8.7)
66
+ thor (~> 0.14.4)
67
+ rake (0.8.7)
68
+ rcov (0.9.9)
69
+ rspec (2.3.0)
70
+ rspec-core (~> 2.3.0)
71
+ rspec-expectations (~> 2.3.0)
72
+ rspec-mocks (~> 2.3.0)
73
+ rspec-core (2.3.1)
74
+ rspec-expectations (2.3.0)
75
+ diff-lcs (~> 1.1.2)
76
+ rspec-mocks (2.3.0)
77
+ thor (0.14.6)
78
+ treetop (1.4.9)
79
+ polyglot (>= 0.3.1)
80
+ tzinfo (0.3.26)
81
+
82
+ PLATFORMS
83
+ ruby
84
+
85
+ DEPENDENCIES
86
+ bundler (~> 1.0.0)
87
+ jeweler (~> 1.5.2)
88
+ rails (~> 3.0.6)
89
+ rcov
90
+ rspec (~> 2.3.0)
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Matthias Nitsch
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc CHANGED
@@ -1,42 +1,19 @@
1
- = slightCMS
2
- by Matthias Nitsch
3
- http://github.com/mnitsch/slightcms
1
+ = slightcms
4
2
 
5
- == DESCRIPTION:
3
+ Description goes here.
6
4
 
7
- slightCMS is a small CMS, built for integration into existing rails applications
5
+ == Contributing to slightcms
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
+ * Fork the project
10
+ * Start a feature/bugfix branch
11
+ * Commit and push until you are happy with your contribution
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
8
14
 
9
- == FEATURES/PROBLEMS:
15
+ == Copyright
10
16
 
11
- * FIXME (list of features or problems)
17
+ Copyright (c) 2011 Matthias Nitsch. See LICENSE.txt for
18
+ further details.
12
19
 
13
- == REQUIREMENTS:
14
-
15
- * FIXME (list of requirements)
16
-
17
- == INSTALL:
18
-
19
- * gem install slightcms
20
-
21
- == LICENSE:
22
-
23
- (The MIT License)
24
-
25
- Permission is hereby granted, free of charge, to any person obtaining
26
- a copy of this software and associated documentation files (the
27
- 'Software'), to deal in the Software without restriction, including
28
- without limitation the rights to use, copy, modify, merge, publish,
29
- distribute, sublicense, and/or sell copies of the Software, and to
30
- permit persons to whom the Software is furnished to do so, subject to
31
- the following conditions:
32
-
33
- The above copyright notice and this permission notice shall be
34
- included in all copies or substantial portions of the Software.
35
-
36
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
37
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
38
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
39
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
40
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
41
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
42
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,22 +1,50 @@
1
+ require 'rubygems'
2
+ require 'bundler'
1
3
  begin
2
- require 'jeweler'
3
- Jeweler::Tasks.new do |gemspec|
4
- gemspec.name = "slightcms"
5
- gemspec.summary = "slightCMS is a small CMS, built for integration into existing rails applications"
6
- gemspec.description = ""
7
- gemspec.email = "matthias.nitsch@me.com"
8
- gemspec.homepage = "http://github.com/mnitsch/slightcms"
9
- gemspec.authors = ["Matthias Nitsch"]
10
- gemspec.add_dependency('rails', '>= 2.3.5')
11
- gemspec.add_dependency('acts_as_tree', '>= 0.1.0')
12
- gemspec.add_dependency('acts_as_list', '>= 0.1.2')
13
- gemspec.add_dependency('acts_as_versioned', '>= 0.2.3')
14
- end
15
- Jeweler::GemcutterTasks.new
16
- rescue LoadError
17
- puts "Jeweler not available. Install it with: gem install jeweler"
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
18
9
  end
10
+ require 'rake'
19
11
 
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
+ gem.name = "slightcms"
16
+ gem.homepage = "http://github.com/mnitsch/slightcms"
17
+ gem.license = "MIT"
18
+ gem.summary = %Q{A small cms to drop into existing rails applications.}
19
+ gem.description = %Q{Tsmal cms}
20
+ gem.email = "matthias.nitsch@yahoo.de"
21
+ gem.authors = ["Matthias Nitsch"]
22
+ # Include your dependencies below. Runtime dependencies are required when using your gem,
23
+ # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
+ # gem.add_runtime_dependency 'jabber4r', '> 0.1'
25
+ # gem.add_development_dependency 'rspec', '> 1.2.3'
26
+ end
27
+ Jeweler::RubygemsDotOrgTasks.new
28
+
29
+ require 'rspec/core'
30
+ require 'rspec/core/rake_task'
31
+ RSpec::Core::RakeTask.new(:spec) do |spec|
32
+ spec.pattern = FileList['spec/**/*_spec.rb']
33
+ end
20
34
 
35
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
36
+ spec.pattern = 'spec/**/*_spec.rb'
37
+ spec.rcov = true
38
+ end
21
39
 
22
- # EOF
40
+ task :default => :spec
41
+
42
+ require 'rake/rdoctask'
43
+ Rake::RDocTask.new do |rdoc|
44
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
45
+
46
+ rdoc.rdoc_dir = 'rdoc'
47
+ rdoc.title = "slightcms #{version}"
48
+ rdoc.rdoc_files.include('README*')
49
+ rdoc.rdoc_files.include('lib/**/*.rb')
50
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.11
1
+ 0.1.1
@@ -1,24 +1,24 @@
1
1
  module Slightcms
2
+
2
3
  class PagesController < ApplicationController
3
-
4
+
4
5
  # Render a page by its full path
5
6
  def show
6
- @page = Slightcms::Page.find_by_path(params[:path])
7
+ @page = Slightcms::Page.find_by_path(params[:path])
7
8
  if @page.nil?
8
9
  flash[:error] = "The site you are looking for doesn't exist!"
9
10
  render_404
10
11
  return
11
12
  else
12
- @page_content = @page.render_content
13
+ @page_content = @page.render_content
13
14
  end
14
-
15
15
  end
16
16
 
17
- end
17
+ # Render a 404 error page
18
+ def render_404
19
+ render :status => "404"
20
+ end
18
21
 
19
- # Render a 404 error page
20
- def render_404
21
- render :status => "404"
22
22
  end
23
23
 
24
24
  end
@@ -0,0 +1,19 @@
1
+ module Slightcms
2
+
3
+ module Generators
4
+
5
+ class InstallGenerator < Rails::Generators::Base
6
+
7
+ source_root File.expand_path("../../templates", __FILE__)
8
+
9
+ desc "Copy some files"
10
+
11
+ def show_readme
12
+ readme "README" if behavior == :invoke
13
+ end
14
+
15
+ end
16
+
17
+ end
18
+
19
+ end
@@ -0,0 +1,7 @@
1
+ ===============================================================================
2
+
3
+ Some setup you must do manually if you haven't yet:
4
+
5
+ write some README stuff
6
+
7
+ ===============================================================================
data/lib/slightcms.rb CHANGED
@@ -1,59 +0,0 @@
1
-
2
- module Slightcms
3
-
4
- # :stopdoc:
5
- VERSION = '0.0.10'
6
- LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
7
- PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
8
- # :startdoc:
9
-
10
- # Returns the version string for the library.
11
- #
12
- def self.version
13
- VERSION
14
- end
15
-
16
- # Returns the library path for the module. If any arguments are given,
17
- # they will be joined to the end of the libray path using
18
- # <tt>File.join</tt>.
19
- #
20
- def self.libpath( *args )
21
- args.empty? ? LIBPATH : ::File.join(LIBPATH, args.flatten)
22
- end
23
-
24
- # Returns the lpath for the module. If any arguments are given,
25
- # they will be joined to the end of the path using
26
- # <tt>File.join</tt>.
27
- #
28
- def self.path( *args )
29
- args.empty? ? PATH : ::File.join(PATH, args.flatten)
30
- end
31
-
32
- # Utility method used to require all files ending in .rb that lie in the
33
- # directory below this file that has the same name as the filename passed
34
- # in. Optionally, a specific _directory_ name can be passed in such that
35
- # the _filename_ does not have to be equivalent to the directory.
36
- #
37
- def self.require_all_libs_relative_to( fname, dir = nil )
38
- dir ||= ::File.basename(fname, '.*')
39
- search_me = ::File.expand_path(
40
- ::File.join(::File.dirname(fname), dir, '**', '*.rb'))
41
-
42
- Dir.glob(search_me).sort.each {|rb| require rb}
43
- end
44
-
45
- end # module Slightcms
46
-
47
- # Slightcms.require_all_libs_relative_to(__FILE__)
48
- ActionController::Base.prepend_view_path Slightcms.libpath + "app/views/"
49
- require 'acts_as_tree'
50
- require 'acts_as_list'
51
- require "app/models/layout"
52
- require "app/models/page"
53
- require "app/models/part"
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
@@ -1,105 +1,71 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{slightcms}
8
- s.version = "0.0.11"
8
+ s.version = "0.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 = ["Matthias Nitsch"]
12
- s.date = %q{2010-04-15}
13
- s.default_executable = %q{slightcms}
14
- s.description = %q{}
15
- s.email = %q{matthias.nitsch@me.com}
16
- s.executables = ["slightcms"]
12
+ s.date = %q{2011-04-17}
13
+ s.description = %q{Tsmal cms}
14
+ s.email = %q{matthias.nitsch@yahoo.de}
17
15
  s.extra_rdoc_files = [
16
+ "LICENSE.txt",
18
17
  "README.rdoc"
19
18
  ]
20
19
  s.files = [
21
- ".bnsignore",
22
- ".gitignore",
23
- "History.rdoc",
24
- "README.rdoc",
25
- "Rakefile",
26
- "VERSION",
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",
40
- "generators/slightcms_setup/slightcms_setup_generator.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",
50
- "lib/app/models/asset.rb",
51
- "lib/app/models/layout.rb",
52
- "lib/app/models/page.rb",
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",
66
- "lib/slightcms.rb",
67
- "slightcms.gemspec",
68
- "spec/slightcms_spec.rb",
69
- "spec/spec_helper.rb",
70
- "test/test_slightcms.rb"
20
+ ".DS_Store",
21
+ ".document",
22
+ ".rspec",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE.txt",
26
+ "README.rdoc",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "app/controllers/slightcms/pages_controller.rb",
30
+ "lib/generators/slightcms/install.rb",
31
+ "lib/generators/templates/README",
32
+ "lib/slightcms.rb",
33
+ "slightcms.gemspec",
34
+ "spec/slightcms_spec.rb",
35
+ "spec/spec_helper.rb"
71
36
  ]
72
37
  s.homepage = %q{http://github.com/mnitsch/slightcms}
73
- s.rdoc_options = ["--charset=UTF-8"]
38
+ s.licenses = ["MIT"]
74
39
  s.require_paths = ["lib"]
75
- s.rubygems_version = %q{1.3.6}
76
- s.summary = %q{slightCMS is a small CMS, built for integration into existing rails applications}
40
+ s.rubygems_version = %q{1.6.2}
41
+ s.summary = %q{A small cms to drop into existing rails applications.}
77
42
  s.test_files = [
78
43
  "spec/slightcms_spec.rb",
79
- "spec/spec_helper.rb",
80
- "test/test_slightcms.rb"
44
+ "spec/spec_helper.rb"
81
45
  ]
82
46
 
83
47
  if s.respond_to? :specification_version then
84
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
85
48
  s.specification_version = 3
86
49
 
87
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
88
- s.add_runtime_dependency(%q<rails>, [">= 2.3.5"])
89
- s.add_runtime_dependency(%q<acts_as_tree>, [">= 0.1.0"])
90
- s.add_runtime_dependency(%q<acts_as_list>, [">= 0.1.2"])
91
- s.add_runtime_dependency(%q<acts_as_versioned>, [">= 0.2.3"])
50
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
+ s.add_runtime_dependency(%q<rails>, ["~> 3.0.6"])
52
+ s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
53
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
54
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
55
+ s.add_development_dependency(%q<rcov>, [">= 0"])
92
56
  else
93
- s.add_dependency(%q<rails>, [">= 2.3.5"])
94
- s.add_dependency(%q<acts_as_tree>, [">= 0.1.0"])
95
- s.add_dependency(%q<acts_as_list>, [">= 0.1.2"])
96
- s.add_dependency(%q<acts_as_versioned>, [">= 0.2.3"])
57
+ s.add_dependency(%q<rails>, ["~> 3.0.6"])
58
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
59
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
60
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
61
+ s.add_dependency(%q<rcov>, [">= 0"])
97
62
  end
98
63
  else
99
- s.add_dependency(%q<rails>, [">= 2.3.5"])
100
- s.add_dependency(%q<acts_as_tree>, [">= 0.1.0"])
101
- s.add_dependency(%q<acts_as_list>, [">= 0.1.2"])
102
- s.add_dependency(%q<acts_as_versioned>, [">= 0.2.3"])
64
+ s.add_dependency(%q<rails>, ["~> 3.0.6"])
65
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
66
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
67
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
68
+ s.add_dependency(%q<rcov>, [">= 0"])
103
69
  end
104
70
  end
105
71