weel 1.99.123 → 1.99.124
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 +2 -16
- data/weel.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de93809f2b1350265c3745e9a31be9ea2c7a6fbd2de4b6c282070e4393138684
|
4
|
+
data.tar.gz: 2df4b7700721362353934d54f1a223d4413374b6e6dd54efe5d92ed1fcfac9e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5f1e42552289504e1c9bb97c8068948cb0c8b7c839d830da987a442956fb0ecf8103f6a59426c324c805f14cde8fdf6b3424e57cdbda78b33f20312374f269a
|
7
|
+
data.tar.gz: a6bc3fccb1595040956763c938f179bd894422c196ce06e24fe5d0dea54bb81eb6f25c892a8c56c299ca0005ec958176de0fa95b76abee5526f57e78f42d1b95
|
data/lib/weel.rb
CHANGED
@@ -66,10 +66,6 @@ class WEEL
|
|
66
66
|
'data' => @__weel_data,
|
67
67
|
'endpoints' => @__weel_endpoints,
|
68
68
|
'additional' => @additional,
|
69
|
-
'status' => {
|
70
|
-
'id' => @__weel_status.id,
|
71
|
-
'message' => @__weel_status.message
|
72
|
-
}
|
73
69
|
}.to_json(*a)
|
74
70
|
end
|
75
71
|
|
@@ -94,9 +90,6 @@ class WEEL
|
|
94
90
|
e.each do |k,v|
|
95
91
|
endpoints.send(k+'=',v)
|
96
92
|
end if e
|
97
|
-
if s
|
98
|
-
status.update(s['id'],s['message'])
|
99
|
-
end
|
100
93
|
end
|
101
94
|
def data
|
102
95
|
ReadHash.new(@__weel_data)
|
@@ -297,7 +290,6 @@ class WEEL
|
|
297
290
|
end
|
298
291
|
end
|
299
292
|
end # }}}
|
300
|
-
|
301
293
|
class ReadOnlyHash # {{{
|
302
294
|
def initialize(values)
|
303
295
|
@__weel_values = values.transform_values do |v|
|
@@ -376,7 +368,7 @@ class WEEL
|
|
376
368
|
def callback(result=nil,options={}); end
|
377
369
|
def mem_guard; end
|
378
370
|
|
379
|
-
def prepare(
|
371
|
+
def prepare(lock,dataelements,endpoints,status,local,additional,code,exec_endpoints,exec_parameters); end
|
380
372
|
def test_condition(dataelements,endpoints,local,additional,code,args={}); ReadStructure.new(dataelements,endpoints,local,additional).instance_eval(code); end
|
381
373
|
def manipulate(readonly,lock,dataelements,endpoints,status,local,additional,code,where,result=nil,options=nil)
|
382
374
|
lock.synchronize do
|
@@ -881,13 +873,7 @@ class WEEL
|
|
881
873
|
when :call
|
882
874
|
again = catch Signal::Again do
|
883
875
|
connectionwrapper.mem_guard
|
884
|
-
|
885
|
-
connectionwrapper.manipulate(true,@__weel_lock,@__weel_data,@__weel_endpoints,@__weel_status,Thread.current[:local],connectionwrapper.additional,prepare,'Activity ' + position.to_s)
|
886
|
-
else
|
887
|
-
# just the read structure, no code exec necessary
|
888
|
-
ReadStructure.new(@__weel_data,@__weel_endpoints,Thread.current[:local],connectionwrapper.additional)
|
889
|
-
end
|
890
|
-
params = connectionwrapper.prepare(struct,endpoint,parameters)
|
876
|
+
params = connectionwrapper.prepare(@__weel_lock,@__weel_data,@__weel_endpoints,@__weel_status,Thread.current[:local],connectionwrapper.additional,prepare,endpoint,parameters)
|
891
877
|
|
892
878
|
raise Signal::Stop unless connectionwrapper.vote_sync_before(params)
|
893
879
|
raise Signal::Skip if self.__weel_state == :stopping || self.__weel_state == :finishing
|
data/weel.gemspec
CHANGED