attach 2.0.2 → 2.0.3

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: 3042851dcc040ea003ba31b827da5b7be92a0f63227a803d8243491005967b1d
4
- data.tar.gz: 025f0b73b80914ce34c1f31ad1462c993516253a5dc3d177b8b4680c910664a0
3
+ metadata.gz: 67e480487c042fe887ff3c518fc372df0e9ed21890f25df6b15b7ac408ff63f9
4
+ data.tar.gz: 046166beef6d41bea1fe55927d5006ab7512aa57a2201b15abfcc8cca94a8832
5
5
  SHA512:
6
- metadata.gz: 28728c88c83ce64bed3ca9e05509b0aeeaaaa8c3e8388d3a5a19359f144ec91e94c6a425262985befee48ffb374e18c4a8f3652f46d149d23f80021809fcb531
7
- data.tar.gz: '0285b9d74f7bf30507940bce4cb82b10089ea2f7b563ba83551ddcb55020485fa407b12d4c058d22a4ba49450ea34b419a250151002d0dd800289deadbbd562d'
6
+ metadata.gz: b8b1e30d31ef5782738cd01e4bc4ce6528472e014a77e7ef1e8be80407f787390be4cf422e7eee13f6baed150591fbc1e68a4a1f968a85a4109901d2d50e8c65
7
+ data.tar.gz: 8d74cb792d7a9981ca063cc1c9b0b667f2419d36368c600e56bfdb9f351b426d3fa49b0cdbbca98447d8086c0a287f194c2b2d03437d2a3a699a9669acc8c119
@@ -25,7 +25,7 @@ module Attach
25
25
  validates :digest, presence: true
26
26
  validates :token, presence: true, uniqueness: { case_sensitive: false }
27
27
 
28
- serialize :custom, Hash
28
+ serialize :custom, type: Hash, default: {}
29
29
 
30
30
  before_validation :set_token
31
31
  before_validation :set_digest
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Attach
4
4
 
5
- VERSION = '2.0.2'
5
+ VERSION = '2.0.3'
6
6
 
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attach
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-16 00:00:00.000000000 Z
11
+ date: 2023-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord