lite-encryption 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/generators/lite/encryption/install_generator.rb +0 -2
- data/lib/lite/encryption.rb +6 -4
- data/lib/lite/encryption/key.rb +2 -1
- data/lib/lite/encryption/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: 466424bd9aed3c8994ebdd397867b75c3b0860e0c491548e6540405fed9a8fd7
|
4
|
+
data.tar.gz: 2f5047229acd44410975e2ce8c990732140ccd3e37fdf9364fa635285bf61b03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 312414a8c0beee1bd432aa8bfce961c363d688c65876f5e810f2092d1b0e0eb066b82f25fdc86d7ac56fb182c911976581cdd1555c5fa915bf7c16bc43ac5f39
|
7
|
+
data.tar.gz: fb2cfb98e07e21f91537801040c0bc498b4240f47995d58f54d1a6cc78e7878fc4370a57816b39faf2caf007c9f8323e4291c8c5aa7e9b919c7f2246baf060f8
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/lite/encryption.rb
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
require
|
3
|
+
unless defined?(ActiveSupport)
|
4
|
+
require 'active_support/key_generator'
|
5
|
+
require 'active_support/message_encryptor'
|
6
|
+
require 'active_support/message_verifier'
|
5
7
|
end
|
6
8
|
|
9
|
+
require 'generators/lite/encryption/install_generator' if defined?(Rails::Generators)
|
10
|
+
|
7
11
|
require 'lite/encryption/version'
|
8
12
|
|
9
13
|
%w[key configuration].each do |filename|
|
@@ -19,5 +23,3 @@ end
|
|
19
23
|
%w[message attribute].each do |filename|
|
20
24
|
require "lite/encryption/#{filename}"
|
21
25
|
end
|
22
|
-
|
23
|
-
require 'generators/lite/encryption/install_generator'
|
data/lib/lite/encryption/key.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-encryption
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|