iprocess 5.0.3 → 5.0.4
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.
- data/README.md +3 -18
- data/lib/iprocess/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -83,24 +83,9 @@ A serializer is any object that implements load & dump.
|
|
83
83
|
You can choose what serializer you'd like to use through
|
84
84
|
the `IProcess.serializer=` method:
|
85
85
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
the box because all of them implement both of those methods.
|
90
|
-
MessagePack does not however but you could easily write
|
91
|
-
a wrapper:
|
92
|
-
|
93
|
-
require 'msgpack'
|
94
|
-
obj = Class.new do
|
95
|
-
def self.dump(obj)
|
96
|
-
MessagePack.pack(obj)
|
97
|
-
end
|
98
|
-
|
99
|
-
def self.load(obj)
|
100
|
-
MessagePack.unpack(obj)
|
101
|
-
end
|
102
|
-
end
|
103
|
-
IProcess.serializer = obj
|
86
|
+
```ruby
|
87
|
+
IProcess.serializer = JSON
|
88
|
+
```
|
104
89
|
|
105
90
|
__PLATFORM SUPPORT__
|
106
91
|
|
data/lib/iprocess/version.rb
CHANGED