pundit_assertions 0.2.0 → 0.2.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: ecbd42aea5a12ef1a0110fca059d8dd42cbe219c9e0dfb734b8adbf433c85c2b
4
- data.tar.gz: 71387d99a57d37b1404ec0e966640567a942df7fa9d75f982e5d337fdf42ef58
3
+ metadata.gz: 6561e3562c58620263a263edcdfb21b4dce057c09644cbdc1c97caaf3e470300
4
+ data.tar.gz: 285d5ce2043f5b758902a80954bfe9a490288a2cdd1bd9d79c3ba31afa7059da
5
5
  SHA512:
6
- metadata.gz: 15a5aee469a6048e4f169d0242e3ff6efb99ab0178861517bd20209b500b2606238ee02aa38f0a4365b9377cb31c0f7895c964ea611f2fc450a928fc64e3d1d5
7
- data.tar.gz: c4eed4e2c6cd92cf809ba24f1dc55033d59872a5945f0d1f1d40daa396adc1ce93e6474c1d1d0c758b10e42e09a16f4b93d9f9b2ef4c1a6e41722eed58a2e5bb
6
+ metadata.gz: 6c14b880b1d00d26eab0bbd62ea4297bb15f13f706c3801ba696971cd645b784dcc2e880dcf5b995e8e1c417ab4f1294232427029294f7c1e330d2b3db6dd05e
7
+ data.tar.gz: bd65653928dca71280d56e1b42b3fda0d7352fdbf3144b6747c70c016545c327f0d51b749ce42fb5cb4047b712dfe83f6ea5c618e1b69b1dbf85533aec960247
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.1] - 2026-09-15
4
+ * Fixed usage of `ActiveSupport::Deprecation`
5
+ * Fixed a missing alias method `assert_scope_not_includes`
6
+
3
7
  ## [0.2.0] - 2026-09-07
4
8
  ### Breaking changes
5
9
  * `assert_permitted_attributes` has been renamed to `assert_has_permitted_attributes` for clarity. The old method name is deprecated and will be removed in a next MINOR release.
@@ -10,7 +10,7 @@ module PunditAssertions
10
10
 
11
11
  # If we are in rails, we deprecate using rails' builtins, otherwise we use ruby's Warning
12
12
  if defined?(ActiveSupport::Deprecation)
13
- ActiveSupport::Deprecation.warn(message)
13
+ ActiveSupport::Deprecation.new('0.3.0', 'PunditAssertions').warn(message)
14
14
  else
15
15
  Warning.warn message, category: :deprecated
16
16
  end
@@ -118,6 +118,7 @@ module PunditAssertions
118
118
  end
119
119
 
120
120
  alias refute_scope_includes assert_not_scope_includes
121
+ alias assert_scope_not_includes assert_not_scope_includes
121
122
 
122
123
  ##
123
124
  # Assert whether the scope for a user is empty
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PunditAssertions
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pundit_assertions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robbe Van Petegem