active_spy 2.0.0.pre3 → 2.0.0.pre4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/active_spy.gemspec +3 -3
- data/lib/active_spy/handler.rb +1 -8
- data/lib/active_spy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b0a1a6b750dcc27ba5db12501f33003f98b917f
|
4
|
+
data.tar.gz: bdf2866d49e2c819512b20c42f45eb7295cdfc7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0772faf5cc63bf57502e1358e3e13fd96f1bb274e23d9a1695836168255742311dcf51b03620b104f42e1fe3c5ef02ef2a4a25b612fe988f9264830d8d0963c6
|
7
|
+
data.tar.gz: 617edb27da5d5cb5556888563258ef69568d299c42dc08ff96d34e3c99fd82a0d8bdec7dc398be0395e5bdc264563ca50ae50a4394cc3bfe84616126ad65ff22
|
data/active_spy.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
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.pre4 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.pre4"
|
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"]
|
13
13
|
s.authors = ["Douglas Camata"]
|
14
|
-
s.date = "2015-09-
|
14
|
+
s.date = "2015-09-03"
|
15
15
|
s.description = " Watch for a method call in any class and run before/after callbacks.\n You can even watch your Rails models for events (like create, update,\n destroy), send these events to a event-runner instance and it redirect these\n events to other apps that are subscrived for them. This gem also provides\n classes that you can use to process the received events too.\n"
|
16
16
|
s.email = "d.camata@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
data/lib/active_spy/handler.rb
CHANGED
@@ -20,14 +20,7 @@ module ActiveSpy
|
|
20
20
|
payload = body.delete('payload')
|
21
21
|
actor = body.delete('actor')
|
22
22
|
|
23
|
-
class_name = self.class.name
|
24
|
-
# Rails.logger.debug("[Interceptor][#{class_name}] - Receiving Message##{sqs_message.message_id}")
|
25
|
-
# Rails.logger.debug("[Interceptor][#{class_name}] - Message##{sqs_message.message_id} type: #{type}")
|
26
|
-
# Rails.logger.debug("[Interceptor][#{class_name}] - Message##{sqs_message.message_id} action: #{action}")
|
27
|
-
# Rails.logger.debug("[Interceptor][#{class_name}] - Message##{sqs_message.message_id} actor: #{actor.inspect}")
|
28
|
-
# Rails.logger.debug("[Interceptor][#{class_name}] - Message##{sqs_message.message_id} payload: #{payload.inspect}")
|
29
23
|
send(action, type, payload, actor)
|
30
|
-
# Rails.logger.debug("[Interceptor][#{class_name}] - Message##{sqs_message.message_id} Received!")
|
31
24
|
end
|
32
25
|
|
33
26
|
def create(type, payload, actor); end
|
@@ -44,7 +37,7 @@ module ActiveSpy
|
|
44
37
|
end
|
45
38
|
|
46
39
|
def sqs_queue_name
|
47
|
-
@sqs_queue_name ||= "#{dasherized_name}-#{ActiveSpy.options[:app_env]}"
|
40
|
+
@sqs_queue_name ||= "#{app_name}-#{dasherized_name}-#{ActiveSpy.options[:app_env]}"
|
48
41
|
end
|
49
42
|
|
50
43
|
def sqs_queue
|
data/lib/active_spy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_spy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.pre4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Douglas Camata
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|