weel 1.99.27 → 1.99.28

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 +2 -2
  3. data/weel.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bbcb22e3a89fe6fffc5d741655210b8ee8e596a
4
- data.tar.gz: 454762ba82a27d844affa331f33cbd46a94732ee
3
+ metadata.gz: 0e7e5f2dc6a3187e5e82f53292e999f2eeec14b0
4
+ data.tar.gz: 12f35817d6d22e41fd9288d3bba4f127f7480b41
5
5
  SHA512:
6
- metadata.gz: 8102a1ce72fe288470af22c5d3dd8d0931403cec7ea06c0cb93272f64f56148af6473b7f9bdd343e61daef89eb7df864099aab9206befeed197512355af1669b
7
- data.tar.gz: 0de3548c8a64773b4f786925e15b0283269af4c1a5fb592accbc1ddcb01963701e978f30f8784e47bc3feab2740626a897fc5d29f079c482b7fe0992696257c5
6
+ metadata.gz: 661201c6a546cd28ebb02eba1c9c937a2879a1b26875b2758ff00090691df88b5a0d6168119a848ae93f8d42c21b1ac618c8377850151f7478ab0c1863f4ddbf
7
+ data.tar.gz: 860f7d49ac209c5647568de6328af694c7aa5ac0637317365cf45c1908d16ca33549fe8dec014fa297e27ee7823a41e417a3dc6da4e5caa1a7d5bd1c5257698f
data/lib/weel.rb CHANGED
@@ -454,7 +454,7 @@ class WEEL
454
454
  # searchmode is active (to find the starting position)
455
455
  def alternative(condition,args={})# {{{
456
456
  return if self.__weel_state == :stopping || self.__weel_state == :stopped || Thread.current[:nolongernecessary]
457
- hw, pos = __weel_sim_start(:alternative,args.merge(:mode => Thread.current[:alternative_mode])) if __weel_sim
457
+ hw, pos = __weel_sim_start(:alternative,args.merge(:mode => Thread.current[:alternative_mode], :condition => condition.is_a?(String) ? condition : nil)) if __weel_sim
458
458
  Thread.current[:mutex] ||= Mutex.new
459
459
  Thread.current[:mutex].synchronize do
460
460
  return if Thread.current[:alternative_mode] == :exclusive && Thread.current[:alternative_executed][-1] = true
@@ -465,7 +465,7 @@ class WEEL
465
465
  Thread.current[:alternative_executed][-1] = true if condition
466
466
  end
467
467
  yield if __weel_is_in_search_mode || __weel_sim || condition
468
- __weel_sim_stop(:alternative,hw,pos,args.merge(:mode => Thread.current[:alternative_mode])) if __weel_sim
468
+ __weel_sim_stop(:alternative,hw,pos,args.merge(:mode => Thread.current[:alternative_mode], :condition => condition.is_a?(String) ? condition : nil)) if __weel_sim
469
469
  end # }}}
470
470
  def otherwise(args={}) # {{{
471
471
  return if self.__weel_state == :stopping || self.__weel_state == :stopped || Thread.current[:nolongernecessary]
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.27"
3
+ s.version = "1.99.28"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
6
6
  s.summary = "Preliminary release of the 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.27
4
+ version: 1.99.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler