promiscuous 0.50.2 → 0.50.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  class Promiscuous::Observer
2
2
  extend ActiveModel::Callbacks
3
+ attr_accessor :id
3
4
  define_model_callbacks :create, :update, :destroy, :only => :after
4
5
  end
@@ -52,7 +52,7 @@ class Promiscuous::Subscriber::Worker::MessageSynchronizer
52
52
  main_loop!
53
53
 
54
54
  Promiscuous.warn "[redis] Reconnected"
55
- # TODO restart the pump
55
+ EM.next_tick { Promiscuous::AMQP::RubyAMQP.channel.recover }
56
56
  end
57
57
  rescue
58
58
  reconnect_later
@@ -1,3 +1,3 @@
1
1
  module Promiscuous
2
- VERSION = '0.50.2'
2
+ VERSION = '0.50.3'
3
3
  end
data/lib/promiscuous.rb CHANGED
@@ -45,4 +45,6 @@ module Promiscuous
45
45
  true
46
46
  end
47
47
  end
48
+
49
+ at_exit { self.disconnect }
48
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promiscuous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.50.2
4
+ version: 0.50.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -201,9 +201,9 @@ files:
201
201
  - lib/promiscuous/subscriber/mongoid/embedded_many.rb
202
202
  - lib/promiscuous/subscriber/mongoid/embedded.rb
203
203
  - lib/promiscuous/subscriber/worker/runner.rb
204
- - lib/promiscuous/subscriber/worker/message_synchronizer.rb
205
204
  - lib/promiscuous/subscriber/worker/pump.rb
206
205
  - lib/promiscuous/subscriber/worker/message.rb
206
+ - lib/promiscuous/subscriber/worker/message_synchronizer.rb
207
207
  - lib/promiscuous/subscriber/active_record.rb
208
208
  - lib/promiscuous/subscriber/envelope.rb
209
209
  - lib/promiscuous/subscriber/upsert.rb
@@ -221,7 +221,6 @@ files:
221
221
  - lib/promiscuous/error/subscriber.rb
222
222
  - lib/promiscuous/error/publisher.rb
223
223
  - lib/promiscuous/error/connection.rb
224
- - lib/promiscuous/observer.rb
225
224
  - lib/promiscuous/ephemeral.rb
226
225
  - lib/promiscuous/autoload.rb
227
226
  - lib/promiscuous/error.rb
@@ -234,6 +233,7 @@ files:
234
233
  - lib/promiscuous/config.rb
235
234
  - lib/promiscuous/cli.rb
236
235
  - lib/promiscuous/redis.rb
236
+ - lib/promiscuous/observer.rb
237
237
  - lib/promiscuous/version.rb
238
238
  - lib/promiscuous.rb
239
239
  - bin/promiscuous