barista 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/barista.gemspec +1 -1
- data/lib/barista/compiler.rb +2 -2
- data/lib/barista/version.rb +1 -1
- metadata +3 -3
data/barista.gemspec
CHANGED
data/lib/barista/compiler.rb
CHANGED
@@ -133,10 +133,10 @@ module Barista
|
|
133
133
|
Barista.invoke_hook :compiled, where
|
134
134
|
end
|
135
135
|
out
|
136
|
-
rescue
|
136
|
+
rescue ExecJS::Error => e
|
137
137
|
Barista.invoke_hook :compilation_failed, where, e.message
|
138
138
|
if Barista.exception_on_error? && !@options[:silence]
|
139
|
-
if e.is_a?(
|
139
|
+
if e.is_a?(ExecJS::ProgramError)
|
140
140
|
where_within_app = where.sub(/#{Regexp.escape(Barista.app_root.to_s)}\/?/, '')
|
141
141
|
raise CompilationError, "Error: In #{where_within_app}, #{e.message}"
|
142
142
|
else
|
data/lib/barista/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barista
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Darcy Laycock
|