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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec267ebefbd43e34f7b93b50689cc70c070e278a
4
- data.tar.gz: bd94ab45a0707679751166ae566033d747c7f98d
3
+ metadata.gz: 104367d06506862bdda258c660b617f67e88bf8d
4
+ data.tar.gz: 65f1db8f91c0c882136cc1b4064bff3b3adfcb16
5
5
  SHA512:
6
- metadata.gz: cb5493a2379d6175ada275c46b87107563981c41b5c09293b37be09b3c52f92f4189ab4b4ee16a0d239553079e124aaa2624de85e9e75b0ba6b2d372dc4e81f5
7
- data.tar.gz: 45f765948db78ff83cd1e5d891fc4f0768c40950481c4740a38837cfbcffb4e1e02e6833507e6f1b5c2f8d82329ef8cef3605f313f991e9365bce20fd3ce056f
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 :first_or_create! do
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}'")
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reactor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - winfred