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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15caadb79fe6ab8a376ce92b0ce89f290f820474763d614eea58e5add2eb91e7
4
- data.tar.gz: e4346aaaf057fa9020221a60bc1ae1a647c65d56d3adeec0352511502458deb6
3
+ metadata.gz: 8becb119f1cb1e27254a7b51d683e21100ef79cd6de37b1c379787fa7d90e3ce
4
+ data.tar.gz: ee28860fea0fcab274af59ebbfc13ec99418c3c1757a77719de2c98a2827fbfb
5
5
  SHA512:
6
- metadata.gz: fc9953504bd1e9289d0951a0344f8850e81168c89038c6c46d023efb88d68f0c7fac42f51504cc0e2f25dc0aa34016f56c3fa03a469fb94fef1b824d44499f98
7
- data.tar.gz: a5846eb11ae4a31ce56dc8330df5928cc85865d715afeca76893a14a0294d14e1044c24dd397c1adb306740c38342980649c8d29ffa971f005d1b6a5e86fc2c3
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
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ .byebug_history
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- handsome_fencer-crypto (0.1.0)
4
+ handsome_fencer-crypto (0.1.2)
5
5
  guard
6
6
  guard-minitest
7
7
 
@@ -152,4 +152,4 @@ DEPENDENCIES
152
152
  rake (~> 10.0)
153
153
 
154
154
  BUNDLED WITH
155
- 1.17.2
155
+ 1.17.3
@@ -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 || '.env'
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 || '.env.enc'
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
 
@@ -1,5 +1,5 @@
1
1
  module HandsomeFencer
2
2
  module Crypto
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
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.2
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: 2018-12-31 00:00:00.000000000 Z
11
+ date: 2019-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard