paranoia 2.4.1 → 2.4.2

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: d25bfc4e0254aba4db5a58da8d666c68052e836bc2f315efbcd5ec2b77657b30
4
- data.tar.gz: d413ea576910faa0e4ebaff07c617c8692db837beeb24a5d5d43d0794170981f
3
+ metadata.gz: b5558705162917407085514b9cc59f7be24f1a9aa8dfdc1d58588e4a7beb975e
4
+ data.tar.gz: b6e3bf484414fd2daa322bdf9fa5479d05815d3a14a312217854578ea5f19c8e
5
5
  SHA512:
6
- metadata.gz: 354429a32eb5c97b1662456e56a5df64ff8b2c0d4ae02e57d528384eb33c17a161f5972275babfd55c279f7de54552073ae425c9a2c4b676a383ca55c83a8cfe
7
- data.tar.gz: 3f5e1914d1f200e82c8e1775bf2859e253b7aa6b434eaaf841276db9f017185f0f985ff7ef80ed53d103b1f21762419315568aa097a662946aab85db28431369
6
+ metadata.gz: 50af9f20d148fca67815e2786fd70d6d539fb0c0ae7013abdc3dfb5707b9c1993a56ad02032f1cdd983a8d90088950b564cba9f81a6295169d61fe35d9a574fc
7
+ data.tar.gz: 6f46d6a812faf1efa4e8c654289a88fdd089ddbc899a12e5432161e0460bb29fe2f0d5d5611b4b5bf69f67f41fa802af53195017d8591e7727d871078e9c8dce
@@ -4,25 +4,36 @@ before_install: gem update --system
4
4
  cache: bundler
5
5
  rvm:
6
6
  - 2.2
7
- - 2.3.5
8
- - 2.4.3
9
- - 2.5.0
7
+ - 2.3.8
8
+ - 2.4.5
9
+ - 2.5.3
10
+ - 2.6.3
10
11
  - jruby-9.1.6.0
11
12
 
12
13
  env:
13
14
  matrix:
14
- - RAILS='~> 4.2.0'
15
- - RAILS='~> 5.0.0'
15
+ - RAILS='~> 4.2.0' SQLITE_VERSION='~> 1.3.6'
16
+ - RAILS='~> 5.0.0' SQLITE_VERSION='~> 1.3.6'
16
17
  - RAILS='~> 5.1.0'
17
18
  - RAILS='~> 5.2.0'
19
+ - RAILS='master'
18
20
 
19
21
  matrix:
20
22
  allow_failures:
21
- - env: RAILS='~> 4.2.0'
23
+ - env: RAILS='~> 4.2.0' SQLITE_VERSION='~> 1.3.6'
22
24
  rvm: jruby-9.1.6.0
23
- - env: RAILS='~> 5.0.0'
25
+ - env: RAILS='~> 5.0.0' SQLITE_VERSION='~> 1.3.6'
24
26
  rvm: jruby-9.1.6.0
25
27
  - env: RAILS='~> 5.1.0'
26
28
  rvm: jruby-9.1.6.0
27
29
  - env: RAILS='~> 5.2.0'
28
30
  rvm: jruby-9.1.6.0
31
+ - env: RAILS='master'
32
+ rvm: jruby-9.1.6.0
33
+ exclude:
34
+ - rvm: 2.2
35
+ env: RAILS='master'
36
+ - rvm: 2.3.8
37
+ env: RAILS='master'
38
+ - rvm: 2.4.5
39
+ env: RAILS='master'
@@ -1,8 +1,14 @@
1
1
  # paranoia Changelog
2
2
 
3
+ ## 2.4.2
4
+
5
+ * [#470](https://github.com/rubysherpas/paranoia/pull/470) Add support for ActiveRecord 6.0
6
+
7
+ [Anton Kolodii](https://github.com/iggant), [Jared Norman](https://github.com/jarednorman)
8
+
3
9
  ## 2.4.1
4
10
 
5
- * [#435](https://github.com/rubysherpas/paranoia/pull/435) Monkeypatch activerecord relations to work with rails 6.2.0
11
+ * [#435](https://github.com/rubysherpas/paranoia/pull/435) Monkeypatch activerecord relations to work with rails 5.2.0
6
12
 
7
13
  [Bartosz Bonisławski (@bbonislawski)](https://github.com/bbonislawski)
8
14
 
data/Gemfile CHANGED
@@ -1,20 +1,30 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'sqlite3', platforms: [:ruby]
3
+ sqlite = ENV['SQLITE_VERSION']
4
+
5
+ if sqlite
6
+ gem 'sqlite3', sqlite, platforms: [:ruby]
7
+ else
8
+ gem 'sqlite3', platforms: [:ruby]
9
+ end
4
10
 
5
11
  platforms :jruby do
6
12
  gem 'activerecord-jdbcsqlite3-adapter'
7
13
  end
8
14
 
9
15
  platforms :rbx do
16
+ gem 'rubinius-developer_tools'
10
17
  gem 'rubysl', '~> 2.0'
11
18
  gem 'rubysl-test-unit'
12
- gem 'rubinius-developer_tools'
13
19
  end
14
20
 
15
21
  rails = ENV['RAILS'] || '~> 5.2.0'
16
22
 
17
- gem 'rails', rails
23
+ if rails == 'master'
24
+ gem 'rails', github: 'rails/rails'
25
+ else
26
+ gem 'rails', rails
27
+ end
18
28
 
19
29
  # Specify your gem's dependencies in paranoia.gemspec
20
30
  gemspec
@@ -1,6 +1,7 @@
1
1
  require 'active_record' unless defined? ActiveRecord
2
2
 
3
- if [ActiveRecord::VERSION::MAJOR, ActiveRecord::VERSION::MINOR] == [5, 2]
3
+ if [ActiveRecord::VERSION::MAJOR, ActiveRecord::VERSION::MINOR] == [5, 2] ||
4
+ ActiveRecord::VERSION::MAJOR > 5
4
5
  require 'paranoia/active_record_5_2'
5
6
  end
6
7
 
@@ -305,7 +306,7 @@ module ActiveRecord
305
306
  class UniquenessValidator < ActiveModel::EachValidator
306
307
  prepend UniquenessParanoiaValidator
307
308
  end
308
-
309
+
309
310
  class AssociationNotSoftDestroyedValidator < ActiveModel::EachValidator
310
311
  def validate_each(record, attribute, value)
311
312
  # if association is soft destroyed, add an error
@@ -1,3 +1,3 @@
1
1
  module Paranoia
2
- VERSION = '2.4.1'.freeze
2
+ VERSION = '2.4.2'.freeze
3
3
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
 
25
25
  s.required_ruby_version = '>= 2.0'
26
26
 
27
- s.add_dependency 'activerecord', '>= 4.0', '< 5.3'
27
+ s.add_dependency 'activerecord', '>= 4.0', '< 6.1'
28
28
 
29
29
  s.add_development_dependency "bundler", ">= 1.0.0"
30
30
  s.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paranoia
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - radarlistener@gmail.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-10 00:00:00.000000000 Z
11
+ date: 2019-04-26 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: '4.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.3'
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: '4.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.3'
32
+ version: '6.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -107,8 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  - !ruby/object:Gem::Version
108
108
  version: 1.3.6
109
109
  requirements: []
110
- rubyforge_project:
111
- rubygems_version: 2.7.6
110
+ rubygems_version: 3.0.3
112
111
  signing_key:
113
112
  specification_version: 4
114
113
  summary: Paranoia is a re-implementation of acts_as_paranoid for Rails 3, 4, and 5,