yodeler 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yodeler/{listens_to_yodler.rb → listens_to_yodeler.rb} +4 -4
- data/lib/yodeler/version.rb +1 -1
- data/lib/yodeler.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: 809624f01470ba5f682ccc72e45aec1c076fe75e
|
4
|
+
data.tar.gz: c1b741e04472752563ef46a7e44d1db1771c21d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04ef300837dbe27304c245097e8b049766f548984df5df5ffade0471475284bbf2fcbc2586ff084ca51186247bf4ad59527ca969ef44a8d69d3fc17d73208d9c
|
7
|
+
data.tar.gz: c3f0dfa40e720810ae8566c7e02d7c47651b6552fe0d2d865df014fa8348a09709fba533bb4e2fb4b4dc166fd2864cdc4d28845e244dccd2c566855ff3574550
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module Yodeler
|
2
|
-
module
|
2
|
+
module ListensToYodeler
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
|
5
5
|
included do
|
6
6
|
end
|
7
7
|
|
8
8
|
module ClassMethods
|
9
|
-
def
|
9
|
+
def listens_to_yodeler(subscriptions_assocation_name = :yodeler_subscriptions)
|
10
10
|
cattr_accessor :yodeler_subscriptions_name
|
11
11
|
self.yodeler_subscriptions_name = subscriptions_assocation_name
|
12
12
|
|
@@ -15,7 +15,7 @@ module Yodeler
|
|
15
15
|
class_name: "Yodeler::Subscription",
|
16
16
|
foreign_key: :subscriber_id
|
17
17
|
|
18
|
-
include Yodeler::
|
18
|
+
include Yodeler::ListensToYodeler::LocalInstanceMethods
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -23,4 +23,4 @@ module Yodeler
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
ActiveRecord::Base.send :include, Yodeler::
|
26
|
+
ActiveRecord::Base.send :include, Yodeler::ListensToYodeler
|
data/lib/yodeler/version.rb
CHANGED
data/lib/yodeler.rb
CHANGED
@@ -6,7 +6,7 @@ module Yodeler
|
|
6
6
|
autoload :Event, 'yodeler/models/event'
|
7
7
|
autoload :Subscription, 'yodeler/models/subscription'
|
8
8
|
autoload :Notification, 'yodeler/models/notification'
|
9
|
-
autoload :
|
9
|
+
autoload :ListensToYodeler, 'yodeler/listens_to_yodeler'
|
10
10
|
autoload :EventType, 'yodeler/models/event_type'
|
11
11
|
|
12
12
|
mattr_accessor :registrations
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yodeler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cory O'Daniel
|
@@ -188,7 +188,7 @@ files:
|
|
188
188
|
- lib/yodeler.rb
|
189
189
|
- lib/yodeler/configuration.rb
|
190
190
|
- lib/yodeler/engine.rb
|
191
|
-
- lib/yodeler/
|
191
|
+
- lib/yodeler/listens_to_yodeler.rb
|
192
192
|
- lib/yodeler/models/event.rb
|
193
193
|
- lib/yodeler/models/event_type.rb
|
194
194
|
- lib/yodeler/models/event_types/base.rb
|