rultor 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rultor +1 -1
- data/features/cli/help.feature +5 -0
- data/lib/rultor/encrypt.rb +3 -2
- data/lib/rultor/version.rb +1 -1
- metadata +2 -2
data/bin/rultor
CHANGED
@@ -43,7 +43,7 @@ Slop.parse(ARGV, strict: true, help: true) do
|
|
43
43
|
end
|
44
44
|
command 'encrypt' do
|
45
45
|
description 'Encrypt a file'
|
46
|
-
on :p=, :project, 'Project name'
|
46
|
+
on :p=, :project, 'Project name', required: true
|
47
47
|
run do |opts, args|
|
48
48
|
Rultor::Encrypt.new(opts[:project], args.first).run
|
49
49
|
end
|
data/features/cli/help.feature
CHANGED
@@ -6,3 +6,8 @@ Feature: Help Banner
|
|
6
6
|
When I run bin/rultor with "-h"
|
7
7
|
Then Exit code is zero
|
8
8
|
And Stdout contains "Display this help message"
|
9
|
+
|
10
|
+
Scenario: Help can be printed if project is not specified
|
11
|
+
When I run bin/rultor with "encrypt"
|
12
|
+
Then Exit code is not zero
|
13
|
+
And Stdout contains "Missing required option(s)"
|
data/lib/rultor/encrypt.rb
CHANGED
@@ -61,13 +61,14 @@ module Rultor
|
|
61
61
|
exit -1
|
62
62
|
fi
|
63
63
|
cd #{Shellwords.escape(@dir)}
|
64
|
-
gpg --symmetric --armor --
|
64
|
+
gpg --symmetric --armor --verbose --batch --no-tty \
|
65
|
+
--passphrase #{Shellwords.escape(@key)} \
|
65
66
|
-o \"${enc}\" \"${file}\"
|
66
67
|
gpg --keyserver hkp://pool.sks-keyservers.net \
|
67
68
|
--verbose --recv-keys 9AF0FA4C
|
68
69
|
gpg --trust-model always \
|
69
70
|
--output \"${asc}\" \
|
70
|
-
--batch --armor --encrypt --verbose \
|
71
|
+
--batch --no-tty --armor --encrypt --verbose \
|
71
72
|
--recipient 9AF0FA4C \"${enc}\"
|
72
73
|
rm -f \"${enc}\"
|
73
74
|
"
|
data/lib/rultor/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rultor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|