reactor 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reactor/models/subscriber.rb +1 -1
- data/lib/reactor/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: 104367d06506862bdda258c660b617f67e88bf8d
|
4
|
+
data.tar.gz: 65f1db8f91c0c882136cc1b4064bff3b3adfcb16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 527a5d3e4c2757070d6252843d2565437fe5a7d440be287522b9aec6cf2d3f1ec33cdeddb197efccd55b5e18bdd63dc9166dbfbee19fe00b84a761e2e0606365
|
7
|
+
data.tar.gz: 42589ad742fc73822fc9b5b2848e6dc1eaf271e45975870225f19bd6c9faa8b68873a0e811e67798405aa43eed8479cb4ae1d3367808987ebc362fbb305a2be5
|
@@ -29,7 +29,7 @@ class Reactor::Subscriber < ActiveRecord::Base
|
|
29
29
|
#TODO: REMEMBER SUBSCRIBERS so we can define them in code as well as with a row in the DB
|
30
30
|
# until then, here's a helper to make it easy to create with random data in postgres
|
31
31
|
# total crap I know but whatever
|
32
|
-
define_singleton_method :
|
32
|
+
define_singleton_method :exists! do
|
33
33
|
chain = where(event: name)
|
34
34
|
data.each do |key, value|
|
35
35
|
chain = chain.where("data @> '#{key}=#{value}'")
|
data/lib/reactor/version.rb
CHANGED