capcode-render-erb 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capcode-render-erb}
8
- s.version = "0.1.0"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gregoire Lejeune"]
12
- s.date = %q{2010-01-07}
12
+ s.date = %q{2010-02-05}
13
13
  s.description = %q{Capcode plugin to render via Erb}
14
14
  s.email = %q{gregoire.lejeune@free.fr}
15
15
  s.extra_rdoc_files = [
@@ -35,10 +35,11 @@ module Capcode
35
35
 
36
36
  # Get Layout
37
37
  layout = opts.delete(:layout)||:layout
38
- layout_file = File.join( @erb_path, layout.to_s+".rhtml" )
39
-
38
+ layout_file = File.join( @erb_path, layout.to_s )
39
+ layout_file = layout_file+".rhtml" if File.extname(layout_file) == ""
40
+
40
41
  # Get file
41
- f = f + ".rhtml" if File.extname( f ) != ".rhtml"
42
+ f = f + ".rhtml" if File.extname( f ) == ""
42
43
  file = File.join( @erb_path, f )
43
44
 
44
45
  if( File.exist?( file ) )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capcode-render-erb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregoire Lejeune
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-07 00:00:00 +01:00
12
+ date: 2010-02-05 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15