active_spy 2.0.0.pre3 → 2.0.0.pre4

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
  SHA1:
3
- metadata.gz: e79f36fab3fac7b3606e63e52124dbcbeed4b184
4
- data.tar.gz: f8acecbe881ad497f1e04411de9c4ee75d24b60f
3
+ metadata.gz: 9b0a1a6b750dcc27ba5db12501f33003f98b917f
4
+ data.tar.gz: bdf2866d49e2c819512b20c42f45eb7295cdfc7a
5
5
  SHA512:
6
- metadata.gz: 04a19c14dc9552f221b2b529d83cbf8dce853b0f3f66a4f93250d88cd73784d04c38298c693c6ba0e1a370706eb95a62c2950890b90628a0c624ec753dcbde7b
7
- data.tar.gz: 3ed7bb881fe74577d85164a6b552a47bf79241e36f28c3ae8be836459be5bf6308b969c316f06739cccfe8eb788a2f548c3550d89dbc7be2a1046cfdd5135958
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.pre3 ruby lib
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.pre3"
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-01"
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 = [
@@ -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
@@ -3,7 +3,7 @@ module ActiveSpy
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
5
  PATCH = 0
6
- BUILD = 'pre3'
6
+ BUILD = 'pre4'
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
9
  end
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.pre3
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-01 00:00:00.000000000 Z
11
+ date: 2015-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport