reactor 0.2.4 → 0.2.5

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: 104367d06506862bdda258c660b617f67e88bf8d
4
- data.tar.gz: 65f1db8f91c0c882136cc1b4064bff3b3adfcb16
3
+ metadata.gz: 98effb7058e42105083b6140ae324fa6bbc09c15
4
+ data.tar.gz: 2d869d077ad24edaf0ca70d6afa35eab454d549b
5
5
  SHA512:
6
- metadata.gz: 527a5d3e4c2757070d6252843d2565437fe5a7d440be287522b9aec6cf2d3f1ec33cdeddb197efccd55b5e18bdd63dc9166dbfbee19fe00b84a761e2e0606365
7
- data.tar.gz: 42589ad742fc73822fc9b5b2848e6dc1eaf271e45975870225f19bd6c9faa8b68873a0e811e67798405aa43eed8479cb4ae1d3367808987ebc362fbb305a2be5
6
+ metadata.gz: 480067daea1832ef2dd8f06f011e45cac9c75e2662e69dacf0afb2149286fe853000f50310e18461b5c18261b19487cbf435efb25497089d2f18a61c0f2ab11d
7
+ data.tar.gz: 10f4c872fe0ec5898f0b7c34e5d36bb51735b1ef7229b8f7dd23a26cb8f2f1851e356e6c7b25e2ed55a52226410b7a9cecefa191bb24c7ad09815dbb4a14f149
@@ -32,7 +32,7 @@ class Reactor::Subscriber < ActiveRecord::Base
32
32
  define_singleton_method :exists! do
33
33
  chain = where(event: name)
34
34
  data.each do |key, value|
35
- chain = chain.where("data @> '#{key}=#{value}'")
35
+ chain = chain.where("subscribers.data @> ?", "#{key}=>#{value}")
36
36
  end
37
37
  chain.first_or_create!(data)
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
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.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - winfred