paranoia_uniqueness_validator 3.1.0 → 3.2.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: ad677703e42c01ec0721669a8c403f712119253e474584bea1d0d44f351702c9
4
- data.tar.gz: 0f0ffc054f4c45bfbbf222035d554317d159e9a159c05dee50d609ee8000b9da
3
+ metadata.gz: 4a28f0b052d8e703eccfa0f22c60566647878dda250aa6d0c56aedd7b610e2a9
4
+ data.tar.gz: 0c63b2985d1300bace4dffbfcc7c04b6146e0b22186a81e4739e4f019f35ad1a
5
5
  SHA512:
6
- metadata.gz: efa2e10bf1ff3f168c750293828a1d0ecee68bece17fd7b09d9d59e2bf3496cab9bf88dda5ad1f4ff924c60e4e8a8cdf0c2fc02d9eed4ff6ba5a395e2c5832d0
7
- data.tar.gz: 2c20e3b4d98a007e49983faa935b5f53a0aea9f671e778931ab1bc9c31bfbdd9c9f7e6969d208d41866fe68d1d4a29785ebe9983baf64fb813597671cec501c2
6
+ metadata.gz: 71a7443ae53ff9c3c0861945048fb9a23200b3764be3a9f8eac17cc5d40c0660191078d9fb76e3184aef017439f7da95f575d82dab4656725df7e725e2572214
7
+ data.tar.gz: 46071a5e3a2e41cdaded67c1765203549e5d712b98ae2383cf8b767a676e5959fbce6247c1edb023032c3a1b932635312a6ac7391e4ef7c4a6ef7c51709d2eb3
@@ -0,0 +1,38 @@
1
+ name: ci
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ test:
7
+ strategy:
8
+ matrix:
9
+ rails: ['6.0', '5.2']
10
+ ruby: ['2.5', '2.6', '2.7']
11
+
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+
17
+ - uses: actions/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby }}
20
+
21
+ - name: Install native toolchain
22
+ run: |
23
+ sudo apt-get update
24
+
25
+ sudo apt-get install build-essential libsqlite3-dev
26
+
27
+ - name: Run gem install bundler
28
+ run: gem install bundler
29
+
30
+ - name: Run bundle install
31
+ env:
32
+ RAILS_VERSION: ${{ matrix.rails }}
33
+ run: bundle install
34
+
35
+ - name: Run bundle exec rspec
36
+ env:
37
+ RAILS_VERSION: ${{ matrix.rails }}
38
+ run: bundle exec rspec
data/Gemfile CHANGED
@@ -22,6 +22,6 @@ group :development do
22
22
  gem 'coveralls', require: false
23
23
  gem 'listen'
24
24
  gem 'rake'
25
- gem "sqlite3"
26
- gem "test-unit"
25
+ gem 'sqlite3'
26
+ gem 'test-unit'
27
27
  end
