notifiable-core 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notifiable/app.rb +2 -2
- data/lib/notifiable/notifier_base.rb +1 -1
- data/lib/notifiable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5df3b3bcfd3d08ee0b58a80025ead697fceaac22af37199c400832620644103
|
4
|
+
data.tar.gz: 824b553df5c6978d4fb9058be35b076623472bc284869f2bbc3f0e8637f62907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52e8589031c3919f9f83a8e694c19388771344d59a9e9cf68aefae83772ff08c25a01880e17da5221f0a58a5b76b53187adadae579b81981dc7142e2a8a39690
|
7
|
+
data.tar.gz: 45108ea49a1965f7e169e47207f8f68daa230d66f0160e7b773afe7688708ee92eb06acd33ba245b8396e3360dd5f0c1a7a59bd316008fcbbb3f101419c5b4ac
|
data/lib/notifiable/app.rb
CHANGED
@@ -41,8 +41,8 @@ module Notifiable
|
|
41
41
|
next unless clazz.notifier_attributes
|
42
42
|
|
43
43
|
clazz.notifier_attributes.each do |attribute|
|
44
|
-
define_method("#{provider}_#{attribute}=") { |v| configuration[provider][attribute] = v }
|
45
|
-
define_method("#{provider}_#{attribute}") { configuration[provider][attribute] }
|
44
|
+
define_method("#{provider}_#{attribute}=") { |v| configuration[provider] ||= {}; configuration[provider][attribute] = v }
|
45
|
+
define_method("#{provider}_#{attribute}") { configuration[provider] ? configuration[provider][attribute] : nil }
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
data/lib/notifiable/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notifiable-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|