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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 425bb33e77f7b1321f9df9f3dd7f0cfc59804f3bfbd3e156b19f25f464a2a640
4
- data.tar.gz: fa9dd36fd58bb92a5f751d015ded197823bb5cd7481d0a662f8da9e6b40498f6
3
+ metadata.gz: e5df3b3bcfd3d08ee0b58a80025ead697fceaac22af37199c400832620644103
4
+ data.tar.gz: 824b553df5c6978d4fb9058be35b076623472bc284869f2bbc3f0e8637f62907
5
5
  SHA512:
6
- metadata.gz: f06b405186be419fffbfc69af22cb287406714e480e072aa227fe8a5ff12d3fc451c45f8ff0aa1e653f74a6b3d32f6d0396ea8439e3aeb4212df0ead0e855317
7
- data.tar.gz: 9980a92f754834eca0e6bdf408bfcd794860c653c6f9335655e3015fc940336e341100c9031087ead98cf4ba9ffe72effb1702ec8991537a586b41be21da28b9
6
+ metadata.gz: 52e8589031c3919f9f83a8e694c19388771344d59a9e9cf68aefae83772ff08c25a01880e17da5221f0a58a5b76b53187adadae579b81981dc7142e2a8a39690
7
+ data.tar.gz: 45108ea49a1965f7e169e47207f8f68daa230d66f0160e7b773afe7688708ee92eb06acd33ba245b8396e3360dd5f0c1a7a59bd316008fcbbb3f101419c5b4ac
@@ -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
@@ -38,7 +38,7 @@ module Notifiable
38
38
  @logger ||= Logger.new(STDOUT)
39
39
  end
40
40
  end
41
-
41
+
42
42
  def flush; end
43
43
 
44
44
  def processed(device_token, status = NotificationStatus::SENT_STATUS, error_code = nil, error_message = nil)
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
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.0
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-09-04 00:00:00.000000000 Z
11
+ date: 2018-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord