eventq_base 1.6.6 → 1.6.7
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: 87eabe6523b050ac4624171df4d462c6bbe40691
|
4
|
+
data.tar.gz: a379e8e023218840639a87132457833a8685ab88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2636c113ca835081154e812f6b6ee9d1d94c5fa6606b266a793334f66f4f86076d53f920671dabf3df5054de80d97d6e95dca850320a71efe9d12c0252b8337b
|
7
|
+
data.tar.gz: 67fe3df7797be4907f4110804a2c36a090130ba7f99bf58eb0f03ce955c96528d4d99abee5cf86e6deb7da7607d6c2442f1e8c6777089e03928f13569a069b6d
|
@@ -4,14 +4,14 @@ require_relative 'serialization_providers/oj_serialization_provider'
|
|
4
4
|
module EventQ
|
5
5
|
module SerializationProviders
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
OJ_PROVIDER = 'oj'.freeze
|
8
|
+
JSON_PROVIDER = 'json'.freeze
|
9
9
|
|
10
10
|
class Manager
|
11
11
|
def initialize
|
12
12
|
@providers = {}
|
13
|
-
@providers[
|
14
|
-
@providers[
|
13
|
+
@providers[OJ_PROVIDER] = EventQ::SerializationProviders::OjSerializationProvider.new
|
14
|
+
@providers[JSON_PROVIDER] = EventQ::SerializationProviders::JsonSerializationProvider.new
|
15
15
|
end
|
16
16
|
|
17
17
|
def get_provider(provider_type)
|
data/lib/eventq_base/version.rb
CHANGED