guard-haml 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/guard/haml.rb +6 -2
- data/lib/guard/haml/version.rb +1 -1
- metadata +4 -4
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
|
-
|
19
|
-
|
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
|
data/lib/guard/haml/version.rb
CHANGED
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
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-
|
18
|
+
date: 2011-08-13 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|