superscript 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/e2e/dsls/go.rb +4 -0
- data/e2e/test.rb +2 -0
- data/lib/superscript/runner.rb +11 -12
- data/lib/superscript/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b19663dfb05a7fbb830364787958acddcd1b3775b34602037859dbb68a760478
|
4
|
+
data.tar.gz: 6e5629534d4f07dfc6e66700d70ac3822ca981989b8e5c2e428e8a03139dc227
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03abe4121ccef1debd13a861b7c78eab5217390a8fe2a3c9be73b7be4508bb3e961bb66c5c87d7d876772ed084ad5596af7f826eba68bc3117f491712db1f867
|
7
|
+
data.tar.gz: 90369ee7481e75cacf420ea3b756ecd7dc1f47c276164649c3e7f695ec0a92e5d94ec37898e5145f811a4c72a33e6a16f6391e675158fb6bb230cf7fdf482d6e
|
data/Gemfile.lock
CHANGED
data/e2e/dsls/go.rb
CHANGED
data/e2e/test.rb
CHANGED
data/lib/superscript/runner.rb
CHANGED
@@ -18,27 +18,26 @@ module Superscript
|
|
18
18
|
|
19
19
|
def error!(where, *args)
|
20
20
|
puts "-- [ superscript error ] --"
|
21
|
-
error_message =
|
22
|
-
case where
|
21
|
+
exception, error_message = case where
|
23
22
|
when :exception
|
24
|
-
|
25
|
-
|
23
|
+
ex = args.first
|
24
|
+
[ex.class, ex]
|
26
25
|
when :tp_call_superscript, :tp_call_superscript_global
|
27
|
-
|
26
|
+
[:internal, "Can't touch this"]
|
28
27
|
when :ctx_method_missing, :tp_singleton_method_added, :tp_command_not_found
|
29
|
-
|
28
|
+
[:internal, args.first]
|
30
29
|
when :tp_class_define, :tp_module_define
|
31
|
-
|
30
|
+
[:internal, args.first]
|
32
31
|
else
|
33
32
|
pp [:unknown_where, where, args]
|
34
|
-
|
33
|
+
[:uknown, args.join(" ")]
|
35
34
|
end
|
36
35
|
|
37
|
-
puts error_message
|
36
|
+
puts "#{exception}: #{error_message}"
|
38
37
|
|
39
|
-
caller.each do |c|
|
40
|
-
|
41
|
-
end
|
38
|
+
# caller.each do |c|
|
39
|
+
# puts c
|
40
|
+
# end
|
42
41
|
system @on_error_exec, error_message if @on_error_exec
|
43
42
|
|
44
43
|
exit 1 unless @path == "<interactive>"
|
data/lib/superscript/version.rb
CHANGED