weel 1.99.51 → 1.99.52
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/weel.rb +16 -5
- data/test/TestHandlerWrapper.rb +1 -0
- data/weel.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6781cf5c784ad510da40a7691825eefcf2e016c3
|
4
|
+
data.tar.gz: 9635d913b9a2082fee1b488cea87fa65d8808c1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46af0cdb4d7c76b5038a36423e0f57095f4679ecf9b01c2faf1c7db097c0c3303cf948e54ca531e8ab39634cab57c9966e085d952f0a1b8e51d330f2676a9e17
|
7
|
+
data.tar.gz: 2eeacb980cf037e56faf1d5a35906c64f7d600326100f121193c8dfdca0eba34b48f8023af1f7ef418c6966959d6a870fa9b025c37139b815fb63edc4976577a
|
data/lib/weel.rb
CHANGED
@@ -541,9 +541,13 @@ class WEEL
|
|
541
541
|
def __weel_protect_yield(*local)
|
542
542
|
begin
|
543
543
|
yield(*local) if block_given?
|
544
|
-
rescue # => err # don't look into it, or it will explode
|
544
|
+
rescue NameError # => err # don't look into it, or it will explode
|
545
545
|
self.__weel_state = :stopping
|
546
|
-
@__weel_handlerwrapper::inform_syntax_error(@__weel_handlerwrapper_args,Exception.new("DSL error. I don't want to tell you where and why."),nil)
|
546
|
+
@__weel_handlerwrapper::inform_syntax_error(@__weel_handlerwrapper_args,Exception.new("DSL protected_yield error. I don't want to tell you where and why."),nil)
|
547
|
+
nil
|
548
|
+
rescue => err
|
549
|
+
self.__weel_state = :stopping
|
550
|
+
@__weel_handlerwrapper::inform_syntax_error(@__weel_handlerwrapper_args,Exception.new(err.message),nil)
|
547
551
|
nil
|
548
552
|
end
|
549
553
|
end
|
@@ -552,11 +556,15 @@ class WEEL
|
|
552
556
|
begin
|
553
557
|
handlerwrapper = @__weel_handlerwrapper.new @__weel_handlerwrapper_args unless condition.is_a?(Proc)
|
554
558
|
condition.is_a?(Proc) ? condition.call : handlerwrapper.test_condition(ReadStructure.new(@__weel_data,@__weel_endpoints),condition)
|
555
|
-
rescue # => err # don't look into it, or it will explode
|
559
|
+
rescue NameError # => err # don't look into it, or it will explode
|
556
560
|
# if you access $! here, BOOOM
|
557
561
|
self.__weel_state = :stopping
|
558
562
|
@__weel_handlerwrapper::inform_syntax_error(@__weel_handlerwrapper_args,Exception.new("Condition error. I don't want to tell you where and why."),nil)
|
559
563
|
nil
|
564
|
+
rescue => err
|
565
|
+
self.__weel_state = :stopping
|
566
|
+
@__weel_handlerwrapper::inform_syntax_error(@__weel_handlerwrapper_args,Exception.new(err.message),nil)
|
567
|
+
nil
|
560
568
|
end
|
561
569
|
end
|
562
570
|
|
@@ -925,9 +933,12 @@ public
|
|
925
933
|
rescue SyntaxError => se
|
926
934
|
@dslr.__weel_state = :stopping
|
927
935
|
@dslr.__weel_handlerwrapper::inform_syntax_error(@dslr.__weel_handlerwrapper_args,Exception.new(se.message),code)
|
928
|
-
rescue # => err # don't look into it, or it will explode
|
936
|
+
rescue NameError # => err # don't look into it, or it will explode
|
937
|
+
@dslr.__weel_state = :stopping
|
938
|
+
@dslr.__weel_handlerwrapper::inform_syntax_error(@dslr.__weel_handlerwrapper_args,Exception.new("DSL main error. I don't want to tell you where and why."),code)
|
939
|
+
rescue => err
|
929
940
|
@dslr.__weel_state = :stopping
|
930
|
-
@dslr.__weel_handlerwrapper::inform_syntax_error(@dslr.__weel_handlerwrapper_args,Exception.new(
|
941
|
+
@dslr.__weel_handlerwrapper::inform_syntax_error(@dslr.__weel_handlerwrapper_args,Exception.new(err.message),code)
|
931
942
|
end
|
932
943
|
if @dslr.__weel_state == :running
|
933
944
|
@dslr.__weel_state = :finished
|
data/test/TestHandlerWrapper.rb
CHANGED
data/weel.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.99.
|
4
|
+
version: 1.99.52
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-12-
|
12
|
+
date: 2017-12-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: test-unit
|