guard_against_physical_delete 2.1.1 → 2.2.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/{master_and_pr.yml → test.yml} +2 -1
- data/CHANGELOG.md +6 -0
- data/README.md +2 -0
- data/gemfiles/Gemfile_rails_5.0.rb.lock +2 -2
- data/gemfiles/Gemfile_rails_5.1.rb.lock +2 -2
- data/gemfiles/Gemfile_rails_5.2.rb.lock +2 -2
- data/gemfiles/Gemfile_rails_6.0.rb.lock +2 -2
- data/gemfiles/Gemfile_rails_6.1.rb.lock +2 -2
- data/gemfiles/Gemfile_rails_7.0.rb +5 -0
- data/gemfiles/Gemfile_rails_7.0.rb.lock +72 -0
- data/guard_against_physical_delete.gemspec +1 -1
- data/lib/guard_against_physical_delete/version.rb +1 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 652fcb3e43a6cad863c16e98d22b99128a43e2569c003c567338ecb67d27337a
|
4
|
+
data.tar.gz: d0b3ae718f26049bf882788b064dbb3c4134a5644611ac1d8832df25f416f659
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18c727e7d397efa033762a262eaa7745c16d2e7da910d545f35533c39a007f359ab3e44612e772ecc18e96b1675c011acab6a845ab7e662ff2eca09e3fca3084
|
7
|
+
data.tar.gz: ed9aa438fba468cb563a27dd3c98cb48c9b3cd0767e31182483443ecf434716eb5fc2fbcfab15ebb1c5e83475b81079d1c90642fdfcc9ec876b6fcc4ff7ee5be
|
@@ -1,4 +1,4 @@
|
|
1
|
-
name:
|
1
|
+
name: test
|
2
2
|
|
3
3
|
on:
|
4
4
|
pull_request:
|
@@ -17,6 +17,7 @@ jobs:
|
|
17
17
|
- "5.2"
|
18
18
|
- "6.0"
|
19
19
|
- "6.1"
|
20
|
+
- "7.0"
|
20
21
|
name: Test on Rails ${{ matrix.rails_version }}
|
21
22
|
env:
|
22
23
|
BUNDLE_GEMFILE: gemfiles/Gemfile_rails_${{ matrix.rails_version }}.rb
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# guard_against_physical_delete
|
2
2
|
|
3
|
+
[![test](https://github.com/cookpad/guard_against_physical_delete/actions/workflows/test.yml/badge.svg)](https://github.com/cookpad/guard_against_physical_delete/actions/workflows/test.yml)
|
4
|
+
|
3
5
|
[![Gem Version](https://badge.fury.io/rb/guard_against_physical_delete.svg)](https://rubygems.org/gems/guard_against_physical_delete)
|
4
6
|
|
5
7
|
A monkey patch for ActiveRecord to prevent physical deletion.
|
@@ -0,0 +1,72 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
guard_against_physical_delete (2.2.0)
|
5
|
+
activerecord (>= 5, < 7.1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (7.0.2.2)
|
11
|
+
activesupport (= 7.0.2.2)
|
12
|
+
activerecord (7.0.2.2)
|
13
|
+
activemodel (= 7.0.2.2)
|
14
|
+
activesupport (= 7.0.2.2)
|
15
|
+
activesupport (7.0.2.2)
|
16
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
+
i18n (>= 1.6, < 2)
|
18
|
+
minitest (>= 5.1)
|
19
|
+
tzinfo (~> 2.0)
|
20
|
+
concurrent-ruby (1.1.9)
|
21
|
+
countdownlatch (1.0.0)
|
22
|
+
database_cleaner (2.0.1)
|
23
|
+
database_cleaner-active_record (~> 2.0.0)
|
24
|
+
database_cleaner-active_record (2.0.1)
|
25
|
+
activerecord (>= 5.a)
|
26
|
+
database_cleaner-core (~> 2.0.0)
|
27
|
+
database_cleaner-core (2.0.1)
|
28
|
+
diff-lcs (1.5.0)
|
29
|
+
docile (1.4.0)
|
30
|
+
i18n (1.10.0)
|
31
|
+
concurrent-ruby (~> 1.0)
|
32
|
+
minitest (5.15.0)
|
33
|
+
rake (13.0.6)
|
34
|
+
rspec (3.11.0)
|
35
|
+
rspec-core (~> 3.11.0)
|
36
|
+
rspec-expectations (~> 3.11.0)
|
37
|
+
rspec-mocks (~> 3.11.0)
|
38
|
+
rspec-core (3.11.0)
|
39
|
+
rspec-support (~> 3.11.0)
|
40
|
+
rspec-expectations (3.11.0)
|
41
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
+
rspec-support (~> 3.11.0)
|
43
|
+
rspec-mocks (3.11.0)
|
44
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
45
|
+
rspec-support (~> 3.11.0)
|
46
|
+
rspec-support (3.11.0)
|
47
|
+
simplecov (0.21.2)
|
48
|
+
docile (~> 1.1)
|
49
|
+
simplecov-html (~> 0.11)
|
50
|
+
simplecov_json_formatter (~> 0.1)
|
51
|
+
simplecov-html (0.12.3)
|
52
|
+
simplecov_json_formatter (0.1.4)
|
53
|
+
sqlite3 (1.4.2)
|
54
|
+
tzinfo (2.0.4)
|
55
|
+
concurrent-ruby (~> 1.0)
|
56
|
+
|
57
|
+
PLATFORMS
|
58
|
+
x86_64-linux
|
59
|
+
|
60
|
+
DEPENDENCIES
|
61
|
+
activerecord (~> 7.0.0)
|
62
|
+
bundler
|
63
|
+
countdownlatch
|
64
|
+
database_cleaner
|
65
|
+
guard_against_physical_delete!
|
66
|
+
rake (~> 13)
|
67
|
+
rspec (~> 3)
|
68
|
+
simplecov
|
69
|
+
sqlite3 (~> 1.4)
|
70
|
+
|
71
|
+
BUNDLED WITH
|
72
|
+
2.3.6
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.metadata["homepage_uri"] = s.homepage
|
21
21
|
s.metadata["source_code_uri"] = s.homepage
|
22
22
|
|
23
|
-
s.add_runtime_dependency "activerecord", ">= 5", "<
|
23
|
+
s.add_runtime_dependency "activerecord", ">= 5", "< 7.1"
|
24
24
|
s.add_development_dependency "rake", "~> 13"
|
25
25
|
s.add_development_dependency "rspec", "~> 3"
|
26
26
|
s.add_development_dependency "sqlite3", "~> 1.4"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard_against_physical_delete
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MORITA shingo
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '5'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '7.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'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rake
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,7 +134,7 @@ executables: []
|
|
134
134
|
extensions: []
|
135
135
|
extra_rdoc_files: []
|
136
136
|
files:
|
137
|
-
- ".github/workflows/
|
137
|
+
- ".github/workflows/test.yml"
|
138
138
|
- ".gitignore"
|
139
139
|
- CHANGELOG.md
|
140
140
|
- License.txt
|
@@ -152,6 +152,8 @@ files:
|
|
152
152
|
- gemfiles/Gemfile_rails_6.0.rb.lock
|
153
153
|
- gemfiles/Gemfile_rails_6.1.rb
|
154
154
|
- gemfiles/Gemfile_rails_6.1.rb.lock
|
155
|
+
- gemfiles/Gemfile_rails_7.0.rb
|
156
|
+
- gemfiles/Gemfile_rails_7.0.rb.lock
|
155
157
|
- guard_against_physical_delete.gemspec
|
156
158
|
- lib/guard_against_physical_delete.rb
|
157
159
|
- lib/guard_against_physical_delete/base.rb
|
@@ -181,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
183
|
- !ruby/object:Gem::Version
|
182
184
|
version: '0'
|
183
185
|
requirements: []
|
184
|
-
rubygems_version: 3.3.
|
186
|
+
rubygems_version: 3.0.3.1
|
185
187
|
signing_key:
|
186
188
|
specification_version: 4
|
187
189
|
summary: A monkey patch for ActiveRecord to prevent physical deletion.
|