weel 1.99.106 → 1.99.109
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 +10 -5
- data/weel.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e376343e3c78f99b2493270370374a4302f89dea8d0a6f2b8458fb72b6ebf688
|
4
|
+
data.tar.gz: 5db57f52c74226550c86bf7e1c4dc83d891cf52b139b623a202216457c3d310a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0a3bef1073e2b3e253092f1cb46c48cf2153dcf7eaaade3b95c5bb23654ef3cb9d99f402b8eecaf485f5376fc6df0ddddae03f0ec0cf8cef493480c1d4a0afa
|
7
|
+
data.tar.gz: 5f1dc555fd6755c6736b500c67630653d7bd6e541a0c17a67471c094dd4c5c78be3a537dd639e4fb798153ad68079bc089a2acb9ada65db82a98a101fa4c030d
|
data/lib/weel.rb
CHANGED
@@ -333,6 +333,7 @@ class WEEL
|
|
333
333
|
|
334
334
|
def activity_stop; end
|
335
335
|
def activity_passthrough_value; end
|
336
|
+
def activity_uuid; '42424242-cpee-cpee-cpee-424242424242'; end
|
336
337
|
|
337
338
|
def activity_no_longer_necessary; end
|
338
339
|
|
@@ -360,14 +361,15 @@ class WEEL
|
|
360
361
|
|
361
362
|
class Position # {{{
|
362
363
|
attr_reader :position
|
363
|
-
attr_accessor :detail, :passthrough
|
364
|
+
attr_accessor :detail, :passthrough, :uuid
|
364
365
|
def initialize(position, detail=:at, passthrough=nil) # :at or :after or :unmark
|
365
366
|
@position = position
|
366
367
|
@detail = detail
|
367
368
|
@passthrough = passthrough
|
369
|
+
@uuid = 0
|
368
370
|
end
|
369
371
|
def as_json(*)
|
370
|
-
jsn = { 'position' => @position }
|
372
|
+
jsn = { 'position' => @position, 'uuid' => @uuid }
|
371
373
|
jsn['passthrough'] = @passthrough if @passthrough
|
372
374
|
jsn
|
373
375
|
end
|
@@ -736,7 +738,7 @@ class WEEL
|
|
736
738
|
Thread.current[:branch_parent][:branch_traces][Thread.current[:branch_traces_id]] << position
|
737
739
|
end
|
738
740
|
|
739
|
-
__weel_progress position, true
|
741
|
+
__weel_progress position, 0, true
|
740
742
|
self.__weel_state = :stopping
|
741
743
|
end #}}}
|
742
744
|
|
@@ -781,7 +783,7 @@ class WEEL
|
|
781
783
|
end
|
782
784
|
end #}}}
|
783
785
|
|
784
|
-
def __weel_progress(position, skip=false) #{{{
|
786
|
+
def __weel_progress(position, uuid, skip=false) #{{{
|
785
787
|
ipc = {}
|
786
788
|
branch = Thread.current
|
787
789
|
if Thread.current[:branch_parent] && Thread.current[:branch_parent][:branch_position]
|
@@ -801,6 +803,7 @@ class WEEL
|
|
801
803
|
else
|
802
804
|
WEEL::Position.new(position, skip ? :after : :at)
|
803
805
|
end
|
806
|
+
wp.uuid = uuid
|
804
807
|
ipc[skip ? :after : :at] = [wp]
|
805
808
|
|
806
809
|
@__weel_search_positions.delete(position)
|
@@ -839,7 +842,7 @@ class WEEL
|
|
839
842
|
Thread.current[:branch_parent][:branch_traces][Thread.current[:branch_traces_id]] << position
|
840
843
|
end
|
841
844
|
|
842
|
-
wp = __weel_progress position
|
845
|
+
wp = __weel_progress position, connectionwrapper.activity_uuid
|
843
846
|
|
844
847
|
# searchmode position is after, jump directly to vote_sync_after
|
845
848
|
raise Signal::Proceed if searchmode == :after
|
@@ -912,6 +915,8 @@ class WEEL
|
|
912
915
|
update
|
913
916
|
elsif waitingresult == WEEL::Signal::Salvage
|
914
917
|
salvage || raise('HTTP Error. The service return status was not between 200 and 300.')
|
918
|
+
elsif waitingresult == WEEL::Signal::Stop
|
919
|
+
self.__weel_state = :stopping
|
915
920
|
else
|
916
921
|
finalize
|
917
922
|
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.109
|
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: 2023-
|
12
|
+
date: 2023-06-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: test-unit
|