paranoia_uniqueness_validator 3.4.0 → 3.5.0

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: 24b40b3583d12102adc5d8219dd4f06e68249aeccc664e47e6ce3709946b17ad
4
- data.tar.gz: 360f028d6f25aec3d413b33131b5597cc59f0c81d4bd00a1f234cb49a27fec6d
3
+ metadata.gz: 87c8aa774c4ab10d1a2366105991a9951dfa5ac3114e9ea6f710810ee40107b9
4
+ data.tar.gz: 462fa5766b5bc5e7b9c10e4641e6dd323103a393d2b56ad28ebd2f0b5eb38b45
5
5
  SHA512:
6
- metadata.gz: f4800580592d9914cc720033db5690634e66237f8e7a32dd68a2b08feac8e3a4bd6558da2b51b3f8bd8acc9094256d08befca3b3fca182daadce26ba05da11a9
7
- data.tar.gz: dd5f9742b7fb78863f9a6ffb8ec135f7c52fa4224be6443c45fb13952b27f55700e93889ff5d69d8dc26d9db2170410bc94a999f7baf1cd4c0f7873316f8a706
6
+ metadata.gz: 967a7a93f12255b86a2f6210bf07287b92d6237b0f73d282514b893f70d51f34b37d241b1e28a7b46478b837137e207099e7cdb0d109de574138b562d98b849f
7
+ data.tar.gz: bb5e7c4ae01774c281ec4b9786b257622c2e3ad93a1132440e01763b60490844a9b22324d15d10e4671dd139a2b112546a8e7b1a7669d4d2a5e71017582a49c1
@@ -3,84 +3,39 @@ name: ci
3
3
  on: [push, pull_request]
4
4
 
5
5
  jobs:
6
- test:
7
- if: github.actor != 'dependabot[bot]' && github.event_name == 'push' ||
8
- github.event_name == 'pull_request'
9
-
10
- strategy:
11
- matrix:
12
- rails: ['5.2', '6.0', '6.1', '7.0', 'master']
13
-
14
- ruby: ['2.6', '2.7', '3.0', '3.1']
15
-
16
- exclude:
17
- - rails: master
18
-
19
- ruby: '2.6'
20
-
21
- - rails: '7.0'
22
-
23
- ruby: '2.6'
24
-
25
- - rails: '7.0'
26
-
27
- ruby: '3.1'
28
-
29
- - rails: '6.0'
30
-
31
- ruby: '3.0'
32
-
33
- - rails: '6.0'
34
-
35
- ruby: '3.1'
36
-
37
- - rails: '5.2'
38
-
39
- ruby: '2.7'
40
-
41
- - rails: '5.2'
42
-
43
- ruby: '3.0'
44
-
45
- - rails: '5.2'
46
-
47
- ruby: '3.1'
48
-
49
- runs-on: ubuntu-latest
50
-
51
- steps:
52
- - uses: actions/checkout@v2
53
-
54
- - uses: ruby/setup-ruby@v1
55
-
56
- with:
57
- ruby-version: ${{ matrix.ruby }}
58
-
59
- - name: Install toolchain
60
-
61
- run: |
62
- sudo apt-get update
63
-
64
- sudo apt-get install \
65
- build-essential \
66
- libsqlite3-dev
67
-
68
- - name: Install bundler
69
-
70
- run: gem install bundler
71
-
72
- - env:
73
- RAILS_VERSION: ${{ matrix.rails }}
74
-
75
- name: Install dependencies
76
-
77
- run: bundle install
78
-
79
- - env:
80
- RAILS_VERSION: ${{ matrix.rails }}
81
-
82
- name: Test
83
-
84
- run: bundle exec rspec
85
-
86
-
6
+ test:
7
+ if: github.actor != 'dependabot[bot]' && github.event_name == 'push' ||
8
+ github.event_name == 'pull_request'
9
+
10
+ strategy:
11
+ matrix:
12
+ rails: ["6.1", "7.0", "7.1", "master"]
13
+ ruby: ["3.0", "3.1", "3.2"]
14
+
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: ruby/setup-ruby@v1
20
+ with:
21
+ ruby-version: ${{ matrix.ruby }}
22
+
23
+ - name: Install toolchain
24
+ run: |
25
+ sudo apt-get update
26
+ sudo apt-get install \
27
+ build-essential \
28
+ libsqlite3-dev
29
+
30
+ - name: Install bundler
31
+ run: gem install bundler
32
+
33
+ - env:
34
+ RAILS_VERSION: ${{ matrix.rails }}
35
+ name: Install dependencies
36
+ run: bundle install
37
+
38
+ - env:
39
+ RAILS_VERSION: ${{ matrix.rails }}
40
+ name: Test
41
+ run: bundle exec rspec
data/Gemfile CHANGED
@@ -10,7 +10,7 @@ rails =
10
10
  when 'master'
