weel 1.99.28 → 1.99.29

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/weel.rb +4 -4
  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: 0e7e5f2dc6a3187e5e82f53292e999f2eeec14b0
4
- data.tar.gz: 12f35817d6d22e41fd9288d3bba4f127f7480b41
3
+ metadata.gz: ec0ae6f81b68ba24ab4d8d2a677264651c6ee710
4
+ data.tar.gz: d8f2c82cdde8a3468ce0a53027e18e0a67e29a9c
5
5
  SHA512:
6
- metadata.gz: 661201c6a546cd28ebb02eba1c9c937a2879a1b26875b2758ff00090691df88b5a0d6168119a848ae93f8d42c21b1ac618c8377850151f7478ab0c1863f4ddbf
7
- data.tar.gz: 860f7d49ac209c5647568de6328af694c7aa5ac0637317365cf45c1908d16ca33549fe8dec014fa297e27ee7823a41e417a3dc6da4e5caa1a7d5bd1c5257698f
6
+ metadata.gz: 1bee2722bd96b7a6ac1a1b948c54c174a5d79c1f33a1522e3d57b3c3ef524f8df88fd71a520c0c3b6acbbed192795b8d5aefc2f28e45f63d0d20aa91171a4c54
7
+ data.tar.gz: d551b0f608ac580ac04184aecc66d672405158f5cd7df46e8b8ae9ef2fa00ed1f60bb45ec6e750586a92de561f95ac04e69f50a7f1046595bb535dfa42a409b1
@@ -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], :condition => condition.is_a?(String) ? condition : nil)) if __weel_sim
457
+ hw, pos = __weel_sim_start(:alternative,args.merge(:mode => Thread.current[:alternative_mode].last, :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,13 +465,13 @@ 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], :condition => condition.is_a?(String) ? condition : nil)) if __weel_sim
468
+ __weel_sim_stop(:alternative,hw,pos,args.merge(:mode => Thread.current[:alternative_mode].last, :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]
472
- hw, pos = __weel_sim_start(:otherwise,args.merge(:mode => Thread.current[:alternative_mode])) if __weel_sim
472
+ hw, pos = __weel_sim_start(:otherwise,args.merge(:mode => Thread.current[:alternative_mode].last)) if __weel_sim
473
473
  yield if __weel_is_in_search_mode || __weel_sim || !Thread.current[:alternative_executed].last
474
- __weel_sim_stop(:otherwise,hw,pos,args.merge(:mode => Thread.current[:alternative_mode])) if __weel_sim
474
+ __weel_sim_stop(:otherwise,hw,pos,args.merge(:mode => Thread.current[:alternative_mode].last)) if __weel_sim
475
475
  end # }}}
476
476
 
477
477
  # Defines a critical block (=Mutex)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "weel"
3
- s.version = "1.99.28"
3
+ s.version = "1.99.29"
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.28
4
+ version: 1.99.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler