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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f90f13c765d9e82798e29c0b666cdfc262247f6e8474885c139a42128a699d90
4
- data.tar.gz: 934f72c3603014791308806978a8661c37039254df38d69a28d479054ca2627e
3
+ metadata.gz: 10b19f81b81ae5471493e73857b55fbb1086545cca11f58cd40935597a39b5a1
4
+ data.tar.gz: 6a3e5502295f8152f0d05b4150a7c272ec48595adb986c81112aea3d09fce891
5
5
  SHA512:
6
- metadata.gz: 1badd4cb7730915ac19c39ee1fc41f32cb979282a38de3e31f7c0e397ae082acfc25338189bb3bf5e5b027e73e2a927ed5b96220f06e68fba318cad3807f5704
7
- data.tar.gz: c428a3dc1e225a4aa86d22e31835b595099eca193a8693dda8babfa0422cb5064f1b0efea1a8f4e9144749d63801841359dd99426ad27601210c7ffd5f63d985
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.silent
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
- mail = mailer.with(params).public_send(email, *args)
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
 
@@ -1,3 +1,3 @@
1
1
  module Noticed
2
- VERSION = "2.9.2"
2
+ VERSION = "3.0.0"
3
3
  end
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: 2.9.2
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: 3.7.2
105
+ rubygems_version: 4.0.3
106
106
  specification_version: 4
107
107
  summary: Notifications for Ruby on Rails applications
108
108
  test_files: []