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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d75231f527c5e43854c8e7962f59c63285f23d18
4
- data.tar.gz: 1154ea6f46a0f4986d02b562ececc59c1b50e526
3
+ metadata.gz: 72b23fe74f2f352c1c1a65d13611b19bcb18a1fc
4
+ data.tar.gz: 01c47e692fc532165083088695b4b3f479353ab9
5
5
  SHA512:
6
- metadata.gz: d8ba1f4efac6bc8fa62ba8271a89e659c16636bece1917df788875626a93796e5c3d61f9fe4797eeb9eb1566f122738a7777532a18de3fae58c480dc214c75b0
7
- data.tar.gz: 4f17e565fa4b739f576d39830d2615a853cbab891dc82358546f11f3b34d37618773a357ab4456911306a5587632168df230fa579d10fb0ff33ec406708fb000
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
@@ -1,3 +1,3 @@
1
1
  module Yodeler
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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