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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa9e121ef420e04772db3d34b1d9ad092555e63e
4
- data.tar.gz: a827587579ae72e8b1cf3f3ab3944fa76e0484aa
3
+ metadata.gz: 05cd1df4db9b3f1f4e69761494e2ae24e2551f7b
4
+ data.tar.gz: 074f4b221bf78b6181c4356aff5429cf97317acd
5
5
  SHA512:
6
- metadata.gz: 4f15446e42472449f07cd8bbe8102d6926d95da46f480011ae73e6e1b4acfdd9376357c198ed4bfda76b969ffdb36c04759d1e3666e58b498cae04fed8acf7c6
7
- data.tar.gz: 96ab9f46c1063cedc0a01713798c53913cc562f0673ca1349c980db59e8a40a2e0ed6bffcec12d45f9fca7644e2eb802234faa78a3cddcd05c55b36bae37fdcc
6
+ metadata.gz: e03a38f10b0a15d05ba59b268e74ba6161e9f4c92f64345b7fd0cb31611d015080047e14ed841b692633060167ac257fce624253408c7a85c3bd895ec089a3f6
7
+ data.tar.gz: 9a88fcea8fd893bb9a289ee7d054cdc997f9483643205c6ab2280b10f1ed84ec8f148f5064c7d2c2be5c1594f3bbb6d1572db9e53a3c5a4a4df23c3204c0e1aa
@@ -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
@@ -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.ask('Do you want to try editing the same file again? (y/n)')
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
@@ -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|
@@ -1,12 +1,15 @@
1
1
  require 'forwardable'
2
- require 'tty'
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
  #
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module Arcanus
5
- VERSION = '1.2.0'.freeze
5
+ VERSION = '1.3.0'.freeze
6
6
  end
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.2.0
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: 2017-06-16 00:00:00.000000000 Z
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: tty
29
+ name: pastel
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0.3'
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.3'
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: