reactor 0.3.0 → 0.3.1

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: ec3412b610bacc15fa57793c615761da1191b283
4
- data.tar.gz: 0f8613b3601c6573dc6d6c15520e9ed0496f9d25
3
+ metadata.gz: 569d1ffc0633f47aa79a69447cdd3cf594baff00
4
+ data.tar.gz: 4db89fd791f775285053f866ea5cf5b1c9a36699
5
5
  SHA512:
6
- metadata.gz: a9d392a21a36ebf60fb6e07cb2505f1053dddd96a447a5d06b3b1595707e37ef716379e66d13dd56c2eaf926d5b612678d68fa159297d907eac6a7c166634568
7
- data.tar.gz: 76a5d911946cbf24865daa12cddac19a627c1b4d3478b739e43f396bf64672f71b80881c9e643c6e9c8547ab6af7b005628d539de99e97508442540034652cd5
6
+ metadata.gz: d32b3d0df0c44393d8e82f5e53010529e19a63dfd6ba54ac976c290b9c8d8f44d241a6f1929cc3a83d125770fac57e063f8ab18d52c09ee934216b8dd7870156
7
+ data.tar.gz: fd248e0bbede4171500af8e8de84edeb85d37ddca42b5650a49808f39e5186cc48385852d2b3e62051e457cf120f062f54b56862ac7ccf5c8f05c682cf7224dd
@@ -2,7 +2,7 @@ module Reactor::Subscribable
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  module ClassMethods
5
- def subscribes_to(event, &callback)
5
+ def on_event(event, &callback)
6
6
  (Reactor::STATIC_SUBSCRIBERS[event.to_s] ||= []).push(callback)
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
 
4
4
  class Auction < ActiveRecord::Base
5
- subscribes_to :bid_made do |event|
5
+ on_event :bid_made do |event|
6
6
  event.target.update_column :status, 'first_bid_made'
7
7
  end
8
8
  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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - winfred