nezu 0.5.13 → 0.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/Gemfile.lock +1 -1
  2. data/VERSION +1 -1
  3. data/lib/nezu/runner.rb +2 -5
  4. metadata +3 -3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nezu (0.5.13)
4
+ nezu (0.5.14)
5
5
  activerecord (~> 3.2.11)
6
6
  activesupport (~> 3.2.11)
7
7
  amqp
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.13
1
+ 0.5.14
data/lib/nezu/runner.rb CHANGED
@@ -3,6 +3,7 @@ $: << File.expand_path('./app')
3
3
  $: << File.expand_path('.')
4
4
 
5
5
  Signal.trap("INT") { Nezu::Runner.stop}
6
+ Signal.trap("TERM") { Nezu::Runner.stop}
6
7
 
7
8
  module Nezu
8
9
  class Runner
@@ -18,7 +19,6 @@ module Nezu
18
19
  worker = Nezu::Runtime::Worker.new(channel, consumer.new)
19
20
  worker.start
20
21
  end
21
- @@connection = connection
22
22
  end
23
23
  rescue => e
24
24
  Nezu.logger.fatal("#{self.inspect} died restarting")
@@ -29,14 +29,11 @@ module Nezu
29
29
 
30
30
  def self.stop(exit_code=0)
31
31
  Nezu.logger.info("shutting down #{Nezu.app}")
32
- Nezu::Runner.connection.close { EventMachine.stop }
32
+ AMQP.stop{ EM.stop }
33
33
  Nezu.logger.info("done #{Nezu.app}")
34
34
  exit(exit_code)
35
35
  end
36
36
 
37
- def self.connection
38
- @@connection
39
- end
40
37
  end
41
38
  end
42
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nezu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.13
4
+ version: 0.5.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -275,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
275
275
  version: '0'
276
276
  segments:
277
277
  - 0
278
- hash: -1835155368988834994
278
+ hash: -3147794254686838822
279
279
  required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  none: false
281
281
  requirements:
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
284
284
  version: '0'
285
285
  segments:
286
286
  - 0
287
- hash: -1835155368988834994
287
+ hash: -3147794254686838822
288
288
  requirements: []
289
289
  rubyforge_project:
290
290
  rubygems_version: 1.8.23