active_spy 2.0.0.pre1 → 2.0.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/active_spy.gemspec +2 -2
- data/lib/active_spy/handler.rb +6 -0
- data/lib/active_spy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5ea4576b9c157d2c08c00a0235918302fa39b59
|
4
|
+
data.tar.gz: 6c2dbae61778fcefa542571baa2b5438edfe8a02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 505138265fcbd3a23b87917985ab7c7ed532b3e9a25a3746d0a0721f88b58b0bc06ff961fc2abd485bf2e61793509b35a30902eb099b82985b43ca7e7acd923a
|
7
|
+
data.tar.gz: 664584ec54fd4621659ed69b3e876412463f2340ac56c35dcbd450f0e544502162b64793e8d9b0ef61317d1bee1448638e74d88210394a83e54fb104b5542983
|
data/active_spy.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: active_spy 2.0.0.
|
5
|
+
# stub: active_spy 2.0.0.pre2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "active_spy"
|
9
|
-
s.version = "2.0.0.
|
9
|
+
s.version = "2.0.0.pre2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
data/lib/active_spy/handler.rb
CHANGED
@@ -10,6 +10,8 @@ module ActiveSpy
|
|
10
10
|
|
11
11
|
shoryuken_options queue: sqs_queue_name, auto_delete: true,
|
12
12
|
body_parser: :json
|
13
|
+
|
14
|
+
load_shoryuken_queue!
|
13
15
|
end
|
14
16
|
|
15
17
|
def perform(sqs_message, body)
|
@@ -37,6 +39,10 @@ module ActiveSpy
|
|
37
39
|
module ClassMethods
|
38
40
|
private
|
39
41
|
|
42
|
+
def load_shoryuken_queue!
|
43
|
+
Shoryuken.queues << sqs_queue_name
|
44
|
+
end
|
45
|
+
|
40
46
|
def sqs_queue_name
|
41
47
|
@sqs_queue_name ||= "#{dasherized_name}-#{ActiveSpy.options[:app_env]}"
|
42
48
|
end
|
data/lib/active_spy/version.rb
CHANGED