samovar 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/samovar/command.rb +5 -5
- data/lib/samovar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58236fabb652bc2a55a95575f77222e1bc99ea0f18c545383c14fe4cf996db83
|
4
|
+
data.tar.gz: 843270eb1bd1e2f310c7653314cd3964d539e610627509c032d8926e94249806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 574add44e120a76c74e54632e47df879f2555043b04520b8f1db0770b187b1ddef62fdc93801b2de7383ae3bc5148494f4207e284dc29fd0795d26be6390d947
|
7
|
+
data.tar.gz: 149ba4f3864badc05ccd337b8a1b5dab140e6696c372cffc6b9f448f7f7998c3880164c04d029df628989480fed7d81a8cac1981778c786871511e20002e53ba
|
data/lib/samovar/command.rb
CHANGED
@@ -82,9 +82,9 @@ module Samovar
|
|
82
82
|
|
83
83
|
def self.usage(rows, name)
|
84
84
|
rows.nested(name, self) do |rows|
|
85
|
-
return
|
85
|
+
return unless table = self.table.merged
|
86
86
|
|
87
|
-
|
87
|
+
table.each do |row|
|
88
88
|
if row.respond_to?(:usage)
|
89
89
|
row.usage(rows)
|
90
90
|
else
|
@@ -95,8 +95,8 @@ module Samovar
|
|
95
95
|
end
|
96
96
|
|
97
97
|
def self.command_line(name)
|
98
|
-
if
|
99
|
-
"#{name} #{
|
98
|
+
if table = self.table.merged
|
99
|
+
"#{name} #{table.merged.usage}"
|
100
100
|
else
|
101
101
|
name
|
102
102
|
end
|
@@ -122,7 +122,7 @@ module Samovar
|
|
122
122
|
if input.empty?
|
123
123
|
return self
|
124
124
|
else
|
125
|
-
raise
|
125
|
+
raise InvalidInputError.new(self, input)
|
126
126
|
end
|
127
127
|
end
|
128
128
|
|
data/lib/samovar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: samovar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mapping
|