benofsky-bolt 0.1.4 → 0.1.5

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.
data/lib/bolt/base.rb CHANGED
@@ -7,7 +7,8 @@
7
7
  #
8
8
 
9
9
  require 'fileutils'
10
- require 'ftools'
10
+
11
+ require 'ftools' if RUBY_VERSION.to_f <= 1.8
11
12
 
12
13
  $BOLT_BASE = File.dirname(__FILE__) + "/../../"
13
14
 
data/lib/bolt/page.rb CHANGED
@@ -67,7 +67,7 @@ end
67
67
  def render_haml(haml, locals = {})
68
68
  if locals != false && locals.empty?
69
69
  self.instance_variables.each do |var|
70
- locals[var.split("@")[1]] = self.instance_variable_get(var)
70
+ locals[var.to_s.split("@")[1]] = self.instance_variable_get(var)
71
71
  end
72
72
 
73
73
  locals.merge!($config_file)
data/lib/bolt/view.rb CHANGED
@@ -8,4 +8,8 @@
8
8
 
9
9
  def u(path)
10
10
  path + ".html"
11
+ end
12
+
13
+ def anchor(path)
14
+ "#" + path
11
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benofsky-bolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McRedmond