yodeler 0.0.3 → 0.0.4

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: 3fa9e13cf8d9156e5ad30c5ad0a56d224057373c
4
- data.tar.gz: 62722cee583cdb0d13ab5eda13baec9a84191ad1
3
+ metadata.gz: 69e14b394c008b8759de2f8112f4bdd85d4bb761
4
+ data.tar.gz: 085b0de8d14997e3eb998c27ec9088678772c0e8
5
5
  SHA512:
6
- metadata.gz: 70f6c131017698a2e598efba2736892cf082c193d9bdec5529ca61a97c7478547a33d56eb5df3c7a0097fddaff70dd167cdb52e10275621149a0b2aa2e0048e0
7
- data.tar.gz: 68035a577e5fb2e00a2893f56333bc47478a7367d212c81895586627477f664dec431e247a2f86ca93d270b031757299b568b5bf9bc9014b8c9bf6fef6d7bdda
6
+ metadata.gz: 4bb73260b9649c74c5e69c86f65e3391d3f150c0ceb88278ae78d4215bdf7612befa9c75513d3f2cdca6d8f130786ff9b845832609a2afb7f22ab7f3d953b382
7
+ data.tar.gz: 90d57c1f8328ea36584dfa66eebc4f60a563a1773069573a089931025315aa9cbd524301f2ff160f5e375f8617f77a26a9a44c69d9b5f60aaddca0b93da8551e
@@ -1,3 +1,7 @@
1
1
  Yodeler.configure do |config|
2
- #config.noop_event_type.all_the_settings_that_are_normally_exposed_via_dsl
2
+ # Override the default states
3
+ # config.default_states = {
4
+ # unread: 0,
5
+ # read: 1
6
+ # }
3
7
  end
@@ -2,5 +2,11 @@ module Yodeler
2
2
  class Configuration
3
3
  include ActiveSupport::Configurable
4
4
  config_accessor(:test) { false }
5
+ config_accessor(:default_states){
6
+ {
7
+ unread: 0,
8
+ read: 1
9
+ }
10
+ }
5
11
  end
6
12
  end
@@ -6,7 +6,7 @@ module Yodeler
6
6
  class Configuration
7
7
  include ActiveSupport::Configurable
8
8
  config_accessor(:states) do
9
- { unread: 0, read: 1 }
9
+ Yodeler.configuration.default_states
10
10
  end
11
11
  end
12
12
 
@@ -42,12 +42,13 @@ module Yodeler
42
42
  current_event = current_event_type.events.create(params)
43
43
 
44
44
  current_event_type.subscriptions.each do |subscriber|
45
-
45
+ subscriber.notifications.create({
46
+ yodeler_event_id: current_event.id
47
+ })
46
48
  end
47
49
 
48
50
  current_event
49
51
  end
50
-
51
52
  end
52
53
  end
53
54
  end
@@ -1,3 +1,3 @@
1
1
  module Yodeler
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yodeler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cory O'Daniel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-11 00:00:00.000000000 Z
11
+ date: 2014-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails