weel 1.99.99 → 1.99.102

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 +29 -4
  3. data/weel.gemspec +1 -1
  4. metadata +33 -33
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6d41da4a64d101b885ac475da4625fff4bb4098b9430563f3fc950f7804517e
4
- data.tar.gz: b0714d35fa2e112b63b31e19699814607b66545eb60614d834e852d308d1ce7b
3
+ metadata.gz: 9a13fce46d5710759c73bb36ca6899d31e4934d870e8b8106f4475886634a03a
4
+ data.tar.gz: af4a5310b405e55029932cc977fbf45015c02be18aff50668b39a23ebcf567f7
5
5
  SHA512:
6
- metadata.gz: 9d79e7d56585b62912f638066fb4fee0e9a71786c10ea638819ff04189df8d335282d140d7b28734abd92e18eb8078c761e9b9e3b16666166afafcfd0c631acc
7
- data.tar.gz: b3d67a26a4016f7711273025427da307fe989f82319221ee07a1617eefe8f0bd2e04c845acee55d1e3a84619064a31744d53cf2a43344ed09c8568ef57f6a5c3
6
+ metadata.gz: 34768aa9b9ec5c9d72d6e650ed59bdc8a37d5760532cebe63933739b6cff7bc0ff9ca1c3e322f6877821e6af14b2835793881a98c7d383083046e26847d5208b
7
+ data.tar.gz: 81601be8fe0a73df8a34d436d8530a2376bd93553c1df70c1a5a5bfc54e84faf2714063545616a26598cc8d3b7e3e92386cca09619f1241169e9ceed19a848ea
data/lib/weel.rb CHANGED
@@ -59,6 +59,18 @@ class WEEL
59
59
  @additional = additional
60
60
  end
61
61
 
62
+ def to_json(*a)
63
+ {
64
+ 'data' => @__weel_data,
65
+ 'endpoints' => @__weel_endpoints,
66
+ 'additional' => @additional,
67
+ 'status' => {
68
+ 'id' => @__weel_status.id,
69
+ 'message' => @__weel_status.message
70
+ }
71
+ }.to_json(*a)
72
+ end
73
+
62
74
  def method_missing(m,*args,&block)
63
75
  if @additional.include?(m)
64
76
  begin
@@ -95,6 +107,18 @@ class WEEL
95
107
  @additional = additional
96
108
  end
97
109
 
110
+ def to_json(*a)
111
+ {
112
+ 'data' => @__weel_data,
113
+ 'endpoints' => @__weel_endpoints,
114
+ 'additional' => @additional,
115
+ 'status' => {
116
+ 'id' => @__weel_status.id,
117
+ 'message' => @__weel_status.message
118
+ }
119
+ }.to_json(*a)
120
+ end
121
+
98
122
  def method_missing(m,*args,&block)
99
123
  if @additional.include?(m)
100
124
  begin
@@ -197,8 +221,9 @@ class WEEL
197
221
  @message = message
198
222
  end
199
223
  def nudge!
200
- @nudge.clear
201
- @nudge.push(nil)
224
+ 1.upto(@nudge.num_waiting) do
225
+ @nudge.push(nil)
226
+ end
202
227
  end
203
228
  def wait_until_nudged!
204
229
  @nudge.pop
@@ -604,7 +629,7 @@ class WEEL
604
629
  catch :escape do
605
630
  case condition[1]
606
631
  when :pre_test
607
- while __weel_eval_condition(condition[0]) && self.__weel_state != :stopping && self.__weel_state != :stopped && self.__weel_state != :finishing
632
+ while __weel_eval_condition(condition[0]) && self.__weel_state != :stopping && self.__weel_state != :stopped && self.__weel_state != :finishing && !Thread.current[:nolongernecessary]
608
633
  loop_guard += 1
609
634
  __weel_protect_yield(&block)
610
635
  sleep 1 if @__weel_connectionwrapper::loop_guard(@__weel_connectionwrapper_args,loop_id,loop_guard)
@@ -614,7 +639,7 @@ class WEEL
614
639
  loop_guard += 1
615
640
  __weel_protect_yield(&block)
616
641
  sleep 1 if @__weel_connectionwrapper::loop_guard(@__weel_connectionwrapper_args,loop_id,loop_guard)
617
- end while __weel_eval_condition(condition[0]) && self.__weel_state != :stopping && self.__weel_state != :stopped && self.__weel_state != :finishing
642
+ end while __weel_eval_condition(condition[0]) && self.__weel_state != :stopping && self.__weel_state != :stopped && self.__weel_state != :finishing && !Thread.current[:nolongernecessary]
618
643
  end
