weel 1.99.110 → 1.99.111
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 +6 -6
- data/weel.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b06de4e72e80c63aa6cd62cb267e837823a6099ef8b100031eeb5e817f950ff2
|
4
|
+
data.tar.gz: f227674b5d4f22a49d6d96e823a618fc508e48e250a50dee08603d128d30d5f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23321928b269cfb7358187d79e786fd6efef7b0ad4694b35d71af6f0e63f175a2228356ee8a781de4f64d106dc84d790c585a89468065ac37b07dd3cf60c550e
|
7
|
+
data.tar.gz: 8881323b085b5e928412476f21e5ebe5d2f5fd9a9da0f30c65d2da16643c88bd21507331d9ee6b097d99643d25aefa6882cc4a11eb7e4faf32cd4a32f2bc2460
|
data/lib/weel.rb
CHANGED
@@ -354,7 +354,7 @@ class WEEL
|
|
354
354
|
def callback(result=nil,options={}); end
|
355
355
|
def mem_guard; end
|
356
356
|
|
357
|
-
def test_condition(mr,code); mr.instance_eval(code); end
|
357
|
+
def test_condition(mr,code,args={}); mr.instance_eval(code); end
|
358
358
|
def join_branches(branches); end
|
359
359
|
def manipulate(mr,code,where,result=nil,options=nil); mr.instance_eval(code,where,1); end
|
360
360
|
end # }}}
|
@@ -632,7 +632,7 @@ class WEEL
|
|
632
632
|
Thread.current[:mutex].synchronize do
|
633
633
|
return if Thread.current[:alternative_mode][-1] == :exclusive && Thread.current[:alternative_executed][-1] == true
|
634
634
|
if (condition.is_a?(String) || condition.is_a?(Proc)) && !__weel_sim
|
635
|
-
condition = __weel_eval_condition(condition)
|
635
|
+
condition = __weel_eval_condition(condition, args)
|
636
636
|
end
|
637
637
|
Thread.current[:alternative_executed][-1] = true if condition
|
638
638
|
end
|
@@ -692,7 +692,7 @@ class WEEL
|
|
692
692
|
catch :escape do
|
693
693
|
case condition[1]
|
694
694
|
when :pre_test
|
695
|
-
while __weel_eval_condition(condition[0]) && self.__weel_state != :stopping && self.__weel_state != :stopped && self.__weel_state != :finishing && !Thread.current[:nolongernecessary]
|
695
|
+
while __weel_eval_condition(condition[0],args) && self.__weel_state != :stopping && self.__weel_state != :stopped && self.__weel_state != :finishing && !Thread.current[:nolongernecessary]
|
696
696
|
loop_guard += 1
|
697
697
|
__weel_protect_yield(&block)
|
698
698
|
sleep 1 if @__weel_connectionwrapper::loop_guard(@__weel_connectionwrapper_args,loop_id,loop_guard)
|
@@ -702,7 +702,7 @@ class WEEL
|
|
702
702
|
loop_guard += 1
|
703
703
|
__weel_protect_yield(&block)
|
704
704
|
sleep 1 if @__weel_connectionwrapper::loop_guard(@__weel_connectionwrapper_args,loop_id,loop_guard)
|
705
|
-
end while __weel_eval_condition(condition[0]) && self.__weel_state != :stopping && self.__weel_state != :stopped && self.__weel_state != :finishing && !Thread.current[:nolongernecessary]
|
705
|
+
end while __weel_eval_condition(condition[0],args) && self.__weel_state != :stopping && self.__weel_state != :stopped && self.__weel_state != :finishing && !Thread.current[:nolongernecessary]
|
706
706
|
end
|
707
707
|
end
|
708
708
|
end # }}}
|
@@ -768,10 +768,10 @@ class WEEL
|
|
768
768
|
end
|
769
769
|
end #}}}
|
770
770
|
|
771
|
-
def __weel_eval_condition(condition) #{{{
|
771
|
+
def __weel_eval_condition(condition,args={}) #{{{
|
772
772
|
begin
|
773
773
|
connectionwrapper = @__weel_connectionwrapper.new @__weel_connectionwrapper_args unless condition.is_a?(Proc)
|
774
|
-
condition.is_a?(Proc) ? condition.call : connectionwrapper.test_condition(ReadStructure.new(@__weel_data,@__weel_endpoints,Thread.current[:local],connectionwrapper.additional),condition)
|
774
|
+
condition.is_a?(Proc) ? condition.call : connectionwrapper.test_condition(ReadStructure.new(@__weel_data,@__weel_endpoints,Thread.current[:local],connectionwrapper.additional),condition,args)
|
775
775
|
rescue NameError => err # don't look into it, or it will explode
|
776
776
|
# if you access $! here, BOOOM
|
777
777
|
self.__weel_state = :stopping
|
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.111
|
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: 2023-
|
12
|
+
date: 2023-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: test-unit
|