File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
ruby/hyper-operation/spec/hyper-operation Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -311,11 +311,13 @@ class Operation < Hyperstack::ServerOp
311
311
step { params . message = 'hello' }
312
312
step { params . counter + 1 }
313
313
def self . serialize_params ( hash )
314
- hash [ 'counter' ] += 1
314
+ # hash['counter'] += 1 # bug in unparser https://github.com/mbj/unparser/issues/117
315
+ hash [ 'counter' ] = hash [ 'counter' ] + 1
315
316
hash
316
317
end
317
318
def self . deserialize_params ( hash )
318
- hash [ 'counter' ] += 1
319
+ # hash['counter'] += 1 # bug in unparser https://github.com/mbj/unparser/issues/117
320
+ hash [ 'counter' ] = hash [ 'counter' ] + 1
319
321
hash
320
322
end
321
323
def self . serialize_response ( response )
@@ -325,11 +327,13 @@ def self.deserialize_response(response)
325
327
response + 1
326
328
end
327
329
def self . serialize_dispatch ( hash )
328
- hash [ :message ] += ' serialized'
330
+ # hash[:message] += ' serialized' # bug in unparser https://github.com/mbj/unparser/issues/117
331
+ hash [ :message ] = hash [ :message ] + ' serialized'
329
332
hash
330
333
end
331
334
def self . deserialize_dispatch ( hash )
332
- hash [ :message ] += ' deserialized'
335
+ # hash[:message] += ' deserialized' # bug in unparser https://github.com/mbj/unparser/issues/117
336
+ hash [ :message ] = hash [ :message ] + ' deserialized'
333
337
hash
334
338
end
335
339
end
You can’t perform that action at this time.
0 commit comments