619
644
  end
620
645
  end # }}}
data/weel.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "weel"
3
- s.version = "1.99.99"
3
+ s.version = "1.99.102"
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.99
4
+ version: 1.99.102
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: 2021-05-19 00:00:00.000000000 Z
12
+ date: 2022-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit
@@ -101,46 +101,46 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubygems_version: 3.1.4
104
+ rubygems_version: 3.3.7
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Workflow Execution Engine Library (WEEL)
108
108
  test_files:
109
- - test/test
110
109
  - test/ContinueTest.rb
111
- - test/TestWorkflow.rb
112
- - test/TestMixin.rb
113
- - test/TestConnectionWrapper.rb
114
- - test/SimConnectionWrapper.rb
115
110
  - test/README
116
- - test/wfp_iteration/tc_structuredloop.rb
117
- - test/wfp_adv_branching/tc_structured_partial_join.rb
118
- - test/wfp_adv_branching/tc_threadmerge.rb
119
- - test/wfp_adv_branching/tc_threadsplit.rb
120
- - test/wfp_adv_branching/tc_multichoice_structuredsynchronizingmerge.rb
121
- - test/wfp_adv_branching/tc_localsynchronizingmerge.rb
111
+ - test/SimConnectionWrapper.rb
112
+ - test/TestConnectionWrapper.rb
113
+ - test/TestMixin.rb
114
+ - test/TestWorkflow.rb
115
+ - test/test
116
+ - test/basic/tc_choose.rb
117
+ - test/basic/tc_codereplace.rb
118
+ - test/basic/tc_data.rb
119
+ - test/basic/tc_endpoint.rb
120
+ - test/basic/tc_handler.rb
121
+ - test/basic/tc_parallel.rb
122
+ - test/basic/tc_search.rb
123
+ - test/basic/tc_state.rb
124
+ - test/basic/tc_wf_control.rb
125
+ - test/complex/tc_generalsynchonizingmerge_loopsearch.rb
126
+ - test/complex/tc_parallel_stop.rb
127
+ - test/complexsearch/tc_search.rb
128
+ - test/exec/tc_again.rb
129
+ - test/exec/tc_exec.rb
130
+ - test/speed/tc_speed1.rb
131
+ - test/speed/tc_speed2.rb
122
132
  - test/wfp_adv_branching/tc_generalizedjoin.rb
123
133
  - test/wfp_adv_branching/tc_generalsynchronizingmerge.rb
134
+ - test/wfp_adv_branching/tc_localsynchronizingmerge.rb
135
+ - test/wfp_adv_branching/tc_multichoice_structuredsynchronizingmerge.rb
124
136
  - test/wfp_adv_branching/tc_multimerge.rb
125
137
  - test/wfp_adv_branching/tc_structured_discriminator.rb
126
- - test/wfp_state_based/tc_deferredchoice.rb
127
- - test/wfp_state_based/tc_interleavedparallelrouting.rb
128
- - test/speed/tc_speed1.rb
129
- - test/speed/tc_speed2.rb
130
- - test/exec/tc_again.rb
131
- - test/exec/tc_exec.rb
132
- - test/wfp_basic/tc_parallelsplit_synchronization.rb
138
+ - test/wfp_adv_branching/tc_structured_partial_join.rb
139
+ - test/wfp_adv_branching/tc_threadmerge.rb
140
+ - test/wfp_adv_branching/tc_threadsplit.rb
133
141
  - test/wfp_basic/tc_exclusivechoice_simplemerge.rb
142
+ - test/wfp_basic/tc_parallelsplit_synchronization.rb
134
143
  - test/wfp_basic/tc_sequence.rb
135
- - test/complex/tc_generalsynchonizingmerge_loopsearch.rb
136
- - test/complex/tc_parallel_stop.rb
137
- - test/basic/tc_state.rb
138
- - test/basic/tc_endpoint.rb
139
- - test/basic/tc_data.rb
140
- - test/basic/tc_choose.rb
141
- - test/basic/tc_search.rb
142
- - test/basic/tc_handler.rb
143
- - test/basic/tc_codereplace.rb
144
- - test/basic/tc_wf_control.rb
145
- - test/basic/tc_parallel.rb
146
- - test/complexsearch/tc_search.rb
144
+ - test/wfp_iteration/tc_structuredloop.rb
145
+ - test/wfp_state_based/tc_deferredchoice.rb
146
+ - test/wfp_state_based/tc_interleavedparallelrouting.rb