carnivore 1.0.2 → 1.0.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: 985a65c2dd6fbd7a0cd63bb1a26142f3da059be5
4
- data.tar.gz: 72721b3bcf903193fba069ac50e688a62babca7f
3
+ metadata.gz: 1cc8864e595d0a5dd8fa8b5d530fb6db2a238847
4
+ data.tar.gz: c0c182a518b96ec871b3bcc77e25a25fbf4af3a2
5
5
  SHA512:
6
- metadata.gz: df5ed94711c070437c355aac204861767032581cfa8cd9e2e40a2936c09fd1ac6ddf6703a507935678cb42720f674b834334483532cc807b05c0f1256ee60aec
7
- data.tar.gz: 1773dcd72ac7f4ce567390243acd4b333e5ec5e7e6eed3ec512d269e3115b6edd147de41373f5bf156812f1a6d0c25e844c3017e8f91bc5c8acaca957b4544d5
6
+ metadata.gz: 31f15a9533f22d14ca5c986dc74007bde2cc7fbc39c73cff382ee10e6ad6774d81b2772205c28cea4861e27896a6e2dc0b8ea95fefba41ce07c7757ea1a02f7f
7
+ data.tar.gz: 29657c45ce66b925fe0d6ee5da1ba59ba7c1165c04cd38bcaf08a12c00dc20c23a12dad23db0a4d3a0ce5068ec58fc566a41ca4251c03f7a890cca9d7a97fdb6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v1.0.4
2
+ * Update async requests to be locked requests
3
+ * Adjust minimum constraint on zoidberg dependency
4
+
1
5
  # v1.0.2
2
6
  * Fix access to default logger on source setup failure
3
7
  * Re-raise exception after supervisor is destroyed
data/carnivore.gemspec CHANGED
@@ -10,9 +10,9 @@ Gem::Specification.new do |s|
10
10
  s.description = 'Message processing helper'
11
11
  s.license = 'Apache 2.0'
12
12
  s.require_path = 'lib'
13
- s.add_runtime_dependency 'bogo-config'
13
+ s.add_runtime_dependency 'bogo-config', '< 1.0'
14
14
  s.add_runtime_dependency 'multi_json'
15
15
  s.add_runtime_dependency 'hashie'
16
- s.add_runtime_dependency 'zoidberg', '< 1.0'
16
+ s.add_runtime_dependency 'zoidberg', '>= 0.1.12', '< 1.0'
17
17
  s.files = Dir['lib/**/*'] + %w(carnivore.gemspec README.md CHANGELOG.md)
18
18
  end
@@ -33,14 +33,14 @@ module Carnivore
33
33
  #
34
34
  # @param args [Object] list passed to Carnivore::Source#confirm
35
35
  def confirm!(*args)
36
- self[:source].confirm(*([self] + args).flatten(1).compact)
36
+ self[:source].async(:locked).confirm(*([self] + args).flatten(1).compact)
37
37
  end
38
38
 
39
39
  # Touch message on source
40
40
  #
41
41
  # @return [TrueClass, FalseClass]
42
42
  def touch!
43
- self[:source].touch(self)
43
+ self[:source].async(:locked).touch(self)
44
44
  end
45
45
 
46
46
  # @return [String] formatted inspection string
@@ -120,8 +120,6 @@ module Carnivore
120
120
  include Utils::Failure
121
121
  # @!parse include Carnivore::Utils::Failure
122
122
 
123
- # finalizer :teardown_cleanup
124
-
125
123
  # @return [String, Symbol] name of source
126
124
  attr_reader :name
127
125
  # @return [Array<Callback>] registered callbacks
@@ -225,7 +223,7 @@ module Carnivore
225
223
  def start!
226
224
  if(auto_process?)
227
225
  info 'Message processing started via auto start'
228
- async.process
226
+ async(:locked).process
229
227
  true
230
228
  else
231
229
  warn 'Message processing is disabled via auto start'
@@ -305,7 +303,7 @@ module Carnivore
305
303
  # @param message [Carnivore::Message]
306
304
  # @return [TrueClass, FalseClass]
307
305
  def touch(message)
308
- warn 'Source#touch was not implemented for this source!'
306
+ debug 'Source#touch was not implemented for this source!'
309
307
  true
310
308
  end
311
309
 
@@ -447,7 +445,7 @@ module Carnivore
447
445
  else
448
446
  valid_callbacks.each do |name|
449
447
  debug "Dispatching message<#{msg[:message].object_id}> to callback<#{name} (#{callback_name(name)})>"
450
- callback_supervisor[callback_name(name)].async.call(msg)
448
+ callback_supervisor[callback_name(name)].async(:locked).call(msg)
451
449
  end
452
450
  end
453
451
  end
@@ -1,4 +1,4 @@
1
1
  module Carnivore
2
2
  # Current version of library
3
- VERSION = Gem::Version.new('1.0.2')
3
+ VERSION = Gem::Version.new('1.0.4')
4
4
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnivore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
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-10-07 00:00:00.000000000 Z
11
+ date: 2015-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo-config
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "<"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "<"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: multi_json
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -56,6 +56,9 @@ dependencies:
56
56
  name: zoidberg
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 0.1.12
59
62
  - - "<"
60
63
  - !ruby/object:Gem::Version
61
64
  version: '1.0'
@@ -63,6 +66,9 @@ dependencies:
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: 0.1.12
66
72
  - - "<"
67
73
  - !ruby/object:Gem::Version
68
74
  version: '1.0'