activeitem 0.0.6 → 0.0.7
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
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +6 -0
- data/lib/active_item/base.rb +4 -0
- data/lib/active_item/errors.rb +10 -0
- data/lib/active_item/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0449e0de4aa951adcf2bdd085d145a0673439115fd8a51b7de275f60c461ecd9'
|
|
4
|
+
data.tar.gz: 5e580ffadfd8ee4b22fbd6f4c54b934330c832383baf07f9c601e64e3fd3a99a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ad8dbfafc70f15ade76a5e030e505e8af3e7b3186d355ac5d16de97843f905f7789471bb04e706ef84fb012fa8de3d0c361973514c33ecc5f534efd9e4f8c3b
|
|
7
|
+
data.tar.gz: ddc7e4f5bf1ab8a814e2d3e58c103d01d2446f85599802925ff7e624d95ffd8ae559e66cc0b7c941adfd160a0f1c166cfac77104f5e84f48dd5dd7c570f58a58
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
data/lib/active_item/base.rb
CHANGED
data/lib/active_item/errors.rb
CHANGED
|
@@ -18,6 +18,16 @@ module ActiveItem
|
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
+
# Raised by destroy! when the record is not destroyed.
|
|
22
|
+
class RecordNotDestroyed < StandardError
|
|
23
|
+
attr_reader :record
|
|
24
|
+
|
|
25
|
+
def initialize(message = nil, record = nil)
|
|
26
|
+
@record = record
|
|
27
|
+
super(message || 'Failed to destroy the record')
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
21
31
|
# Raised when a record cannot be deleted because dependent associations
|
|
22
32
|
# with :restrict_with_exception still exist.
|
|
23
33
|
class DeleteRestrictionError < StandardError
|
data/lib/active_item/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeitem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Davis
|
|
@@ -41,7 +41,7 @@ cert_chain:
|
|
|
41
41
|
mR0ObwJ14vsQVbJibq0eRHIg8G4yV19pvEdJCli02eLl1+451M63HZAqBNuyJ9Ny
|
|
42
42
|
I1fxbbEBAzf7WHfoKdwFMuRZq7hpdLykCA8YQJFlLLFoXT0g41ug9iOKBtGg
|
|
43
43
|
-----END CERTIFICATE-----
|
|
44
|
-
date: 2026-
|
|
44
|
+
date: 2026-06-01 00:00:00.000000000 Z
|
|
45
45
|
dependencies:
|
|
46
46
|
- !ruby/object:Gem::Dependency
|
|
47
47
|
name: activemodel
|
metadata.gz.sig
CHANGED
|
Binary file
|