lockbox 0.6.7 → 0.6.8
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/CHANGELOG.md +6 -1
- data/lib/lockbox/model.rb +0 -10
- data/lib/lockbox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0cc5589dbbfae34908ffdd634798549fa161c7dc79b528f23b8e097a044f3d9d
|
|
4
|
+
data.tar.gz: 3eb23c1dfb284abb335e2addfb20fee77b31373b561ab6c0f9afaf28abf8aeb8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0bd8a7ee500cbba73daa2ef0c9c6af07695b53799735f865d5b0e9e907e8ef86904983d5f8cfdff098b554d4cd9d4351133778079bde93a7440bbacf03d0545
|
|
7
|
+
data.tar.gz: ea83a9ecb7734e907a03be89e628fc103815b0cc5acc2aec0c21dc0f2d6b7e746f299a489d4a11b14f413a55c4fb06b45d6e23302c853c8b216ad2bca63218d6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
## 0.6.8 (2022-01-25)
|
|
2
|
+
|
|
3
|
+
- Fixed issue with `encrypts` loading model schema early
|
|
4
|
+
- Removed warning for attributes with `default` option
|
|
5
|
+
|
|
1
6
|
## 0.6.7 (2022-01-25)
|
|
2
7
|
|
|
3
8
|
- Added warning for attributes with `default` option
|
|
4
|
-
-
|
|
9
|
+
- Removed warning for Active Record 5.0 (still supported)
|
|
5
10
|
|
|
6
11
|
## 0.6.6 (2021-09-27)
|
|
7
12
|
|
data/lib/lockbox/model.rb
CHANGED
|
@@ -314,16 +314,6 @@ module Lockbox
|
|
|
314
314
|
# uses public_send, so we don't need to preload attribute
|
|
315
315
|
query_attribute(name)
|
|
316
316
|
end
|
|
317
|
-
|
|
318
|
-
user_provided_default =
|
|
319
|
-
if ActiveRecord::VERSION::STRING >= "5.2"
|
|
320
|
-
ActiveModel::Attribute::UserProvidedDefault
|
|
321
|
-
else
|
|
322
|
-
ActiveRecord::Attribute::UserProvidedDefault
|
|
323
|
-
end
|
|
324
|
-
if _default_attributes[name.to_s].is_a?(user_provided_default)
|
|
325
|
-
warn "[lockbox] WARNING: attributes with `:default` option are not supported. Use `after_initialize` instead."
|
|
326
|
-
end
|
|
327
317
|
else
|
|
328
318
|
# keep this module dead simple
|
|
329
319
|
# Mongoid uses changed_attributes to calculate keys to update
|
data/lib/lockbox/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lockbox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Kane
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-01-
|
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: andrew@ankane.org
|