paranoia_uniqueness_validator 3.5.0 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yaml +12 -2
- data/.gitignore +1 -0
- data/Gemfile +1 -1
- data/README.md +7 -4
- data/lib/paranoia_uniqueness_validator/version.rb +1 -1
- data/paranoia_uniqueness_validator.gemspec +4 -3
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ac792f866a89d3e4f230ac7e6de925b495f863b6527ed1e3d6a804bc33428e5
|
4
|
+
data.tar.gz: fe17a4afc461853b28564f48552f5ad95bd6b83d8830e34dab28dbb2531140b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f3746c365e217e52aa83bb2a22ea53e4b84b9afe6aad403445596d56d2933a9bfaf20320a7c536d2377f5e2d12b22b341a552438f303012e95660b088c184ea
|
7
|
+
data.tar.gz: b8b1b75997572bd0b766158bb9927cc1085330b76b6ab8c284d38a4a0281ee4880b24fb8aebe23b9a9ce9a5a84381537d4e327144b68ee8729611a0f08408acd
|
data/.github/workflows/ci.yaml
CHANGED
@@ -9,8 +9,18 @@ jobs:
|
|
9
9
|
|
10
10
|
strategy:
|
11
11
|
matrix:
|
12
|
-
rails:
|
13
|
-
|
12
|
+
rails:
|
13
|
+
- "7.0"
|
14
|
+
- "7.1"
|
15
|
+
- "7.2"
|
16
|
+
- "8.0"
|
17
|
+
ruby:
|
18
|
+
- "3.1"
|
19
|
+
- "3.2"
|
20
|
+
- "3.3"
|
21
|
+
exclude:
|
22
|
+
- rails: "8.0"
|
23
|
+
ruby: "3.1"
|
14
24
|
|
15
25
|
runs-on: ubuntu-latest
|
16
26
|
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -13,15 +13,18 @@ gem that uses the `deleted_at` field for marking records as deleted.
|
|
13
13
|
|
14
14
|
Add this line to your application's Gemfile:
|
15
15
|
|
16
|
-
# Rails
|
17
|
-
gem 'paranoia_uniqueness_validator', '3.3.0'
|
18
|
-
|
19
|
-
# Rails 7
|
16
|
+
# Rails 7.0
|
20
17
|
gem 'paranoia_uniqueness_validator', '3.4.0'
|
21
18
|
|
22
19
|
# Rails 7.1
|
23
20
|
gem 'paranoia_uniqueness_validator', '3.5.0'
|
24
21
|
|
22
|
+
# Rails 7.2
|
23
|
+
gem 'paranoia_uniqueness_validator', '3.6.0'
|
24
|
+
|
25
|
+
# Rails 8.0
|
26
|
+
gem 'paranoia_uniqueness_validator', '3.7.0'
|
27
|
+
|
25
28
|
And then execute:
|
26
29
|
|
27
30
|
$ bundle
|
@@ -16,10 +16,11 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ['lib']
|
19
|
+
gem.required_ruby_version = '>= 3.1'
|
19
20
|
|
20
|
-
gem.add_dependency 'activerecord', '>=
|
21
|
+
gem.add_dependency 'activerecord', '>= 7.0', '< 8.1'
|
21
22
|
|
22
23
|
gem.add_development_dependency 'database_cleaner', '~> 2.0'
|
23
|
-
gem.add_development_dependency 'paranoia', '~>
|
24
|
-
gem.add_development_dependency 'rspec-rails', '~>
|
24
|
+
gem.add_development_dependency 'paranoia', '~> 3.0'
|
25
|
+
gem.add_development_dependency 'rspec-rails', '~> 7.0'
|
25
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paranoia_uniqueness_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Smith
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '7.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: database_cleaner
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '3.0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '3.0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rspec-rails
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '7.0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '7.0'
|
75
75
|
description: Adds the validates_uniqueness_without_deleted validator to ignore deleted
|
76
76
|
fields when validating for uniqueness.
|
77
77
|
email:
|
@@ -167,7 +167,7 @@ homepage: https://github.com/anthonator/paranoia_uniqueness_validator
|
|
167
167
|
licenses:
|
168
168
|
- MIT
|
169
169
|
metadata: {}
|
170
|
-
post_install_message:
|
170
|
+
post_install_message:
|
171
171
|
rdoc_options: []
|
172
172
|
require_paths:
|
173
173
|
- lib
|
@@ -175,15 +175,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
175
175
|
requirements:
|
176
176
|
- - ">="
|
177
177
|
- !ruby/object:Gem::Version
|
178
|
-
version: '
|
178
|
+
version: '3.1'
|
179
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
180
|
requirements:
|
181
181
|
- - ">="
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: '0'
|
184
184
|
requirements: []
|
185
|
-
rubygems_version: 3.
|
186
|
-
signing_key:
|
185
|
+
rubygems_version: 3.0.3.1
|
186
|
+
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Validate unique fields without letting those pesky deleted records get in
|
189
189
|
the way. Great for use with Paranoia.
|