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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/sod/action.rb +2 -2
- data/lib/sod/command.rb +1 -1
- data/lib/sod/graph/runner.rb +2 -2
- data/sod.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fbeb70d86f9d9ca8042714d2baed533078ef7652fcc38e1e33d9e1a32908ffd1
|
|
4
|
+
data.tar.gz: 2275ad5d786fad4a9ec8a00e1d60aba8b55cee64ed1f43787e8abe49bd8d0b60
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
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
|
|
26
|
+
def self.ancillary *lines
|
|
27
27
|
@ancillary ? fail(Error, "Ancillary can only be defined once.") : @ancillary = lines
|
|
28
28
|
end
|
|
29
29
|
|
data/lib/sod/graph/runner.rb
CHANGED
|
@@ -66,13 +66,13 @@ module Sod
|
|
|
66
66
|
end
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
def usage
|
|
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
|
|
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
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.
|
|
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.
|
|
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
|