bashly 0.8.9 → 0.8.10
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
- data/lib/bashly/config_validator.rb +1 -1
- data/lib/bashly/script/command.rb +6 -0
- data/lib/bashly/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: 93a8d1b32e641bee6713b57ed0cd3e970c8806273f02f900909553dd391d5b43
|
|
4
|
+
data.tar.gz: 4024323aa10f725b947d9b59c4019724bd26a58945ff1436102d57130a677442
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81a26b1e7eb07c45f596db2b3f787af3580cfdc9be9490b7b361670decdf582b3eeb996a889f8409631ea4f9470cb81812d73655727189844b833849e543bbb5
|
|
7
|
+
data.tar.gz: 3d52eb5364d947bfe5e8a9e3efa626d10da75ddd68f1dff3c279aca4f830f4ef52e17b6b65a95f2b4dfcba1927fecbcc5c9445d6f0e02dc472834f48bcb9284e
|
|
@@ -127,6 +127,7 @@ module Bashly
|
|
|
127
127
|
assert_version "#{key}.version", value['version']
|
|
128
128
|
assert_catch_all "#{key}.catch_all", value['catch_all']
|
|
129
129
|
assert_string_or_array "#{key}.alias", value['alias']
|
|
130
|
+
assert_string_or_array "#{key}.examples", value['examples']
|
|
130
131
|
assert_extensible "#{key}.extensible", value['extensible']
|
|
131
132
|
|
|
132
133
|
assert_array "#{key}.args", value['args'], of: :arg
|
|
@@ -136,7 +137,6 @@ module Bashly
|
|
|
136
137
|
assert_array "#{key}.dependencies", value['dependencies'], of: :string
|
|
137
138
|
assert_array "#{key}.filters", value['filters'], of: :string
|
|
138
139
|
assert_array "#{key}.environment_variables", value['environment_variables'], of: :env_var
|
|
139
|
-
assert_array "#{key}.examples", value['examples'], of: :string
|
|
140
140
|
|
|
141
141
|
assert_uniq "#{key}.commands", value['commands'], ['name', 'alias']
|
|
142
142
|
assert_uniq "#{key}.flags", value['flags'], 'long'
|
|
@@ -152,6 +152,12 @@ module Bashly
|
|
|
152
152
|
end
|
|
153
153
|
end
|
|
154
154
|
|
|
155
|
+
# Returns an array of examples
|
|
156
|
+
def examples
|
|
157
|
+
return nil unless options["examples"]
|
|
158
|
+
options["examples"].is_a?(Array) ? options['examples'] : [options['examples']]
|
|
159
|
+
end
|
|
160
|
+
|
|
155
161
|
# Returns the bash filename that is expected to hold the user code
|
|
156
162
|
# for this command
|
|
157
163
|
def filename
|
data/lib/bashly/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bashly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danny Ben Shitrit
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-11-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: completely
|