activity_notification 2.3.1 → 2.3.3

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: 8a2728ee85f5c8cb39d25c2ea3a600a3a7f2e6b9d0f7ba47ca0003543971a1a6
4
- data.tar.gz: 5a6cd5ee3ae4fdb8755b9150267cf95ffdbce31161bb4520a2e0ab38f43dc1e0
3
+ metadata.gz: f4b143bc4385bab48dd2eeeda6b89cea1a0889c87cdbd974ce135f11bc0a3505
4
+ data.tar.gz: 6a211ffab591120504daf5eed89d1999b94d77ff6c7bbadf711208a3e614530e
5
5
  SHA512:
6
- metadata.gz: d4c65d449669e383d09b32405b64e71b07db574da6be60f110f1ba7d23b53f75ed755d88780c570ba608200dc55c8b773b162123e077f48acb843bb52547a705
7
- data.tar.gz: c0200e5c40ce6c324a2f47beb243f47cf0dcb16c223484b14551cb49d29aceff22e9cfa276b66f8db3fe965c6d72174e2b479664b20b36fab13593a30f18f929
6
+ metadata.gz: 66b716613e95c2a02ea97dc795ec686581159d3227dae081cc119d70fc83bbdee41dc4a96d4569aed98c2faa6965f3bb6f1d9f782f16b7a34df7715239105439
7
+ data.tar.gz: cd710cd42cbfe6cfdb051707173e612e00b97a46006d94b6c5d7364b0599182de1d9661a2bd278c76aeb64088a5a8df9473b3e1815863c6ad6df1947557aaf22
@@ -24,6 +24,8 @@ jobs:
24
24
  - gemfiles/Gemfile.rails-6.1
25
25
  - gemfiles/Gemfile.rails-7.0
26
26
  - gemfiles/Gemfile.rails-7.1
27
+ - gemfiles/Gemfile.rails-7.2
28
+ - gemfiles/Gemfile.rails-8.0
27
29
  orm:
28
30
  - active_record
29
31
  - mongoid
@@ -43,17 +45,21 @@ jobs:
43
45
  - gemfile: gemfiles/Gemfile.rails-7.0
44
46
  ruby-version: 3.1.6
45
47
  - gemfile: gemfiles/Gemfile.rails-7.1
46
- ruby-version: 3.2.4
48
+ ruby-version: 3.2.6
49
+ - gemfile: gemfiles/Gemfile.rails-7.2
50
+ ruby-version: 3.3.6
51
+ - gemfile: gemfiles/Gemfile.rails-8.0
52
+ ruby-version: 3.3.6
47
53
  - gemfile: Gemfile
48
- ruby-version: 3.3.3
54
+ ruby-version: 3.3.6
49
55
  orm: active_record
50
56
  test-db: mysql
51
57
  - gemfile: Gemfile
52
- ruby-version: 3.3.3
58
+ ruby-version: 3.3.6
53
59
  orm: active_record
54
60
  test-db: postgresql
55
61
  - gemfile: Gemfile
56
- ruby-version: 3.3.3
62
+ ruby-version: 3.3.6
57
63
  orm: mongoid
58
64
  test-db: mongodb
59
65
  - gemfile: Gemfile
@@ -69,6 +75,10 @@ jobs:
69
75
  orm: dynamoid
70
76
  - gemfile: gemfiles/Gemfile.rails-7.1
71
77
  orm: dynamoid
78
+ - gemfile: gemfiles/Gemfile.rails-7.2
79
+ orm: dynamoid
80
+ - gemfile: gemfiles/Gemfile.rails-8.0
81
+ orm: dynamoid
72
82
 
73
83
  env:
74
84
  RAILS_ENV: test
@@ -119,3 +129,5 @@ jobs:
119
129
  - name: Run tests with RSpec
120
130
  run: bundle exec rspec
121
131
  continue-on-error: ${{ matrix.allow_failures == 'true' }}
