vidibus-secure 4.0.0 → 4.0.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: '087a53fdae4da0a6050ff333ff57e943b169e4a253db2e217ae1bcd3fa84d11d'
4
- data.tar.gz: 4c05589f8eab6eaeca0d1b9c3b6b1ac3e3e0ba7c4502ca87b2171e0237bd0291
3
+ metadata.gz: c6e19394e65e0b26b4b984609723d708e93cbfcc0d8e26c4b8f9b3c14ba168b3
4
+ data.tar.gz: 55981c68d9fc1269a0302e40ec47f6b95c48243665b9d0035b846607af877b7d
5
5
  SHA512:
6
- metadata.gz: 3164ce5dcf84f266c299c278fe86d68b074e12597c6f11ad71802e63cee9bdc0421e105946441887464abd67502fd2799fabd9a9071674ebecdd3e97707af408
7
- data.tar.gz: 5ff744c69fab0717a94f231d06dc347850368ce2f7c15822e7f709a5cff902921704e93697780d69899c5d0154ffd15cdcb24e60dd25235171dce9d3fea776e3
6
+ metadata.gz: 328a4d934659747d50ff53ddb1e77fe462e9168daa05d0ed92aa899867656aee326a02383ac1ed4e098d8fc1d40c48e698cba0d61434297c7279a7563a775147
7
+ data.tar.gz: a7c90ccf4e6c508deda61a89a88ce5a3303ba55a1c3e9120f2a99a7d12305b325fa80474bf6bd1a00ebf17647ef47c3772f3677ed956bd48be1ae24b41ebca2c
@@ -1,11 +1,7 @@
1
1
  class VidibusSecureKeyGenerator < Rails::Generators::Base
2
- desc 'Generates an initializer that sets ENV["VIDIBUS_SECURE_KEY"]'
2
+ desc 'Creates secure key to be stored as ENV["VIDIBUS_SECURE_KEY"]'
3
3
 
4
- def create_initializer
5
- create_file "config/initializers/vidibus_secure_key.rb" do
6
- %(# This is a secret key for encrypting values of field defined by attr_encrypted.\n) +
7
- %(# Do not change this encryption key! Otherwise you will not be able to decrypt data already stored in your database.\n) +
8
- %(ENV["VIDIBUS_SECURE_KEY"] = "#{Vidibus::Secure.random(:encoding => :base64, :length => 100)}")
9
- end
10
- end
4
+ puts "\nAdd VIDIBUS_SECURE_KEY to your env file like ~/.bashrc, /etc/profile or ~/.zprofile"
5
+ key = %(export VIDIBUS_SECURE_KEY=#{Vidibus::Secure.random(:encoding => :base64, :length => 100)})
6
+ puts key
11
7
  end
@@ -1,5 +1,5 @@
1
1
  module Vidibus
2
2
  module Secure
3
- VERSION = '4.0.0'
3
+ VERSION = '4.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidibus-secure
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Pankratz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-03 00:00:00.000000000 Z
11
+ date: 2023-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack