handsome_fencer-crypto 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.byebug_history +30 -0
- data/.gitignore +1 -0
- data/Gemfile.lock +2 -2
- data/lib/handsome_fencer/crypto.rb +4 -4
- data/lib/handsome_fencer/crypto/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: 8becb119f1cb1e27254a7b51d683e21100ef79cd6de37b1c379787fa7d90e3ce
|
4
|
+
data.tar.gz: ee28860fea0fcab274af59ebbfc13ec99418c3c1757a77719de2c98a2827fbfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03ca486a6c848d7d3fa0639c0842a32a5dc388dded64fcde54f699994f5ce169f3ab009b4ed058bd59b7eba63e628fd4a4a40cbd7a6e310653a29e35c1a5d010
|
7
|
+
data.tar.gz: be4a1bbb70b34ab03e182b69e6ff7ff04ee9a4d77791c4781c79bec7912a67d0326038c1fe543fd8aa19d1a0cdfdeea98756a1911db75a1c3e3306083f018416
|
data/.byebug_history
CHANGED
@@ -1,4 +1,34 @@
|
|
1
1
|
c
|
2
|
+
env
|
3
|
+
source_files(dir, ext)
|
4
|
+
c
|
5
|
+
ext
|
6
|
+
dir
|
7
|
+
c
|
8
|
+
ext
|
9
|
+
dir
|
10
|
+
env
|
11
|
+
c
|
12
|
+
exit
|
13
|
+
subject.source_files('tmp', '.env.enc')
|
14
|
+
env_files
|
15
|
+
exit
|
16
|
+
env_files
|
17
|
+
exit
|
18
|
+
dir
|
19
|
+
env
|
20
|
+
source_files(dir, ext)
|
21
|
+
ext
|
22
|
+
dir
|
23
|
+
env
|
24
|
+
self
|
25
|
+
ext
|
26
|
+
n
|
27
|
+
source_files(dir)
|
28
|
+
ext
|
29
|
+
dir
|
30
|
+
env
|
31
|
+
c
|
2
32
|
File.read(env_files.last)
|
3
33
|
env_files.last
|
4
34
|
env_files.last.read
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
+
|
1
2
|
require "handsome_fencer/crypto/version"
|
2
3
|
require "openssl"
|
3
4
|
require "base64"
|
4
|
-
|
5
|
+
require 'byebug'
|
5
6
|
module HandsomeFencer::Crypto
|
6
7
|
|
7
8
|
class << self
|
@@ -50,13 +51,12 @@ module HandsomeFencer::Crypto
|
|
50
51
|
end
|
51
52
|
|
52
53
|
def obfuscate(env=nil, dir=nil, ext=nil)
|
53
|
-
ext = ext ||
|
54
|
+
ext = ext || "#{env}.env"
|
54
55
|
source_files(dir, ext).each { |file| encrypt(file, env) }
|
55
56
|
end
|
56
57
|
|
57
58
|
def expose(env=nil, dir=nil, ext=nil)
|
58
|
-
ext = ext ||
|
59
|
-
dir = dir || 'docker'
|
59
|
+
ext = ext || "#{env}.env.enc"
|
60
60
|
source_files(dir, ext).each { |file| decrypt(file, env) }
|
61
61
|
end
|
62
62
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: handsome_fencer-crypto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- schadenfred
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|