132
+ - name: Coveralls
133
+ uses: coverallsapp/github-action@v2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 2.3.3 / 2025-01-13
2
+ [Full Changelog](http://github.com/simukappu/activity_notification/compare/v2.3.2...v2.3.3)
3
+
4
+ Enhancements:
5
+
6
+ * Allow use with Rails 8.0 - [#182](https://github.com/simukappu/activity_notification/pull/182) [#183](https://github.com/simukappu/activity_notification/issues/183)
7
+
8
+ ## 2.3.2 / 2024-09-23
9
+ [Full Changelog](http://github.com/simukappu/activity_notification/compare/v2.3.1...v2.3.2)
10
+
11
+ Enhancements:
12
+
13
+ * Allow use with Rails 7.2 - [#180](https://github.com/simukappu/activity_notification/pull/180) [#181](https://github.com/simukappu/activity_notification/issues/181)
14
+
1
15
  ## 2.3.1 / 2024-07-23
2
16
  [Full Changelog](http://github.com/simukappu/activity_notification/compare/v2.3.0...v2.3.1)
3
17
 
data/Gemfile CHANGED
@@ -2,14 +2,16 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'rails', '~> 7.1.0'
5
+ gem 'rails', '~> 8.0.0'
6
6
 
7
7
  group :production do
8
8
  gem 'sprockets-rails'
9
9
  gem 'puma'
10
10
  gem 'pg'
11
11
  gem 'devise'
12
- gem 'devise_token_auth'
12
+ # https://github.com/lynndylanhurley/devise_token_auth/pull/1639
13
+ gem 'devise_token_auth', git: 'https://github.com/lynndylanhurley/devise_token_auth.git'
14
+ gem 'sqlite3', ">= 2.1"
13
15
  end
14
16
 
15
17
  group :development do
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
  s.required_ruby_version = '>= 2.1.0'
22
22
 
23
- s.add_dependency 'railties', '>= 5.0.0', '< 7.2'
23
+ s.add_dependency 'railties', '>= 5.0.0', '< 8.1'
24
24
  s.add_dependency 'i18n', '>= 0.5.0'
25
25
  s.add_dependency 'jquery-rails', '>= 3.1.1'
26
26
  s.add_dependency 'swagger-blocks', '>= 3.0.0'
@@ -0,0 +1,23 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../'
4
+
5
+ gem 'rails', '~> 7.2.0'
6
+ gem 'sprockets-rails'
7
+
8
+ group :development do
9
+ gem 'bullet'
10
+ gem 'rack-cors'
11
+ end
12
+
13
+ group :test do
14
+ gem 'rails-controller-testing'
15
+ gem 'ammeter'
16
+ gem 'timecop'
17
+ gem 'committee'
18
+ gem 'committee-rails', '< 0.6'
19
+ # gem 'coveralls', require: false
20
+ gem 'coveralls_reborn', require: false
21
+ end
22
+
23
+ gem 'dotenv-rails', groups: [:development, :test]
@@ -0,0 +1,26 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../'
4
+
5
+ gem 'rails', '~> 8.0.0'
6
+ gem 'sprockets-rails'
7
+ # https://github.com/lynndylanhurley/devise_token_auth/pull/1639
8
+ gem 'devise_token_auth', git: 'https://github.com/lynndylanhurley/devise_token_auth.git'
9
+
10
+ group :development do
11
+ gem 'bullet'
12
+ gem 'rack-cors'
13
+ gem 'sqlite3'
14
+ end
15
+
16
+ group :test do
17
+ gem 'rails-controller-testing'
18
+ gem 'ammeter'
19
+ gem 'timecop'
20
+ gem 'committee'
21
+ gem 'committee-rails', '< 0.6'
22
+ # gem 'coveralls', require: false
23
+ gem 'coveralls_reborn', require: false
24
+ end
25
+
26
+ gem 'dotenv-rails', groups: [:development, :test]
@@ -22,6 +22,7 @@ if defined?(ActiveRecord::Base)
22
22
 
23
23
  # https://github.com/simukappu/activity_notification/issues/166
24
24
  # https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
25
+ # :nocov:
25
26
  if (Gem::Version.new("5.2.8.1") <= Rails.gem_version && Rails.gem_version < Gem::Version.new("6.0")) ||
26
27
  (Gem::Version.new("6.0.5.1") <= Rails.gem_version && Rails.gem_version < Gem::Version.new("6.1")) ||
27
28
  (Gem::Version.new("6.1.6.1") <= Rails.gem_version && Rails.gem_version < Gem::Version.new("7.0"))
@@ -39,4 +40,5 @@ if defined?(ActiveRecord::Base)
39
40
  ActiveRecord.yaml_column_permitted_classes << Symbol
40
41
  ActiveRecord.yaml_column_permitted_classes << Time
41
42
  end
43
+ # :nocov:
42
44
  end
@@ -153,7 +153,7 @@ module ActionDispatch::Routing
153
153
  if options[:with_devise].present? && options[:devise_default_routes].present?
154
154
  create_notification_routes options, resources_options
155
155
  else
156
- self.resources target, only: :none do
156
+ self.resources target, only: [] do
157
157
  create_notification_routes options, resources_options
158
158
  end
159
159
  end
@@ -348,7 +348,7 @@ module ActionDispatch::Routing
348
348
  if options[:with_devise].present? && options[:devise_default_routes].present?
349
349
  create_subscription_routes options, resources_options
350
350
  else
351
- self.resources target, only: :none do
351
+ self.resources target, only: [] do
352
352
  create_subscription_routes options, resources_options
353
353
  end
354
354
  end
@@ -1,3 +1,3 @@
1
1
  module ActivityNotification
2
- VERSION = "2.3.1"
2
+ VERSION = "2.3.3"
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.1
4
+ version: 2.3.3
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-23 00:00:00.000000000 Z
11
+ date: 2025-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 5.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.2'
22
+ version: '8.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 5.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.2'
32
+ version: '8.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: i18n
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -404,6 +404,8 @@ files:
404
404
  - gemfiles/Gemfile.rails-6.1
405
405
  - gemfiles/Gemfile.rails-7.0
406
406
  - gemfiles/Gemfile.rails-7.1
407
+ - gemfiles/Gemfile.rails-7.2
408
+ - gemfiles/Gemfile.rails-8.0
407
409
  - lib/activity_notification.rb
408
410
  - lib/activity_notification/apis/notification_api.rb
409
411
  - lib/activity_notification/apis/subscription_api.rb
@@ -696,7 +698,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
696
698
  - !ruby/object:Gem::Version
697
699
  version: '0'
698
700
  requirements: []
699
- rubygems_version: 3.4.6
701
+ rubygems_version: 3.5.22
700
702
  signing_key:
701
703
  specification_version: 4
702
704
  summary: Integrated user activity notifications for Ruby on Rails