yodeler 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yodeler/models/event_types/base.rb +3 -1
- data/lib/yodeler/models/notification.rb +9 -0
- data/lib/yodeler/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72b23fe74f2f352c1c1a65d13611b19bcb18a1fc
|
4
|
+
data.tar.gz: 01c47e692fc532165083088695b4b3f479353ab9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ce6123eefb96a2d5a4a71f54923b99d19dce71840e040b0e8b1a999ea0dd9fa8baabf3e680b1756e238f0f093d0773e66e537564506d74884b32c20e7cc3231
|
7
|
+
data.tar.gz: 9fcc42a68743b1776e94216667521bfbacd2dc37a1c51c611bcd92102cb0ffaec9852dfba856b41edda9500b3b8c8978c3870ae63d666a0bdb92bc6ad0010e5a
|
@@ -43,7 +43,9 @@ module Yodeler
|
|
43
43
|
|
44
44
|
current_event_type.subscriptions.each do |subscriber|
|
45
45
|
subscriber.notifications.create({
|
46
|
-
yodeler_event_id: current_event.id
|
46
|
+
yodeler_event_id: current_event.id,
|
47
|
+
# get the integer out of the default state (first state)
|
48
|
+
state: self.configuration.states.first.last
|
47
49
|
})
|
48
50
|
end
|
49
51
|
|
@@ -13,6 +13,15 @@ module Yodeler
|
|
13
13
|
I18n.t("yodeler.event_types.#{event_type_key}.message", event.payload)
|
14
14
|
end
|
15
15
|
|
16
|
+
def name
|
17
|
+
I18n.t("yodeler.event_types.#{event_type_key}.name", event.payload)
|
18
|
+
end
|
19
|
+
|
20
|
+
def state
|
21
|
+
state_enum_value = read_attribute :state
|
22
|
+
event_type.class.configuration.states.key(state_enum_value)
|
23
|
+
end
|
24
|
+
|
16
25
|
protected
|
17
26
|
def event_type_key
|
18
27
|
event_type.name.to_sym
|
data/lib/yodeler/version.rb
CHANGED
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cory O'Daniel
|
@@ -164,6 +164,20 @@ dependencies:
|
|
164
164
|
- - '>='
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: debugger
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
167
181
|
description:
|
168
182
|
email:
|
169
183
|
- yodel@coryodaniel.com
|