eventq_base 1.4.0 → 1.5.0

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: 54183dfd31039659345d6844091c89e533a6acb0
4
- data.tar.gz: c34086fd7463359f815c1bc28b733abc1cfb8b6b
3
+ metadata.gz: 04aeb0a5403602feaf3ba8e645869c4c66f530d4
4
+ data.tar.gz: 8b989e7fcab523199beb6cf34e2d8477f92a460c
5
5
  SHA512:
6
- metadata.gz: c16e46cc6d5d2984fb9b32e94d4ed50fc617c6aede742e742bb75c2b377897e1713c31b8e23cdf0f2f7b11727bc866757d075d836c48de3581c0e5f6c1ea124a
7
- data.tar.gz: aa8675dd5fe7885e2a9f9aee8df055c510d357a4fb778066ccbfef813b7c714f711b8b73c424297083aa5a9d7db8b515f9eed42b95aef615ab8f92ca5c4f1b78
6
+ metadata.gz: 0ea6342b37bcb9a42bfa8fb1559af2ddeac8fd48ee014f048b85cd86b966ba7f85b32286d476e22b76a7e4aa0b3b8941386ee7df50f7abd52ce48e29a52c5185
7
+ data.tar.gz: 94a93145a87c822f62ef7e2173996d0a56c5024e4d2eda90403e3cda88bb08cbb39e9dffeecc346f4e21d9ac6e4f843562ed43a5e775aab0b519f57833492c97
data/lib/eventq_base.rb CHANGED
@@ -9,3 +9,5 @@ require_relative 'eventq_base/event_raised_exchange'
9
9
  require_relative 'eventq_base/event_raised_queue'
10
10
  require_relative 'eventq_base/subscription_manager_contract'
11
11
  require_relative 'eventq_base/eventq_client_contract'
12
+ require_relative 'eventq_base/configuration'
13
+ require_relative 'eventq_base/serialization_providers'
@@ -0,0 +1,11 @@
1
+ module EventQ
2
+ class Configuration
3
+
4
+ attr_accessor :serialization_provider
5
+
6
+ def initialize
7
+ serialization_provider = EventQ::SerializationProviders::OJ
8
+ end
9
+
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ require_relative 'serialization_providers/json_serialization_provider'
2
+ require_relative 'serialization_providers/oj_serialization_provider'
3
+
4
+ module EventQ
5
+ module SerializationProviders
6
+ OJ = 'oj'.freeze
7
+ JSON = 'json'.freeze
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ module EventQ
2
+ module SerializationProviders
3
+ class JsonSerializationProvider
4
+ def serialize(object)
5
+ Json.dump(object)
6
+ end
7
+
8
+ def deserialize(json)
9
+ Json.load(json)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module EventQ
2
+ module SerializationProviders
3
+ class OjSerializationProvider
4
+ def serialize(object)
5
+ Oj.dump(object)
6
+ end
7
+
8
+ def deserialize(json)
9
+ Oj.load(json)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module EventqBase
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventq_base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaughanbrittonsage
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-30 00:00:00.000000000 Z
11
+ date: 2016-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -48,6 +48,7 @@ extra_rdoc_files: []
48
48
  files:
49
49
  - bin/console
50
50
  - bin/setup
51
+ - lib/eventq_base/configuration.rb
51
52
  - lib/eventq_base/event_raised_exchange.rb
52
53
  - lib/eventq_base/event_raised_queue.rb
53
54
  - lib/eventq_base/eventq_client_contract.rb
@@ -57,6 +58,9 @@ files:
57
58
  - lib/eventq_base/queue.rb
58
59
  - lib/eventq_base/queue_message.rb
59
60
  - lib/eventq_base/queue_worker_contract.rb
61
+ - lib/eventq_base/serialization_providers/json_serialization_provider.rb
62
+ - lib/eventq_base/serialization_providers/oj_serialization_provider.rb
63
+ - lib/eventq_base/serialization_providers.rb
60
64
  - lib/eventq_base/subscription_manager_contract.rb
61
65
  - lib/eventq_base/version.rb
62
66
  - lib/eventq_base.rb