simple_message_queue 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/simple_message_queue.rb +2 -3
- data/lib/simple_message_queue/version.rb +1 -1
- metadata +21 -18
- data/lib/config.yml +0 -3
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 23c7470c242974394f8cd52202e34b285a6cce40
|
4
|
+
data.tar.gz: eb0eccdbb6fd7fcdaa767ec2a6791cbb687ca6e1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0467a5f7067d3dede7dd58afaa6ca2fa1482d5d395e9208069c179587055e51c5c19cb77afda776f461456e93cc722b9fb3cc33de4c7b2e4b932f78ca2b0eb39
|
7
|
+
data.tar.gz: 375a339fc690c53024da0e0019f648633d252af95e8cce83dc21f2292595a4c77a33fbdf5b4d80542e4c646d224c966c677c65a0af94c5fc8f8724cd08369fe7
|
data/lib/simple_message_queue.rb
CHANGED
@@ -82,10 +82,9 @@ module SimpleMessageQueue
|
|
82
82
|
|
83
83
|
def receive
|
84
84
|
@count = 0
|
85
|
-
logger.info "Receiving messages for #{queue_name} at #{DateTime.now}" if SimpleMessageQueue.configuration.debug
|
86
85
|
queue.poll(:idle_timeout => SimpleMessageQueue.configuration.idle_timeout, :wait_time_seconds => SimpleMessageQueue.configuration.wait_time_seconds) do |message|
|
87
|
-
logger.info "Message received for #{queue_name}"
|
88
|
-
logger.info "Message body: #{message.body}"
|
86
|
+
logger.info "Message received for #{queue_name}" if SimpleMessageQueue.configuration.debug
|
87
|
+
logger.info "Message body: #{message.body}" if SimpleMessageQueue.configuration.debug
|
89
88
|
@count += 1
|
90
89
|
process_message(message)
|
91
90
|
end
|
metadata
CHANGED
@@ -1,38 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_message_queue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.9
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jim Smith
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-01-28 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: aws-sdk
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: minitest
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - '>='
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
description: SimpleMessageQueue is a simple interface for Amazon Web Service's SQS.
|
37
42
|
email:
|
38
43
|
- jim@jimsmithdesign.com
|
@@ -40,7 +45,6 @@ executables: []
|
|
40
45
|
extensions: []
|
41
46
|
extra_rdoc_files: []
|
42
47
|
files:
|
43
|
-
- lib/config.yml
|
44
48
|
- lib/config.yml.sample
|
45
49
|
- lib/simple_message_queue/configuration.rb
|
46
50
|
- lib/simple_message_queue/core_ext/string.rb
|
@@ -53,26 +57,25 @@ files:
|
|
53
57
|
homepage: https://github.com/cbi/simple_message_queue
|
54
58
|
licenses:
|
55
59
|
- MIT
|
60
|
+
metadata: {}
|
56
61
|
post_install_message:
|
57
62
|
rdoc_options: []
|
58
63
|
require_paths:
|
59
64
|
- lib
|
60
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
66
|
requirements:
|
63
|
-
- -
|
67
|
+
- - '>='
|
64
68
|
- !ruby/object:Gem::Version
|
65
69
|
version: '0'
|
66
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
71
|
requirements:
|
69
|
-
- -
|
72
|
+
- - '>='
|
70
73
|
- !ruby/object:Gem::Version
|
71
74
|
version: '0'
|
72
75
|
requirements: []
|
73
76
|
rubyforge_project:
|
74
|
-
rubygems_version:
|
77
|
+
rubygems_version: 2.0.3
|
75
78
|
signing_key:
|
76
|
-
specification_version:
|
79
|
+
specification_version: 4
|
77
80
|
summary: SimpleMessageQueue
|
78
81
|
test_files: []
|
data/lib/config.yml
DELETED