xqsr3 0.39.2.1 → 0.39.3
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/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 +2 -3
- 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
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7819a647ed44952b843a5d065949fce6f1004f2d748d26952064256c5b7f3bcb
|
4
|
+
data.tar.gz: 884078618ffd3964a739a2b4f7624bd52cb6e28319ad16e8623214f16969c0a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0ffe0261b6cdf4dc9bd962925f6f25616c764bd9c5b6d24d12a4b2df22b34caa64a94409d68f0d1d22eba54ba8ac37f7898892b260c545e3676fe402ae582a5
|
7
|
+
data.tar.gz: d5db4d4d9086fa146e88356b8b260f23ba735f67ec1952332f786de3ecf41a2434cebd78d06e5d1040c47d05f1e9a7393bb0df3869672cd81cb7c214d3495a7c
|
@@ -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,7 +5,7 @@
|
|
5
5
|
# Purpose: Version for Xqsr3 library
|
6
6
|
#
|
7
7
|
# Created: 3rd April 2016
|
8
|
-
# Updated:
|
8
|
+
# Updated: 24th July 2024
|
9
9
|
#
|
10
10
|
# Home: http://github.com/synesissoftware/xqsr3
|
11
11
|
#
|
@@ -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'
|
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
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-24 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
|
@@ -178,7 +178,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
|
-
|
181
|
+
rubyforge_project:
|
182
|
+
rubygems_version: 2.7.6.3
|
182
183
|
signing_key:
|
183
184
|
specification_version: 4
|
184
185
|
summary: xqsr3
|