weel 1.99.33 → 1.99.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/weel.rb +15 -5
- data/weel.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d1ac711f267672dee05871db0dbf779d521c6cb
|
4
|
+
data.tar.gz: 2a8e5d21db11d5fd91191b8e0f89e74284fc28a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc6df903386deb87c06977edf0775251cddeed08ac2f9b64b116a8ba89c3b9ce186de09656e2438977fdef4e5eb6c7cb6a68d3524f6706a67e07974d59bd368e
|
7
|
+
data.tar.gz: 433be48661ce042dd75ae53d525bc89fdc0c0d79d9984f04773fcc9f38fc44d539ee3f9fdbaa6835697fee5cef98cc06734463f924ad632c2e7cf7fa1bf1e1bc
|
data/lib/weel.rb
CHANGED
@@ -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
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
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 # }}}
|
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.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-
|
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
|