weel 1.99.85 → 1.99.88

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 +21 -19
  3. data/weel.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa7f206a93ca278638856f8ab6b78fda00f60d3f4ef7edd4de39f3cbd815033f
4
- data.tar.gz: 3d4aca5885e568a369da106911af21203f452168d94df137f5c7c28756314cae
3
+ metadata.gz: 26837244dc867c672c8999f93f835092edbe37c02a61d1aad43b0e9b4e9566bf
4
+ data.tar.gz: b929d66dc9050ad20a130412d219de79715e27b9bed2e2df9c0b67cbe4621471
5
5
  SHA512:
6
- metadata.gz: fdef4e6efd51ca5e02802ccf7ec18a2d6e0c1170235c2ed4daf2ef42d04b4890f17cc222b0721abf210a169a7bfb2458ee95ab5f4776c33c896957c93de2c725
7
- data.tar.gz: 94d63a774749ff47717a4d6d18c8f0b79a026f702a3d0640193a3d80d47a08c558603b2e4359ebd200fa084708e1a84da16d594c817b054dd346243d09195807
6
+ metadata.gz: a1e2c147083f56c6b2e1229414e118fe2387ed54cab963ae418c8e8b2142bfb7b70fced4fb1d731bc95e2093848fe79011242171c1cdcb469b3ffbe5880b3550
7
+ data.tar.gz: 59b6025af6e055145637abb28e988693e09c23771cf7f2747fd850dafe635db6c72f512a727320e0ff42fa4ba9218aee2ff30d9e816051a6cbb143b71eab4e01
@@ -288,7 +288,7 @@ class WEEL
288
288
  end
289
289
  def as_json(*)
290
290
  jsn = { 'position' => @position }
291
- jsn['passtrough'] = @passthrough if @passthrough
291
+ jsn['passthrough'] = @passthrough if @passthrough
292
292
  jsn
293
293
  end
294
294
  def to_s
@@ -669,24 +669,26 @@ class WEEL
669
669
 
670
670
  def __weel_progress(searchmode, position, skip=false) #{{{
671
671
  ipc = {}
672
- if searchmode == :after
673
- wp = WEEL::Position.new(position, :after, nil)
674
- ipc[:after] = [wp]
675
- else
676
- if Thread.current[:branch_parent] && Thread.current[:branch_parent][:branch_position]
677
- @__weel_positions.delete Thread.current[:branch_parent][:branch_position]
678
- ipc[:unmark] ||= []
679
- ipc[:unmark] << Thread.current[:branch_parent][:branch_position] rescue nil
680
- Thread.current[:branch_parent][:branch_position] = nil
681
- end
682
- if Thread.current[:branch_position]
683
- @__weel_positions.delete Thread.current[:branch_position]
684
- ipc[:unmark] ||= []
685
- ipc[:unmark] << Thread.current[:branch_position] rescue nil
686
- end
687
- wp = WEEL::Position.new(position, skip ? :after : :at, nil)
688
- ipc[skip ? :after : :at] = [wp]
672
+ if Thread.current[:branch_parent] && Thread.current[:branch_parent][:branch_position]
673
+ @__weel_positions.delete Thread.current[:branch_parent][:branch_position]
674
+ ipc[:unmark] ||= []
675
+ ipc[:unmark] << Thread.current[:branch_parent][:branch_position] rescue nil
676
+ Thread.current[:branch_parent][:branch_position] = nil
677
+ end
678
+ if Thread.current[:branch_position]
679
+ @__weel_positions.delete Thread.current[:branch_position]
680
+ ipc[:unmark] ||= []
681
+ ipc[:unmark] << Thread.current[:branch_position] rescue nil
689
682
  end
683
+ wp = WEEL::Position.new(position, skip ? :after : :at, nil)
684
+ ipc[skip ? :after : :at] = [wp]
685
+
686
+ @__weel_search_positions.each do |k,ele| # some may still be in active search but lets unmark them for good measure
687
+ ipc[:unmark] ||= []
688
+ ipc[:unmark] << ele
689
+ true
690
+ end
691
+
690
692
  @__weel_positions << wp
691
693
  Thread.current[:branch_position] = wp
692
694
 
@@ -910,7 +912,7 @@ class WEEL
910
912
  branch = branch[:branch_parent]
911
913
  branch[:branch_search] = false
912
914
  end
913
- @__weel_search_positions[position].detail == :after ? :after : false
915
+ @__weel_search_positions[position].detail == :after
914
916
  else
915
917
  branch[:branch_search] = true
916
918
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "weel"
3
- s.version = "1.99.85"
3
+ s.version = "1.99.88"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "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.85
4
+ version: 1.99.88
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: 2020-06-19 00:00:00.000000000 Z
12
+ date: 2020-09-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit