sod 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ee8f674abff351c9f307c6b98417682ecc89c427444233395cf16af66740ea6
4
- data.tar.gz: 26f55cdbd27b83a88b877b3c9ce30e9d1aa2f61a9712ece10cf5d66cbe2d60d0
3
+ metadata.gz: fbeb70d86f9d9ca8042714d2baed533078ef7652fcc38e1e33d9e1a32908ffd1
4
+ data.tar.gz: 2275ad5d786fad4a9ec8a00e1d60aba8b55cee64ed1f43787e8abe49bd8d0b60
5
5
  SHA512:
6
- metadata.gz: 11ec2bcdfa719d05e5e0207c188f3260760941170797842c11d15140cfdbba63e50936e225c4cba71e4b03049f06f1e0438baa139b9d67adf07f3daea3cf685e
7
- data.tar.gz: aa2bb153f950ff20f53c34c26e4ebdc65081e5a5c2dde3385e0c239822b3872a0475009e8da91af1c7090919276ce2936b22375f3c377c8183360b42ff2d42e4
6
+ metadata.gz: 7b32f22c9394f7fa235e85c78aa642410c46ac7cf1cc95e7375a0c2219fc3553a1f18e45e301f0859848bcdf48edcd95c5b1bf6a02c5bc17ab99b23d0c67b55c
7
+ data.tar.gz: 79a09c03adcc936b3a17f4575283ab2dbb8ad883f6aa87163ee7777bb4ea295594787f63be569134d68f871576dfaebd96ced468f3d3b62bddbf8914ba3b86d2
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/sod/action.rb CHANGED
@@ -17,11 +17,11 @@ module Sod
17
17
  @description ? fail(Error, "Description can only be defined once.") : @description = text
18
18
  end
19
19
 
20
- def self.ancillary(*lines)
20
+ def self.ancillary *lines
21
21
  @ancillary ? fail(Error, "Ancillary can only be defined once.") : @ancillary = lines
22
22
  end
23
23
 
24
- def self.on(aliases, **keywords)
24
+ def self.on aliases, **keywords
25
25
  fail Error, "On can only be defined once." if @attributes.any?
26
26
 
27
27
  @attributes.merge! keywords, aliases: Array(aliases)
data/lib/sod/command.rb CHANGED
@@ -23,7 +23,7 @@ module Sod
23
23
  @description ? fail(Error, "Description can only be defined once.") : @description = text
24
24
  end
25
25
 
26
- def self.ancillary(*lines)
26
+ def self.ancillary *lines
27
27
  @ancillary ? fail(Error, "Ancillary can only be defined once.") : @ancillary = lines
28
28
  end
29
29
 
@@ -66,13 +66,13 @@ module Sod
66
66
  end
67
67
  end
68
68
 
69
- def usage(*arguments)
69
+ def usage *arguments
70
70
  commands = arguments.grep_v help_pattern
71
71
  commands = lineage.split if commands.empty?
72
72
  help(*commands)
73
73
  end
74
74
 
75
- def help(*commands)
75
+ def help *commands
76
76
  graph.get_action("help").then { |action| action.call(*commands) if action }
77
77
  end
78
78
 
data/sod.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sod"
5
- spec.version = "2.3.0"
5
+ spec.version = "2.4.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/sod"
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sod
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
196
  requirements: []
197
- rubygems_version: 4.0.12
197
+ rubygems_version: 4.0.16
198
198
  specification_version: 4
199
199
  summary: A domain specific language for creating composable command line interfaces.
200
200
  test_files: []
metadata.gz.sig CHANGED
Binary file