guard-haml 0.3.0 → 0.3.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.
data/lib/guard/haml.rb CHANGED
@@ -15,8 +15,12 @@ module Guard
15
15
 
16
16
  def compile_haml file
17
17
  content = File.new(file).read
18
- engine = ::Haml::Engine.new(content, (@options[:haml_options] || {}))
19
- engine.render
18
+ begin
19
+ engine = ::Haml::Engine.new(content, (@options[:haml_options] || {}))
20
+ engine.render
21
+ rescue StandardError => error
22
+ ::Guard::UI.info "HAML Error: " + error.message
23
+ end
20
24
  end
21
25
 
22
26
  # Get the file path to output the html based on the file being
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  class HamlVersion
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Immanuel H\xC3\xA4ussermann"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-18 00:00:00 +02:00
18
+ date: 2011-08-13 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency