verto 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 63e5795954f1a3e1fe31e041a36a6203c9334560fb1257989a10d629d93e0aba
4
- data.tar.gz: 7c8210f02f712baed8dfdcdce3028df208734cf20bdc067022444cb4b4bdd472
3
+ metadata.gz: e9cf99e88c0aba3a13434d4507aa20da7caf42f67fd9e0a466973560ed30c4b6
4
+ data.tar.gz: 02eef1a0ac463fdbf6e3bd88b78c704bfe0fb5478f02299c6fe1d6a13ee48b9a
5
5
  SHA512:
6
- metadata.gz: 35c5171078261719b1c1f0746aac6542656e98a960eff6db56ebc9b2cfa907ed61e41d41363ebd5613779e4f8e6d2c5a9d7afeb7d629d071fd10e6d0f3c288a4
7
- data.tar.gz: 32062358949fcc88c8a74803aae2e9e0e9d12ed913ce9729c83ca215dfefcfe104b13ddf464259c47b1f4d125f6f993352bec04caaec8fa151ac06bd6d03c0c2
6
+ metadata.gz: 709df38d0b3579f99521b90d2924fe553f13d7666050b26c4d0785f1a3022dbd97b7287beb80bee0c5b179aa3747a1471ed98e94951ba61586e54eb3b8df09af
7
+ data.tar.gz: 83c4b2c413d7a37d612704f0f37437ac6f92edc709dacda0c3829a5bd77ce27d5de6db15a0fc30776e38849cd56828f040d042fb86eb93690883a66c195f6928
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- verto (0.3.0)
5
- dry-auto_inject (~> 0.6)
4
+ verto (0.3.1)
5
+ dry-auto_inject (~> 0.7)
6
6
  dry-configurable (~> 0.8)
7
7
  dry-container (~> 0.7)
8
8
  thor (~> 1.0.1)
@@ -16,7 +16,7 @@ GEM
16
16
  docile (1.3.2)
17
17
  dry-auto_inject (0.7.0)
18
18
  dry-container (>= 0.3.4)
19
- dry-configurable (0.11.3)
19
+ dry-configurable (0.11.4)
20
20
  concurrent-ruby (~> 1.0)
21
21
  dry-core (~> 0.4, >= 0.4.7)
22
22
  dry-equalizer (~> 0.2)
@@ -11,7 +11,7 @@ module Verto
11
11
  end
12
12
 
13
13
  def options
14
- Verto.config.command_options.merge(super)
14
+ Verto.config.command_options.merge!(super)
15
15
  end
16
16
 
17
17
  def call_hooks(moments = [], with_attributes: {})
@@ -27,7 +27,7 @@ module Verto
27
27
  end
28
28
 
29
29
  def current_branch
30
- git('rev-parse --abbrev-ref HEAD', stdout_output: false).output.chomp.strip
30
+ git('rev-parse --abbrev-ref HEAD', output: false).output.chomp.strip
31
31
  end
32
32
 
33
33
  def branch(*branch_names)
@@ -42,16 +42,16 @@ module Verto
42
42
  block.call if condition
43
43
  end
44
44
 
45
- def git(subcommand, stdout_output: :from_config)
46
- sh("git #{subcommand}", stdout_output: stdout_output)
45
+ def git(subcommand, output: :from_config)
46
+ sh("git #{subcommand}", output: output)
47
47
  end
48
48
 
49
- def sh(command, stdout_output: :from_config)
50
- command_executor(stdout_output: stdout_output).run command
49
+ def sh(command, output: :from_config)
50
+ command_executor(output: output).run command
51
51
  end
52
52
 
53
- def sh!(command, stdout_output: :from_config)
54
- raise Verto::ExitError unless sh(command, stdout_output: stdout_output).success?
53
+ def sh!(command, output: :from_config)
54
+ raise Verto::ExitError unless sh(command, output: output).success?
55
55
  end
56
56
 
57
57
  def command_options
@@ -102,14 +102,14 @@ module Verto
102
102
 
103
103
  private
104
104
 
105
- def command_executor(stdout_output: :from_config)
105
+ def command_executor(output: :from_config)
106
106
  @executors ||= {
107
- from_config: SystemCommandExecutor.new,
108
- true => SystemCommandExecutor.new(stdout: $stdout),
109
- false => SystemCommandExecutor.new(stdout: nil)
107
+ from_config: Verto::SystemCommandExecutor.new,
108
+ true => Verto::SystemCommandExecutor.new(stdout: $stdout, stderr: $stderr),
109
+ false => Verto::SystemCommandExecutor.new(stdout: nil, stderr: nil),
110
110
  }
111
111
 
112
- @executors[stdout_output]
112
+ @executors[output]
113
113
  end
114
114
 
115
115
  def shell_basic
data/lib/verto/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Verto
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/verto.gemspec CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency "thor", "~> 1.0.1"
30
30
  spec.add_dependency "dry-configurable", "~> 0.8"
31
31
  spec.add_dependency "dry-container", "~> 0.7"
32
- spec.add_dependency "dry-auto_inject", "~> 0.6"
32
+ spec.add_dependency "dry-auto_inject", "~> 0.7"
33
33
 
34
34
  spec.add_development_dependency "byebug"
35
35
  spec.add_development_dependency "bundler", "~> 2.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: verto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Atkinson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-20 00:00:00.000000000 Z
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.6'
61
+ version: '0.7'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.6'
68
+ version: '0.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: byebug
71
71
  requirement: !ruby/object:Gem::Requirement