]> cat aescling's git repositories - mastodon.git/commitdiff
Bump pundit from 2.1.1 to 2.2.0 (#17543)
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sat, 19 Feb 2022 04:30:06 +0000 (13:30 +0900)
committerGitHub <noreply@github.com>
Sat, 19 Feb 2022 04:30:06 +0000 (13:30 +0900)
* Bump pundit from 2.1.1 to 2.2.0

Bumps [pundit](https://github.com/varvet/pundit) from 2.1.1 to 2.2.0.
- [Release notes](https://github.com/varvet/pundit/releases)
- [Changelog](https://github.com/varvet/pundit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/varvet/pundit/compare/v2.1.1...v2.2.0)

---
updated-dependencies:
- dependency-name: pundit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
* `include Pundit` is deprecated

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
Gemfile
Gemfile.lock
app/controllers/concerns/authorization.rb

diff --git a/Gemfile b/Gemfile
index 5ade2e8c4e4acbfef7d98df1c2e9f269520fa9e9..1a3df276e028304fa778310a6f3c0a15d52a497b 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -65,7 +65,7 @@ gem 'oj', '~> 3.13'
 gem 'ox', '~> 2.14'
 gem 'parslet'
 gem 'posix-spawn'
-gem 'pundit', '~> 2.1'
+gem 'pundit', '~> 2.2'
 gem 'premailer-rails'
 gem 'rack-attack', '~> 6.5'
 gem 'rack-cors', '~> 1.1', require: 'rack/cors'
index 37d101be53e1a1c1ab45ec8ede2f9633227b2e23..2ad52feb02588ec324f1fbbab8c2175fdd00f45c 100644 (file)
@@ -440,7 +440,7 @@ GEM
     public_suffix (4.0.6)
     puma (5.6.2)
       nio4r (~> 2.0)
-    pundit (2.1.1)
+    pundit (2.2.0)
       activesupport (>= 3.0.0)
     raabro (1.4.0)
     racc (1.6.0)
@@ -757,7 +757,7 @@ DEPENDENCIES
   pry-byebug (~> 3.9)
   pry-rails (~> 0.3)
   puma (~> 5.6)
-  pundit (~> 2.1)
+  pundit (~> 2.2)
   rack (~> 2.2.3)
   rack-attack (~> 6.5)
   rack-cors (~> 1.1)
index 95a37e379e80eef831497ab4d77ba8953bcb6720..05260cc8ba83fefd0076cac6a94d5b102066b7b7 100644 (file)
@@ -3,7 +3,7 @@
 module Authorization
   extend ActiveSupport::Concern
 
-  include Pundit
+  include Pundit::Authorization
 
   def pundit_user
     current_account