carnivore 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.1.6
2
+ * Do not register callback if no worker is created
3
+
1
4
  # v0.1.4
2
5
  * Update `Source#send` to `Source#transmit`
3
6
  * Add common util module for logging
@@ -117,6 +117,7 @@ module Carnivore
117
117
  size = block_or_class.workers || 1
118
118
  if(size < 1)
119
119
  warn "Callback class (#{block_or_class}) defined no workers. Skipping."
120
+ return self
120
121
  elsif(size == 1)
121
122
  debug "Adding callback class (#{block_or_class}) under supervision. Name: #{callback_name(name)}"
122
123
  @callback_supervisor.supervise_as callback_name(name), block_or_class, name
@@ -1,5 +1,5 @@
1
1
  module Carnivore
2
2
  class Version < Gem::Version
3
3
  end
4
- VERSION = Version.new('0.1.4')
4
+ VERSION = Version.new('0.1.6')
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnivore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: