weel 1.99.124 → 1.99.125
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 +9 -51
- 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: 6838b35c90188d87942d5f17b1d7c37a833a6918cbd6b3701094b4c7c5197213
|
4
|
+
data.tar.gz: '08e6930846e12ead9eb55fd3de58a6bce02aa6105f92b768a9b24421c1067b4f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3e4470dd2868f1f7a5ab2d2ded5339d42330c1cd2ec239a63c9be589d6c64faf284ddaf3d891abac67669c637702041ee600685e21f3461680a2c9fb3dbe554
|
7
|
+
data.tar.gz: d7ee1c97b9e3169fb1acf19dc1ca84abdd5fc5de35f4ded4f9ccdfbb959c3747a9e6697ca9071c79000a3a6520a8d3df4f9bf1316735469751c59fbc62d9e915
|
data/lib/weel.rb
CHANGED
@@ -290,42 +290,6 @@ class WEEL
|
|
290
290
|
end
|
291
291
|
end
|
292
292
|
end # }}}
|
293
|
-
class ReadOnlyHash # {{{
|
294
|
-
def initialize(values)
|
295
|
-
@__weel_values = values.transform_values do |v|
|
296
|
-
if Object.const_defined?(:XML) && XML.const_defined?(:Smart) && v.is_a?(XML::Smart::Dom)
|
297
|
-
v.root.to_doc
|
298
|
-
else
|
299
|
-
begin
|
300
|
-
Marshal.load(Marshal.dump(v))
|
301
|
-
rescue
|
302
|
-
v.to_s rescue nil
|
303
|
-
end
|
304
|
-
end
|
305
|
-
end
|
306
|
-
end
|
307
|
-
|
308
|
-
def to_json(*args)
|
309
|
-
@__weel_values.to_json(*args)
|
310
|
-
end
|
311
|
-
|
312
|
-
def method_missing(name,*args)
|
313
|
-
if args.empty? && @__weel_values.key?(name)
|
314
|
-
@__weel_values[name]
|
315
|
-
elsif args.empty? && @__weel_values.key?(name.to_s)
|
316
|
-
@__weel_values[name.to_s]
|
317
|
-
elsif name.to_s[-1..-1] == "=" && args.length == 1
|
318
|
-
temp = name.to_s[0..-2]
|
319
|
-
@__weel_values[temp.to_sym] = args[0]
|
320
|
-
elsif name.to_s == "[]=" && args.length == 2
|
321
|
-
@__weel_values[args[0]] = args[1]
|
322
|
-
elsif name.to_s == "[]" && args.length == 1
|
323
|
-
@__weel_values[args[0]]
|
324
|
-
else
|
325
|
-
nil
|
326
|
-
end
|
327
|
-
end
|
328
|
-
end # }}}
|
329
293
|
|
330
294
|
class ProcString #{{{
|
331
295
|
attr_reader :code
|
@@ -754,16 +718,6 @@ class WEEL
|
|
754
718
|
self.__weel_state = :stopping
|
755
719
|
end #}}}
|
756
720
|
|
757
|
-
def status # {{{
|
758
|
-
@__weel_status
|
759
|
-
end # }}}
|
760
|
-
def data # {{{
|
761
|
-
ReadOnlyHash.new(@__weel_data)
|
762
|
-
end # }}}
|
763
|
-
def endpoints # {{{
|
764
|
-
ReadHash.new(@__weel_endpoints)
|
765
|
-
end # }}}
|
766
|
-
|
767
721
|
private
|
768
722
|
def __weel_protect_yield(*local) #{{{
|
769
723
|
begin
|
@@ -772,6 +726,10 @@ class WEEL
|
|
772
726
|
self.__weel_state = :stopping
|
773
727
|
@__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,Exception.new("protect_yield: `#{err.name}` is not a thing that can be used. Maybe it is meant to be a string and you forgot quotes?"),nil)
|
774
728
|
nil
|
729
|
+
rescue WEEL::Signal::Error => err
|
730
|
+
self.__weel_state = :stopping
|
731
|
+
@__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,err,nil)
|
732
|
+
nil
|
775
733
|
rescue => err
|
776
734
|
self.__weel_state = :stopping
|
777
735
|
@__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,Exception.new(err.message),nil)
|
@@ -904,12 +862,12 @@ class WEEL
|
|
904
862
|
|
905
863
|
next if waitingresult == WEEL::Signal::UpdateAgain && connectionwrapper.activity_result_value&.length == 0
|
906
864
|
|
907
|
-
code = if waitingresult == WEEL::Signal::UpdateAgain
|
908
|
-
update
|
865
|
+
code, cmess = if waitingresult == WEEL::Signal::UpdateAgain
|
866
|
+
[update, 'update']
|
909
867
|
elsif waitingresult == WEEL::Signal::Salvage
|
910
|
-
salvage || raise('HTTP Error. The service return status was not between 200 and 300.')
|
868
|
+
[salvage, 'salvage'] || raise('HTTP Error. The service return status was not between 200 and 300.')
|
911
869
|
else
|
912
|
-
finalize
|
870
|
+
[finalize, 'finalize']
|
913
871
|
end
|
914
872
|
if code.is_a?(String)
|
915
873
|
connectionwrapper.inform_activity_manipulate
|
@@ -917,7 +875,7 @@ class WEEL
|
|
917
875
|
|
918
876
|
# when you throw without parameters, ma contains nil, so we return Signal::Proceed to give ma a meaningful value in other cases
|
919
877
|
ma = catch Signal::Again do
|
920
|
-
struct = connectionwrapper.manipulate(false,@__weel_lock,@__weel_data,@__weel_endpoints,@__weel_status,Thread.current[:local],connectionwrapper.additional,code,'Activity ' + position.to_s,connectionwrapper.activity_result_value,connectionwrapper.activity_result_options)
|
878
|
+
struct = connectionwrapper.manipulate(false,@__weel_lock,@__weel_data,@__weel_endpoints,@__weel_status,Thread.current[:local],connectionwrapper.additional,code,'Activity ' + position.to_s + ' ' + cmess,connectionwrapper.activity_result_value,connectionwrapper.activity_result_options)
|
921
879
|
Signal::Proceed
|
922
880
|
end
|
923
881
|
connectionwrapper.inform_manipulate_change(
|
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.125
|
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: 2024-09-
|
12
|
+
date: 2024-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: test-unit
|