weel 1.99.101 → 1.99.103
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 +28 -4
- data/test/TestConnectionWrapper.rb +0 -7
- data/weel.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7bc4118f9af75b1f635758821fc31af172b7f02151bc0a05902999123885754d
|
|
4
|
+
data.tar.gz: '09c0d3b3de4f1810ed59e4debc90a8f734fa3cdf634bd623eb79a75191ece2bf'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b0d10b86028537026755946a1dc5969ed5b9fb93b10a5a914f09f7cf3d2343f52d5f0875dc2caffa757eb62cdce0414511b0f90514ae6854b9a812583ebfa1d
|
|
7
|
+
data.tar.gz: a3754737a7bab106885e47cfe7968ee0ed2fbc8db637f08aad6ed35dba102cb71d171618da98e1cb99c35ab23adb430f2425aa7f99a0f74b83db4d677b6fe019
|
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
|
|
@@ -280,7 +304,7 @@ class WEEL
|
|
|
280
304
|
def mem_guard; end
|
|
281
305
|
|
|
282
306
|
def test_condition(mr,code); mr.instance_eval(code); end
|
|
283
|
-
def manipulate(mr,code,result=nil,options=nil); mr.instance_eval(code); end
|
|
307
|
+
def manipulate(mr,code,where,result=nil,options=nil); mr.instance_eval(code,where,1); end
|
|
284
308
|
end # }}}
|
|
285
309
|
|
|
286
310
|
class Position # {{{
|
|
@@ -759,7 +783,7 @@ class WEEL
|
|
|
759
783
|
mr.instance_eval(&finalize)
|
|
760
784
|
elsif finalize.is_a?(String)
|
|
761
785
|
mr = ManipulateStructure.new(@__weel_data,@__weel_endpoints,@__weel_status,connectionwrapper.additional)
|
|
762
|
-
connectionwrapper.manipulate(mr,finalize)
|
|
786
|
+
connectionwrapper.manipulate(mr,finalize,'Activity ' + position.to_s)
|
|
763
787
|
end
|
|
764
788
|
connectionwrapper.inform_manipulate_change(
|
|
765
789
|
((mr && mr.changed_status) ? @__weel_status : nil),
|
|
@@ -781,7 +805,7 @@ class WEEL
|
|
|
781
805
|
if prepare.is_a?(Proc)
|
|
782
806
|
rs.instance_exec(&prepare)
|
|
783
807
|
elsif prepare.is_a?(String)
|
|
784
|
-
rs.
|
|
808
|
+
connectionwrapper.manipulate(rs,prepare,'Activity ' + position.to_s)
|
|
785
809
|
end
|
|
786
810
|
end
|
|
787
811
|
params = connectionwrapper.prepare(rs,endpoint,parameters,@__weel_replay)
|
|
@@ -833,7 +857,7 @@ class WEEL
|
|
|
833
857
|
elsif code.is_a?(String)
|
|
834
858
|
mr = ManipulateStructure.new(@__weel_data,@__weel_endpoints,@__weel_status,connectionwrapper.additional)
|
|
835
859
|
ma = catch Signal::Again do
|
|
836
|
-
connectionwrapper.manipulate(mr,code,connectionwrapper.activity_result_value,connectionwrapper.activity_result_options)
|
|
860
|
+
connectionwrapper.manipulate(mr,code,'Activity ' + position.to_s,connectionwrapper.activity_result_value,connectionwrapper.activity_result_options)
|
|
837
861
|
'yes' # ma sadly will have nil when i just throw
|
|
838
862
|
end
|
|
839
863
|
end
|
|
@@ -106,11 +106,4 @@ class TestConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
|
106
106
|
$short_track << "F#{@__myhandler_position}"
|
|
107
107
|
raise(err)
|
|
108
108
|
end #}}}
|
|
109
|
-
|
|
110
|
-
def manipulate(mr,code,result=nil,status=nil)
|
|
111
|
-
mr.instance_eval(code)
|
|
112
|
-
end
|
|
113
|
-
def test_condition(mr,code)
|
|
114
|
-
mr.instance_eval(code)
|
|
115
|
-
end
|
|
116
109
|
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.103
|
|
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: 2022-
|
|
12
|
+
date: 2022-11-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: test-unit
|
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
102
|
version: '0'
|
|
103
103
|
requirements: []
|
|
104
|
-
rubygems_version: 3.
|
|
104
|
+
rubygems_version: 3.3.7
|
|
105
105
|
signing_key:
|
|
106
106
|
specification_version: 4
|
|
107
107
|
summary: Workflow Execution Engine Library (WEEL)
|