qprocessor 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 7e49f396b457d247ba22300439d134f4d663696f445a32dc36451fae46566602
4
- data.tar.gz: 5ef52af86d0a282e5e633c156f7fcf3d1c08ccbb079cd0c5cb5f98eec3ab33ef
3
+ metadata.gz: 1a9b0304a13a6ab620da94fcccacc9159def99d722da89fb6c32126e406a9196
4
+ data.tar.gz: 3c97e54e3eb4cb4b9486907202754163ec3782cd9c53f111278ee5f6749b5266
5
5
  SHA512:
6
- metadata.gz: f4711089a7f42c713698c5183e56b3dbc287f4f25f3fb3197dfe5eb55e0f6dda809f558fc6e124f6b1a3b077045715a7b763518b08878ded26303e2d2b6258ff
7
- data.tar.gz: 026c0bdc955bfcb61201b29453bbe2db5f1685b5273df674ac7b439551a9fe7b3e176cf26a71e5d520aa49af0c13a98de9b894221b1fe08d4d98ef8399edba0f
6
+ metadata.gz: 192bbd9026ba0e84055cd5e148cb7d7afaa8e2b31b97f709a32f24eaaea5961065ceb38510b7a250a142a97e0e713906ab3bbdf742987a98d660a595d13a93d8
7
+ data.tar.gz: a68f055274a6807a681e454ead00389bab11eaf9d371e461a8c469ad68169b55d739d5bf47d1bd36259702d45c0bba534636808e91182f957e54c27a09c5b1ae
data/README.md CHANGED
@@ -39,12 +39,11 @@ The processor class is a standard Ruby class that obeys the following rules...
39
39
  2. It implements a ``process()`` method that takes a single parameter. This
40
40
  parameter will be the message that was obtained from the queue. The
41
41
  message has a ``body()`` accessor method that grants access to a ``String``
42
- containing the message contents that are to be processed. The ``process()``
43
- method should conduct whatever work is needed based on the message. If
44
- processing of the message is complete then the ``process()`` method should
45
- call the ``dispose()`` method of the message parameter received as this
46
- informs the queuing mechanism that the message has been completely dealt
47
- with and should not be issued to any other requesters.
42
+ containing the message contents that are to be processed. If the
43
+ ``process()`` method throws an exception the messasge will be 'released'
44
+ back to it's origin queue. If the method completes without raising an
45
+ exception then the message will automatically be removed from it's origin
46
+ queue.
48
47
 
49
48
  ### The Service
50
49
 
@@ -19,7 +19,7 @@ module QProcessor
19
19
  # such as configuration or settings.
20
20
  def initialize(processor, settings={})
21
21
  @instance = nil
22
- @name = processor.class.name
22
+ @name = processor.name
23
23
  @processor_class = processor
24
24
  @settings = {}.merge(settings)
25
25
  @terminate = false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QProcessor
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qprocessor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Wood
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-26 00:00:00.000000000 Z
11
+ date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-sqs