exportation 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/exportation.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d693139ec49db0068d7bfc42e233a491b62185c
|
|
4
|
+
data.tar.gz: 0fb5691ea3b24186a91690cf9cdc433dac0e75e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fe3695f34a19866f2184197de06487ab49eaca27133b97f4f3e11f48bfefb392f37672d1ed3ea8cfed4dee9264f047e0a58ca9f3a2962c7b32c9f214cd5183e
|
|
7
|
+
data.tar.gz: d8a6b360b0bf88d7354929d8bec6147d6a76d89d7f782c6851316ae105dbb2525bdfc41bd10ec5eacf690eee248b27bdcf7c1da3e612158e3d40163ec351136a
|
data/lib/exportation.rb
CHANGED
|
@@ -96,13 +96,15 @@ module Exportation
|
|
|
96
96
|
output_file = File.join(output, File.basename(file))
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
+
decrypt = ''
|
|
99
100
|
if crypt == :en
|
|
100
101
|
output_file += '.enc'
|
|
101
102
|
elsif crypt == :de
|
|
103
|
+
decrypt = ' -d'
|
|
102
104
|
output_file = output_file.gsub('.enc','')
|
|
103
105
|
end
|
|
104
106
|
|
|
105
|
-
commands << "openssl aes-256-cbc -k \"#{password}\" -in #{file} -out #{output_file} -a"
|
|
107
|
+
commands << "openssl aes-256-cbc -k \"#{password}\" -in #{file} -out #{output_file} -a#{decrypt}"
|
|
106
108
|
else
|
|
107
109
|
raise "File does not exist - #{file}"
|
|
108
110
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: exportation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Holtz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-03-
|
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dotenv
|