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 +4 -4
- data/README.md +5 -6
- data/lib/qprocessor/processor.rb +1 -1
- data/lib/qprocessor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a9b0304a13a6ab620da94fcccacc9159def99d722da89fb6c32126e406a9196
|
4
|
+
data.tar.gz: 3c97e54e3eb4cb4b9486907202754163ec3782cd9c53f111278ee5f6749b5266
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
43
|
-
method
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
|
data/lib/qprocessor/processor.rb
CHANGED
@@ -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.
|
22
|
+
@name = processor.name
|
23
23
|
@processor_class = processor
|
24
24
|
@settings = {}.merge(settings)
|
25
25
|
@terminate = false
|
data/lib/qprocessor/version.rb
CHANGED
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.
|
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-
|
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
|