weel 1.99.140 → 1.99.142
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 +12 -4
- 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: 9f8df544db0f6821002c995cc8246367cf9cf39a420e288fa53e9a956c71313b
|
|
4
|
+
data.tar.gz: 78698a14555b87f958859d540b966a04159171f1d5446b9d44cb09bf5256f5bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dccb22c9066cfb8ded25b0ece4128da6d293e7bf8a69ed23a7966c6464a27fce0d1c444e12a3a1b3c288846c0c3c3ae1c4c216e47819f9d92182c5ecb36e2ada
|
|
7
|
+
data.tar.gz: bb5fabb1a32cc394f9b85e147212e5571c6fbc7a52f5888c088c846019831958ec2535ea38b530b62c4e4978445f5e18555483e375ad4bb9ceb2a4dd7ddf9f57
|
data/lib/weel.rb
CHANGED
|
@@ -85,10 +85,10 @@ class WEEL
|
|
|
85
85
|
end
|
|
86
86
|
def update(d,e,s)
|
|
87
87
|
d.each do |k,v|
|
|
88
|
-
data.
|
|
88
|
+
data.__send(k+'=',v)
|
|
89
89
|
end if d
|
|
90
90
|
e.each do |k,v|
|
|
91
|
-
endpoints.
|
|
91
|
+
endpoints.__send(k+'=',v)
|
|
92
92
|
end if e
|
|
93
93
|
end
|
|
94
94
|
def data
|
|
@@ -147,10 +147,10 @@ class WEEL
|
|
|
147
147
|
|
|
148
148
|
def update(d,e,s)
|
|
149
149
|
d.each do |k,v|
|
|
150
|
-
data.
|
|
150
|
+
data.__send(k+'=',v)
|
|
151
151
|
end if d
|
|
152
152
|
e.each do |k,v|
|
|
153
|
-
endpoints.
|
|
153
|
+
endpoints.__send(k+'=',v)
|
|
154
154
|
end if e
|
|
155
155
|
if s
|
|
156
156
|
status.update(s['id'],s['message'])
|
|
@@ -199,6 +199,7 @@ class WEEL
|
|
|
199
199
|
class ManipulateHash # {{{
|
|
200
200
|
attr_reader :__weel_touched, :__weel_changed
|
|
201
201
|
|
|
202
|
+
alias __send send
|
|
202
203
|
instance_methods.each do |meth|
|
|
203
204
|
# skipping undef of methods that "may cause serious problems"
|
|
204
205
|
undef_method(meth) if meth !~ /^(__|object_id)/
|
|
@@ -261,6 +262,12 @@ class WEEL
|
|
|
261
262
|
end #}}}
|
|
262
263
|
|
|
263
264
|
class ReadHash # {{{
|
|
265
|
+
alias __send send
|
|
266
|
+
instance_methods.each do |meth|
|
|
267
|
+
# skipping undef of methods that "may cause serious problems"
|
|
268
|
+
undef_method(meth) if meth !~ /^(__|object_id)/
|
|
269
|
+
end
|
|
270
|
+
|
|
264
271
|
def initialize(values)
|
|
265
272
|
@__weel_values = values
|
|
266
273
|
end
|
|
@@ -287,6 +294,7 @@ class WEEL
|
|
|
287
294
|
end
|
|
288
295
|
end # }}}
|
|
289
296
|
class ReadOnlyHash # {{{
|
|
297
|
+
alias __send send
|
|
290
298
|
instance_methods.each do |meth|
|
|
291
299
|
# skipping undef of methods that "may cause serious problems"
|
|
292
300
|
undef_method(meth) if meth !~ /^(__|object_id)/
|
data/weel.gemspec
CHANGED