acts_as_paranoid 0.10.2 → 0.11.0

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: fc7d2cde894cf0ffb0ebf005a7566067fbc98dd480e84b9223f9a10db7600d08
4
- data.tar.gz: ac546f740e89eb1952f15664a4ce2999eb7e6b39dadf0fd78b32ce257ba4fa7e
3
+ metadata.gz: 9c187028f2ffa68d4763ebd6eb3b3153858a440a77bd570182f176f7c83b9651
4
+ data.tar.gz: 4493eb4533b2c386bdc513f86a790e6bf99b6ca86bb8cd5a6b2bdf7d54d476e3
5
5
  SHA512:
6
- metadata.gz: 70c51a44ae30c08c2576615e9e1b525429f391c7fe3de8230fc0d79c6a53bc6ec06441e9e968d95c04e99e0b623d8a6a84c40008cd43df803a2973fb6fe92a82
7
- data.tar.gz: 4676ffc62124118f4c2cc99b34d9c08b8c0ffaed07803674553fdd0326d5a38f9d5804f0d913808f3a2fe2533809ac08f9bd656552d4c7f874d6fd4e00602de1
6
+ metadata.gz: 4388ab90901a13e2da40a58b19104ef30dc0513b7ec46f417c592b37c940fe823ed6015e85284683d86135254a613c2b8f864741d77f78c06b6e975ab1282ef0
7
+ data.tar.gz: 8921b2729286beeb1939c99eb2fb77b0e87e032352fa3ba39976902fc9ad9c4ed36863773354ab1ce11727a2d71b487c4a4e689cb0a2fb24ed8751aeadcc810c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  Notable changes to this project will be documented in this file.
4
4
 
