arcanus 0.10.1 → 0.11.0

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
  SHA1:
3
- metadata.gz: d2e5e53cc28e796acf5fb491a39fda2150351c76
4
- data.tar.gz: 60032a08f66b98db7f96d2e7b5632055ff7f235e
3
+ metadata.gz: 3046fa13db4b1d93dadc5adeb696c2c7b5281e12
4
+ data.tar.gz: 0059c2568c2cf03204ffaf9f06d4aa7b4ef65bd8
5
5
  SHA512:
6
- metadata.gz: 279f8b1d5229999b6de7f8dbaef6cdd9dcca0109eaf711b89d103ba45cafc155492c2a3313f24c1fa6694fd9a2e7c969a3e83764c9b2ba177d15ec62fe73f50d
7
- data.tar.gz: 218868b47a3f6fb08571c02400d97b13fc133557e37ad6343de4ea450b5f96322f22a7a926ce58e0ac5ed6c2fe348a677921f74a0e4b62a360947379c26b53c7
6
+ metadata.gz: fa0afca95a568dc275976b64cb1f77556a5f59525382c81df0c6a14ebaab91fa9b03b9ac6c5b4b4b7cf095e03d2c6fb6d91ff04709b2a006f72ad673ea5a36be
7
+ data.tar.gz: 5d8443ac96685dfbdc90d4fa0622451ea1f3875f6419be4f4a586f7a0fb07427fa270bda3fcb58ace75fc91f97ca97d8b81320a276be44e3caa41359b2a8255c
@@ -33,7 +33,7 @@ module Arcanus::Command
33
33
  private
34
34
 
35
35
  def editor_defined?
36
- !ENV['EDITOR'].strip.empty?
36
+ !ENV['EDITOR'].to_s.strip.empty?
37
37
  end
38
38
 
39
39
  def edit_single_key(chest, key_path, new_value)
@@ -3,6 +3,7 @@ module Arcanus::Command
3
3
  description 'Unlocks key so secrets can be encrypted/decrypted'
4
4
 
5
5
  def execute
6
+ return unless has_chest?
6
7
  return if already_unlocked?
7
8
 
8
9
  ui.print "This repository's Arcanus key is locked by a password."
@@ -20,6 +21,16 @@ module Arcanus::Command
20
21
 
21
22
  private
22
23
 
24
+ def has_chest?
25
+ return true if repo.has_chest_file?
26
+
27
+ ui.error 'This repository does not have an Arcanus chest.'
28
+ ui.print 'Create one by running:'
29
+ ui.info 'arcanus setup'
30
+
31
+ false
32
+ end
33
+
23
34
  def already_unlocked?
24
35
  return unless repo.has_unlocked_key?
25
36
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module Arcanus
5
- VERSION = '0.10.1'.freeze
5
+ VERSION = '0.11.0'.freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcanus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-04 00:00:00.000000000 Z
11
+ date: 2016-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: childprocess
@@ -98,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - ">="
100
100
  - !ruby/object:Gem::Version
101
- version: 2.0.0
101
+ version: '2.1'
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - ">="
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.4.5.1
109
+ rubygems_version: 2.5.1
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Arcanus command line interface