rlayout 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +4 -0
  2. data/README +1 -1
  3. data/Rakefile +1 -1
  4. data/lib/rlayout/layout.rb +2 -0
  5. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ Changes in version 0.1.4 (2008-05-13)
2
+ -------------------------------------
3
+ fix a bugs when options is nil and erb set layout false
4
+
1
5
  Changes in version 0.1.3 (2008-05-8)
2
6
  -------------------------------------
3
7
  fix a bugs about miss nil?'s ?
data/README CHANGED
@@ -1,4 +1,4 @@
1
- Rails Layout Extension, release 0.1.3 (May. 2008)
1
+ Rails Layout Extension, release 0.1.4 (May. 2008)
2
2
 
3
3
  Feature
4
4
  =======
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'rake/gempackagetask'
3
3
  PKG_NAME = "rlayout"
4
- PKG_VERSION = "0.1.3"
4
+ PKG_VERSION = "0.1.4"
5
5
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
6
6
  PKG_FILES = FileList[
7
7
  '[A-Z]*',
@@ -30,7 +30,9 @@ module Rlayout
30
30
  end
31
31
  end
32
32
  unless new_layout.nil? || new_layout.empty?
33
+ options ||= {}
33
34
  options[:layout] = new_layout == 'none' || new_layout == 'false' ? false : new_layout
35
+ template_with_options = true
34
36
  end
35
37
 
36
38
  if apply_layout?(template_with_options, options) && (layout = pick_layout(template_with_options, options))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rlayout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon Li
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-08 00:00:00 +08:00
12
+ date: 2008-05-13 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15