jbasdf-cms-lite 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -14,9 +14,9 @@ class CmsLiteController < ApplicationController
14
14
  def render_content_page(cms_lite_path, request_layout = '')
15
15
  path = File.join(RAILS_ROOT, CmsLite::CONTENT_PATH, cms_lite_path, I18n.locale.to_s, params[:content_key], params[:content_page].join('/'))
16
16
  format = params[:format] || 'htm'
17
- content_page = Dir.glob("/#{path}.#{format}").first
18
- content_page = Dir.glob("/#{path}").first if content_page.nil?
19
- content_page = Dir.glob("/#{path}.*").first if content_page.nil?
17
+ content_page = Dir.glob("#{path}.#{format}").first
18
+ content_page = Dir.glob("#{path}").first if content_page.nil?
19
+ content_page = Dir.glob("#{path}.*").first if content_page.nil?
20
20
  raise CmsLite::Exceptions::MissingTemplateError, "Could not find template for: '#{path}'" if content_page.nil?
21
21
  respond_to do |format|
22
22
  format.html { render :file => content_page, :layout => choose_layout(params[:content_key]) }
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.3.2"
5
+ s.version = "0.3.3"
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-05-09}
9
+ s.date = %q{2009-06-09}
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 = [
@@ -30,9 +30,6 @@ Gem::Specification.new do |s|
30
30
  "lib/cms_lite/languages.rb",
31
31
  "lib/cms_lite/tasks.rb",
32
32
  "lib/cms_lite/tasks.rb",
33
- "pkg/cms-lite-0.2.7.gem",
34
- "pkg/cms-lite-0.3.0.gem",
35
- "pkg/cms-lite-0.3.1.gem",
36
33
  "rails/init.rb",
37
34
  "tasks/rails.rake",
38
35
  "tasks/rails.rake",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jbasdf-cms-lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
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-05-09 00:00:00 -07:00
12
+ date: 2009-06-09 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -35,9 +35,6 @@ files:
35
35
  - lib/cms_lite/initialize_routes.rb
36
36
  - lib/cms_lite/languages.rb
37
37
  - lib/cms_lite/tasks.rb
38
- - pkg/cms-lite-0.2.7.gem
39
- - pkg/cms-lite-0.3.0.gem
40
- - pkg/cms-lite-0.3.1.gem
41
38
  - rails/init.rb
42
39
  - tasks/rails.rake
43
40
  - test/cms_lite_test.rb
Binary file
Binary file
Binary file