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 +4 -4
- data/Gemfile.lock +3 -3
- data/lib/verto/commands/base_command.rb +1 -1
- data/lib/verto/dsl/syntax.rb +12 -12
- data/lib/verto/version.rb +1 -1
- data/verto.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9cf99e88c0aba3a13434d4507aa20da7caf42f67fd9e0a466973560ed30c4b6
|
4
|
+
data.tar.gz: 02eef1a0ac463fdbf6e3bd88b78c704bfe0fb5478f02299c6fe1d6a13ee48b9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
5
|
-
dry-auto_inject (~> 0.
|
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.
|
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)
|
data/lib/verto/dsl/syntax.rb
CHANGED
@@ -27,7 +27,7 @@ module Verto
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def current_branch
|
30
|
-
git('rev-parse --abbrev-ref HEAD',
|
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,
|
46
|
-
sh("git #{subcommand}",
|
45
|
+
def git(subcommand, output: :from_config)
|
46
|
+
sh("git #{subcommand}", output: output)
|
47
47
|
end
|
48
48
|
|
49
|
-
def sh(command,
|
50
|
-
command_executor(
|
49
|
+
def sh(command, output: :from_config)
|
50
|
+
command_executor(output: output).run command
|
51
51
|
end
|
52
52
|
|
53
|
-
def sh!(command,
|
54
|
-
raise Verto::ExitError unless sh(command,
|
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(
|
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[
|
112
|
+
@executors[output]
|
113
113
|
end
|
114
114
|
|
115
115
|
def shell_basic
|
data/lib/verto/version.rb
CHANGED
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.
|
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.
|
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-
|
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.
|
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.
|
68
|
+
version: '0.7'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: byebug
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|