clasp-ruby 0.19.0 → 0.19.0.1
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/examples/flag_and_option_specifications.md +1 -1
- data/lib/clasp/specifications.rb +12 -31
- data/lib/clasp/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a53d6c900252281890a4facb28c4badbab145a3
|
4
|
+
data.tar.gz: 3a0e3f07b6646e1a9505012ba9132339140ce990
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad0c1018985cb278b2be2fe7b19f4c7968a694b0bbf253b0a365c60d23fc6fea1dc66c8c2a14e40433230e5b18c672a29e3bd4e57a688630e61e129daf518e1e
|
7
|
+
data.tar.gz: 6ad7bd5f509d26d84f773c35a029473481cf25363500ef10d98718d184c0d6869fa33772071f34c050034cf6d60e6cb294c57d49a3b94f393c08e40e978d84bd
|
data/lib/clasp/specifications.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# Purpose: Argument specification classes
|
6
6
|
#
|
7
7
|
# Created: 25th October 2014
|
8
|
-
# Updated:
|
8
|
+
# Updated: 19th April 2019
|
9
9
|
#
|
10
10
|
# Home: http://github.com/synesissoftware/CLASP.Ruby
|
11
11
|
#
|
@@ -166,14 +166,8 @@ class OptionSpecification
|
|
166
166
|
# - +help+:: (+String+) The help string, which may be +nil+
|
167
167
|
# - +values_range+:: (+Array+) 0 or more strings specifying values supported by the option
|
168
168
|
# - +default_value+:: (+String+) The default value of the option. May be +nil+
|
169
|
-
# - +required+:: [boolean] Whether the option is required. May be
|
170
|
-
#
|
171
|
-
# - +required_message+:: [::String] Message to be used when reporting
|
172
|
-
# that a required option is missing. May be +nil+ in which case a
|
173
|
-
# message of the form "<option-name> not specified; use --help for
|
174
|
-
# usage". If begins with the nul character ("\0"), then is used in
|
175
|
-
# the place of the <option-name> and placed into the rest of the
|
176
|
-
# standard form message
|
169
|
+
# - +required+:: [boolean] Whether the option is required. May be +nil+
|
170
|
+
# - +required_message+:: [::String] Message to be used when reporting that a required option is missing. May be +nil+ in which case a message of the form "<option-name> not specified; use --help for usage". If begins with the nul character ("\0"), then is used in the place of the <option-name> and placed into the rest of the standard form message
|
177
171
|
# - +extras+:: An application-defined additional parameter. If +nil+, it is assigned an empty +Hash+
|
178
172
|
def initialize(name, aliases, help, values_range, default_value, required, required_message, extras = nil)
|
179
173
|
|
@@ -308,15 +302,12 @@ end
|
|
308
302
|
#
|
309
303
|
# * *Parameters:*
|
310
304
|
# - +name+:: [::String] The flag name, e.g. '--verbose'
|
311
|
-
# - +options+:: [::Hash] An options hash, containing any of the following
|
312
|
-
# options:
|
305
|
+
# - +options+:: [::Hash] An options hash, containing any of the following options:
|
313
306
|
#
|
314
307
|
# * *Options:*
|
315
308
|
# - +:alias+ [::String] An alias, e.g. '-v'
|
316
|
-
# - +:aliases+ [::Array] An array of aliases, e.g. [ '-v', '-verb' ]
|
317
|
-
#
|
318
|
-
# - +:extras+ An application-defined object, usually a hash of custom
|
319
|
-
# attributes
|
309
|
+
# - +:aliases+ [::Array] An array of aliases, e.g. [ '-v', '-verb' ]. Ignored if +:alias+ is specified
|
310
|
+
# - +:extras+ An application-defined object, usually a hash of custom attributes
|
320
311
|
# - +:help+ [::String] A help string
|
321
312
|
def CLASP.Flag(name, options = {})
|
322
313
|
|
@@ -361,29 +352,19 @@ end
|
|
361
352
|
#
|
362
353
|
# * *Parameters:*
|
363
354
|
# - +name+:: [::String] The flag name, e.g. '--verbose'
|
364
|
-
# - +options+:: [::Hash] An options hash, containing any of the following
|
365
|
-
# options:
|
355
|
+
# - +options+:: [::Hash] An options hash, containing any of the following options:
|
366
356
|
#
|
367
357
|
# * *Options:*
|
368
358
|
# - +:alias+ [::String] An alias, e.g. '-v'
|
369
|
-
# - +:aliases+ [::Array] An array of aliases, e.g. [ '-v', '-verb' ].
|
370
|
-
# Ignored if +:alias+ is specified
|
359
|
+
# - +:aliases+ [::Array] An array of aliases, e.g. [ '-v', '-verb' ]. Ignored if +:alias+ is specified
|
371
360
|
# - +:default_value+ The default value for the option
|
372
361
|
# - +:default+ [DEPRECATED] Alternative to +:default_value+
|
373
|
-
# - +:extras+ An application-defined object, usually a hash of custom
|
374
|
-
# attributes
|
362
|
+
# - +:extras+ An application-defined object, usually a hash of custom attributes
|
375
363
|
# - +:help+ [::String] A help string
|
376
|
-
# - +required+:: [boolean] Whether the option is required. May be
|
377
|
-
#
|
378
|
-
# - +required_message+:: [::String] Message to be used when reporting
|
379
|
-
# that a required option is missing. May be +nil+ in which case a
|
380
|
-
# message of the form "<option-name> not specified; use --help for
|
381
|
-
# usage". If begins with the nul character ("\0"), then is used in
|
382
|
-
# the place of the <option-name> and placed into the rest of the
|
383
|
-
# standard form message
|
364
|
+
# - +required+:: [boolean] Whether the option is required. May be +nil+
|
365
|
+
# - +required_message+:: [::String] Message to be used when reporting that a required option is missing. May be +nil+ in which case a message of the form "<option-name> not specified; use --help for usage". If begins with the nul character ("\0"), then is used in the place of the <option-name> and placed into the rest of the standard form message
|
384
366
|
# - +extras+:: An application-defined additional parameter. If +nil+, it is assigned an empty +Hash+.
|
385
|
-
# - +:values_range+ [::Array] An array defining the accepted values for
|
386
|
-
# the option
|
367
|
+
# - +:values_range+ [::Array] An array defining the accepted values for the option
|
387
368
|
# - +:values+ [DEPRECATED] Alternative to +:values_range+
|
388
369
|
def CLASP.Option(name, options = {})
|
389
370
|
|
data/lib/clasp/version.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# Purpose: Version for CLASP.Ruby library
|
6
6
|
#
|
7
7
|
# Created: 16th November 2014
|
8
|
-
# Updated:
|
8
|
+
# Updated: 19th April 2019
|
9
9
|
#
|
10
10
|
# Home: http://github.com/synesissoftware/CLASP.Ruby
|
11
11
|
#
|
@@ -51,7 +51,7 @@
|
|
51
51
|
module CLASP
|
52
52
|
|
53
53
|
# Current version of the CLASP.Ruby library
|
54
|
-
VERSION = '0.19.0'
|
54
|
+
VERSION = '0.19.0.1'
|
55
55
|
|
56
56
|
private
|
57
57
|
VERSION_PARTS_ = VERSION.split(/[.]/).collect { |n| n.to_i } # :nodoc:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clasp-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.0
|
4
|
+
version: 0.19.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xqsr3
|