eventq_base 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57b40f06cb176a4a1913e0ec1465b3b65fe006f4
|
4
|
+
data.tar.gz: 484e7193eeac32cb6bbf2eea8c28b8d1f382e6be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 149d7642106907f254af1e89a2053dfb695635fbf9e5821a5eae4856767537e3d4bfe0b65981834d626e47296185b50b1049f7a428671f20d36724d82202398f
|
7
|
+
data.tar.gz: 9d70c5d78d7b95ce602d9a608a7c801dc907952fdf89f7589e538aeba623ba08e4e2d353a2efeb467ee7dad160d92678b9aa284456da42b2cd99df4ed219ae39
|
@@ -1,8 +1,14 @@
|
|
1
1
|
module EventQ
|
2
2
|
module SerializationProviders
|
3
3
|
class JsonSerializationProvider
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@hash_helper = HashKit::Helper.new
|
7
|
+
end
|
8
|
+
|
4
9
|
def serialize(object)
|
5
|
-
|
10
|
+
hash = @hash_helper.to_hash(object)
|
11
|
+
Json.dump(hash)
|
6
12
|
end
|
7
13
|
|
8
14
|
def deserialize(json)
|
data/lib/eventq_base/version.rb
CHANGED