archival_record 4.0.0 → 4.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/.rubocop.yml +1 -2
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +2 -2
- data/archival_record.gemspec +12 -3
- data/lib/archival_record/version.rb +1 -1
- data/lib/archival_record_core/archival_record.rb +5 -0
- metadata +6 -3
- data/.rubocop_todo.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a75201e40595114329b5ecf7f2e790a37c57a94640755fc50fc2d330f2065056
|
4
|
+
data.tar.gz: 7fa088f8c71f94aa613807d0f493178db771b993c41f1a0b266665940137eea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5b6fb27d71b390549bbbcb50de73c000432521083f662e1f77ffdea2904b6782df8f54cc54a088946a6aacd4cf104e5c9d531e9a5d88851aca954ab74f5062c
|
7
|
+
data.tar.gz: d0daae3db6a6841c4185c0be8d25e0459df61f21b3d41c0f898cb18b06bcc9ac4a9d6867ee0f73c4246b08850aca8bad095df3ef05f5b8bf54ec33e4e2d3b836
|
data/.rubocop.yml
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
2
1
|
plugins:
|
3
2
|
- rubocop-rails
|
4
3
|
- rubocop-rake
|
@@ -54,7 +53,7 @@ Style/AsciiComments:
|
|
54
53
|
|
55
54
|
# TODO: class documentation
|
56
55
|
Style/Documentation:
|
57
|
-
Enabled:
|
56
|
+
Enabled: true
|
58
57
|
|
59
58
|
Style/DoubleNegation:
|
60
59
|
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 4.0.1 - March 25, 2025
|
4
|
+
* Fixing links on rubygems.org to point to codeberg since that config move to [metadata](https://guides.rubygems.org/specification-reference/#metadata) in the past couple years
|
5
|
+
|
3
6
|
## 4.0.0 - March 19, 2025
|
4
7
|
* **BREAKING CHANGE** `unarchive` behavior changed if you had non-`dependent: :destroy` `has_many` relationship but equal archive numbers on archived records before, the associated record would be unarchived. Now it won't. *You probably weren't doing this. If you were, why? How did you find out you could? Did you intend to? Anyway I broke it for you if you did find this extremely odd edge case. Sorry.* see: https://codeberg.org/joelmeador/archival_record/commit/19e02708f5ec97aa9b56a51cb7a84283e73e65aa
|
5
8
|
* **BREAKING CHANGE** `archive` and `unarchive` now will act on `has_many` relations that are marked as `dependent: :delete_all` and `dependent: :destroy_async` in addition to `dependent: :destroy`. see: https://codeberg.org/joelmeador/archival_record/commit/685d7c6abb123422f2f8665252b99423dada305a
|
data/Gemfile.lock
CHANGED
@@ -33,7 +33,7 @@ GEM
|
|
33
33
|
bundler
|
34
34
|
rake
|
35
35
|
thor (>= 0.14.0)
|
36
|
-
ast (2.4.
|
36
|
+
ast (2.4.3)
|
37
37
|
base64 (0.2.0)
|
38
38
|
benchmark (0.4.0)
|
39
39
|
bigdecimal (3.1.9)
|
@@ -82,7 +82,7 @@ GEM
|
|
82
82
|
rubocop-ast (>= 1.38.0, < 2.0)
|
83
83
|
ruby-progressbar (~> 1.7)
|
84
84
|
unicode-display_width (>= 2.4.0, < 4.0)
|
85
|
-
rubocop-ast (1.
|
85
|
+
rubocop-ast (1.40.0)
|
86
86
|
parser (>= 3.3.1.0)
|
87
87
|
rubocop-rails (2.30.3)
|
88
88
|
activesupport (>= 4.2.0)
|
data/archival_record.gemspec
CHANGED
@@ -22,9 +22,7 @@ Gem::Specification.new do |gem|
|
|
22
22
|
"Sergey Gnuskov",
|
23
23
|
"Elijah Miller"]
|
24
24
|
gem.email = ["joel.meador+archival_record@gmail.com"]
|
25
|
-
gem.homepage = "https://codeberg.org/joelmeador/archival_record/"
|
26
25
|
gem.licenses = ["MIT"]
|
27
|
-
|
28
26
|
gem.files = `git ls-files`.split("\n")
|
29
27
|
gem.require_paths = ["lib"]
|
30
28
|
gem.required_ruby_version = ">= 3.0"
|
@@ -54,5 +52,16 @@ Gem::Specification.new do |gem|
|
|
54
52
|
|
55
53
|
Additionally, other plugins generally change how destroy/delete work. ArchivalRecord does not, and thus one can destroy records like normal.
|
56
54
|
DESCRIPTION
|
57
|
-
|
55
|
+
|
56
|
+
gem.metadata = {
|
57
|
+
"bug_tracker_uri" => "https://codeberg.org/joelmeador/archival_record/issues",
|
58
|
+
"changelog_uri" => "https://codeberg.org/joelmeador/archival_record/src/branch/main/CHANGELOG.md",
|
59
|
+
"homepage_uri" => "https://codeberg.org/joelmeador/archival_record/",
|
60
|
+
"rubygems_mfa_required" => "true",
|
61
|
+
"source_code_uri" => "https://codeberg.org/joelmeador/archival_record/",
|
62
|
+
# "documentation_uri" => "https://www.example.info/gems/bestgemever/0.0.1",
|
63
|
+
# "funding_uri" => "https://example.com/donate"
|
64
|
+
# "mailing_list_uri" => "https://groups.example.com/bestgemever",
|
65
|
+
# "wiki_uri" => "https://example.com/user/bestgemever/wiki",
|
66
|
+
}
|
58
67
|
end
|
@@ -1,4 +1,7 @@
|
|
1
|
+
# Namespace for containing core extensions to active record
|
1
2
|
module ArchivalRecordCore
|
3
|
+
# Primary holding module for defining our custom errors and the method installer that
|
4
|
+
# gets added to ApplicationRecord
|
2
5
|
module ArchivalRecord
|
3
6
|
|
4
7
|
require "digest/md5"
|
@@ -18,6 +21,8 @@ module ArchivalRecordCore
|
|
18
21
|
base.extend ActMethods
|
19
22
|
end
|
20
23
|
|
24
|
+
# this defines the class-level methods used to setup the archival record work on a given
|
25
|
+
# class.
|
21
26
|
module ActMethods
|
22
27
|
|
23
28
|
def archival_record(options = {})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: archival_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Meador
|
@@ -195,7 +195,6 @@ files:
|
|
195
195
|
- ".envrc"
|
196
196
|
- ".gitignore"
|
197
197
|
- ".rubocop.yml"
|
198
|
-
- ".rubocop_todo.yml"
|
199
198
|
- Appraisals
|
200
199
|
- CHANGELOG.md
|
201
200
|
- Gemfile
|
@@ -263,11 +262,15 @@ files:
|
|
263
262
|
- test/test_helper.rb
|
264
263
|
- test/through_association_test.rb
|
265
264
|
- test/transaction_test.rb
|
266
|
-
homepage:
|
265
|
+
homepage:
|
267
266
|
licenses:
|
268
267
|
- MIT
|
269
268
|
metadata:
|
269
|
+
bug_tracker_uri: https://codeberg.org/joelmeador/archival_record/issues
|
270
|
+
changelog_uri: https://codeberg.org/joelmeador/archival_record/src/branch/main/CHANGELOG.md
|
271
|
+
homepage_uri: https://codeberg.org/joelmeador/archival_record/
|
270
272
|
rubygems_mfa_required: 'true'
|
273
|
+
source_code_uri: https://codeberg.org/joelmeador/archival_record/
|
271
274
|
post_install_message:
|
272
275
|
rdoc_options: []
|
273
276
|
require_paths:
|
data/.rubocop_todo.yml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2024-06-11 01:38:42 UTC using RuboCop version 1.64.1.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|