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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d7ea0c2f3e68eea317420d35531661fcca9c912d034eb26eae71572ba7977cf
4
- data.tar.gz: 25406ee8967a8a5854145683cdca839c62ba1999f8f8077582705423ca0613ed
3
+ metadata.gz: 58236fabb652bc2a55a95575f77222e1bc99ea0f18c545383c14fe4cf996db83
4
+ data.tar.gz: 843270eb1bd1e2f310c7653314cd3964d539e610627509c032d8926e94249806
5
5
  SHA512:
6
- metadata.gz: b48456ba224e7025fa4e16d3dc5a472795d6261f2861f50daf8b948dc28eb1936c56b23f3e0dc046260d59a933153a8b78ab7e66d80ccef265f1c73b89bc1d48
7
- data.tar.gz: f1a65ab649c96805d5addc23f73dee070f5d505be81842f5f0944a0d52a600024e8ad12d4d18d1eadb91786c349688797f31a16853ee0af5708367287e345ed9
6
+ metadata.gz: 574add44e120a76c74e54632e47df879f2555043b04520b8f1db0770b187b1ddef62fdc93801b2de7383ae3bc5148494f4207e284dc29fd0795d26be6390d947
7
+ data.tar.gz: 149ba4f3864badc05ccd337b8a1b5dab140e6696c372cffc6b9f448f7f7998c3880164c04d029df628989480fed7d81a8cac1981778c786871511e20002e53ba
@@ -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 if @table.nil?
85
+ return unless table = self.table.merged
86
86
 
87
- @table.merged.each do |row|
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 @table
99
- "#{name} #{@table.merged.usage}"
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 IncompleteParse.new(self, input)
125
+ raise InvalidInputError.new(self, input)
126
126
  end
127
127
  end
128
128
 
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Samovar
22
- VERSION = "2.0.0"
22
+ VERSION = "2.0.1"
23
23
  end
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.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-25 00:00:00.000000000 Z
11
+ date: 2019-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mapping