weel 1.99.151 → 1.99.153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/weel.rb +16 -14
- data/weel.gemspec +3 -1
- metadata +29 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 98ff5ec5f2c89a41f30f5087cf4f9fb9c58f12569e84d586a3095e29b8390740
|
|
4
|
+
data.tar.gz: 30686408ed8c016612b825221dff7836331deec7bfad36f32d34ece39d200d4c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53734eb99a548c08525a41bfc717bc4ab495efcc23bbb8ce8774e82be40e19c83ff4053dda16e76a304c9d96600f57b333771465f3a4817ae5a9a587bd511183
|
|
7
|
+
data.tar.gz: 4ffa05575fda41d1fbd7218b1379f07deaee1cdb701034b25c613c1818bbf8fcd85db4d66e2fe0103212fb29e6216f99ed6e530a71f34b452364695ce5f9cda6
|
data/lib/weel.rb
CHANGED
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
require 'thread'
|
|
18
18
|
require 'securerandom'
|
|
19
|
+
require 'active_support/core_ext/object/deep_dup'
|
|
20
|
+
require 'msgpack'
|
|
19
21
|
|
|
20
22
|
class WEEL
|
|
21
23
|
def initialize(*args)# {{{
|
|
@@ -50,7 +52,7 @@ class WEEL
|
|
|
50
52
|
v.root.to_doc
|
|
51
53
|
else
|
|
52
54
|
begin
|
|
53
|
-
|
|
55
|
+
v.deep_dup
|
|
54
56
|
rescue
|
|
55
57
|
v.to_s rescue nil
|
|
56
58
|
end
|
|
@@ -72,7 +74,7 @@ class WEEL
|
|
|
72
74
|
def method_missing(m,*args,&block)
|
|
73
75
|
if @additional.include?(m)
|
|
74
76
|
begin
|
|
75
|
-
tmp =
|
|
77
|
+
tmp = @additional[m].deep_dup
|
|
76
78
|
if tmp.is_a? Hash
|
|
77
79
|
ReadHash.new(tmp)
|
|
78
80
|
else
|
|
@@ -105,9 +107,9 @@ class WEEL
|
|
|
105
107
|
class ManipulateStructure # {{{
|
|
106
108
|
def initialize(data,endpoints,status,local,additional)
|
|
107
109
|
@__weel_data = data
|
|
108
|
-
@__weel_data_orig = @__weel_data.transform_values{|val|
|
|
110
|
+
@__weel_data_orig = @__weel_data.transform_values{|val| MessagePack.pack(val) rescue nil }
|
|
109
111
|
@__weel_endpoints = endpoints
|
|
110
|
-
@__weel_endpoints_orig = @__weel_endpoints.transform_values{|val|
|
|
112
|
+
@__weel_endpoints_orig = @__weel_endpoints.transform_values{|val| MessagePack.pack(val) }
|
|
111
113
|
@__weel_status = status
|
|
112
114
|
@__weel_local = local
|
|
113
115
|
@changed_status = "#{status.id}-#{status.message}"
|
|
@@ -133,7 +135,7 @@ class WEEL
|
|
|
133
135
|
def method_missing(m,*args,&block)
|
|
134
136
|
if @additional.include?(m)
|
|
135
137
|
begin
|
|
136
|
-
tmp =
|
|
138
|
+
tmp = @additional[m].deep_dup
|
|
137
139
|
if tmp.is_a? Hash
|
|
138
140
|
ReadHash.new(tmp)
|
|
139
141
|
else
|
|
@@ -159,7 +161,7 @@ class WEEL
|
|
|
159
161
|
|
|
160
162
|
def changed_data
|
|
161
163
|
@touched_data.each do |e|
|
|
162
|
-
td =
|
|
164
|
+
td = MessagePack.pack(@__weel_data[e]) rescue nil
|
|
163
165
|
if td != @__weel_data_orig[e]
|
|
164
166
|
@changed_data << e
|
|
165
167
|
end
|
|
@@ -171,11 +173,11 @@ class WEEL
|
|
|
171
173
|
end
|
|
172
174
|
|
|
173
175
|
def original_data
|
|
174
|
-
@__weel_data_orig.transform_values{|val|
|
|
176
|
+
@__weel_data_orig.transform_values{|val| MessagePack.unpack(val) rescue nil }
|
|
175
177
|
end
|
|
176
178
|
|
|
177
179
|
def original_endpoints
|
|
178
|
-
@__weel_endpoints_orig.transform_values{|val|
|
|
180
|
+
@__weel_endpoints_orig.transform_values{|val| MessagePack.unpack(val) rescue nil }
|
|
179
181
|
end
|
|
180
182
|
|
|
181
183
|
def changed_status
|
|
@@ -306,7 +308,7 @@ class WEEL
|
|
|
306
308
|
v.root.to_doc
|
|
307
309
|
else
|
|
308
310
|
begin
|
|
309
|
-
|
|
311
|
+
v.deep_dup
|
|
310
312
|
rescue
|
|
311
313
|
v.to_s rescue nil
|
|
312
314
|
end
|
|
@@ -345,7 +347,7 @@ class WEEL
|
|
|
345
347
|
|
|
346
348
|
class ConnectionWrapperBase # {{{
|
|
347
349
|
def self::loop_guard(arguments,lid,count); false; end
|
|
348
|
-
def self::inform_state_change(arguments,newstate); end
|
|
350
|
+
def self::inform_state_change(arguments,newstate,data); end
|
|
349
351
|
def self::inform_syntax_error(arguments,err,code); end
|
|
350
352
|
def self::inform_connectionwrapper_error(arguments,err); end
|
|
351
353
|
def self::inform_position_change(arguments,ipc={}); end
|
|
@@ -579,7 +581,7 @@ class WEEL
|
|
|
579
581
|
Thread.current[:branch_search] = @__weel_search_positions.any?
|
|
580
582
|
Thread.current[:branch_parent] = branch_parent
|
|
581
583
|
Thread.current[:start_event] = Continue.new
|
|
582
|
-
Thread.current[:local] =
|
|
584
|
+
Thread.current[:local] = local.deep_dup
|
|
583
585
|
Thread.current[:branch_wait_count_cancel_active] = false
|
|
584
586
|
branch_parent[:mutex].synchronize do
|
|
585
587
|
Thread.current[:branch_traces_id] = branch_parent[:branch_traces_ids]
|
|
@@ -1121,7 +1123,7 @@ class WEEL
|
|
|
1121
1123
|
def __weel_finalize #{{{
|
|
1122
1124
|
__weel_recursive_join(@__weel_main)
|
|
1123
1125
|
@__weel_state = :stopped
|
|
1124
|
-
@__weel_connectionwrapper::inform_state_change @__weel_connectionwrapper_args, @__weel_state
|
|
1126
|
+
@__weel_connectionwrapper::inform_state_change @__weel_connectionwrapper_args, @__weel_state, @__weel_data
|
|
1125
1127
|
end #}}}
|
|
1126
1128
|
|
|
1127
1129
|
def __weel_state=(newState)# {{{
|
|
@@ -1130,7 +1132,7 @@ class WEEL
|
|
|
1130
1132
|
@__weel_positions = Array.new if newState == :running
|
|
1131
1133
|
@__weel_state = newState
|
|
1132
1134
|
|
|
1133
|
-
@__weel_connectionwrapper::inform_state_change @__weel_connectionwrapper_args, @__weel_state
|
|
1135
|
+
@__weel_connectionwrapper::inform_state_change @__weel_connectionwrapper_args, @__weel_state, @__weel_data
|
|
1134
1136
|
|
|
1135
1137
|
if newState == :stopping || newState == :finishing
|
|
1136
1138
|
__weel_recursive_continue(@__weel_main)
|
|
@@ -1174,7 +1176,7 @@ public
|
|
|
1174
1176
|
@dslr.__weel_state
|
|
1175
1177
|
end # }}}
|
|
1176
1178
|
def state_signal # {{{
|
|
1177
|
-
connectionwrapper::inform_state_change connectionwrapper_args, state
|
|
1179
|
+
connectionwrapper::inform_state_change connectionwrapper_args, state, data
|
|
1178
1180
|
state
|
|
1179
1181
|
end # }}}
|
|
1180
1182
|
def abandon # {{{
|
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.
|
|
3
|
+
s.version = "1.99.153"
|
|
4
4
|
s.platform = Gem::Platform::RUBY
|
|
5
5
|
s.license = "LGPL-3.0-or-later"
|
|
6
6
|
s.summary = "Workflow Execution Engine Library (WEEL)"
|
|
@@ -19,4 +19,6 @@ Gem::Specification.new do |s|
|
|
|
19
19
|
s.homepage = 'http://cpee.org/'
|
|
20
20
|
|
|
21
21
|
s.add_runtime_dependency 'test-unit', '~> 3.0'
|
|
22
|
+
s.add_runtime_dependency 'msgpack', '~> 1'
|
|
23
|
+
s.add_runtime_dependency 'activesupport', '~> 8'
|
|
22
24
|
end
|
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.153
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juergen eTM Mangler
|
|
@@ -24,6 +24,34 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '3.0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: msgpack
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '1'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '1'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: activesupport
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '8'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '8'
|
|
27
55
|
description: see http://cpee.org
|
|
28
56
|
email: juergen.mangler@gmail.com
|
|
29
57
|
executables: []
|