arcanus 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arcanus/chest.rb +1 -1
- data/lib/arcanus/command/edit.rb +1 -5
- data/lib/arcanus/command/help.rb +1 -1
- data/lib/arcanus/ui.rb +5 -2
- data/lib/arcanus/version.rb +1 -1
- metadata +47 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05cd1df4db9b3f1f4e69761494e2ae24e2551f7b
|
4
|
+
data.tar.gz: 074f4b221bf78b6181c4356aff5429cf97317acd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e03a38f10b0a15d05ba59b268e74ba6161e9f4c92f64345b7fd0cb31611d015080047e14ed841b692633060167ac257fce624253408c7a85c3bd895ec089a3f6
|
7
|
+
data.tar.gz: 9a88fcea8fd893bb9a289ee7d054cdc997f9483643205c6ab2280b10f1ed84ec8f148f5064c7d2c2be5c1594f3bbb6d1572db9e53a3c5a4a4df23c3204c0e1aa
|
data/lib/arcanus/chest.rb
CHANGED
@@ -210,7 +210,7 @@ module Arcanus
|
|
210
210
|
"expected #{signature} but got #{actual_signature}"
|
211
211
|
end
|
212
212
|
|
213
|
-
Marshal.load(dumped_value)
|
213
|
+
Marshal.load(dumped_value) # rubocop:disable MarshalLoad
|
214
214
|
end
|
215
215
|
|
216
216
|
# Helper class for returning contents nested hashes, exposing helpers to
|
data/lib/arcanus/command/edit.rb
CHANGED
@@ -59,11 +59,7 @@ module Arcanus::Command
|
|
59
59
|
rescue => ex
|
60
60
|
ui.error "Error occurred while modifying the chest: #{ex.message}"
|
61
61
|
|
62
|
-
unless ui.
|
63
|
-
.argument(:required)
|
64
|
-
.default('y')
|
65
|
-
.modify('downcase')
|
66
|
-
.read_string == 'y'
|
62
|
+
unless ui.yes?('Do you want to try editing the same file again?')
|
67
63
|
break
|
68
64
|
end
|
69
65
|
end
|
data/lib/arcanus/command/help.rb
CHANGED
@@ -23,7 +23,7 @@ module Arcanus::Command
|
|
23
23
|
|
24
24
|
def command_classes
|
25
25
|
command_files =
|
26
|
-
Dir[File.join(File.dirname(__FILE__), '*.rb')]
|
26
|
+
Dir[File.join(File.dirname(__FILE__), '*.rb')] # rubocop:disable InverseMethods
|
27
27
|
.select { |path| File.basename(path, '.rb') != 'base' }
|
28
28
|
|
29
29
|
command_files.map do |file|
|
data/lib/arcanus/ui.rb
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
require 'forwardable'
|
2
|
-
require '
|
2
|
+
require 'pastel'
|
3
|
+
require 'tty-prompt'
|
4
|
+
require 'tty-spinner'
|
5
|
+
require 'tty-table'
|
3
6
|
|
4
7
|
module Arcanus
|
5
8
|
# Manages all interaction with the user.
|
6
9
|
class UI
|
7
10
|
extend Forwardable
|
8
11
|
|
9
|
-
def_delegators :@prompt, :ask, :confirm
|
12
|
+
def_delegators :@prompt, :ask, :confirm, :yes?
|
10
13
|
|
11
14
|
# Creates a {UI} that mediates between the given input/output streams.
|
12
15
|
#
|
data/lib/arcanus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arcanus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brigade Engineering
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-05-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: diffy
|
@@ -26,19 +26,61 @@ dependencies:
|
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '3.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: pastel
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '0.
|
34
|
+
version: '0.7'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '0.
|
41
|
+
version: '0.7'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: tty-prompt
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0.16'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0.16'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: tty-spinner
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0.8'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.8'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: tty-table
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0.10'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.10'
|
42
84
|
description: Tool for working with encrypted secrets in repositories
|
43
85
|
email:
|
44
86
|
- eng@brigade.com
|
@@ -97,4 +139,3 @@ signing_key:
|
|
97
139
|
specification_version: 4
|
98
140
|
summary: Arcanus command line interface
|
99
141
|
test_files: []
|
100
|
-
has_rdoc:
|