xqsr3 0.38.1 → 0.38.2
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 +5 -5
- data/examples/count_word_frequencies.md +1 -1
- data/examples/count_word_frequencies.rb +1 -1
- data/lib/xqsr3/array_utilities/join_with_or.rb +9 -10
- data/lib/xqsr3/command_line_utilities/map_option_string.rb +9 -10
- data/lib/xqsr3/containers/frequency_map.rb +8 -7
- data/lib/xqsr3/containers/multi_map.rb +8 -7
- data/lib/xqsr3/conversion/bool_parser.rb +8 -9
- data/lib/xqsr3/conversion/integer_parser.rb +8 -9
- data/lib/xqsr3/diagnostics/exception_utilities.rb +9 -8
- data/lib/xqsr3/diagnostics/exceptions/with_cause.rb +11 -7
- data/lib/xqsr3/diagnostics/inspect_builder.rb +8 -8
- data/lib/xqsr3/doc_.rb +8 -8
- data/lib/xqsr3/extensions/enumerable/collect_with_index.rb +8 -7
- data/lib/xqsr3/extensions/enumerable/detect_map.rb +8 -8
- data/lib/xqsr3/extensions/enumerable/unique.rb +3 -3
- data/lib/xqsr3/extensions/io/writelines.rb +8 -8
- data/lib/xqsr3/extensions/kernel/integer.rb +8 -8
- data/lib/xqsr3/extensions/kernel/raise_with_options.rb +9 -8
- data/lib/xqsr3/extensions/string/map_option_string.rb +0 -1
- data/lib/xqsr3/extensions/string/quote_if.rb +0 -1
- data/lib/xqsr3/extensions/string/to_bool.rb +0 -1
- data/lib/xqsr3/extensions/string/truncate.rb +0 -1
- data/lib/xqsr3/extensions/test/unit/assert_eql.rb +2 -2
- data/lib/xqsr3/extensions/test/unit/assert_false.rb +1 -2
- data/lib/xqsr3/extensions/test/unit/assert_not.rb +0 -1
- data/lib/xqsr3/extensions/test/unit/assert_not_eql.rb +2 -2
- data/lib/xqsr3/extensions/test/unit/assert_raise_with_message.rb +0 -1
- data/lib/xqsr3/extensions/test/unit/assert_subclass_of.rb +0 -1
- data/lib/xqsr3/extensions/test/unit/assert_superclass_of.rb +0 -1
- data/lib/xqsr3/extensions/test/unit/assert_true.rb +1 -2
- data/lib/xqsr3/extensions/test/unit/assert_type_has_instance_methods.rb +0 -2
- data/lib/xqsr3/hash_utilities/deep_transform.rb +11 -11
- data/lib/xqsr3/hash_utilities/key_matching.rb +8 -8
- data/lib/xqsr3/internal_/test_unit_version_.rb +45 -3
- data/lib/xqsr3/io/writelines.rb +8 -8
- data/lib/xqsr3/quality/parameter_checking.rb +105 -105
- data/lib/xqsr3/string_utilities/ends_with.rb +8 -8
- data/lib/xqsr3/string_utilities/nil_if_empty.rb +8 -9
- data/lib/xqsr3/string_utilities/nil_if_whitespace.rb +9 -9
- data/lib/xqsr3/string_utilities/quote_if.rb +8 -9
- data/lib/xqsr3/string_utilities/starts_with.rb +8 -8
- data/lib/xqsr3/string_utilities/to_symbol.rb +8 -8
- data/lib/xqsr3/string_utilities/truncate.rb +8 -9
- data/lib/xqsr3/version.rb +9 -10
- data/test/performance/frequency_map.rb +1 -15
- data/test/scratch/test_assert_raise_with_message.rb +1 -2
- data/test/unit/array_utilities/tc_join_with_or.rb +0 -2
- data/test/unit/containers/tc_frequency_map.rb +56 -3
- data/test/unit/containers/tc_multi_map.rb +56 -5
- data/test/unit/conversion/tc_integer_parser.rb +1 -1
- data/test/unit/conversion/tc_to_bool.rb +1 -1
- data/test/unit/extensions/hash/tc_hash.rb +1 -1
- data/test/unit/extensions/hash/tc_slice.rb +1 -1
- data/test/unit/extensions/object/tc_inspect.rb +1 -1
- data/test/unit/io/tc_writelines.rb +0 -2
- data/test/unit/quality/tc_parameter_checking.rb +1 -1
- data/test/unit/string_utilities/tc_truncate.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: c48e07ee8ea8be5920c2fb02b227dfe0c8af895c6e257de99868608d34eed42e
|
|
4
|
+
data.tar.gz: 1f1c1563a264faabe4c6b569b95669cead6a79f87ce41f10e8f9a83676ea168d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: added1f222ca39d06266bf71a00b65e51fbc1c9cca5250bbf41f786a55f78ec62d3100c87e82947644301e6c8263af493aa169e1a35dbf8a5dfe193fce9bb871
|
|
7
|
+
data.tar.gz: d3fc5c37fbc541bc0bc862593e5966fb5a8187b344c176017907dc1bbe22489d1c84510a96c95097c0a4d40c26b6ea6deedfd77a39be3c9616af342373baf8af
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/array_utilities/join_with_or.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
6
|
-
# module
|
|
5
|
+
# Purpose: Definition of the Xqsr3::ArrayUtilities::JoinWithOr module
|
|
7
6
|
#
|
|
8
|
-
# Created:
|
|
9
|
-
# Updated:
|
|
7
|
+
# Created: 7th December 2017
|
|
8
|
+
# Updated: 11th December 2023
|
|
10
9
|
#
|
|
11
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
12
11
|
#
|
|
13
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
14
13
|
#
|
|
15
|
-
# Copyright (c)
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
15
|
+
# Copyright (c) 2017-2019, Matthew Wilson and Synesis Software
|
|
16
16
|
# All rights reserved.
|
|
17
17
|
#
|
|
18
18
|
# Redistribution and use in source and binary forms, with or without
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
27
27
|
# documentation and/or other materials provided with the distribution.
|
|
28
28
|
#
|
|
29
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
30
30
|
# contributors may be used to endorse or promote products derived from
|
|
31
31
|
# this software without specific prior written permission.
|
|
32
32
|
#
|
|
@@ -111,4 +111,3 @@ end # module Xqsr3
|
|
|
111
111
|
|
|
112
112
|
# ############################## end of file ############################# #
|
|
113
113
|
|
|
114
|
-
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/command_line_utilities/map_option_string.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
6
|
-
#
|
|
5
|
+
# Purpose: Definition of the Xqsr3::CommandLineUtilities::MapOptionString
|
|
6
|
+
# module
|
|
7
7
|
#
|
|
8
|
-
# Created:
|
|
9
|
-
# Updated:
|
|
8
|
+
# Created: 15th April 2016
|
|
9
|
+
# Updated: 11th December 2023
|
|
10
10
|
#
|
|
11
|
-
# Home:
|
|
11
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
12
12
|
#
|
|
13
|
-
# Author:
|
|
13
|
+
# Author: Matthew Wilson
|
|
14
14
|
#
|
|
15
|
-
# Copyright (c) 2019-
|
|
15
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
16
16
|
# Copyright (c) 2016-2019, Matthew Wilson and Synesis Software
|
|
17
17
|
# All rights reserved.
|
|
18
18
|
#
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
# notice, this list of conditions and the following disclaimer in the
|
|
28
28
|
# documentation and/or other materials provided with the distribution.
|
|
29
29
|
#
|
|
30
|
-
# * Neither the names of the copyright
|
|
30
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
31
31
|
# contributors may be used to endorse or promote products derived from
|
|
32
32
|
# this software without specific prior written permission.
|
|
33
33
|
#
|
|
@@ -150,4 +150,3 @@ end # module Xqsr3
|
|
|
150
150
|
|
|
151
151
|
# ############################## end of file ############################# #
|
|
152
152
|
|
|
153
|
-
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/containers/frequency_map.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
5
|
+
# Purpose: FrequencyMap container
|
|
6
6
|
#
|
|
7
|
-
# Created:
|
|
8
|
-
# Updated:
|
|
7
|
+
# Created: 28th January 2005
|
|
8
|
+
# Updated: 11th December 2023
|
|
9
9
|
#
|
|
10
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
11
11
|
#
|
|
12
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
13
|
#
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
14
15
|
# Copyright (c) 2005-2019, Matthew Wilson and Synesis Software
|
|
15
16
|
# All rights reserved.
|
|
16
17
|
#
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
26
27
|
# documentation and/or other materials provided with the distribution.
|
|
27
28
|
#
|
|
28
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
30
|
# contributors may be used to endorse or promote products derived from
|
|
30
31
|
# this software without specific prior written permission.
|
|
31
32
|
#
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/containers/multi_map.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
5
|
+
# Purpose: multimap container
|
|
6
6
|
#
|
|
7
|
-
# Created:
|
|
8
|
-
# Updated:
|
|
7
|
+
# Created: 21st March 2007
|
|
8
|
+
# Updated: 11th December 2023
|
|
9
9
|
#
|
|
10
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
11
11
|
#
|
|
12
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
13
|
#
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
14
15
|
# Copyright (c) 2007-2019, Matthew Wilson and Synesis Software
|
|
15
16
|
# All rights reserved.
|
|
16
17
|
#
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
26
27
|
# documentation and/or other materials provided with the distribution.
|
|
27
28
|
#
|
|
28
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
30
|
# contributors may be used to endorse or promote products derived from
|
|
30
31
|
# this software without specific prior written permission.
|
|
31
32
|
#
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/conversion/bool_parser.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
6
|
-
# module
|
|
5
|
+
# Purpose: Definition of the Xqsr3::Conversion::BoolParser module
|
|
7
6
|
#
|
|
8
|
-
# Created:
|
|
9
|
-
# Updated:
|
|
7
|
+
# Created: 3rd June 2017
|
|
8
|
+
# Updated: 11th December 2023
|
|
10
9
|
#
|
|
11
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
12
11
|
#
|
|
13
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
14
13
|
#
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
15
15
|
# Copyright (c) 2017-2019, Matthew Wilson and Synesis Software
|
|
16
16
|
# All rights reserved.
|
|
17
17
|
#
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
27
27
|
# documentation and/or other materials provided with the distribution.
|
|
28
28
|
#
|
|
29
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
30
30
|
# contributors may be used to endorse or promote products derived from
|
|
31
31
|
# this software without specific prior written permission.
|
|
32
32
|
#
|
|
@@ -113,4 +113,3 @@ end # module Xqsr3
|
|
|
113
113
|
|
|
114
114
|
# ############################## end of file ############################# #
|
|
115
115
|
|
|
116
|
-
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/conversion/integer_parser.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
6
|
-
# module
|
|
5
|
+
# Purpose: Definition of the Xqsr3::Conversion::IntegerParser module
|
|
7
6
|
#
|
|
8
|
-
# Created:
|
|
9
|
-
# Updated:
|
|
7
|
+
# Created: 21st November 2017
|
|
8
|
+
# Updated: 11th December 2023
|
|
10
9
|
#
|
|
11
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
12
11
|
#
|
|
13
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
14
13
|
#
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
15
15
|
# Copyright (c) 2017-2019, Matthew Wilson and Synesis Software
|
|
16
16
|
# All rights reserved.
|
|
17
17
|
#
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
27
27
|
# documentation and/or other materials provided with the distribution.
|
|
28
28
|
#
|
|
29
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
30
30
|
# contributors may be used to endorse or promote products derived from
|
|
31
31
|
# this software without specific prior written permission.
|
|
32
32
|
#
|
|
@@ -184,4 +184,3 @@ end # module Xqsr3
|
|
|
184
184
|
|
|
185
185
|
# ############################## end of file ############################# #
|
|
186
186
|
|
|
187
|
-
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/diagnostics/exception_utilities.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
5
|
+
# Purpose: Definition of the ExceptionUtilities module
|
|
6
6
|
#
|
|
7
|
-
# Created:
|
|
8
|
-
# Updated:
|
|
7
|
+
# Created: 12th February 2015
|
|
8
|
+
# Updated: 11th December 2023
|
|
9
9
|
#
|
|
10
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
11
11
|
#
|
|
12
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
13
|
#
|
|
14
|
-
# Copyright (c)
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
15
|
+
# Copyright (c) 2015-2019, Matthew Wilson and Synesis Software
|
|
15
16
|
# All rights reserved.
|
|
16
17
|
#
|
|
17
18
|
# Redistribution and use in source and binary forms, with or without
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
26
27
|
# documentation and/or other materials provided with the distribution.
|
|
27
28
|
#
|
|
28
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
30
|
# contributors may be used to endorse or promote products derived from
|
|
30
31
|
# this software without specific prior written permission.
|
|
31
32
|
#
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/diagnostics/exceptions/with_cause.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
5
|
+
# Purpose: Definition of the WithCause inclusion module
|
|
6
6
|
#
|
|
7
|
-
# Created:
|
|
8
|
-
# Updated:
|
|
7
|
+
# Created: 16th December 2017
|
|
8
|
+
# Updated: 11th December 2023
|
|
9
9
|
#
|
|
10
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
11
11
|
#
|
|
12
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
13
|
#
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
14
15
|
# Copyright (c) 2017-2019, Matthew Wilson and Synesis Software
|
|
15
16
|
# All rights reserved.
|
|
16
17
|
#
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
26
27
|
# documentation and/or other materials provided with the distribution.
|
|
27
28
|
#
|
|
28
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
30
|
# contributors may be used to endorse or promote products derived from
|
|
30
31
|
# this software without specific prior written permission.
|
|
31
32
|
#
|
|
@@ -202,3 +203,6 @@ end
|
|
|
202
203
|
end # module Exceptions
|
|
203
204
|
end # module Diagnostics
|
|
204
205
|
end # module Xqsr3
|
|
206
|
+
|
|
207
|
+
# ############################## end of file ############################# #
|
|
208
|
+
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/diagnostics/inspect_builder.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
5
|
+
# Purpose: ::Xqsr3::Diagnostics::InspectBuilder module
|
|
6
6
|
#
|
|
7
|
-
# Created:
|
|
8
|
-
# Updated:
|
|
7
|
+
# Created: 4th September 2018
|
|
8
|
+
# Updated: 11th December 2023
|
|
9
9
|
#
|
|
10
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
11
11
|
#
|
|
12
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
13
|
#
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
14
15
|
# Copyright (c) 2018-2019, Matthew Wilson and Synesis Software
|
|
15
16
|
# All rights reserved.
|
|
16
17
|
#
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
26
27
|
# documentation and/or other materials provided with the distribution.
|
|
27
28
|
#
|
|
28
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
30
|
# contributors may be used to endorse or promote products derived from
|
|
30
31
|
# this software without specific prior written permission.
|
|
31
32
|
#
|
|
@@ -173,4 +174,3 @@ end # module Xqsr3
|
|
|
173
174
|
|
|
174
175
|
# ############################## end of file ############################# #
|
|
175
176
|
|
|
176
|
-
|
data/lib/xqsr3/doc_.rb
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/doc_.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
5
|
+
# Purpose: Documentation of the ::Xqsr3 modules
|
|
6
6
|
#
|
|
7
|
-
# Created:
|
|
8
|
-
# Updated:
|
|
7
|
+
# Created: 10th June 2016
|
|
8
|
+
# Updated: 11th December 2023
|
|
9
9
|
#
|
|
10
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
11
11
|
#
|
|
12
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
13
|
#
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
14
15
|
# Copyright (c) 2016-2019, Matthew Wilson and Synesis Software
|
|
15
16
|
# All rights reserved.
|
|
16
17
|
#
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
26
27
|
# documentation and/or other materials provided with the distribution.
|
|
27
28
|
#
|
|
28
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
30
|
# contributors may be used to endorse or promote products derived from
|
|
30
31
|
# this software without specific prior written permission.
|
|
31
32
|
#
|
|
@@ -242,4 +243,3 @@ end # module Test
|
|
|
242
243
|
|
|
243
244
|
# ############################## end of file ############################# #
|
|
244
245
|
|
|
245
|
-
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/extensions/enumerable/collect_with_index.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
5
|
+
# Purpose: Adds a collect_with_index() method to the Enumerable module
|
|
6
6
|
#
|
|
7
|
-
# Created:
|
|
8
|
-
# Updated:
|
|
7
|
+
# Created: 24th October 2010
|
|
8
|
+
# Updated: 11th December 2023
|
|
9
9
|
#
|
|
10
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
11
11
|
#
|
|
12
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
13
|
#
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
14
15
|
# Copyright (c) 2010-2019, Matthew Wilson and Synesis Software
|
|
15
16
|
# All rights reserved.
|
|
16
17
|
#
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
26
27
|
# documentation and/or other materials provided with the distribution.
|
|
27
28
|
#
|
|
28
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
30
|
# contributors may be used to endorse or promote products derived from
|
|
30
31
|
# this software without specific prior written permission.
|
|
31
32
|
#
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/extensions/enumerable/detect_map.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
5
|
+
# Purpose: ::Enumerable#detect_map extension
|
|
6
6
|
#
|
|
7
|
-
# Created:
|
|
8
|
-
# Updated:
|
|
7
|
+
# Created: 3rd December 2017
|
|
8
|
+
# Updated: 11th December 2023
|
|
9
9
|
#
|
|
10
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
11
11
|
#
|
|
12
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
13
|
#
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
14
15
|
# Copyright (c) 2017-2019, Matthew Wilson and Synesis Software
|
|
15
16
|
# All rights reserved.
|
|
16
17
|
#
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
26
27
|
# documentation and/or other materials provided with the distribution.
|
|
27
28
|
#
|
|
28
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
30
|
# contributors may be used to endorse or promote products derived from
|
|
30
31
|
# this software without specific prior written permission.
|
|
31
32
|
#
|
|
@@ -93,4 +94,3 @@ end # module Enumerable
|
|
|
93
94
|
|
|
94
95
|
# ############################## end of file ############################# #
|
|
95
96
|
|
|
96
|
-
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
# Created: 5th March 2007
|
|
8
8
|
# Updated: 12th April 2019
|
|
9
9
|
#
|
|
10
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
11
11
|
#
|
|
12
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
13
|
#
|
|
14
14
|
# Copyright (c) 2007-2019, Matthew Wilson and Synesis Software
|
|
15
15
|
# All rights reserved.
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
# notice, this list of conditions and the following disclaimer in the
|
|
26
26
|
# documentation and/or other materials provided with the distribution.
|
|
27
27
|
#
|
|
28
|
-
# * Neither the names of the copyright
|
|
28
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
29
|
# contributors may be used to endorse or promote products derived from
|
|
30
30
|
# this software without specific prior written permission.
|
|
31
31
|
#
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/extensions/io/writelines.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
5
|
+
# Purpose: Adds a writelines() method to the IO class
|
|
6
6
|
#
|
|
7
|
-
# Created:
|
|
8
|
-
# Updated:
|
|
7
|
+
# Created: 13th April 2007
|
|
8
|
+
# Updated: 11th December 2023
|
|
9
9
|
#
|
|
10
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
11
11
|
#
|
|
12
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
13
|
#
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
14
15
|
# Copyright (c) 2007-2019, Matthew Wilson and Synesis Software
|
|
15
16
|
# All rights reserved.
|
|
16
17
|
#
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
26
27
|
# documentation and/or other materials provided with the distribution.
|
|
27
28
|
#
|
|
28
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
30
|
# contributors may be used to endorse or promote products derived from
|
|
30
31
|
# this software without specific prior written permission.
|
|
31
32
|
#
|
|
@@ -95,4 +96,3 @@ end # class IO
|
|
|
95
96
|
|
|
96
97
|
# ############################## end of file ############################# #
|
|
97
98
|
|
|
98
|
-
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/extensions/kernel/integer.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
5
|
+
# Purpose: Adds a Integer 'overload' to the Kernel module
|
|
6
6
|
#
|
|
7
|
-
# Created:
|
|
8
|
-
# Updated:
|
|
7
|
+
# Created: 21st November 2017
|
|
8
|
+
# Updated: 11th December 2023
|
|
9
9
|
#
|
|
10
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
11
11
|
#
|
|
12
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
13
|
#
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
14
15
|
# Copyright (c) 2017-2019, Matthew Wilson and Synesis Software
|
|
15
16
|
# All rights reserved.
|
|
16
17
|
#
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
26
27
|
# documentation and/or other materials provided with the distribution.
|
|
27
28
|
#
|
|
28
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
30
|
# contributors may be used to endorse or promote products derived from
|
|
30
31
|
# this software without specific prior written permission.
|
|
31
32
|
#
|
|
@@ -79,4 +80,3 @@ end # module Kernel
|
|
|
79
80
|
|
|
80
81
|
# ############################## end of file ############################# #
|
|
81
82
|
|
|
82
|
-
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
# ######################################################################## #
|
|
3
|
-
# File:
|
|
3
|
+
# File: lib/xqsr3/extensions/kernel/raise_with_options.rb
|
|
4
4
|
#
|
|
5
|
-
# Purpose:
|
|
5
|
+
# Purpose: Adds a raise_with_options() method to the Kernel module
|
|
6
6
|
#
|
|
7
|
-
# Created:
|
|
8
|
-
# Updated:
|
|
7
|
+
# Created: 12th February 2015
|
|
8
|
+
# Updated: 11th December 2023
|
|
9
9
|
#
|
|
10
|
-
# Home:
|
|
10
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
|
11
11
|
#
|
|
12
|
-
# Author:
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
13
|
#
|
|
14
|
-
# Copyright (c)
|
|
14
|
+
# Copyright (c) 2019-2023, Matthew Wilson and Synesis Information Systems
|
|
15
|
+
# Copyright (c) 2015-2019, Matthew Wilson and Synesis Software
|
|
15
16
|
# All rights reserved.
|
|
16
17
|
#
|
|
17
18
|
# Redistribution and use in source and binary forms, with or without
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
# notice, this list of conditions and the following disclaimer in the
|
|
26
27
|
# documentation and/or other materials provided with the distribution.
|
|
27
28
|
#
|
|
28
|
-
# * Neither the names of the copyright
|
|
29
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
30
|
# contributors may be used to endorse or promote products derived from
|
|
30
31
|
# this software without specific prior written permission.
|
|
31
32
|
#
|
|
@@ -6,7 +6,8 @@ module Assertions
|
|
|
6
6
|
|
|
7
7
|
unless respond_to? :assert_eql
|
|
8
8
|
|
|
9
|
-
# Assert that +expected+ and +actual+ have the same hash key
|
|
9
|
+
# Assert that +expected+ and +actual+ have the same hash key, as
|
|
10
|
+
# evaluated by the instance method +eq?+
|
|
10
11
|
def assert_eql(expected, actual, failure_message = '')
|
|
11
12
|
|
|
12
13
|
assert expected.eql?(actual), failure_message
|
|
@@ -17,4 +18,3 @@ end # class Assertions
|
|
|
17
18
|
end # module Unit
|
|
18
19
|
end # module Test
|
|
19
20
|
|
|
20
|
-
|