cms-lite 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/cms-lite.gemspec +2 -2
- data/lib/cms_lite.rb +10 -3
- metadata +2 -2
data/Rakefile
CHANGED
@@ -34,7 +34,7 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
34
34
|
rdoc.rdoc_dir = 'rdoc'
|
35
35
|
rdoc.title = 'CmsLite'
|
36
36
|
rdoc.options << '--line-numbers' << '--inline-source'
|
37
|
-
rdoc.rdoc_files.include('README')
|
37
|
+
rdoc.rdoc_files.include('README*')
|
38
38
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
39
39
|
end
|
40
40
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/cms-lite.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{cms-lite}
|
5
|
-
s.version = "0.4.
|
5
|
+
s.version = "0.4.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Justin Ball"]
|
9
|
-
s.date = %q{2009-07-
|
9
|
+
s.date = %q{2009-07-21}
|
10
10
|
s.description = %q{CMS gem that makes it simple to interact with your content developers by serving pages from '/content'.}
|
11
11
|
s.email = %q{justinball@gmail.com}
|
12
12
|
s.extra_rdoc_files = [
|
data/lib/cms_lite.rb
CHANGED
@@ -61,17 +61,24 @@ class CmsLite
|
|
61
61
|
|
62
62
|
def append_content_path(path, reload_routes = true)
|
63
63
|
content_paths << path
|
64
|
-
|
64
|
+
setup_routes if reload_routes
|
65
65
|
end
|
66
66
|
|
67
67
|
def prepend_content_path(path, reload_routes = true)
|
68
68
|
content_paths.unshift(path)
|
69
|
-
|
69
|
+
setup_routes if reload_routes
|
70
70
|
end
|
71
71
|
|
72
72
|
def remove_content_path(path, reload_routes = true)
|
73
73
|
content_paths.delete(path)
|
74
|
-
|
74
|
+
setup_routes if reload_routes
|
75
|
+
end
|
76
|
+
|
77
|
+
def setup_routes
|
78
|
+
# HACK for some reason the app routes disappear when doing a reload. Have to add them back here so they are the first to get loaded
|
79
|
+
app_routes = File.join(RAILS_ROOT, *%w[config routes.rb])
|
80
|
+
ActionController::Routing::Routes.add_configuration_file(app_routes)
|
81
|
+
ActionController::Routing::Routes.reload
|
75
82
|
end
|
76
83
|
|
77
84
|
# This is a utitility method that makes sure the unprotected routes don't interfere with the proctected routes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cms-lite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Ball
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-21 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|