yodeler 0.0.8 → 0.0.9

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: 06e064301271a695f1c1baab2e9782cf110b96c7
4
- data.tar.gz: 984d5f2e668ba6c9cb0d6d9c1f9b552f466749a2
3
+ metadata.gz: e3b6de4e46a81133f10692f5ec5594cb096c9a2c
4
+ data.tar.gz: 3cdb96c2c9a439475c7ab8b34e4597f57484d8c2
5
5
  SHA512:
6
- metadata.gz: f6aef4f8961ac466b8e9b5076044957aba76c363164137dfe8328c7eeff2815dbd4da3304d4d9b900734a58c22441804cb448e879efb38d7bd8b08df796a2ac3
7
- data.tar.gz: 02b71afb307c719d8522e430c077f0d520deabd5c767ef4e6961adec53f13f9e1fad94120adf3e9f29256204d1ac742bf69778ccaedf4ae0a866f5ada2e52506
6
+ metadata.gz: 27d98f591d650b19c4565f2a0fa6c909b73b1ea7ed4aa243453e673b68675cb5e6bcea890af6d2ca48d9f7ee078f1ee75a624fcdf1c4a1a9322d3dcffcc7f470
7
+ data.tar.gz: 26ec8aca4c553cf40a7d2b2039c5fa023d194c6e9cfc8b842d210230b21a07022521553f427f1b573563eaa581a4bda8de71753dd6cd6927580973977b94bba1
@@ -38,7 +38,10 @@ module Yodeler
38
38
  #
39
39
  # @return [~Yodeler::EventType::Base] the logged event
40
40
  def self.yodel!(params)
41
- current_event_type = self.first
41
+ # Add the event type to the yodeler_event_types table
42
+ current_event_type = self.first_or_create name: Yodeler.registrations.key(self)
43
+
44
+ #current_event_type = self.first
42
45
  current_event = current_event_type.events.create(params)
43
46
 
44
47
  current_event_type.subscriptions.each do |subscriber|
@@ -1,3 +1,3 @@
1
1
  module Yodeler
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/lib/yodeler.rb CHANGED
@@ -42,9 +42,6 @@ module Yodeler
42
42
  yield event_type_klass.configuration
43
43
  end
44
44
 
45
- # Add the event type to the yodeler_event_types table
46
- event_type_klass.first_or_create name: event_type
47
-
48
45
  # keep track of the registrations
49
46
  Yodeler.registrations[event_type] = event_type_klass
50
47
  event_type_klass
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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cory O'Daniel