11
11
  { github: 'rails/rails' }
12
12
  when 'default'
13
- '>= 7.0'
13
+ '>= 7.1'
14
14
  else
15
15
  "~> #{rails_version}"
16
16
  end
data/README.md CHANGED
@@ -13,24 +13,15 @@ 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 3
17
- gem 'paranoia_uniqueness_validator', '0.1.0'
18
-
19
- # Rails 4
20
- gem 'paranoia_uniqueness_validator', '1.1.0'
21
-
22
- # Rails 5.0
23
- gem 'paranoia_uniqueness_validator', '2.0.0'
24
-
25
- # Rails 5.1
26
- gem 'paranoia_uniqueness_validator', '3.1.0'
27
-
28
- # Rails 6
16
+ # Rails 6.1
29
17
  gem 'paranoia_uniqueness_validator', '3.3.0'
30
18
 
31
19
  # Rails 7
32
20
  gem 'paranoia_uniqueness_validator', '3.4.0'
33
21
 
22
+ # Rails 7.1
23
+ gem 'paranoia_uniqueness_validator', '3.5.0'
24
+
34
25
  And then execute:
35
26
 
36
27
  $ bundle
@@ -1,3 +1,3 @@
1
1
  module ParanoiaUniquenessValidator
2
- VERSION = "3.4.0"
2
+ VERSION = "3.5.0"
3
3
  end
@@ -1,26 +1,25 @@
1
- # -*- encoding: utf-8 -*-
2
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'paranoia_uniqueness_validator/version'
5
4
 
6
5
  Gem::Specification.new do |gem|
7
- gem.name = "paranoia_uniqueness_validator"
6
+ gem.name = 'paranoia_uniqueness_validator'
8
7
  gem.version = ParanoiaUniquenessValidator::VERSION
9
8
  gem.licenses = ['MIT']
10
- gem.authors = ["Anthony Smith"]
11
- gem.email = ["anthony@sticksnleaves.com"]
12
- gem.description = %q{Adds the validates_uniqueness_without_deleted validator to ignore deleted fields when validating for uniqueness.}
13
- gem.summary = %q{Validate unique fields without letting those pesky deleted records get in the way. Great for use with Paranoia.}
14
- gem.homepage = "https://github.com/anthonator/paranoia_uniqueness_validator"
9
+ gem.authors = ['Anthony Smith']
10
+ gem.email = ['anthony@sticksnleaves.com']
11
+ gem.description = 'Adds the validates_uniqueness_without_deleted validator to ignore deleted fields when validating for uniqueness.'
12
+ gem.summary = 'Validate unique fields without letting those pesky deleted records get in the way. Great for use with Paranoia.'
13
+ gem.homepage = 'https://github.com/anthonator/paranoia_uniqueness_validator'
15
14
 
16
15
  gem.files = `git ls-files`.split($/)
17
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16
+ gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
18
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
- gem.require_paths = ["lib"]
18
+ gem.require_paths = ['lib']
20
19
 
21
- gem.add_dependency "activerecord", ">= 5.2.0", "< 7.1"
20
+ gem.add_dependency 'activerecord', '>= 6.1', '< 7.2'
22
21
 
23
- gem.add_development_dependency "paranoia", "~> 2.3"
24
- gem.add_development_dependency "database_cleaner", "~> 2.0"
25
- gem.add_development_dependency "rspec-rails", "~> 5.0"
22
+ gem.add_development_dependency 'database_cleaner', '~> 2.0'
23
+ gem.add_development_dependency 'paranoia', '~> 2.3'
24
+ gem.add_development_dependency 'rspec-rails', '~> 6.1'
26
25
  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.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-03 00:00:00.000000000 Z
11
+ date: 2023-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,62 +16,62 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.0
19
+ version: '6.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.1'
22
+ version: '7.2'
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: 5.2.0
29
+ version: '6.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.1'
32
+ version: '7.2'
33
33
  - !ruby/object:Gem::Dependency
34
- name: paranoia
34
+ name: database_cleaner
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '2.3'
39
+ version: '2.0'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '2.3'
46
+ version: '2.0'
47
47
  - !ruby/object:Gem::Dependency
48
- name: database_cleaner
48
+ name: paranoia
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '2.0'
53
+ version: '2.3'
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: '2.0'
60
+ version: '2.3'
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: '5.0'
67
+ version: '6.1'
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: '5.0'
74
+ version: '6.1'
75
75
  description: Adds the validates_uniqueness_without_deleted validator to ignore deleted
76
76
  fields when validating for uniqueness.
77
77
  email:
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.3.3
185
+ rubygems_version: 3.4.10
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: Validate unique fields without letting those pesky deleted records get in