clasp-ruby 0.16.0 → 0.16.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.
- data/README.md +5 -1
- data/lib/clasp/version.rb +2 -2
- data/test/unit/tc_arguments_inspect.rb +8 -2
- metadata +29 -18
- checksums.yaml +0 -7
data/README.md
CHANGED
|
@@ -13,12 +13,16 @@ Install via **gem** as in:
|
|
|
13
13
|
|
|
14
14
|
or add it to your `Gemfile`.
|
|
15
15
|
|
|
16
|
-
Use via **require
|
|
16
|
+
Use via **require**, as in:
|
|
17
17
|
|
|
18
18
|
```Ruby
|
|
19
19
|
require 'clasp'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
## Examples
|
|
23
|
+
|
|
24
|
+
Examples are provided in the ```examples``` directory, along with a markdown description for each. A detailed list TOC of them is provided in [EXAMPLES.md](./EXAMPLES.md).
|
|
25
|
+
|
|
22
26
|
## Description
|
|
23
27
|
|
|
24
28
|
**CLASP** stands for **C**ommand-**L**ine **A**rgument **S**orting and
|
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: 10th 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.16.
|
|
54
|
+
VERSION = '0.16.1'
|
|
55
55
|
|
|
56
56
|
private
|
|
57
57
|
VERSION_PARTS_ = VERSION.split(/[.]/).collect { |n| n.to_i } # :nodoc:
|
|
@@ -61,7 +61,10 @@ class Test_Arguments_inspect_and_to_s < Test::Unit::TestCase
|
|
|
61
61
|
args = Arguments.new argv
|
|
62
62
|
|
|
63
63
|
assert_equal %Q<["-f"]>, args.flags.to_s
|
|
64
|
-
|
|
64
|
+
if RUBY_VERSION >= '2'
|
|
65
|
+
|
|
66
|
+
assert_match /#<Array:0x[0-9a-fA-Z]+\s+\[#<CLASP::Arguments::FlagArgument:0x.*-f.*>\].*>/, args.flags.inspect
|
|
67
|
+
end
|
|
65
68
|
|
|
66
69
|
assert_equal %Q<[]>, args.options.to_s
|
|
67
70
|
assert_match /#<Array:0x[0-9a-fA-Z]+\s+\[\].*>/, args.options.inspect
|
|
@@ -76,7 +79,10 @@ class Test_Arguments_inspect_and_to_s < Test::Unit::TestCase
|
|
|
76
79
|
args = Arguments.new argv
|
|
77
80
|
|
|
78
81
|
assert_equal %Q<["-f", "-g"]>, args.flags.to_s
|
|
79
|
-
|
|
82
|
+
if RUBY_VERSION >= '2'
|
|
83
|
+
|
|
84
|
+
assert_match /#<Array:0x[0-9a-fA-Z]+\s+\[#<CLASP::Arguments::FlagArgument:0x.*-f.*-g.*>\].*>/, args.flags.inspect
|
|
85
|
+
end
|
|
80
86
|
|
|
81
87
|
assert_equal %Q<[]>, args.options.to_s
|
|
82
88
|
assert_match /#<Array:0x[0-9a-fA-Z]+\s+\[\].*>/, args.options.inspect
|
metadata
CHANGED
|
@@ -1,46 +1,52 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: clasp-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.16.
|
|
4
|
+
version: 0.16.1
|
|
5
|
+
prerelease:
|
|
5
6
|
platform: ruby
|
|
6
7
|
authors:
|
|
7
8
|
- Matt Wilson
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
12
|
+
date: 2019-04-10 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: xqsr3
|
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
16
18
|
requirements:
|
|
17
|
-
- -
|
|
19
|
+
- - ~>
|
|
18
20
|
- !ruby/object:Gem::Version
|
|
19
21
|
version: '0.30'
|
|
20
22
|
type: :development
|
|
21
23
|
prerelease: false
|
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
23
26
|
requirements:
|
|
24
|
-
- -
|
|
27
|
+
- - ~>
|
|
25
28
|
- !ruby/object:Gem::Version
|
|
26
29
|
version: '0.30'
|
|
27
|
-
description:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
description: ! 'Command-Line Argument Sorting and Parsing library that provides a
|
|
31
|
+
powerful
|
|
32
|
+
|
|
33
|
+
abstraction of command-line interpretation facilities. CLASP.Ruby is a Ruby port
|
|
34
|
+
of the popular CLASP (C/C++) library, and provides declarative specification of
|
|
35
|
+
command-line flags and options, aliasing, flag combination, UNIX de-facto standard
|
|
36
|
+
flag processing, and a number of utility functions for expressing usage and version
|
|
37
|
+
information.
|
|
38
|
+
|
|
39
|
+
'
|
|
30
40
|
email: matthew@synesis.com.au
|
|
31
41
|
executables: []
|
|
32
42
|
extensions: []
|
|
33
43
|
extra_rdoc_files: []
|
|
34
44
|
files:
|
|
35
|
-
- LICENSE
|
|
36
|
-
- README.md
|
|
37
45
|
- examples/cr-example.rb
|
|
38
46
|
- examples/flag_and_option_aliases.md
|
|
39
47
|
- examples/flag_and_option_aliases.rb
|
|
40
48
|
- examples/show_usage_and_version.md
|
|
41
49
|
- examples/show_usage_and_version.rb
|
|
42
|
-
- lib/clasp-ruby.rb
|
|
43
|
-
- lib/clasp.rb
|
|
44
50
|
- lib/clasp/aliases.rb
|
|
45
51
|
- lib/clasp/arguments.rb
|
|
46
52
|
- lib/clasp/clasp.rb
|
|
@@ -48,16 +54,18 @@ files:
|
|
|
48
54
|
- lib/clasp/doc_.rb
|
|
49
55
|
- lib/clasp/old_module.rb
|
|
50
56
|
- lib/clasp/version.rb
|
|
57
|
+
- lib/clasp-ruby.rb
|
|
58
|
+
- lib/clasp.rb
|
|
51
59
|
- test/scratch/test_aliases.rb
|
|
52
60
|
- test/scratch/test_list_command_line.rb
|
|
53
61
|
- test/scratch/test_usage.rb
|
|
54
62
|
- test/scratch/test_usage_with_duplicate_aliases.rb
|
|
55
|
-
- test/unit/tc_ARGV_rewrite.rb
|
|
56
63
|
- test/unit/tc_aliases.rb
|
|
57
64
|
- test/unit/tc_arguments_1.rb
|
|
58
65
|
- test/unit/tc_arguments_2.rb
|
|
59
66
|
- test/unit/tc_arguments_3.rb
|
|
60
67
|
- test/unit/tc_arguments_inspect.rb
|
|
68
|
+
- test/unit/tc_ARGV_rewrite.rb
|
|
61
69
|
- test/unit/tc_cli.rb
|
|
62
70
|
- test/unit/tc_defaults_1.rb
|
|
63
71
|
- test/unit/tc_examples_Arguments.rb
|
|
@@ -65,28 +73,31 @@ files:
|
|
|
65
73
|
- test/unit/tc_option_required.rb
|
|
66
74
|
- test/unit/tc_usage.rb
|
|
67
75
|
- test/unit/ts_all.rb
|
|
76
|
+
- README.md
|
|
77
|
+
- LICENSE
|
|
68
78
|
homepage: http://github.com/synesissoftware/CLASP.Ruby
|
|
69
79
|
licenses:
|
|
70
80
|
- BSD 3-Clause
|
|
71
|
-
metadata: {}
|
|
72
81
|
post_install_message:
|
|
73
82
|
rdoc_options: []
|
|
74
83
|
require_paths:
|
|
75
84
|
- lib
|
|
76
85
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
86
|
+
none: false
|
|
77
87
|
requirements:
|
|
78
|
-
- -
|
|
88
|
+
- - ! '>='
|
|
79
89
|
- !ruby/object:Gem::Version
|
|
80
|
-
version:
|
|
90
|
+
version: 1.9.3
|
|
81
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
|
+
none: false
|
|
82
93
|
requirements:
|
|
83
|
-
- -
|
|
94
|
+
- - ! '>='
|
|
84
95
|
- !ruby/object:Gem::Version
|
|
85
96
|
version: '0'
|
|
86
97
|
requirements: []
|
|
87
98
|
rubyforge_project:
|
|
88
|
-
rubygems_version:
|
|
99
|
+
rubygems_version: 1.8.23.2
|
|
89
100
|
signing_key:
|
|
90
|
-
specification_version:
|
|
101
|
+
specification_version: 3
|
|
91
102
|
summary: CLASP.Ruby
|
|
92
103
|
test_files: []
|
checksums.yaml
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
SHA1:
|
|
3
|
-
metadata.gz: 0d2393ba0de2e70168bc58f88cdf73b9d4f5e748
|
|
4
|
-
data.tar.gz: 60463d18965a903998197c5f0b1dd9cb4bb10836
|
|
5
|
-
SHA512:
|
|
6
|
-
metadata.gz: 7b3aa22592465766c7486b75b538b66436c27b67cc502c6d7eb29e2aa59eb9cf160ef0c043409ed4acbaeb406e6952e050152b2ff1dbbd729f735924fbea33ff
|
|
7
|
-
data.tar.gz: e6e14d4f75a31553b3a40394b0b4cbd1920f2cbf6ee630c43d9f2301dcfe4a96d85257f669ea76f9770f1f8e472357336cc53fe43788a44531f7447a1955e9b6
|