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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5f2a37b612cb9d2f2fe5a941af941b9d0423b9ce1232887830d08a5f4fa4bc0
4
- data.tar.gz: e69ea20e36b30f0adcc60f753a117f3f8bc6825a1e9e2109fef1528bc993c951
3
+ metadata.gz: 466424bd9aed3c8994ebdd397867b75c3b0860e0c491548e6540405fed9a8fd7
4
+ data.tar.gz: 2f5047229acd44410975e2ce8c990732140ccd3e37fdf9364fa635285bf61b03
5
5
  SHA512:
6
- metadata.gz: 4b81e82c8885e661eb17f38d584874e7a59297e6f0f55f9f32cfbf73678516d16f7aaec3fa8d0f81534da87c2b62e55a799396c402b4bea40313640b719c0374
7
- data.tar.gz: 6d1b39740a256ae0df3446895b818f04f7d48c83981f8af1be7236911694faaf2cc618a11a88de4ba5d0f404e27f13ac1eed78518612755ee35ac341edb63709
6
+ metadata.gz: 312414a8c0beee1bd432aa8bfce961c363d688c65876f5e810f2092d1b0e0eb066b82f25fdc86d7ac56fb182c911976581cdd1555c5fa915bf7c16bc43ac5f39
7
+ data.tar.gz: fb2cfb98e07e21f91537801040c0bc498b4240f47995d58f54d1a6cc78e7878fc4370a57816b39faf2caf007c9f8323e4291c8c5aa7e9b919c7f2246baf060f8
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.2.1] - 2021-07-21
10
+ ### Changed
11
+ - Improved Railtie support
12
+
9
13
  ## [1.2.0] - 2021-07-19
10
14
  ### Added
11
15
  - Added Ruby 3.0 support
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-encryption (1.2.0)
4
+ lite-encryption (1.2.1)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rails/generators'
4
-
5
3
  module Lite
6
4
  module Encryption
7
5
  class InstallGenerator < Rails::Generators::Base
@@ -1,9 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- %w[key_generator message_encryptor message_verifier].each do |filename|
4
- require "active_support/#{filename}"
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'
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'securerandom'
3
+ require 'openssl' unless defined?(OpenSSL)
4
+ require 'securerandom' unless defined?(SecureRandom)
4
5
 
5
6
  module Lite
6
7
  module Encryption
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Encryption
5
5
 
6
- VERSION = '1.2.0'
6
+ VERSION = '1.2.1'
7
7
 
8
8
  end
9
9
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2021-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport