active_spy 1.3.11 → 1.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/active_spy.gemspec +3 -3
- data/app/controllers/active_spy/notifications_controller.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: 51e6fe785d34c9c95de4482ae45114d2e6c5d737
|
4
|
+
data.tar.gz: c0fac4b3e85b7be57c2de47a26a99f0398485c4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f4b64f57fb64bd300d90763e1b98f8cfab87d02d4725957406896d1f1253e7970057653e2936ad6f32c990214d9694bf17c5d87b0bca3629ea50e7e876e2bcd
|
7
|
+
data.tar.gz: 6266306580524deedca3292d8f14166c3750034c98d0df432361838f35f072ceb1c7c89078dd88b0fa9c91dda4294e0cbc422b67f433eab64ad3e65b1e6609c0
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.12
|
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 1.3.
|
5
|
+
# stub: active_spy 1.3.12 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "active_spy"
|
9
|
-
s.version = "1.3.
|
9
|
+
s.version = "1.3.12"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Douglas Camata"]
|
14
|
-
s.date = "2014-10-
|
14
|
+
s.date = "2014-10-30"
|
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 = [
|
@@ -19,6 +19,7 @@ module ActiveSpy
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def handle_result(hook, params)
|
22
|
+
::Rails.logger.warn("[EVENT][#{hook['post_class']}] Event with result: #{params}")
|
22
23
|
result = get_result(hook, params)
|
23
24
|
::Rails.logger.warn("[EVENT][#{hook['post_class']}] Listener result: #{result}")
|
24
25
|
if result.is_a? Array
|
@@ -47,7 +48,6 @@ module ActiveSpy
|
|
47
48
|
|
48
49
|
def handle_model_result(hook, result, params)
|
49
50
|
if result.errors.present?
|
50
|
-
::Rails.logger.warn("[EVENT][#{hook['post_class']}] Error receiving event #{params}")
|
51
51
|
::Rails.logger.warn("[EVENT][#{hook['post_class']}] Result errors: #{result.errors.full_messages}")
|
52
52
|
render json: result.errors, status: :unprocessable_entity
|
53
53
|
else
|
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: 1.3.
|
4
|
+
version: 1.3.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Douglas Camata
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|