samovar 2.1.1 → 2.1.2

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: e3b8f50d374a3f2f2bac345944d4f245f3905e787f70f318aa0dc76e39dbbb8d
4
- data.tar.gz: 2fe705e84b73fbc3d172e4a781a9fe957ef854c44b70cce2517624c307f56cda
3
+ metadata.gz: ecb004ddf75498e8cbf4e018680b600b5d443b1fe4ab1c4fac1b9ffffa3536be
4
+ data.tar.gz: 2f1ccc87b5fb268e7c0caa14d3eb8d6d9bf57b0ba83958a3949673989cc67468
5
5
  SHA512:
6
- metadata.gz: 5d4355cdffffe5993a35cd5d8e390520725d71599bb058da09a2f44448d1092af4186e260a5f5679437945d9094f43d0aab28fc013e1aeb05758017b087b8d8a
7
- data.tar.gz: bd6fdc1053c4413bb9d8e5ffdd9b0eaaf21c48a2704b350646d5c3d2986d1eb4729bf0b613129a9cb1d3a99e55585afba5a4cbddc216331a5c4062897616cf8d
6
+ metadata.gz: 0bc2b0369414705c978012ca126a3f24cd40ba3664a62a1a2a8bed8c1881cf741265af4d90fbf32f0b36c3ede0928627253e7ed7ab056d1548c8b291d029f262
7
+ data.tar.gz: b1addcb523946960d7d6b399b518af2c6e7dfd91f7128fad75d3ec818f7552e57f8bcac0f2641237d051c232bb8de632bd4f1d02ff75d9dfa8b014e44096512c
@@ -66,24 +66,24 @@ module Samovar
66
66
  self.table << row
67
67
  end
68
68
 
69
- def self.options(*args, **options, &block)
70
- append Options.parse(*args, **options, &block)
69
+ def self.options(*arguments, **options, &block)
70
+ append Options.parse(*arguments, **options, &block)
71
71
  end
72
72
 
73
- def self.nested(*args, **options)
74
- append Nested.new(*args, **options)
73
+ def self.nested(*arguments, **options)
74
+ append Nested.new(*arguments, **options)
75
75
  end
76
76
 
77
- def self.one(*args, **options)
78
- append One.new(*args, **options)
77
+ def self.one(*arguments, **options)
78
+ append One.new(*arguments, **options)
79
79
  end
80
80
 
81
- def self.many(*args, **options)
82
- append Many.new(*args, **options)
81
+ def self.many(*arguments, **options)
82
+ append Many.new(*arguments, **options)
83
83
  end
84
84
 
85
- def self.split(*args, **options)
86
- append Split.new(*args, **options)
85
+ def self.split(*arguments, **options)
86
+ append Split.new(*arguments, **options)
87
87
  end
88
88
 
89
89
  def self.usage(rows, name)
@@ -22,8 +22,8 @@ require_relative 'option'
22
22
 
23
23
  module Samovar
24
24
  class Options
25
- def self.parse(*args, **options, &block)
26
- options = self.new(*args, **options)
25
+ def self.parse(*arguments, **options, &block)
26
+ options = self.new(*arguments, **options)
27
27
 
28
28
  options.instance_eval(&block) if block_given?
29
29
 
@@ -76,8 +76,8 @@ module Samovar
76
76
  @ordered.empty?
77
77
  end
78
78
 
79
- def option(*args, **options, &block)
80
- self << Option.new(*args, **options, &block)
79
+ def option(*arguments, **options, &block)
80
+ self << Option.new(*arguments, **options, &block)
81
81
  end
82
82
 
83
83
  def merge!(options)
@@ -72,8 +72,8 @@ module Samovar
72
72
  @columns ||= Columns.new(@rows.select{|row| row.is_a? Array})
73
73
  end
74
74
 
75
- def nested(*args)
76
- @rows << Header.new(*args)
75
+ def nested(*arguments)
76
+ @rows << Header.new(*arguments)
77
77
 
78
78
  nested_rows = self.class.new(@level + 1)
79
79
 
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Samovar
22
- VERSION = "2.1.1"
22
+ VERSION = "2.1.2"
23
23
  end
@@ -47,8 +47,8 @@ module Samovar::CommandSpec
47
47
 
48
48
  RSpec.describe Samovar::Command do
49
49
  it "should invoke call" do
50
- expect(Top).to receive(:new).and_wrap_original do |original_method, *args, &block|
51
- original_method.call(*args, &block).tap do |instance|
50
+ expect(Top).to receive(:new).and_wrap_original do |original_method, *arguments, &block|
51
+ original_method.call(*arguments, &block).tap do |instance|
52
52
  expect(instance).to receive(:call)
53
53
  end
54
54
  end
@@ -28,7 +28,7 @@ RSpec.describe Samovar::Table do
28
28
  it "can merge options" do
29
29
  parent << Samovar::Options.parse
30
30
  subject << Samovar::Options.parse do
31
- option "--help"
31
+ option "--help", "Print help information."
32
32
  end
33
33
 
34
34
  subject.merged
@@ -36,5 +36,4 @@ RSpec.describe Samovar::Table do
36
36
 
37
37
  expect(parent[:options]).to be_empty
38
38
  end
39
-
40
39
  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.1.1
4
+ version: 2.1.2
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-29 00:00:00.000000000 Z
11
+ date: 2019-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mapping
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  requirements: []
159
- rubygems_version: 3.0.2
159
+ rubygems_version: 3.0.4
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Samovar is a flexible option parser excellent support for sub-commands and