noticed 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/noticed/deliverable.rb +0 -11
- data/app/models/noticed/event.rb +11 -0
- data/lib/noticed/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: c931d83df9cb1ea75523c8bddb11f13c304f45f85786ddd9406c0b08773d32c1
|
4
|
+
data.tar.gz: b913c37077db560a3bbe510489b479e5033265dc681eb1fe54d808948a5a3aeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24eac254a38a2c643b2bcf7bfa3610ade740e06469640b606e95b2d368fd375b8702346cb1f3ab20b1fe3f3e5b56f0edfd8378965c1f4fcf156cb376a199a8d3
|
7
|
+
data.tar.gz: ea0885d7eb978563373ba88920e42481d0f5efcec63ac0ffb9844ce7bc047cb8ec7e0e0af00e5baf1b3ebe119c5012045955dd057fd14bf894b7a71d4551b8f9
|
@@ -6,17 +6,6 @@ module Noticed
|
|
6
6
|
class_attribute :bulk_delivery_methods, instance_writer: false, default: {}
|
7
7
|
class_attribute :delivery_methods, instance_writer: false, default: {}
|
8
8
|
class_attribute :required_param_names, instance_writer: false, default: []
|
9
|
-
|
10
|
-
attribute :params, default: {}
|
11
|
-
|
12
|
-
# Ephemeral notifiers cannot serialize params since they aren't ActiveRecord backed
|
13
|
-
if respond_to? :serialize
|
14
|
-
if Rails.gem_version >= Gem::Version.new("7.1.0.alpha")
|
15
|
-
serialize :params, coder: Coder
|
16
|
-
else
|
17
|
-
serialize :params, Coder
|
18
|
-
end
|
19
|
-
end
|
20
9
|
end
|
21
10
|
|
22
11
|
class_methods do
|
data/app/models/noticed/event.rb
CHANGED
@@ -11,5 +11,16 @@ module Noticed
|
|
11
11
|
accepts_nested_attributes_for :notifications
|
12
12
|
|
13
13
|
scope :newest_first, -> { order(created_at: :desc) }
|
14
|
+
|
15
|
+
attribute :params, :json, default: {}
|
16
|
+
|
17
|
+
# Ephemeral notifiers cannot serialize params since they aren't ActiveRecord backed
|
18
|
+
if respond_to? :serialize
|
19
|
+
if Rails.gem_version >= Gem::Version.new("7.1.0.alpha")
|
20
|
+
serialize :params, coder: Coder
|
21
|
+
else
|
22
|
+
serialize :params, Coder
|
23
|
+
end
|
24
|
+
end
|
14
25
|
end
|
15
26
|
end
|
data/lib/noticed/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noticed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Oliver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|