gossiper 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gossiper/class_resolver.rb +12 -0
- data/lib/gossiper/concerns/models/notification.rb +8 -17
- data/lib/gossiper/version.rb +1 -1
- data/lib/gossiper.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73d578f1c535eaaeb002558c0bc74a6592a8e22a
|
4
|
+
data.tar.gz: e995e9d05e66af43cb77b139800cdb6beeca455d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61111ed23a1ecc731148d0b843a539b98b1df9252f97f464bcc960daaf0e6361b9e3c7087db2e1a4ed86b3dde6489a69444ad745b1962127a16ad1564dace9c2
|
7
|
+
data.tar.gz: f1352ee94b7709766a79c986888e6d1d97faca01c30fd40da80a7045f416b412b9162b71f12a4e69fc3c1848ca55eacdf591ae9867e4a55d83f36b61ee15ac36
|
@@ -36,13 +36,7 @@ module Gossiper
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def config
|
39
|
-
|
40
|
-
klass = "Notifications::#{kind.classify}Notification"
|
41
|
-
klass.constantize.new(self)
|
42
|
-
rescue NameError
|
43
|
-
klass = Gossiper.configuration.default_notification_config_class
|
44
|
-
klass.constantize.new(self)
|
45
|
-
end
|
39
|
+
ClassResolver.new.resolve(kind).constantize.new(self)
|
46
40
|
end
|
47
41
|
|
48
42
|
def method_missing(method, *args, &block)
|
@@ -55,17 +49,14 @@ module Gossiper
|
|
55
49
|
end
|
56
50
|
|
57
51
|
protected
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
def update_delivered_at!
|
63
|
-
self.delivered_at = Time.now
|
64
|
-
save!
|
65
|
-
end
|
66
|
-
|
67
|
-
|
52
|
+
def mail
|
53
|
+
Gossiper::Mailer.mail_for(self)
|
54
|
+
end
|
68
55
|
|
56
|
+
def update_delivered_at!
|
57
|
+
self.delivered_at = Time.now
|
58
|
+
save!
|
59
|
+
end
|
69
60
|
|
70
61
|
end
|
71
62
|
end
|
data/lib/gossiper/version.rb
CHANGED
data/lib/gossiper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gossiper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcelo Jacobus
|
@@ -222,6 +222,7 @@ files:
|
|
222
222
|
- lib/gossiper/concerns/decorators/notification.rb
|
223
223
|
- lib/gossiper/concerns/models/notification.rb
|
224
224
|
- lib/gossiper/mailer.rb
|
225
|
+
- lib/gossiper/class_resolver.rb
|
225
226
|
- lib/gossiper/notification_decorator.rb
|
226
227
|
- lib/gossiper/configuration.rb
|
227
228
|
- lib/gossiper/version.rb
|