weel 1.99.125 → 1.99.126
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 +7 -7
- data/weel.gemspec +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: 60a41686ed63dd69b44c606cc695cfe066d47b7abc183cdd21404307b985895e
|
|
4
|
+
data.tar.gz: dbe0042ffcb494fbba0ec4a56b0a1c4e6943e97c99a954edea19d16be69a0589
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5147adca88e3b08f54d972d39a625b1e12f360be7475799324f84029492d8c1b4912e43a700ad142fe4e349f86507642cd55ed8e22aedb5e74733eb01a1b6678
|
|
7
|
+
data.tar.gz: 543e59f9b75781ac2d87930584fb84032a991e5157dd18a549946ac9c222046ba44c74bae8f76b21138bef46c4a795694cdb3617a47cbe69ce2d0cbf671df7eb
|
data/lib/weel.rb
CHANGED
|
@@ -527,11 +527,11 @@ class WEEL
|
|
|
527
527
|
end # }}}
|
|
528
528
|
|
|
529
529
|
# Defines a branch of a parallel-Construct
|
|
530
|
-
def parallel_branch(
|
|
530
|
+
def parallel_branch(data=@__weel_data,&block)# {{{
|
|
531
531
|
return if self.__weel_state == :stopping || self.__weel_state == :finishing || self.__weel_state == :stopped || Thread.current[:nolongernecessary]
|
|
532
532
|
branch_parent = Thread.current
|
|
533
533
|
|
|
534
|
-
branch_parent[:branches] << Thread.new(
|
|
534
|
+
branch_parent[:branches] << Thread.new(data) do |*local|
|
|
535
535
|
Thread.current.abort_on_exception = true
|
|
536
536
|
Thread.current[:branch_search] = @__weel_search_positions.any?
|
|
537
537
|
Thread.current[:branch_parent] = branch_parent
|
|
@@ -732,7 +732,7 @@ class WEEL
|
|
|
732
732
|
nil
|
|
733
733
|
rescue => err
|
|
734
734
|
self.__weel_state = :stopping
|
|
735
|
-
@__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,
|
|
735
|
+
@__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,err,nil)
|
|
736
736
|
nil
|
|
737
737
|
end
|
|
738
738
|
end #}}}
|
|
@@ -744,11 +744,11 @@ class WEEL
|
|
|
744
744
|
rescue NameError => err # don't look into it, or it will explode
|
|
745
745
|
# if you access $! here, BOOOM
|
|
746
746
|
self.__weel_state = :stopping
|
|
747
|
-
@__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,Exception.new("
|
|
747
|
+
@__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_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)
|
|
748
748
|
nil
|
|
749
749
|
rescue => err
|
|
750
750
|
self.__weel_state = :stopping
|
|
751
|
-
@__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,
|
|
751
|
+
@__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,err,nil)
|
|
752
752
|
nil
|
|
753
753
|
end
|
|
754
754
|
end #}}}
|
|
@@ -1089,13 +1089,13 @@ public
|
|
|
1089
1089
|
end
|
|
1090
1090
|
rescue SyntaxError => se
|
|
1091
1091
|
@dslr.__weel_state = :stopping
|
|
1092
|
-
@dslr.__weel_connectionwrapper::inform_syntax_error(@dslr.__weel_connectionwrapper_args,
|
|
1092
|
+
@dslr.__weel_connectionwrapper::inform_syntax_error(@dslr.__weel_connectionwrapper_args,se,code)
|
|
1093
1093
|
rescue NameError => err # don't look into it, or it will explode
|
|
1094
1094
|
@dslr.__weel_state = :stopping
|
|
1095
1095
|
@dslr.__weel_connectionwrapper::inform_syntax_error(@dslr.__weel_connectionwrapper_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)
|
|
1096
1096
|
rescue => err
|
|
1097
1097
|
@dslr.__weel_state = :stopping
|
|
1098
|
-
@dslr.__weel_connectionwrapper::inform_syntax_error(@dslr.__weel_connectionwrapper_args,
|
|
1098
|
+
@dslr.__weel_connectionwrapper::inform_syntax_error(@dslr.__weel_connectionwrapper_args,err,code)
|
|
1099
1099
|
end
|
|
1100
1100
|
if @dslr.__weel_state == :running || @dslr.__weel_state == :finishing
|
|
1101
1101
|
ipc = { :unmark => [] }
|
data/weel.gemspec
CHANGED