weel 1.99.27 → 1.99.28
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 +2 -2
- data/weel.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e7e5f2dc6a3187e5e82f53292e999f2eeec14b0
|
4
|
+
data.tar.gz: 12f35817d6d22e41fd9288d3bba4f127f7480b41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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