metacosm 0.3.3 → 0.3.4

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: 507c3712499d247e71327f2f613360b595c75715
4
- data.tar.gz: 2e8eedf08f22ae677cf80a02ffa2d5466a52914c
3
+ metadata.gz: cdd44d747de4ba321e6f8af143b5e8921b7c5e71
4
+ data.tar.gz: 4ce3f055902ba50c4ff4b99278e690315c05c9b5
5
5
  SHA512:
6
- metadata.gz: 6acfd5b2586c6258354cf2c9ee970637f9e1dc46d67ef4c5d4707f1133d49affef2f4ea72407dc86ad3fd1b24079a454d983c7d64f465fdf5edb9ff919896a1c
7
- data.tar.gz: ca4b957d8aa2cc5023e81f6a7a7ca3b4c6ac8edfdc0d57ca6ec1af6b9e2425f9af8d8d463659801801d8aabf13445a070d2b90376f53732bfecfac90a0856d54
6
+ metadata.gz: 991ca081d4003f3291f9f5974976190035096b615f076f6457727577d3645bf38d6c1bc80b0fa4f9e8f300344c95328f4e8c946bf232ac7f1e421fd1d73aa784
7
+ data.tar.gz: 11b509c1c03cfe8052fb5a11b0a6a9072abeeb509917aa02d85afb3675a915f42e4b11368dbb52c8550a16e79671e27c661718d4370137af85b005f2a6cb8540
data/Gemfile CHANGED
@@ -7,6 +7,7 @@ gemspec
7
7
  gem 'activesupport'
8
8
  gem 'passive_record'
9
9
  gem 'redis'
10
+ gem 'connection_pool' # pool redis conns?
10
11
 
11
12
  group :test do
12
13
  gem 'rspec-its'
@@ -8,6 +8,8 @@ homepage: https://rubygems.org/gems/metacosm
8
8
  dependencies:
9
9
  passive_record: ~> 0.4
10
10
  redis: ~> 3.2
11
+ connection_pool: ~> 2.2
12
+
11
13
  development_dependencies:
12
14
  bundler: ~> 1.10
13
15
  codeclimate-test-reporter: ~> 0.1
@@ -13,9 +13,9 @@ module Metacosm
13
13
  puts "[command: #{command.inspect}]"
14
14
  command_dto = command.attrs.merge(handler_module: command.handler_module_name, handler_class_name: command.handler_class_name)
15
15
 
16
- puts "---> Sending command over redis conn: #{redis.inspect}"
17
16
  Thread.new do
18
17
  REDIS.with do |redis|
18
+ puts "---> Sending command over redis conn: #{redis.inspect}"
19
19
  redis.publish(@command_queue_name, Marshal.dump(command_dto))
20
20
  end
21
21
  end
@@ -1,4 +1,4 @@
1
1
  module Metacosm
2
2
  # metacosm version
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metacosm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Weissman
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: connection_pool
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.2'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement