weel 1.99.33 → 1.99.34

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 +15 -5
  3. data/weel.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18e8f1b805e2979d26400d4ba916679b7d9cbbea
4
- data.tar.gz: 61c7cfdd34f1c011b6da55512229046d3edab825
3
+ metadata.gz: 1d1ac711f267672dee05871db0dbf779d521c6cb
4
+ data.tar.gz: 2a8e5d21db11d5fd91191b8e0f89e74284fc28a5
5
5
  SHA512:
6
- metadata.gz: a44f9974cc4fd16f903be6c10f801cfc9ed36e7fa2f6f74399ae1ee89576fc949cc6b5d75a2ded7231887dd381b6cd39b4e219e19550021d07b60816e14e9c80
7
- data.tar.gz: 8e7276b1c3a1306288142143cf8583888b71ea5cfd58cf5bf44d1c7f7801de8197d159e57336aceeef70d826063bdc4edfc263593964f5fe17f38adb30c8ef19
6
+ metadata.gz: fc6df903386deb87c06977edf0775251cddeed08ac2f9b64b116a8ba89c3b9ce186de09656e2438977fdef4e5eb6c7cb6a68d3524f6706a67e07974d59bd368e
7
+ data.tar.gz: 433be48661ce042dd75ae53d525bc89fdc0c0d79d9984f04773fcc9f38fc44d539ee3f9fdbaa6835697fee5cef98cc06734463f924ad632c2e7cf7fa1bf1e1bc
@@ -474,6 +474,8 @@ class WEEL
474
474
  __weel_sim_stop(:alternative,hw,pos,args.merge(:mode => Thread.current[:alternative_mode].last, :condition => condition.is_a?(String) ? condition : nil)) if __weel_sim
475
475
  end # }}}
476
476
  def otherwise(args={}) # {{{
477
+ p 'rrrr'
478
+ sleep 1
477
479
  return if self.__weel_state == :stopping || self.__weel_state == :stopped || Thread.current[:nolongernecessary]
478
480
  hw, pos = __weel_sim_start(:otherwise,args.merge(:mode => Thread.current[:alternative_mode].last)) if __weel_sim
479
481
  yield if __weel_is_in_search_mode || __weel_sim || !Thread.current[:alternative_executed].last
@@ -512,11 +514,17 @@ class WEEL
512
514
  return
513
515
  end
514
516
  handlerwrapper = @__weel_handlerwrapper.new @__weel_handlerwrapper_args unless condition[0].is_a?(Proc)
515
- case condition[1]
516
- when :pre_test
517
- yield while (condition[0].is_a?(Proc) ? condition[0].call : handlerwrapper.test_condition(ReadStructure.new(@__weel_data,@__weel_endpoints),condition[0])) && self.__weel_state != :stopping && self.__weel_state != :stopped
518
- when :post_test
519
- begin; yield; end while (condition[0].is_a?(Proc) ? condition[0].call : handlerwrapper.test_condition(ReadStructure.new(@__weel_data,@__weel_endpoints),condition[0])) && self.__weel_state != :stopping && self.__weel_state != :stopped
517
+ catch :escape do
518
+ case condition[1]
519
+ when :pre_test
520
+ while (condition[0].is_a?(Proc) ? condition[0].call : handlerwrapper.test_condition(ReadStructure.new(@__weel_data,@__weel_endpoints),condition[0])) && self.__weel_state != :stopping && self.__weel_state != :stopped
521
+ yield
522
+ end
523
+ when :post_test
524
+ begin
525
+ yield
526
+ end while (condition[0].is_a?(Proc) ? condition[0].call : handlerwrapper.test_condition(ReadStructure.new(@__weel_data,@__weel_endpoints),condition[0])) && self.__weel_state != :stopping && self.__weel_state != :stopped
527
+ end
520
528
  end
521
529
  end # }}}
522
530
 
@@ -527,6 +535,8 @@ class WEEL
527
535
  [code || blk, :post_test]
528
536
  end # }}}
529
537
 
538
+ def escape; throw :escape; end
539
+
530
540
  def status # {{{
531
541
  @__weel_status
532
542
  end # }}}
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "weel"
3
- s.version = "1.99.33"
3
+ s.version = "1.99.34"
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.33
4
+ version: 1.99.34
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: 2014-09-09 00:00:00.000000000 Z
12
+ date: 2014-09-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: see http://cpee.org
15
15
  email: juergen.mangler@gmail.com