5
+ ## 0.11.0
6
+
7
+ * Support Ruby 3.1 through 3.4, dropping support for Ruby 3.0 ([#359] by [mvz])
8
+ * Support Rails 8.1 ([#368] by [fatkodima])
9
+
10
+ [#359]: https://github.com/ActsAsParanoid/acts_as_paranoid/pull/359
11
+ [#368]: https://github.com/ActsAsParanoid/acts_as_paranoid/pull/368
12
+
13
+ ## 0.10.3
14
+
15
+ * Fix CI Badge ([#350] by [tagliala])
16
+ * Support Rails 8.0 ([#354] by [mvz])
17
+
18
+ [tagliala]: https://github.com/tagliala
19
+ [#350]: https://github.com/ActsAsParanoid/acts_as_paranoid/pull/350
20
+ [#354]: https://github.com/ActsAsParanoid/acts_as_paranoid/pull/354
21
+
5
22
  ## 0.10.2
6
23
 
7
24
  * Support Rails 7.2 ([#341] by [kalashnikovisme])
@@ -12,9 +29,9 @@ Notable changes to this project will be documented in this file.
12
29
 
13
30
  ## 0.10.1
14
31
 
15
- * Add changelog_uri to gemspec ([#332] by [fynsta])
32
+ * Add `changelog_uri` to gemspec ([#332] by [fynsta])
16
33
  * Improve contribution instructions ([#338] by [mvz])
17
- * Make with_deleted work with paranoid join records ([#339] by [mvz])
34
+ * Make `with_deleted` work with paranoid join records ([#339] by [mvz])
18
35
 
19
36
  [fynsta]: https://github.com/fynsta
20
37
 
@@ -52,13 +69,16 @@ Notable changes to this project will be documented in this file.
52
69
  ## 0.8.1
53
70
 
54
71
  * Officially support Ruby 3.1 ([#268], by [Matijs van Zuijlen][mvz])
55
- * Fix association building for `belongs_to` with `:with_deleted` option ([#277], by [Matijs van Zuijlen][mvz])
72
+ * Fix association building for `belongs_to` with `:with_deleted` option
73
+ ([#277], by [Matijs van Zuijlen][mvz])
56
74
 
57
75
  ## 0.8.0
58
76
 
59
77
  * Do not set `paranoid_value` when destroying fully ([#238], by [Aymeric Le Dorze][aymeric-ledorze])
60
- * Make helper methods for dependent associations private ([#239], by [Matijs van Zuijlen][mvz])
61
- * Raise ActiveRecord::RecordNotDestroyed if destroy returns false ([#240], by [Hao Liu][leomayleomay])
78
+ * Make helper methods for dependent associations private
79
+ ([#239], by [Matijs van Zuijlen][mvz])
80
+ * Raise ActiveRecord::RecordNotDestroyed if destroy returns false
81
+ ([#240], by [Hao Liu][leomayleomay])
62
82
  * Make unscoping by `with_deleted` less blunt ([#241], by [Matijs van Zuijlen][mvz])
63
83
  * Drop support for Ruby 2.4 and 2.5 ([#243] and [#245] by [Matijs van Zuijlen][mvz])
64
84
  * Remove deprecated methods ([#244] by [Matijs van Zuijlen][mvz])
@@ -67,7 +87,7 @@ Notable changes to this project will be documented in this file.
67
87
 
68
88
  ## 0.7.3
69
89
 
70
- ## Improvements
90
+ ### Improvements
71
91
 
72
92
  * Fix deletion time scopes ([#212] by [Matijs van Zuijlen][mvz])
73
93
  * Reload `has_one` associations after dependent recovery ([#214],
@@ -81,7 +101,7 @@ Notable changes to this project will be documented in this file.
81
101
  * Deprecate the undocumented `:recovery_value` setting. Calculate the correct
82
102
  value instead. ([#220], by [Matijs van Zuijlen][mvz])
83
103
 
84
- ## Developer experience
104
+ ### Developer experience
85
105
 
86
106
  * Log ActiveRecord activity to a visible log during tests ([#218],
87
107
  by [Matijs van Zuijlen][mvz])
@@ -124,8 +144,8 @@ Notable changes to this project will be documented in this file.
124
144
 
125
145
  ### Internal
126
146
 
127
- * Improve code quality using RuboCop ([#148], [#152], [#159], [#163], [#171] and [#173],
128
- by [Matijs van Zuijlen][mvz])
147
+ * Improve code quality using RuboCop ([#148], [#152], [#159], [#163], [#171]
148
+ and [#173], by [Matijs van Zuijlen][mvz])
129
149
  * Measure code coverage using SimpleCov ([#150] and [#175] by [Matijs van Zuijlen][mvz])
130
150
  * Silence warnings emitted during tests ([#156], by [Matijs van Zuijlen][mvz])
131
151
  * Make rake tasks more robust and intuitive ([#157], by [Matijs van Zuijlen][mvz])
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ActsAsParanoid
2
2
 
3
- [![Build Status](https://travis-ci.org/ActsAsParanoid/acts_as_paranoid.png?branch=master)](https://travis-ci.org/ActsAsParanoid/acts_as_paranoid)
3
+ [![CI](https://github.com/ActsAsParanoid/acts_as_paranoid/actions/workflows/ruby.yml/badge.svg)](https://github.com/ActsAsParanoid/acts_as_paranoid/actions/workflows/ruby.yml)
4
4
 
5
5
  A Rails plugin to add soft delete.
6
6
 
@@ -9,9 +9,9 @@ recoverable later.
9
9
 
10
10
  ## Support
11
11
 
12
- **This version targets Rails 6.1+ and Ruby 3.0+ only**
12
+ **This version targets Rails 6.1+ and Ruby 3.1+ only**
13
13
 
14
- If you're working with Rails 6.0 and earlier, or with Ruby 2.7 or earlier,
14
+ If you're working with Rails 6.0 and earlier, or with Ruby 3.0 or earlier,
15
15
  please require an older version of the `acts_as_paranoid` gem.
16
16
 
17
17
  ### Known issues
@@ -26,7 +26,7 @@ please require an older version of the `acts_as_paranoid` gem.
26
26
  #### Install gem
27
27
 
28
28
  ```ruby
29
- gem 'acts_as_paranoid'
29
+ gem "acts_as_paranoid", "~> 0.11.0"
30
30
  ```
31
31
 
32
32
  ```shell
@@ -102,7 +102,7 @@ module ActsAsParanoid
102
102
 
103
103
  def define_deleted_time_scopes
104
104
  scope :deleted_inside_time_window, lambda { |time, window|
105
- deleted_after_time((time - window)).deleted_before_time((time + window))
105
+ deleted_after_time(time - window).deleted_before_time(time + window)
106
106
  }
107
107
 
108
108
  scope :deleted_after_time, lambda { |time|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActsAsParanoid
4
- VERSION = "0.10.2"
4
+ VERSION = "0.11.0"
5
5
  end
metadata CHANGED
@@ -1,16 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_paranoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Scott
8
8
  - Goncalo Silva
9
9
  - Rick Olson
10
- autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2024-08-12 00:00:00.000000000 Z
12
+ date: 1980-01-02 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: activerecord
@@ -21,7 +20,7 @@ dependencies:
21
20
  version: '6.1'
22
21
  - - "<"
23
22
  - !ruby/object:Gem::Version
24
- version: '8'
23
+ version: '8.2'
25
24
  type: :runtime
26
25
  prerelease: false
27
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,7 +30,7 @@ dependencies:
31
30
  version: '6.1'
32
31
  - - "<"
33
32
  - !ruby/object:Gem::Version
34
- version: '8'
33
+ version: '8.2'
35
34
  - !ruby/object:Gem::Dependency
36
35
  name: activesupport
37
36
  requirement: !ruby/object:Gem::Requirement
@@ -41,7 +40,7 @@ dependencies:
41
40
  version: '6.1'
42
41
  - - "<"
43
42
  - !ruby/object:Gem::Version
44
- version: '8'
43
+ version: '8.2'
45
44
  type: :runtime
46
45
  prerelease: false
47
46
  version_requirements: !ruby/object:Gem::Requirement
@@ -51,7 +50,7 @@ dependencies:
51
50
  version: '6.1'
52
51
  - - "<"
53
52
  - !ruby/object:Gem::Version
54
- version: '8'
53
+ version: '8.2'
55
54
  - !ruby/object:Gem::Dependency
56
55
  name: appraisal
57
56
  requirement: !ruby/object:Gem::Requirement
@@ -122,20 +121,6 @@ dependencies:
122
121
  - - "~>"
123
122
  - !ruby/object:Gem::Version
124
123
  version: '0.6'
125
- - !ruby/object:Gem::Dependency
126
- name: pry
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 0.14.1
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: 0.14.1
139
124
  - !ruby/object:Gem::Dependency
140
125
  name: rake
141
126
  requirement: !ruby/object:Gem::Requirement
@@ -184,70 +169,70 @@ dependencies:
184
169
  requirements:
185
170
  - - "~>"
186
171
  - !ruby/object:Gem::Version
187
- version: '1.52'
172
+ version: '1.76'
188
173
  type: :development
189
174
  prerelease: false
190
175
  version_requirements: !ruby/object:Gem::Requirement
191
176
  requirements:
192
177
  - - "~>"
193
178
  - !ruby/object:Gem::Version
194
- version: '1.52'
179
+ version: '1.76'
195
180
  - !ruby/object:Gem::Dependency
196
181
  name: rubocop-minitest
197
182
  requirement: !ruby/object:Gem::Requirement
198
183
  requirements:
199
184
  - - "~>"
200
185
  - !ruby/object:Gem::Version
201
- version: 0.35.0
186
+ version: 0.38.0
202
187
  type: :development
203
188
  prerelease: false
204
189
  version_requirements: !ruby/object:Gem::Requirement
205
190
  requirements:
206
191
  - - "~>"
207
192
  - !ruby/object:Gem::Version
208
- version: 0.35.0
193
+ version: 0.38.0
209
194
  - !ruby/object:Gem::Dependency
210
195
  name: rubocop-packaging
211
196
  requirement: !ruby/object:Gem::Requirement
212
197
  requirements:
213
198
  - - "~>"
214
199
  - !ruby/object:Gem::Version
215
- version: 0.5.2
200
+ version: 0.6.0
216
201
  type: :development
217
202
  prerelease: false
218
203
  version_requirements: !ruby/object:Gem::Requirement
219
204
  requirements:
220
205
  - - "~>"
221
206
  - !ruby/object:Gem::Version
222
- version: 0.5.2
207
+ version: 0.6.0
223
208
  - !ruby/object:Gem::Dependency
224
209
  name: rubocop-performance
225
210
  requirement: !ruby/object:Gem::Requirement
226
211
  requirements:
227
212
  - - "~>"
228
213
  - !ruby/object:Gem::Version
229
- version: '1.18'
214
+ version: '1.25'
230
215
  type: :development
231
216
  prerelease: false
232
217
  version_requirements: !ruby/object:Gem::Requirement
233
218
  requirements:
234
219
  - - "~>"
235
220
  - !ruby/object:Gem::Version
236
- version: '1.18'
221
+ version: '1.25'
237
222
  - !ruby/object:Gem::Dependency
238
223
  name: rubocop-rake
239
224
  requirement: !ruby/object:Gem::Requirement
240
225
  requirements:
241
226
  - - "~>"
242
227
  - !ruby/object:Gem::Version
243
- version: 0.6.0
228
+ version: 0.7.1
244
229
  type: :development
245
230
  prerelease: false
246
231
  version_requirements: !ruby/object:Gem::Requirement
247
232
  requirements:
248
233
  - - "~>"
249
234
  - !ruby/object:Gem::Version
250
- version: 0.6.0
235
+ version: 0.7.1
251
236
  - !ruby/object:Gem::Dependency
252
237
  name: simplecov
253
238
  requirement: !ruby/object:Gem::Requirement
@@ -284,9 +269,9 @@ homepage: https://github.com/ActsAsParanoid/acts_as_paranoid
284
269
  licenses:
285
270
  - MIT
286
271
  metadata:
272
+ homepage_uri: https://github.com/ActsAsParanoid/acts_as_paranoid
287
273
  changelog_uri: https://github.com/ActsAsParanoid/acts_as_paranoid/blob/master/CHANGELOG.md
288
274
  rubygems_mfa_required: 'true'
289
- post_install_message:
290
275
  rdoc_options: []
291
276
  require_paths:
292
277
  - lib
@@ -294,15 +279,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
294
279
  requirements:
295
280
  - - ">="
296
281
  - !ruby/object:Gem::Version
297
- version: 3.0.0
282
+ version: 3.1.0
298
283
  required_rubygems_version: !ruby/object:Gem::Requirement
299
284
  requirements:
300
285
  - - ">="
301
286
  - !ruby/object:Gem::Version
302
287
  version: '0'
303
288
  requirements: []
304
- rubygems_version: 3.5.16
305
- signing_key:
289
+ rubygems_version: 3.7.2
306
290
  specification_version: 4
307
291
  summary: Active Record plugin which allows you to hide and restore records without
308
292
  actually deleting them.