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 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
@@ -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)"
@@ -61,13 +61,14 @@ module Rultor
61
61
  exit -1
62
62
  fi
63
63
  cd #{Shellwords.escape(@dir)}
64
- gpg --symmetric --armor --passphrase #{Shellwords.escape(@key)} \
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
  "
@@ -33,5 +33,5 @@
33
33
  # Copyright:: Copyright (c) 2014 Yegor Bugayenko
34
34
  # License:: BSD
35
35
  module Rultor
36
- VERSION = '0.3.0'
36
+ VERSION = '0.3.1'
37
37
  end
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.0
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-10-01 00:00:00.000000000 Z
12
+ date: 2014-11-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake