xqsr3 0.39.2.1 → 0.39.3.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/README.md +8 -5
- data/lib/xqsr3/containers/frequency_map.rb +10 -1
- data/lib/xqsr3/containers/multi_map.rb +10 -1
- data/lib/xqsr3/extensions/string.rb +2 -0
- data/lib/xqsr3/version.rb +3 -4
- data/test/unit/command_line_utilities/tc_map_option_string.rb +0 -5
- data/test/unit/extensions/hash/tc_slice.rb +3 -0
- data/test/unit/extensions/string/tc_map_option_string.rb +5 -0
- data/test/unit/quality/tc_parameter_checking.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dd39b2f95697c84c5d7e599dd3feb956883e0d5950ed9d2894e9ef5829a0e53
|
4
|
+
data.tar.gz: ab426c419cd34a2c44ee75b3e866b40d34cbd4c33873fd343ca468460652de4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcbb5b6926e7c4fb9c0763b081e473fa5c77ff7f1ae76b371e375b3b82fdc629180fc414fe3aa242599352ddaecbabcd26af759c50960b71618456f19ce5c0a9
|
7
|
+
data.tar.gz: 2208ff7f78a3db75dd7262a3e5849c4534b02a4ae923a5d48e7a66ed516c4d702a101d1419eb437a7868c7526d7fce7be011213a1d97279ce7cd86c10e18f0c9
|
data/README.md
CHANGED
@@ -19,10 +19,10 @@ It may be pronounced (lamely) as "excusers".
|
|
19
19
|
- [Components](#components)
|
20
20
|
- [Examples](#examples)
|
21
21
|
- [Project Information](#project-information)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
- [Where to get help](#where-to-get-help)
|
23
|
+
- [Contribution guidelines](#contribution-guidelines)
|
24
|
+
- [Related projects](#related-projects)
|
25
|
+
- [License](#license)
|
26
26
|
|
27
27
|
## Installation
|
28
28
|
|
@@ -42,7 +42,7 @@ require 'xqsr3/containers/frequency_map'
|
|
42
42
|
```
|
43
43
|
|
44
44
|
Alternatively, to use all **test/unit** extensions you would ``require`` all
|
45
|
-
|
45
|
+
relative via the file:
|
46
46
|
|
47
47
|
```Ruby
|
48
48
|
require 'xqsr3/extensions/test/unit'
|
@@ -96,14 +96,17 @@ Defect reports, feature requests, and pull requests are welcome on https://githu
|
|
96
96
|
**xqsr3** is a runtime dependency of:
|
97
97
|
|
98
98
|
* the **[libCLImate.Ruby](https://github.com/synesissoftware/libCLImate.Ruby)** library;
|
99
|
+
* the **[comment_strip-ruby](https://github.com/synesissoftware/comment_strip.r)** library;
|
99
100
|
* the [**xqsr3-xml**](https://github.com/synesissoftware.com/xqsr3-xml/) library.
|
100
101
|
|
101
102
|
and a development dependency of:
|
102
103
|
|
103
104
|
* the **[CLASP.Ruby](https://github.com/synesissoftware/CLASP.Ruby)** library;
|
104
105
|
* the **[cmpfs.Ruby](https://github.com/synesissoftware/cmpfs.Ruby)** library;
|
106
|
+
* the **[Diagnosticism.Ruby](https://github.com/synesissoftware/Diagnosticism.Ruby)** library;
|
105
107
|
* the **[libpath.Ruby](https://github.com/synesissoftware/libpath.Ruby)** library;
|
106
108
|
* the **[Pantheios.Ruby](https://github.com/synesissoftware/Pantheios.Ruby)** library.
|
109
|
+
* the **[recls.Ruby](https://github.com/synesissoftware/recls.Ruby)** library;
|
107
110
|
* the **[Quench.Ruby](https://github.com/synesissoftware/Quench.Ruby)** library.
|
108
111
|
|
109
112
|
### License
|
@@ -5,7 +5,7 @@
|
|
5
5
|
# Purpose: FrequencyMap container
|
6
6
|
#
|
7
7
|
# Created: 28th January 2005
|
8
|
-
# Updated:
|
8
|
+
# Updated: 24th July 2024
|
9
9
|
#
|
10
10
|
# Home: http://github.com/synesissoftware/xqsr3
|
11
11
|
#
|
@@ -362,8 +362,10 @@ module Containers
|
|
362
362
|
|
363
363
|
case rhs
|
364
364
|
when self.class
|
365
|
+
|
365
366
|
return self == rhs
|
366
367
|
else
|
368
|
+
|
367
369
|
return false
|
368
370
|
end
|
369
371
|
end
|
@@ -377,8 +379,10 @@ module Containers
|
|
377
379
|
|
378
380
|
case default
|
379
381
|
when ::NilClass, ::Integer
|
382
|
+
|
380
383
|
;
|
381
384
|
else
|
385
|
+
|
382
386
|
raise TypeError, "default parameter ('#{default}') must be of type #{::Integer}, but was of type #{default.class}"
|
383
387
|
end
|
384
388
|
|
@@ -390,10 +394,13 @@ module Containers
|
|
390
394
|
|
391
395
|
case block.arity
|
392
396
|
when 0
|
397
|
+
|
393
398
|
return yield
|
394
399
|
when 1
|
400
|
+
|
395
401
|
return yield key
|
396
402
|
else
|
403
|
+
|
397
404
|
raise ArgumentError, "given block must take a single parameter - #{block.arity} given"
|
398
405
|
end
|
399
406
|
end
|
@@ -431,8 +438,10 @@ module Containers
|
|
431
438
|
|
432
439
|
case value
|
433
440
|
when ::NilClass, ::Integer
|
441
|
+
|
434
442
|
;
|
435
443
|
else
|
444
|
+
|
436
445
|
raise TypeError, "parameter ('#{value}') must be of type #{::Integer}, but was of type #{value.class}"
|
437
446
|
end
|
438
447
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
# Purpose: multimap container
|
6
6
|
#
|
7
7
|
# Created: 21st March 2007
|
8
|
-
# Updated:
|
8
|
+
# Updated: 24th July 2024
|
9
9
|
#
|
10
10
|
# Home: http://github.com/synesissoftware/xqsr3
|
11
11
|
#
|
@@ -314,8 +314,10 @@ module Containers
|
|
314
314
|
|
315
315
|
case rhs
|
316
316
|
when self.class
|
317
|
+
|
317
318
|
return self == rhs
|
318
319
|
else
|
320
|
+
|
319
321
|
return false
|
320
322
|
end
|
321
323
|
end
|
@@ -333,8 +335,10 @@ module Containers
|
|
333
335
|
|
334
336
|
case default
|
335
337
|
when ::NilClass, ::Array
|
338
|
+
|
336
339
|
;
|
337
340
|
else
|
341
|
+
|
338
342
|
raise TypeError, "default parameter ('#{default}') must be of type #{::Array}, but was of type #{default.class}"
|
339
343
|
end
|
340
344
|
end
|
@@ -349,17 +353,22 @@ module Containers
|
|
349
353
|
|
350
354
|
case block.arity
|
351
355
|
when 0
|
356
|
+
|
352
357
|
r = yield
|
353
358
|
when 1
|
359
|
+
|
354
360
|
r = yield key
|
355
361
|
else
|
362
|
+
|
356
363
|
raise ArgumentError, "given block must take a single parameter - #{block.arity} given"
|
357
364
|
end
|
358
365
|
|
359
366
|
case r
|
360
367
|
when ::Array
|
368
|
+
|
361
369
|
;
|
362
370
|
else
|
371
|
+
|
363
372
|
raise ArgumentError, "given block must return a value of type #{::Array} or one convertible implicitly to such" unless r.respond_to? :to_ary
|
364
373
|
|
365
374
|
r = r.to_ary
|
@@ -1,6 +1,8 @@
|
|
1
1
|
|
2
2
|
require 'xqsr3/extensions/string/ends_with'
|
3
3
|
require 'xqsr3/extensions/string/map_option_string'
|
4
|
+
require 'xqsr3/extensions/string/nil_if_empty'
|
5
|
+
require 'xqsr3/extensions/string/nil_if_whitespace'
|
4
6
|
require 'xqsr3/extensions/string/quote_if'
|
5
7
|
require 'xqsr3/extensions/string/starts_with'
|
6
8
|
require 'xqsr3/extensions/string/to_bool'
|
data/lib/xqsr3/version.rb
CHANGED
@@ -5,13 +5,13 @@
|
|
5
5
|
# Purpose: Version for Xqsr3 library
|
6
6
|
#
|
7
7
|
# Created: 3rd April 2016
|
8
|
-
# Updated:
|
8
|
+
# Updated: 6th March 2025
|
9
9
|
#
|
10
10
|
# Home: http://github.com/synesissoftware/xqsr3
|
11
11
|
#
|
12
12
|
# Author: Matthew Wilson
|
13
13
|
#
|
14
|
-
# Copyright (c) 2019-
|
14
|
+
# Copyright (c) 2019-2025, Matthew Wilson and Synesis Information Systems
|
15
15
|
# Copyright (c) 2016-2019, Matthew Wilson and Synesis Software
|
16
16
|
# All rights reserved.
|
17
17
|
#
|
@@ -51,7 +51,7 @@
|
|
51
51
|
module Xqsr3
|
52
52
|
|
53
53
|
# Current version of the Xqsr3 library
|
54
|
-
VERSION = '0.39.
|
54
|
+
VERSION = '0.39.3.1'
|
55
55
|
|
56
56
|
private
|
57
57
|
VERSION_PARTS_ = VERSION.split(/[.]/).collect { |n| n.to_i } # :nodoc:
|
@@ -62,7 +62,6 @@ module Xqsr3
|
|
62
62
|
VERSION_MINOR = VERSION_PARTS_[1] # :nodoc:
|
63
63
|
# Revision version of the Xqsr3 library
|
64
64
|
VERSION_REVISION = VERSION_PARTS_[2] # :nodoc:
|
65
|
-
|
66
65
|
end # module Xqsr3
|
67
66
|
|
68
67
|
# ############################## end of file ############################# #
|
@@ -38,10 +38,5 @@ class Test_Xqsr3_CommandLineUtilities_map_option_string < Test::Unit::TestCase
|
|
38
38
|
assert_nil MapOptionString.map_option_string_from_string(shortcut, option_strings)
|
39
39
|
end
|
40
40
|
end
|
41
|
-
|
42
|
-
def test_nil
|
43
|
-
|
44
|
-
assert_nil nil.map_option_string []
|
45
|
-
end
|
46
41
|
end
|
47
42
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xqsr3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.39.
|
4
|
+
version: 0.39.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Wilson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
eXtensions by fine Quantum for Standard Ruby and 3rd-party libraries is a
|
@@ -160,7 +160,7 @@ homepage: http://github.com/synesissoftware/xqsr3
|
|
160
160
|
licenses:
|
161
161
|
- BSD-3-Clause
|
162
162
|
metadata: {}
|
163
|
-
post_install_message:
|
163
|
+
post_install_message:
|
164
164
|
rdoc_options: []
|
165
165
|
require_paths:
|
166
166
|
- lib
|
@@ -178,8 +178,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
|
-
rubygems_version: 3.
|
182
|
-
signing_key:
|
181
|
+
rubygems_version: 3.2.15
|
182
|
+
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: xqsr3
|
185
185
|
test_files: []
|