howl 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/howl.gemspec +1 -1
  3. data/lib/howl/template.rb +3 -2
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.3
1
+ 0.5.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{howl}
8
- s.version = "0.5.3"
8
+ s.version = "0.5.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Clinton R. Nixon"]
@@ -8,7 +8,7 @@ module Howl
8
8
  viewables.push(*viewables)
9
9
  end
10
10
 
11
- attr_accessor :view, :view_data, :content, :site, :path, :relative_path, :extension
11
+ attr_accessor :view, :view_yaml, :content, :site, :path, :relative_path, :extension
12
12
 
13
13
  def initialize(path, site)
14
14
  @site = site
@@ -78,14 +78,15 @@ module Howl
78
78
 
79
79
  view ||= ""
80
80
  content ||= ""
81
+ @view_yaml = view
81
82
 
82
83
  if test_for_yaml(view)
83
84
  @content = content
84
- @view_data = view
85
85
  view = YAML.load(view)
86
86
  else
87
87
  @content = "#{view}\n\n#{content}".strip
88
88
  view = {}
89
+ @view_yaml = nil
89
90
  end
90
91
 
91
92
  @view = View.new(view)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 3
9
- version: 0.5.3
8
+ - 4
9
+ version: 0.5.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Clinton R. Nixon