delete_recursively 1.2.1 → 1.2.3

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: b030ca2cd0433b8f6edbe713ec5e75651cfd8b17b09ce8080c0fe9867b85799d
4
- data.tar.gz: db4adfc88b256876c756cd7f216192b324c4c2a56892c57e00961d19c8121fea
3
+ metadata.gz: b93458d3c74e22041e677bb581514897883db1eb1f555104f648350ffc5a4c5b
4
+ data.tar.gz: 9c5743e374cbc39abc00bff54494c0f33ba533a35bc9198bd0eb25879ca5ce9b
5
5
  SHA512:
6
- metadata.gz: 90ec72416540144c258e6234142d9877596e3e42d17489d539b80ddaa1fe7cf80d2a5adb19269e4e3759393c83527edd994468fb220611a9a3752da4d37018c1
7
- data.tar.gz: f4f0e2432412bf80ca7275d5fe43e03317643e35d6d1bae4cf890057915c90dc57cb682066366c5fe9d51f2a1e2c086810cad9c3e65e1f55561727f4ccdaf802
6
+ metadata.gz: ab0d6a715b16823df2d9088b541f2ea3a2be88635700ef72d669ed76c8025804be8ae6bc5820ca600ffd79949a2da87723a9d66f087b40016b92b088687dccdc
7
+ data.tar.gz: 38d7ca003562d2d0cf80bb0f7d6adcf8fc0f00607e727756707ede9b712701fcfd9f6af1f18a9f10d5c2c318eb6dfae7701db89deb7a286b19a117bf3d2f5e99
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeleteRecursively
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.3'
5
5
  end
@@ -40,7 +40,7 @@ module DeleteRecursively
40
40
 
41
41
  if dest_method = destructive_method(reflection, force: force)
42
42
  record_ids ||= DependentIdFinder.call(owner_ids, reflection, assoc_class)
43
- assoc_class.send(dest_method, record_ids)
43
+ assoc_class.send(dest_method, record_ids) unless record_ids.empty?
44
44
  end
45
45
  end
46
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delete_recursively
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janosch Müller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-23 00:00:00.000000000 Z
11
+ date: 2024-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -17,9 +17,6 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.1.14
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: 8.0.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +24,6 @@ dependencies:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 4.1.14
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: 8.0.0
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: appraisal
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,20 +38,6 @@ dependencies:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
40
  version: '2.4'
47
- - !ruby/object:Gem::Dependency
48
- name: codecov
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '0.2'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '0.2'
61
41
  - !ruby/object:Gem::Dependency
62
42
  name: rails
63
43
  requirement: !ruby/object:Gem::Requirement
@@ -65,9 +45,6 @@ dependencies:
65
45
  - - ">="
66
46
  - !ruby/object:Gem::Version
67
47
  version: 4.1.14
68
- - - "<"
69
- - !ruby/object:Gem::Version
70
- version: 8.0.0
71
48
  type: :development
72
49
  prerelease: false
73
50
  version_requirements: !ruby/object:Gem::Requirement
@@ -75,9 +52,6 @@ dependencies:
75
52
  - - ">="
76
53
  - !ruby/object:Gem::Version
77
54
  version: 4.1.14
78
- - - "<"
79
- - !ruby/object:Gem::Version
80
- version: 8.0.0
81
55
  - !ruby/object:Gem::Dependency
82
56
  name: rake
83
57
  requirement: !ruby/object:Gem::Requirement
@@ -112,28 +86,42 @@ dependencies:
112
86
  requirements:
113
87
  - - "~>"
114
88
  - !ruby/object:Gem::Version
115
- version: '4.0'
89
+ version: '7.1'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '7.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov-cobertura
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.1'
116
104
  type: :development
117
105
  prerelease: false
118
106
  version_requirements: !ruby/object:Gem::Requirement
119
107
  requirements:
120
108
  - - "~>"
121
109
  - !ruby/object:Gem::Version
122
- version: '4.0'
110
+ version: '2.1'
123
111
  - !ruby/object:Gem::Dependency
124
112
  name: sqlite3
125
113
  requirement: !ruby/object:Gem::Requirement
126
114
  requirements:
127
115
  - - "~>"
128
116
  - !ruby/object:Gem::Version
129
- version: '1.4'
117
+ version: '2.1'
130
118
  type: :development
131
119
  prerelease: false
132
120
  version_requirements: !ruby/object:Gem::Requirement
133
121
  requirements:
134
122
  - - "~>"
135
123
  - !ruby/object:Gem::Version
136
- version: '1.4'
124
+ version: '2.1'
137
125
  description: Adds a new :dependent option for ActiveRecord associations that recursively
138
126
  deletes all dependent records without instantiating them.
139
127
  email: janosch84@gmail.com
@@ -166,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
154
  - !ruby/object:Gem::Version
167
155
  version: '0'
168
156
  requirements: []
169
- rubygems_version: 3.4.1
157
+ rubygems_version: 3.5.22
170
158
  signing_key:
171
159
  specification_version: 4
172
160
  summary: Delete ActiveRecords efficiently