activity_notification 2.3.0 → 2.3.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: f3601a2256b7e6c6d029c5eaa66474a1786e590e09e461a01b25359a53a62fff
4
- data.tar.gz: 1531fc01a13f15e74cecf7466b2cbfa365c70172fe5c25659f138ce01d0cf537
3
+ metadata.gz: 8a2728ee85f5c8cb39d25c2ea3a600a3a7f2e6b9d0f7ba47ca0003543971a1a6
4
+ data.tar.gz: 5a6cd5ee3ae4fdb8755b9150267cf95ffdbce31161bb4520a2e0ab38f43dc1e0
5
5
  SHA512:
6
- metadata.gz: aaaad2eda74f02ad52c3cfc7ad34c3b1ecd43367ae6431d64dac8c13461c8764917db6a3a64a2059e3a2ce0ab5e2400e6ec7f7662cbbde4d41521077aae4aa89
7
- data.tar.gz: eaded5b0d4c439e618c70a57e9ec6d868917819006c32923dde11c419a86d082d2ba7c2183037d094a59ff60dc1a9fdad97514aaf44337ae22130bfc1f8a43d1
6
+ metadata.gz: d4c65d449669e383d09b32405b64e71b07db574da6be60f110f1ba7d23b53f75ed755d88780c570ba608200dc55c8b773b162123e077f48acb843bb52547a705
7
+ data.tar.gz: c0200e5c40ce6c324a2f47beb243f47cf0dcb16c223484b14551cb49d29aceff22e9cfa276b66f8db3fe965c6d72174e2b479664b20b36fab13593a30f18f929
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 2.3.1 / 2024-07-23
2
+ [Full Changelog](http://github.com/simukappu/activity_notification/compare/v2.3.0...v2.3.1)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix serialize arguments for Rails 7.1 - [#178](https://github.com/simukappu/activity_notification/issues/178) [#179](https://github.com/simukappu/activity_notification/pull/179)
7
+
1
8
  ## 2.3.0 / 2024-06-02
2
9
  [Full Changelog](http://github.com/simukappu/activity_notification/compare/v2.2.4...v2.3.0)
3
10
 
data/Rakefile CHANGED
@@ -24,5 +24,5 @@ end
24
24
 
25
25
  Bundler::GemHelper.install_tasks
26
26
 
27
- #require File.expand_path('../spec/rails_app/config/application', __FILE__)
28
- #Rails.application.load_tasks
27
+ require File.expand_path('../spec/rails_app/config/application', __FILE__)
28
+ Rails.application.load_tasks
@@ -45,7 +45,13 @@ module ActivityNotification
45
45
  belongs_to :notifier, polymorphic: true, optional: true
46
46
 
47
47
  # Serialize parameters Hash
48
- serialize :parameters, Hash
48
+ # :nocov:
49
+ if Rails.gem_version >= Gem::Version.new('7.1')
50
+ serialize :parameters, type: Hash, coder: YAML
51
+ else
52
+ serialize :parameters, Hash
53
+ end
54
+ # :nocov:
49
55
 
50
56
  validates :target, presence: true
51
57
  validates :notifiable, presence: true
@@ -14,7 +14,13 @@ module ActivityNotification
14
14
  belongs_to :target, polymorphic: true
15
15
 
16
16
  # Serialize parameters Hash
17
- serialize :optional_targets, Hash
17
+ # :nocov:
18
+ if Rails.gem_version >= Gem::Version.new('7.1')
19
+ serialize :optional_targets, type: Hash, coder: YAML
20
+ else
21
+ serialize :optional_targets, Hash
22
+ end
23
+ # :nocov:
18
24
 
19
25
  validates :target, presence: true
20
26
  validates :key, presence: true, uniqueness: { scope: :target }
@@ -1,3 +1,3 @@
1
1
  module ActivityNotification
2
- VERSION = "2.3.0"
2
+ VERSION = "2.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activity_notification
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Yamazaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2024-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties