noticed 2.9.2 → 3.0.0
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/README.md +1 -0
- data/lib/noticed/delivery_methods/action_push_native.rb +1 -1
- data/lib/noticed/delivery_methods/email.rb +3 -1
- 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: 10b19f81b81ae5471493e73857b55fbb1086545cca11f58cd40935597a39b5a1
|
|
4
|
+
data.tar.gz: 6a3e5502295f8152f0d05b4150a7c272ec48595adb986c81112aea3d09fce891
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca14522f41fbbc56b6764fb818a7d283a49d94e31d1dfcddbe8042429612d6a7f41e42df53867bfc4175fd66fc7aa5079c116db3b62707b5f87ea884c5dd5a5f
|
|
7
|
+
data.tar.gz: c0b7e78c47afa9df9a642f18717aa15c9c37a1823110b05c9c6b82987f6de0791ca82437f4b7e552ced05c38274b16d90478b9af29999791c2bc66ddd29fe37b
|
data/README.md
CHANGED
|
@@ -27,6 +27,7 @@ Bulk deliveries are typically used to push notifications to other platforms wher
|
|
|
27
27
|
Delivery methods we officially support:
|
|
28
28
|
|
|
29
29
|
* [ActionCable](docs/delivery_methods/action_cable.md)
|
|
30
|
+
* [Action Push Native](docs/delivery_methods/action_push_native.md)
|
|
30
31
|
* [Apple Push Notification Service](docs/delivery_methods/ios.md)
|
|
31
32
|
* [Email](docs/delivery_methods/email.md)
|
|
32
33
|
* [Firebase Cloud Messaging](docs/delivery_methods/fcm.md) (iOS, Android, and web clients)
|
|
@@ -4,7 +4,7 @@ module Noticed
|
|
|
4
4
|
required_options :devices, :format
|
|
5
5
|
|
|
6
6
|
def deliver
|
|
7
|
-
notification = evaluate_option(:silent) ? notification_class : notification_class
|
|
7
|
+
notification = (!!evaluate_option(:silent)) ? notification_class.silent : notification_class
|
|
8
8
|
|
|
9
9
|
notification
|
|
10
10
|
.with_apple(evaluate_option(:with_apple))
|
|
@@ -7,7 +7,9 @@ module Noticed
|
|
|
7
7
|
mailer = fetch_constant(:mailer)
|
|
8
8
|
email = evaluate_option(:method)
|
|
9
9
|
args = evaluate_option(:args) || []
|
|
10
|
-
|
|
10
|
+
kwargs = evaluate_option(:kwargs) || {}
|
|
11
|
+
mail = mailer.with(params).public_send(email, *args, **kwargs)
|
|
12
|
+
|
|
11
13
|
(!!evaluate_option(:enqueue)) ? mail.deliver_later : mail.deliver_now
|
|
12
14
|
end
|
|
13
15
|
|
data/lib/noticed/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: noticed
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Oliver
|
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: '0'
|
|
104
104
|
requirements: []
|
|
105
|
-
rubygems_version:
|
|
105
|
+
rubygems_version: 4.0.3
|
|
106
106
|
specification_version: 4
|
|
107
107
|
summary: Notifications for Ruby on Rails applications
|
|
108
108
|
test_files: []
|