weel 1.99.110 → 1.99.111

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/weel.rb +6 -6
  3. data/weel.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ccaab8c3ceb95f2369efa6d80dc9e3f8a70bcb4d7dc064b90f4af761813c9c4
4
- data.tar.gz: 63f6d510c1b0603b899269a70ef2224349b2e8a16d8c6ea93032df63d410c34d
3
+ metadata.gz: b06de4e72e80c63aa6cd62cb267e837823a6099ef8b100031eeb5e817f950ff2
4
+ data.tar.gz: f227674b5d4f22a49d6d96e823a618fc508e48e250a50dee08603d128d30d5f4
5
5
  SHA512:
6
- metadata.gz: 86f990fd9e957fc14fc444f9512a78e7501f90f5f9278fb9b71388d76ec361d6acb3d6416c7a3ea609b1a4c5d19bdac9dac49fa3e11118c8c59fa78c036756cb
7
- data.tar.gz: a27c4abd6080ab0371ba6be2ff0de946169392f59362e83781b239e91ccd112dfd323a9e67304d204ab2b57356a44026165d406e414bda33a1862db7f49b1271
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "weel"
3
- s.version = "1.99.110"
3
+ s.version = "1.99.111"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Workflow Execution Engine Library (WEEL)"
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.110
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-06-08 00:00:00.000000000 Z
12
+ date: 2023-08-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit