weel 1.99.52 → 1.99.53
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.
- checksums.yaml +4 -4
- data/lib/weel.rb +5 -5
- data/weel.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7668c333d0cfdcd2398932e45344c9680e30e97
|
4
|
+
data.tar.gz: 4d032a78ee6257263f85410fb30139b299d5c574
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f348065b47122a2f5b6a33e27fa3fc66c1c7fde5d2142e6597aa2a0ddcd2610cabf544d39a7820bee92348764036bbb50ece14978af06f19e4179e065520d99
|
7
|
+
data.tar.gz: 319354bf332bcddca937aeb0a87ced44ac5016c76c56a875f20484ed75a4e8578f69f928863cdd15c6d4f7ef9b8ff803c6b369dcba3751534e717d673a926419
|
data/lib/weel.rb
CHANGED
@@ -541,9 +541,9 @@ class WEEL
|
|
541
541
|
def __weel_protect_yield(*local)
|
542
542
|
begin
|
543
543
|
yield(*local) if block_given?
|
544
|
-
rescue NameError
|
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("
|
546
|
+
@__weel_handlerwrapper::inform_syntax_error(@__weel_handlerwrapper_args,Exception.new("protect_yield: `#{err.name}` is not a thing that can be used. Maybe it is meant to be a string and you forgot quotes?"),nil)
|
547
547
|
nil
|
548
548
|
rescue => err
|
549
549
|
self.__weel_state = :stopping
|
@@ -556,10 +556,10 @@ class WEEL
|
|
556
556
|
begin
|
557
557
|
handlerwrapper = @__weel_handlerwrapper.new @__weel_handlerwrapper_args unless condition.is_a?(Proc)
|
558
558
|
condition.is_a?(Proc) ? condition.call : handlerwrapper.test_condition(ReadStructure.new(@__weel_data,@__weel_endpoints),condition)
|
559
|
-
rescue NameError
|
559
|
+
rescue NameError => err # don't look into it, or it will explode
|
560
560
|
# if you access $! here, BOOOM
|
561
561
|
self.__weel_state = :stopping
|
562
|
-
@__weel_handlerwrapper::inform_syntax_error(@__weel_handlerwrapper_args,Exception.new("
|
562
|
+
@__weel_handlerwrapper::inform_syntax_error(@__weel_handlerwrapper_args,Exception.new("eval_condition: `#{err.name}` is not a thing that can be used. Maybe it is meant to be a string and you forgot quotes?"),nil)
|
563
563
|
nil
|
564
564
|
rescue => err
|
565
565
|
self.__weel_state = :stopping
|
@@ -935,7 +935,7 @@ public
|
|
935
935
|
@dslr.__weel_handlerwrapper::inform_syntax_error(@dslr.__weel_handlerwrapper_args,Exception.new(se.message),code)
|
936
936
|
rescue NameError # => err # don't look into it, or it will explode
|
937
937
|
@dslr.__weel_state = :stopping
|
938
|
-
@dslr.__weel_handlerwrapper::inform_syntax_error(@dslr.__weel_handlerwrapper_args,Exception.new("
|
938
|
+
@dslr.__weel_handlerwrapper::inform_syntax_error(@dslr.__weel_handlerwrapper_args,Exception.new("main: `#{err.name}` is not a thing that can be used. Maybe it is meant to be a string and you forgot quotes?"),code)
|
939
939
|
rescue => err
|
940
940
|
@dslr.__weel_state = :stopping
|
941
941
|
@dslr.__weel_handlerwrapper::inform_syntax_error(@dslr.__weel_handlerwrapper_args,Exception.new(err.message),code)
|
data/weel.gemspec
CHANGED