active_record-type-encrypted_string 0.2.0 → 0.2.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8937c7d14748fbf2cd5cae17ae9a5c7da196d77ff0b8b6c3b25ece28dc545cc
|
4
|
+
data.tar.gz: fc45b80355e4eb3eef17aa571afe75ad0663f4ff6d195bd4518aa6b0947ab0ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e791228c9b43831f8e19519a93c09fc2ebd582cd0fa9c4fceb73b39a1a17ae22977c7c15a821118a6710a225f445e0b7b60aa3c6664ebb9c7786bcb75efb8f66
|
7
|
+
data.tar.gz: '08da457771d521e91544dc833a93ef24173f762cefbc1b71cabb7f9bec1cfb5af393b41e47963c0a50da2507492fa73a66fc5070d783dd469ac1ad9fb49d06d4'
|
@@ -10,7 +10,7 @@ module ActiveRecord
|
|
10
10
|
config_accessor :encryption_password, :encryption_salt, instance_accessor: false
|
11
11
|
|
12
12
|
class Type < ::ActiveRecord::Type::String
|
13
|
-
def
|
13
|
+
def serialize(value)
|
14
14
|
value ? message_encryptor.encrypt_and_sign(value) : super
|
15
15
|
end
|
16
16
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record-type-encrypted_string
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kohei Yamamoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|