data/README.md CHANGED
@@ -7,7 +7,7 @@ This validator will ignore any record that has a non-null value for the
7
7
  [Paranoia](https://github.com/radar/paranoia) gem but it can be used with any
8
8
  gem that uses the `deleted_at` field for marking records as deleted.
9
9
 
10
- [![Gem Version](https://badge.fury.io/rb/paranoia_uniqueness_validator.png)](http://badge.fury.io/rb/paranoia_uniqueness_validator) [![Build Status](https://secure.travis-ci.org/anthonator/paranoia_uniqueness_validator.png)](http://travis-ci.org/anthonator/paranoia_uniqueness_validator) [![Dependency Status](https://gemnasium.com/anthonator/paranoia_uniqueness_validator.png)](https://gemnasium.com/anthonator/paranoia_uniqueness_validator) [![Coverage Status](https://coveralls.io/repos/anthonator/paranoia_uniqueness_validator/badge.png)](https://coveralls.io/r/anthonator/paranoia_uniqueness_validator) [![Code Climate](https://codeclimate.com/github/anthonator/paranoia_uniqueness_validator.png)](https://codeclimate.com/github/anthonator/paranoia_uniqueness_validator)
10
+ [![Gem Version](https://badge.fury.io/rb/paranoia_uniqueness_validator.png)](http://badge.fury.io/rb/paranoia_uniqueness_validator) ![ci](https://github.com/anthonator/paranoia_uniqueness_validator/workflows/ci/badge.svg) [![Coverage Status](https://coveralls.io/repos/anthonator/paranoia_uniqueness_validator/badge.png)](https://coveralls.io/r/anthonator/paranoia_uniqueness_validator) [![Code Climate](https://codeclimate.com/github/anthonator/paranoia_uniqueness_validator.png)](https://codeclimate.com/github/anthonator/paranoia_uniqueness_validator)
11
11
 
12
12
  ## Installation
13
13
 
@@ -22,9 +22,12 @@ Add this line to your application's Gemfile:
22
22
  # Rails 5.0
23
23
  gem 'paranoia_uniqueness_validator', '2.0.0'
24
24
 
25
- # Rails 5.1+
25
+ # Rails 5.1
26
26
  gem 'paranoia_uniqueness_validator', '3.1.0'
27
27
 
28
+ # Rails 6
29
+ gem 'paranoia_uniqueness_validator', '3.2.0'
30
+
28
31
  And then execute:
29
32
 
30
33
  $ bundle
@@ -53,9 +56,3 @@ end
53
56
  3. Commit your changes (`git commit -am 'Add some feature'`)
54
57
  4. Push to the branch (`git push origin my-new-feature`)
55
58
  5. Create new Pull Request
56
-
57
- ## Credits
58
-
59
- `paranoia_uniqueness_validator` is maintained and funded by [Sticksnleaves](http://www.sticksnleaves.com)
60
-
61
- Thanks to all of our [contributors](https://github.com/anthonator/paranoia_uniqueness_validator/graphs/contributors)
@@ -1,3 +1,3 @@
1
1
  module ParanoiaUniquenessValidator
2
- VERSION = "3.1.0"
2
+ VERSION = "3.2.0"
3
3
  end
@@ -6,6 +6,7 @@ require 'paranoia_uniqueness_validator/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "paranoia_uniqueness_validator"
8
8
  gem.version = ParanoiaUniquenessValidator::VERSION
9
+ gem.licenses = ['MIT']
9
10
  gem.authors = ["Anthony Smith"]
10
11
  gem.email = ["anthony@sticksnleaves.com"]
11
12
  gem.description = %q{Adds the validates_uniqueness_without_deleted validator to ignore deleted fields when validating for uniqueness.}
@@ -17,7 +18,7 @@ Gem::Specification.new do |gem|
17
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
19
  gem.require_paths = ["lib"]
19
20
 
20
- gem.add_dependency "activerecord", ">= 5.1.0", "< 6.0"
21
+ gem.add_dependency "activerecord", ">= 5.1.0", "< 6.1"
21
22
 
22
23
  gem.add_development_dependency "paranoia", "~> 2.3"
23
24
  gem.add_development_dependency "database_cleaner", "~> 1.6"
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.1.0
4
+ version: 3.2.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: 2018-04-12 00:00:00.000000000 Z
11
+ date: 2020-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 5.1.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.0'
22
+ version: '6.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.1.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.0'
32
+ version: '6.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: paranoia
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -80,13 +80,12 @@ executables: []
80
80
  extensions: []
81
81
  extra_rdoc_files: []
82
82
  files:
83
+ - ".github/workflows/ci.yml"
83
84
  - ".gitignore"
84
- - ".travis.yml"
85
85
  - Gemfile
86
86
  - LICENSE.txt
87
87
  - README.md
88
88
  - Rakefile
89
- - docker-compose.yml
90
89
  - lib/paranoia_uniqueness_validator.rb
91
90
  - lib/paranoia_uniqueness_validator/validations/uniqueness_without_deleted.rb
92
91
  - lib/paranoia_uniqueness_validator/version.rb
@@ -164,7 +163,8 @@ files:
164
163
  - spec/spec_helper.rb
165
164
  - spec/validations/uniqueness_without_deleted_spec.rb
166
165
  homepage: https://github.com/anthonator/paranoia_uniqueness_validator
167
- licenses: []
166
+ licenses:
167
+ - MIT
168
168
  metadata: {}
169
169
  post_install_message:
170
170
  rdoc_options: []
@@ -181,8 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubyforge_project:
185
- rubygems_version: 2.7.4
184
+ rubygems_version: 3.0.3
186
185
  signing_key:
187
186
  specification_version: 4
188
187
  summary: Validate unique fields without letting those pesky deleted records get in
@@ -1,16 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.9
4
- - 2.3.7
5
- - 2.4.4
6
- - 2.5.1
7
- - ruby-head
8
- env:
9
- - "RAILS_VERSION=master"
10
- - "RAILS_VERSION=5.1.0"
11
- - "RAILS_VERSION=5.2.0"
12
- matrix:
13
- allow_failures:
14
- - rvm: ruby-head
15
- - env: RAILS_VERSION=master
16
- sudo: false
@@ -1,11 +0,0 @@
1
- version: '2'
2
- services:
3
- lib:
4
- command: rspec
5
- image: sticksnleaves/ruby-project:2.5
6
- volumes:
7
- - .:/usr/src/app
8
- - lib.volume:/usr/local/bundle
9
- volumes:
10
- lib.volume:
11
- driver: local