noticed 2.8.0 → 2.8.1

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: dec070db3dc9527a542e8f4cb57edc6dd61397c8cb870dd3efbb4dccd905b410
4
- data.tar.gz: 9ca50907997ea442ff27c305d679aa7ed4e02d80658938bc7f5b75e4888ce95d
3
+ metadata.gz: afd30437fc53aab8cee21f63530ce41e5b349037b517679a3d0fae3e2c315c3e
4
+ data.tar.gz: 701eba3612bdddace5ec6421c16fe66290a6f591cfa91258c6bd2397c95a56e5
5
5
  SHA512:
6
- metadata.gz: 9539c8bc4303864682d8270eebb39b0e1e79b0db7e50b8674e0cdae9c5bb1ec59b5ae556309162e91c74e678bcfb37369414edbeeaebb081a1822395de79e561
7
- data.tar.gz: 67190713e1fefee0a28458659e04dd5a4d3984b620e7ccb080e1e6e5dc6d49ec06b63d6c74ae8ab1a6b4dda99e1a2dc4bfb43a0495b9271015e45762c378ad21
6
+ metadata.gz: 0e44bf6d5ac832e7307314f5598ecf75abeafbc9049324361c8b57e12e565e9b096c49c02487c3bc1e50a2016a8c07e83239b79bff73af7a4e36870632c03455
7
+ data.tar.gz: 0afb4e395bd954663fd191b136456e5d79debb9af7595a6391a20930456d2760f9db274a8b0845713bb330ada1e7e0298905b07b8f379def4dcf6a2c2b671996
data/README.md CHANGED
@@ -4,9 +4,6 @@
4
4
 
5
5
  [![Build Status](https://github.com/excid3/noticed/workflows/Tests/badge.svg)](https://github.com/excid3/noticed/actions) [![Gem Version](https://badge.fury.io/rb/noticed.svg)](https://badge.fury.io/rb/noticed)
6
6
 
7
- > [!IMPORTANT]
8
- > **⚠️ Upgrading from V1? Read the [Upgrade Guide](https://github.com/excid3/noticed/blob/main/UPGRADE.md)!**
9
-
10
7
  Noticed is a gem that allows your application to send notifications of varying types, over various mediums, to various recipients. Be it a Slack notification to your own team when some internal event occurs or a notification to your user, sent as a text message, email, and real-time UI element in the browser, Noticed supports all of the above (at the same time)!
11
8
 
12
9
  Noticed implements two top-level types of delivery methods:
@@ -5,8 +5,8 @@ class BulkDeliveryMethods::<%= class_name %> < ApplicationBulkDeliveryMethod
5
5
  # bulk_deliver_by :<%= file_path %>, class: "<%= class_name %>"
6
6
  # end
7
7
 
8
- # Specify the config options your delivery method requires in its config block
9
- required_options # :foo, :bar
8
+ # Specify required options for the deliver_by config block
9
+ # required_options :foo, :bar
10
10
 
11
11
  def deliver
12
12
  # Logic for sending the notification
@@ -5,8 +5,8 @@ class DeliveryMethods::<%= class_name %> < ApplicationDeliveryMethod
5
5
  # deliver_by :<%= file_path %>, class: "<%= class_name %>"
6
6
  # end
7
7
 
8
- # Specify the config options your delivery method requires in its config block
9
- required_options # :foo, :bar
8
+ # Specify required options for the deliver_by config block
9
+ # required_options :foo, :bar
10
10
 
11
11
  def deliver
12
12
  # Logic for sending the notification
data/lib/noticed/coder.rb CHANGED
@@ -11,7 +11,11 @@ module Noticed
11
11
 
12
12
  def self.dump(data)
13
13
  return if data.nil?
14
- ActiveJob::Arguments.send(:serialize_argument, data)
14
+ if Rails.gem_version >= Gem::Version.new("8.1.0.beta1")
15
+ ActiveJob::Arguments.serialize(data)
16
+ else
17
+ ActiveJob::Arguments.send(:serialize_argument, data)
18
+ end
15
19
  end
16
20
  end
17
21
  end
@@ -1,3 +1,3 @@
1
1
  module Noticed
2
- VERSION = "2.8.0"
2
+ VERSION = "2.8.1"
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.8.0
4
+ version: 2.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubygems_version: 3.7.0
104
+ rubygems_version: 3.6.9
105
105
  specification_version: 4
106
106
  summary: Notifications for Ruby on Rails applications
107
107
  test_files: []