lockbox 0.6.7 → 0.6.8

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: 2b85dd2a91e0fbb6e687dc63a36915c3b67552320f417fe4caed9f27c5b8fbfc
4
- data.tar.gz: 807037af47e0ee9fae9ed93d95ad0253b68bd6c6ab13ee53ce2cc8de0536e926
3
+ metadata.gz: 0cc5589dbbfae34908ffdd634798549fa161c7dc79b528f23b8e097a044f3d9d
4
+ data.tar.gz: 3eb23c1dfb284abb335e2addfb20fee77b31373b561ab6c0f9afaf28abf8aeb8
5
5
  SHA512:
6
- metadata.gz: 429401bd5b38388d43a07bfbc8cbe4acdac73718e05c5043276092ac0d992f439721beeb2d36320a84b69cd24687838edd9a59f28a39ac7f7797502911bd708a
7
- data.tar.gz: 412a3eacac1489f931ea1cae22f628fe73eeb9a1d01b568c385f37ede3281f657235ed16b831c2c9c46348d23bb1e6d62a4e5ea857a2e619d0087f4e4e4b89ce
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
- - Removing warning for Active Record 5.0 (still supported)
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
@@ -1,3 +1,3 @@
1
1
  module Lockbox
2
- VERSION = "0.6.7"
2
+ VERSION = "0.6.8"
3
3
  end
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.7
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-25 00:00:00.000000000 Z
11
+ date: 2022-01-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org