howl 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/howl.gemspec +1 -1
  3. data/lib/howl/template.rb +2 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
data/howl.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{howl}
8
- s.version = "0.5.1"
8
+ s.version = "0.5.2"
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"]
data/lib/howl/template.rb CHANGED
@@ -8,11 +8,12 @@ module Howl
8
8
  viewables.push(*viewables)
9
9
  end
10
10
 
11
- attr_accessor :view, :content, :site, :path, :extension
11
+ attr_accessor :view, :content, :site, :path, :relative_path, :extension
12
12
 
13
13
  def initialize(path, site)
14
14
  @site = site
15
15
  @path = Pathname.new(path)
16
+ @relative_path = path.to_s.gsub(/^#{site.root}/, '')
16
17
  @extension = @path.extname
17
18
  load_file unless @path.binary?
18
19
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 1
9
- version: 0.5.1
8
+ - 2
9
+ version: 0.5.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Clinton R. Nixon