guard-haml 0.1.0 → 0.1.1

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 (2) hide show
  1. data/lib/guard/haml.rb +3 -2
  2. metadata +3 -3
data/lib/guard/haml.rb CHANGED
@@ -5,15 +5,16 @@ require 'haml'
5
5
  module Guard
6
6
  class Haml < Guard
7
7
 
8
- VERSION = '0.1.0'
8
+ VERSION = '0.1.1'
9
9
 
10
10
  def initialize(watchers = [], options = {})
11
11
  @watchers, @options = watchers, options
12
+ @haml_options = options.delete(:haml_options)
12
13
  end
13
14
 
14
15
  def compile_haml file
15
16
  content = File.new(file).read
16
- engine = ::Haml::Engine.new(content)
17
+ engine = ::Haml::Engine.new(content, @haml_options)
17
18
  engine.render
18
19
  end
19
20
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-haml
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Immanuel H\xC3\xA4ussermann"