paranoia 2.4.3 → 3.0.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 +4 -4
- data/.github/workflows/build.yml +40 -0
- data/CHANGELOG.md +93 -0
- data/Gemfile +9 -7
- data/README.md +41 -2
- data/lib/paranoia/rspec.rb +20 -17
- data/lib/paranoia/version.rb +1 -1
- data/lib/paranoia.rb +145 -46
- data/paranoia.gemspec +9 -4
- metadata +10 -14
- data/.travis.yml +0 -45
- data/test/paranoia_test.rb +0 -1388
data/paranoia.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.license = 'MIT'
|
12
12
|
s.summary = "Paranoia is a re-implementation of acts_as_paranoid for Rails 3, 4, and 5, using much, much, much less code."
|
13
13
|
s.description = <<-DSC
|
14
|
-
Paranoia is a re-implementation of acts_as_paranoid for Rails
|
14
|
+
Paranoia is a re-implementation of acts_as_paranoid for Rails 5, 6, and 7,
|
15
15
|
using much, much, much less code. You would use either plugin / gem if you
|
16
16
|
wished that when you called destroy on an Active Record object that it
|
17
17
|
didn't actually destroy it, but just "hid" the record. Paranoia does this
|
@@ -22,14 +22,19 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
s.required_rubygems_version = ">= 1.3.6"
|
24
24
|
|
25
|
-
s.required_ruby_version = '>= 2.
|
25
|
+
s.required_ruby_version = '>= 2.7'
|
26
26
|
|
27
|
-
s.add_dependency 'activerecord', '>=
|
27
|
+
s.add_dependency 'activerecord', '>= 6', '< 8.1'
|
28
28
|
|
29
29
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
30
30
|
s.add_development_dependency "rake"
|
31
31
|
|
32
|
-
|
32
|
+
|
33
|
+
s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
34
|
+
files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)}) }
|
35
|
+
files
|
36
|
+
end
|
37
|
+
|
33
38
|
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
|
34
39
|
s.require_path = 'lib'
|
35
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paranoia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- radarlistener@gmail.com
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-19 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activerecord
|
@@ -16,20 +15,20 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
18
|
+
version: '6'
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
21
|
+
version: '8.1'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
24
|
version_requirements: !ruby/object:Gem::Requirement
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
28
|
+
version: '6'
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
31
|
+
version: '8.1'
|
33
32
|
- !ruby/object:Gem::Dependency
|
34
33
|
name: bundler
|
35
34
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +58,7 @@ dependencies:
|
|
59
58
|
- !ruby/object:Gem::Version
|
60
59
|
version: '0'
|
61
60
|
description: |2
|
62
|
-
Paranoia is a re-implementation of acts_as_paranoid for Rails
|
61
|
+
Paranoia is a re-implementation of acts_as_paranoid for Rails 5, 6, and 7,
|
63
62
|
using much, much, much less code. You would use either plugin / gem if you
|
64
63
|
wished that when you called destroy on an Active Record object that it
|
65
64
|
didn't actually destroy it, but just "hid" the record. Paranoia does this
|
@@ -73,8 +72,8 @@ executables: []
|
|
73
72
|
extensions: []
|
74
73
|
extra_rdoc_files: []
|
75
74
|
files:
|
75
|
+
- ".github/workflows/build.yml"
|
76
76
|
- ".gitignore"
|
77
|
-
- ".travis.yml"
|
78
77
|
- CHANGELOG.md
|
79
78
|
- CODE_OF_CONDUCT.md
|
80
79
|
- CONTRIBUTING.md
|
@@ -87,12 +86,10 @@ files:
|
|
87
86
|
- lib/paranoia/rspec.rb
|
88
87
|
- lib/paranoia/version.rb
|
89
88
|
- paranoia.gemspec
|
90
|
-
- test/paranoia_test.rb
|
91
89
|
homepage: https://github.com/rubysherpas/paranoia
|
92
90
|
licenses:
|
93
91
|
- MIT
|
94
92
|
metadata: {}
|
95
|
-
post_install_message:
|
96
93
|
rdoc_options: []
|
97
94
|
require_paths:
|
98
95
|
- lib
|
@@ -100,15 +97,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
97
|
requirements:
|
101
98
|
- - ">="
|
102
99
|
- !ruby/object:Gem::Version
|
103
|
-
version: '2.
|
100
|
+
version: '2.7'
|
104
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
102
|
requirements:
|
106
103
|
- - ">="
|
107
104
|
- !ruby/object:Gem::Version
|
108
105
|
version: 1.3.6
|
109
106
|
requirements: []
|
110
|
-
rubygems_version: 3.
|
111
|
-
signing_key:
|
107
|
+
rubygems_version: 3.6.2
|
112
108
|
specification_version: 4
|
113
109
|
summary: Paranoia is a re-implementation of acts_as_paranoid for Rails 3, 4, and 5,
|
114
110
|
using much, much, much less code.
|
data/.travis.yml
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
before_install:
|
4
|
-
- gem query -I -n "^bundler$" -v ">=2" || gem uninstall -x bundler -v ">=2" || rvm @global do gem uninstall -x bundler -v ">=2"
|
5
|
-
- gem query -i -n "^bundler$" -v "<2" || gem install bundler -v "<2"
|
6
|
-
cache: bundler
|
7
|
-
rvm:
|
8
|
-
- 2.3.8
|
9
|
-
- 2.4.5
|
10
|
-
- 2.5.3
|
11
|
-
- 2.6.3
|
12
|
-
- jruby-9.2.8.0
|
13
|
-
|
14
|
-
env:
|
15
|
-
matrix:
|
16
|
-
- RAILS='~> 4.2.0' SQLITE_VERSION='~> 1.3.6'
|
17
|
-
- RAILS='~> 5.0.0' SQLITE_VERSION='~> 1.3.6'
|
18
|
-
- RAILS='~> 5.1.0'
|
19
|
-
- RAILS='~> 5.2.0'
|
20
|
-
- RAILS='~> 6.1.0'
|
21
|
-
- RAILS='master'
|
22
|
-
|
23
|
-
matrix:
|
24
|
-
allow_failures:
|
25
|
-
- env: RAILS='~> 4.2.0' SQLITE_VERSION='~> 1.3.6'
|
26
|
-
rvm: jruby-9.2.8.0
|
27
|
-
- env: RAILS='~> 5.0.0' SQLITE_VERSION='~> 1.3.6'
|
28
|
-
rvm: jruby-9.2.8.0
|
29
|
-
- env: RAILS='~> 5.1.0'
|
30
|
-
rvm: jruby-9.2.8.0
|
31
|
-
- env: RAILS='~> 5.2.0'
|
32
|
-
rvm: jruby-9.2.8.0
|
33
|
-
- env: RAILS='master'
|
34
|
-
rvm: jruby-9.2.8.0
|
35
|
-
- env: RAILS='~> 6.1.0'
|
36
|
-
rvm: jruby-9.2.8.0
|
37
|
-
exclude:
|
38
|
-
- rvm: 2.3.8
|
39
|
-
env: RAILS='master'
|
40
|
-
- rvm: 2.4.5
|
41
|
-
env: RAILS='master'
|
42
|
-
- rvm: 2.3.8
|
43
|
-
env: RAILS='~> 6.1.0'
|
44
|
-
- rvm: 2.4.5
|
45
|
-
env: RAILS='~> 6.1.0'
|