carnivore 0.3.6 → 0.3.8

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: f174c035064f92e9c034561667159f358152c09d
4
- data.tar.gz: af6561fd2a8de3753cd4bc257e6d9bc2dba3e2c6
3
+ metadata.gz: 36945d2d841d5d9a08f82b25e0ec8751f4b182b7
4
+ data.tar.gz: 58353a8bb4cd13dacf2bf7b345089125abc14f60
5
5
  SHA512:
6
- metadata.gz: 530cba3b2a2be5b5d19ad82c376b5b94239bcaacedc81facb9f144b6d7de6d1a067ba3a2b5948a68268f6a8c3d12621e9d83713e0660a7f3461939ec4820942b
7
- data.tar.gz: 5627c21026d731dc1c896e4c3b82e67d9915859fa1d1daf0171fff6fab40cab6a409012929069d33a96b1f07dbf083821383940e355f7b4641ef58a60975a688
6
+ metadata.gz: e3f0949c7bfc9dcc806e3d01334084e3566ef2a2f9969b82b8cb5ece5a8d39382d9bc7cbde1a4751eae730795ed790b4af5ba4395f23d4adf9f32f0b23064f1c
7
+ data.tar.gz: 5bc46fb98664573dcd85d4ffeaf1715d694e2f5d38729930dd39e604ce5277eab68d55455bfaeaa5157bfe2563df26ade41c1d61235c7767d950b07a7d9dcedd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.3.8
2
+ * Re-add config file for libraries doing direct loading
3
+ * Ensure source teardown does not hang
4
+
1
5
  # v0.3.6
2
6
  * Add `Carnivore::Source.clear!` helper
3
7
  * Integrate memoization helpers
@@ -0,0 +1,3 @@
1
+ require 'carnivore'
2
+
3
+ Carnivore.configure!(:verify)
@@ -226,8 +226,12 @@ module Carnivore
226
226
  def teardown_cleanup
227
227
  warn 'Termination request received. Tearing down!'
228
228
  if(callback_supervisor && callback_supervisor.alive?)
229
- warn "Tearing down callback supervisor! (#{callback_supervisor})"
230
- callback_supervisor.terminate
229
+ begin
230
+ warn "Tearing down callback supervisor! (#{callback_supervisor})"
231
+ callback_supervisor.terminate
232
+ rescue Celluloid::Task::TerminatedError
233
+ warn 'Terminated task error during callback supervisor teardown. Moving on.'
234
+ end
231
235
  else
232
236
  warn 'Callback supervisor is not alive. No teardown issued'
233
237
  end
@@ -1,4 +1,4 @@
1
1
  module Carnivore
2
2
  # Current version of library
3
- VERSION = Gem::Version.new('0.3.6')
3
+ VERSION = Gem::Version.new('0.3.8')
4
4
  end
data/lib/carnivore.rb CHANGED
@@ -9,6 +9,7 @@ require 'carnivore/version'
9
9
  # Message consumer and processor
10
10
  module Carnivore
11
11
  autoload :Callback, 'carnivore/callback'
12
+ autoload :Config, 'carnivore/config'
12
13
  autoload :Container, 'carnivore/container'
13
14
  autoload :Error, 'carnivore/errors'
14
15
  autoload :Message, 'carnivore/message'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnivore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-02 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid
@@ -77,6 +77,7 @@ files:
77
77
  - carnivore.gemspec
78
78
  - lib/carnivore.rb
79
79
  - lib/carnivore/callback.rb
80
+ - lib/carnivore/config.rb
80
81
  - lib/carnivore/container.rb
81
82
  - lib/carnivore/errors.rb
82
83
  - lib/carnivore/message.rb