xqsr3 0.15.3 → 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.
- checksums.yaml +4 -4
- data/lib/xqsr3/array_utilities/join_with_or.rb +119 -0
- data/lib/xqsr3/extensions/array/join_with_or.rb +12 -0
- data/lib/xqsr3/quality/parameter_checking.rb +20 -1
- data/lib/xqsr3/version.rb +1 -1
- data/test/unit/array_utilities/tc_join_with_or.rb +215 -0
- data/test/unit/array_utilities/ts_all.rb +12 -0
- metadata +15 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1b3bde5f5924163f03e47dd630d7a66fefc7b2b
|
4
|
+
data.tar.gz: 250d145c6f4e5df5ec8cf6da99ac4eeada2da5e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a6d515ae16aa93e7815212fae3a869fa90e94b5fc19ed455dab28e1c5e154c11521317e590b7c30f1394a9a44ff25ae714ceb35fa8df3479d118d8562578456
|
7
|
+
data.tar.gz: 41df1e79b7ca6dfb5d498f333ae7099d1d40a4411aab9ce179790ad391aae21292b7df6e8327f23e8208a8f3b58b9fbccc7a76962801cd44c53d8e469208a15b
|
@@ -0,0 +1,119 @@
|
|
1
|
+
|
2
|
+
# ######################################################################## #
|
3
|
+
# File: lib/xqsr3/array_utilities/join_with_or.rb
|
4
|
+
#
|
5
|
+
# Purpose: Definition of the ::Xqsr3::ArrayUtilities::JoinWithOr
|
6
|
+
# module
|
7
|
+
#
|
8
|
+
# Created: 7th December 2017
|
9
|
+
# Updated: 7th December 2017
|
10
|
+
#
|
11
|
+
# Home: http://github.com/synesissoftware/xqsr3
|
12
|
+
#
|
13
|
+
# Author: Matthew Wilson
|
14
|
+
#
|
15
|
+
# Copyright (c) 2017, Matthew Wilson and Synesis Software
|
16
|
+
# All rights reserved.
|
17
|
+
#
|
18
|
+
# Redistribution and use in source and binary forms, with or without
|
19
|
+
# modification, are permitted provided that the following conditions are
|
20
|
+
# met:
|
21
|
+
#
|
22
|
+
# * Redistributions of source code must retain the above copyright notice,
|
23
|
+
# this list of conditions and the following disclaimer.
|
24
|
+
#
|
25
|
+
# * Redistributions in binary form must reproduce the above copyright
|
26
|
+
# notice, this list of conditions and the following disclaimer in the
|
27
|
+
# documentation and/or other materials provided with the distribution.
|
28
|
+
#
|
29
|
+
# * Neither the names of the copyright holder nor the names of its
|
30
|
+
# contributors may be used to endorse or promote products derived from
|
31
|
+
# this software without specific prior written permission.
|
32
|
+
#
|
33
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
34
|
+
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
35
|
+
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
36
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
37
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
38
|
+
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
39
|
+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
40
|
+
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
41
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
42
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
43
|
+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
44
|
+
#
|
45
|
+
# ######################################################################## #
|
46
|
+
|
47
|
+
|
48
|
+
# ##########################################################
|
49
|
+
# ::Xqsr3::ArrayUtilities::JoinWithOr
|
50
|
+
|
51
|
+
=begin
|
52
|
+
=end
|
53
|
+
|
54
|
+
require 'xqsr3/quality/parameter_checking'
|
55
|
+
|
56
|
+
module Xqsr3
|
57
|
+
module ArrayUtilities
|
58
|
+
|
59
|
+
module JoinWithOr
|
60
|
+
|
61
|
+
extend self
|
62
|
+
|
63
|
+
# Joins an array with grammatical appropriateness (with an 'or')
|
64
|
+
#
|
65
|
+
# === *Parameters*
|
66
|
+
#
|
67
|
+
# * *Required parameters*:
|
68
|
+
# - +ar+:: [Array] The array whose contents are to be joined
|
69
|
+
#
|
70
|
+
# * *Options parameters*:
|
71
|
+
# - +options+:: [Hash] Options that control the behaviour of the
|
72
|
+
# method
|
73
|
+
#
|
74
|
+
# * *Options*:
|
75
|
+
#
|
76
|
+
# - +:or+:: [String] A string that is used instead of 'or'
|
77
|
+
# - +:oxford_comma+:: [boolean] Determines whether an Oxford comma
|
78
|
+
# will be used. Default is +true+
|
79
|
+
# - +:quote_char+ [String] The quote character. Default is empty
|
80
|
+
# string
|
81
|
+
# - +:separator+ [String] The separator character. Default is +','+
|
82
|
+
def join_with_or ar, **options
|
83
|
+
|
84
|
+
::Xqsr3::Quality::ParameterChecking.check_parameter ar, 'ar', type: ::Array, allow_nil: true
|
85
|
+
::Xqsr3::Quality::ParameterChecking.check_parameter options, 'options', type: ::Hash, allow_nil: false
|
86
|
+
|
87
|
+
::Xqsr3::Quality::ParameterChecking.check_parameter options[:or], ':or', type: ::String, option: true, allow_nil: true
|
88
|
+
::Xqsr3::Quality::ParameterChecking.check_parameter options[:oxford_comma], ':oxford_comma', types: [ ::FalseClass, ::TrueClass ], option: true, allow_nil: true
|
89
|
+
::Xqsr3::Quality::ParameterChecking.check_parameter options[:quote_char], ':quote_char', type: ::String, option: true, allow_nil: true
|
90
|
+
::Xqsr3::Quality::ParameterChecking.check_parameter options[:separator], ':separator', type: ::String, option: true, allow_nil: true
|
91
|
+
|
92
|
+
return '' if ar.nil?
|
93
|
+
return '' if ar.empty?
|
94
|
+
|
95
|
+
separator = options[:separator] || ','
|
96
|
+
or_word = options[:or] || 'or'
|
97
|
+
ox_comma = (options.has_key?(:oxford_comma) && !options[:oxford_comma]) ? '' : separator
|
98
|
+
quote_char = options[:quote_char]
|
99
|
+
|
100
|
+
ar = ar.map { |v| "#{quote_char}#{v}#{quote_char}" } if quote_char
|
101
|
+
|
102
|
+
case ar.size
|
103
|
+
when 1
|
104
|
+
ar[0]
|
105
|
+
when 2
|
106
|
+
"#{ar[0]} #{or_word} #{ar[1]}"
|
107
|
+
else
|
108
|
+
"#{ar[0...-1].join(separator + ' ')}#{ox_comma} #{or_word} #{ar[-1]}"
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
end # module JoinWithOr
|
113
|
+
|
114
|
+
end # module ArrayUtilities
|
115
|
+
end # module Xqsr3
|
116
|
+
|
117
|
+
# ############################## end of file ############################# #
|
118
|
+
|
119
|
+
|
@@ -76,7 +76,26 @@ module ParameterChecking
|
|
76
76
|
|
77
77
|
def self.included base
|
78
78
|
|
79
|
-
|
79
|
+
|
80
|
+
base.class_eval do
|
81
|
+
|
82
|
+
def self.check_parameter value, name, options = {}, &block
|
83
|
+
|
84
|
+
Util_.check_parameter value, name, options, &block
|
85
|
+
end
|
86
|
+
|
87
|
+
# @see check_parameter
|
88
|
+
#
|
89
|
+
# @note This is obsolete, and will be removed in a future
|
90
|
+
# version. Please use +check_parameter+ instead
|
91
|
+
def self.check_param value, name, options = {}, &block
|
92
|
+
|
93
|
+
Util_.check_parameter value, name, options, &block
|
94
|
+
end
|
95
|
+
|
96
|
+
private_class_method :check_param
|
97
|
+
private_class_method :check_parameter
|
98
|
+
end
|
80
99
|
end
|
81
100
|
|
82
101
|
# Check a given parameter (value=+value+, name=+name+) for type and value
|
data/lib/xqsr3/version.rb
CHANGED
@@ -0,0 +1,215 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
|
3
|
+
$:.unshift File.join(File.dirname(__FILE__), '../../../lib')
|
4
|
+
|
5
|
+
require 'xqsr3/array_utilities/join_with_or'
|
6
|
+
|
7
|
+
require 'xqsr3/extensions/test/unit'
|
8
|
+
|
9
|
+
require 'test/unit'
|
10
|
+
|
11
|
+
|
12
|
+
class Test_Xqsr3_ArrayUtilities_join_with_or_by_module < Test::Unit::TestCase
|
13
|
+
|
14
|
+
JoinWithOr = ::Xqsr3::ArrayUtilities::JoinWithOr
|
15
|
+
|
16
|
+
def test_default
|
17
|
+
|
18
|
+
assert_equal '', JoinWithOr.join_with_or([])
|
19
|
+
assert_equal 'a', JoinWithOr.join_with_or([ 'a' ])
|
20
|
+
assert_equal 'a or b', JoinWithOr.join_with_or([ 'a', 'b' ])
|
21
|
+
assert_equal 'a, b, or c', JoinWithOr.join_with_or([ 'a', 'b', 'c' ])
|
22
|
+
assert_equal 'a, b, c, d, e, f, g, h, i, j, k, l, m, or n', JoinWithOr.join_with_or([ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ])
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_with_empty_options
|
26
|
+
|
27
|
+
options = {
|
28
|
+
|
29
|
+
}
|
30
|
+
|
31
|
+
assert_equal '', JoinWithOr.join_with_or([], **options)
|
32
|
+
assert_equal 'a', JoinWithOr.join_with_or([ 'a' ], **options)
|
33
|
+
assert_equal 'a or b', JoinWithOr.join_with_or([ 'a', 'b' ], **options)
|
34
|
+
assert_equal 'a, b, or c', JoinWithOr.join_with_or([ 'a', 'b', 'c' ], **options)
|
35
|
+
assert_equal 'a, b, c, d, e, f, g, h, i, j, k, l, m, or n', JoinWithOr.join_with_or([ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ], **options)
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_with_custom_or
|
39
|
+
|
40
|
+
options = {
|
41
|
+
|
42
|
+
:or => 'OR',
|
43
|
+
}
|
44
|
+
|
45
|
+
assert_equal '', JoinWithOr.join_with_or([], **options)
|
46
|
+
assert_equal 'a', JoinWithOr.join_with_or([ 'a' ], **options)
|
47
|
+
assert_equal 'a OR b', JoinWithOr.join_with_or([ 'a', 'b' ], **options)
|
48
|
+
assert_equal 'a, b, OR c', JoinWithOr.join_with_or([ 'a', 'b', 'c' ], **options)
|
49
|
+
assert_equal 'a, b, c, d, e, f, g, h, i, j, k, l, m, OR n', JoinWithOr.join_with_or([ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ], **options)
|
50
|
+
end
|
51
|
+
|
52
|
+
def test_with_no_oxford
|
53
|
+
|
54
|
+
options = {
|
55
|
+
|
56
|
+
:oxford_comma => false,
|
57
|
+
}
|
58
|
+
|
59
|
+
assert_equal '', JoinWithOr.join_with_or([], **options)
|
60
|
+
assert_equal 'a', JoinWithOr.join_with_or([ 'a' ], **options)
|
61
|
+
assert_equal 'a or b', JoinWithOr.join_with_or([ 'a', 'b' ], **options)
|
62
|
+
assert_equal 'a, b or c', JoinWithOr.join_with_or([ 'a', 'b', 'c' ], **options)
|
63
|
+
assert_equal 'a, b, c, d, e, f, g, h, i, j, k, l, m or n', JoinWithOr.join_with_or([ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ], **options)
|
64
|
+
end
|
65
|
+
|
66
|
+
def test_with_custom_quote_char
|
67
|
+
|
68
|
+
options = {
|
69
|
+
|
70
|
+
:quote_char => '"',
|
71
|
+
}
|
72
|
+
|
73
|
+
assert_equal '', JoinWithOr.join_with_or([], **options)
|
74
|
+
assert_equal '"a"', JoinWithOr.join_with_or([ 'a' ], **options)
|
75
|
+
assert_equal '"a" or "b"', JoinWithOr.join_with_or([ 'a', 'b' ], **options)
|
76
|
+
assert_equal '"a", "b", or "c"', JoinWithOr.join_with_or([ 'a', 'b', 'c' ], **options)
|
77
|
+
assert_equal '"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", or "n"', JoinWithOr.join_with_or([ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ], **options)
|
78
|
+
end
|
79
|
+
|
80
|
+
def test_with_custom_separator
|
81
|
+
|
82
|
+
options = {
|
83
|
+
|
84
|
+
:separator => ';',
|
85
|
+
}
|
86
|
+
|
87
|
+
assert_equal '', JoinWithOr.join_with_or([], **options)
|
88
|
+
assert_equal 'a', JoinWithOr.join_with_or([ 'a' ], **options)
|
89
|
+
assert_equal 'a or b', JoinWithOr.join_with_or([ 'a', 'b' ], **options)
|
90
|
+
assert_equal 'a; b; or c', JoinWithOr.join_with_or([ 'a', 'b', 'c' ], **options)
|
91
|
+
assert_equal 'a; b; c; d; e; f; g; h; i; j; k; l; m; or n', JoinWithOr.join_with_or([ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ], **options)
|
92
|
+
end
|
93
|
+
|
94
|
+
def test_with_custom_flags
|
95
|
+
|
96
|
+
options = {
|
97
|
+
|
98
|
+
:or => 'OR',
|
99
|
+
:oxford_comma => false,
|
100
|
+
:quote_char => '"',
|
101
|
+
:separator => ';',
|
102
|
+
}
|
103
|
+
|
104
|
+
assert_equal '', JoinWithOr.join_with_or([], **options)
|
105
|
+
assert_equal '"a"', JoinWithOr.join_with_or([ 'a' ], **options)
|
106
|
+
assert_equal '"a" OR "b"', JoinWithOr.join_with_or([ 'a', 'b' ], **options)
|
107
|
+
assert_equal '"a"; "b" OR "c"', JoinWithOr.join_with_or([ 'a', 'b', 'c' ], **options)
|
108
|
+
assert_equal '"a"; "b"; "c"; "d"; "e"; "f"; "g"; "h"; "i"; "j"; "k"; "l"; "m" OR "n"', JoinWithOr.join_with_or([ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ], **options)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
require 'xqsr3/extensions/array/join_with_or'
|
113
|
+
|
114
|
+
class Test_Xqsr3_ArrayUtilities_join_with_or_by_include < Test::Unit::TestCase
|
115
|
+
|
116
|
+
include ::Xqsr3::ArrayUtilities::JoinWithOr
|
117
|
+
|
118
|
+
def test_default
|
119
|
+
|
120
|
+
assert_equal '', [].join_with_or
|
121
|
+
assert_equal 'a', [ 'a' ].join_with_or
|
122
|
+
assert_equal 'a or b', [ 'a', 'b' ].join_with_or()
|
123
|
+
assert_equal 'a, b, or c', [ 'a', 'b', 'c' ].join_with_or()
|
124
|
+
assert_equal 'a, b, c, d, e, f, g, h, i, j, k, l, m, or n', [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ].join_with_or()
|
125
|
+
end
|
126
|
+
|
127
|
+
def test_with_empty_options
|
128
|
+
|
129
|
+
options = {
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
assert_equal '', [].join_with_or(**options)
|
134
|
+
assert_equal 'a', [ 'a' ].join_with_or(**options)
|
135
|
+
assert_equal 'a or b', [ 'a', 'b' ].join_with_or(**options)
|
136
|
+
assert_equal 'a, b, or c', [ 'a', 'b', 'c' ].join_with_or(**options)
|
137
|
+
assert_equal 'a, b, c, d, e, f, g, h, i, j, k, l, m, or n', [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ].join_with_or(**options)
|
138
|
+
end
|
139
|
+
|
140
|
+
def test_with_custom_or
|
141
|
+
|
142
|
+
options = {
|
143
|
+
|
144
|
+
:or => 'OR',
|
145
|
+
}
|
146
|
+
|
147
|
+
assert_equal '', [].join_with_or(**options)
|
148
|
+
assert_equal 'a', [ 'a' ].join_with_or(**options)
|
149
|
+
assert_equal 'a OR b', [ 'a', 'b' ].join_with_or(**options)
|
150
|
+
assert_equal 'a, b, OR c', [ 'a', 'b', 'c' ].join_with_or(**options)
|
151
|
+
assert_equal 'a, b, c, d, e, f, g, h, i, j, k, l, m, OR n', [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ].join_with_or(**options)
|
152
|
+
end
|
153
|
+
|
154
|
+
def test_with_no_oxford
|
155
|
+
|
156
|
+
options = {
|
157
|
+
|
158
|
+
:oxford_comma => false,
|
159
|
+
}
|
160
|
+
|
161
|
+
assert_equal '', [].join_with_or(**options)
|
162
|
+
assert_equal 'a', [ 'a' ].join_with_or(**options)
|
163
|
+
assert_equal 'a or b', [ 'a', 'b' ].join_with_or(**options)
|
164
|
+
assert_equal 'a, b or c', [ 'a', 'b', 'c' ].join_with_or(**options)
|
165
|
+
assert_equal 'a, b, c, d, e, f, g, h, i, j, k, l, m or n', [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ].join_with_or(**options)
|
166
|
+
end
|
167
|
+
|
168
|
+
def test_with_custom_quote_char
|
169
|
+
|
170
|
+
options = {
|
171
|
+
|
172
|
+
:quote_char => '"',
|
173
|
+
}
|
174
|
+
|
175
|
+
assert_equal '', [].join_with_or(**options)
|
176
|
+
assert_equal '"a"', [ 'a' ].join_with_or(**options)
|
177
|
+
assert_equal '"a" or "b"', [ 'a', 'b' ].join_with_or(**options)
|
178
|
+
assert_equal '"a", "b", or "c"', [ 'a', 'b', 'c' ].join_with_or(**options)
|
179
|
+
assert_equal '"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", or "n"', [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ].join_with_or(**options)
|
180
|
+
end
|
181
|
+
|
182
|
+
def test_with_custom_separator
|
183
|
+
|
184
|
+
options = {
|
185
|
+
|
186
|
+
:separator => ';',
|
187
|
+
}
|
188
|
+
|
189
|
+
assert_equal '', [].join_with_or(**options)
|
190
|
+
assert_equal 'a', [ 'a' ].join_with_or(**options)
|
191
|
+
assert_equal 'a or b', [ 'a', 'b' ].join_with_or(**options)
|
192
|
+
assert_equal 'a; b; or c', [ 'a', 'b', 'c' ].join_with_or(**options)
|
193
|
+
assert_equal 'a; b; c; d; e; f; g; h; i; j; k; l; m; or n', [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ].join_with_or(**options)
|
194
|
+
end
|
195
|
+
|
196
|
+
def test_with_custom_flags
|
197
|
+
|
198
|
+
options = {
|
199
|
+
|
200
|
+
:or => 'OR',
|
201
|
+
:oxford_comma => false,
|
202
|
+
:quote_char => '"',
|
203
|
+
:separator => ';',
|
204
|
+
}
|
205
|
+
|
206
|
+
assert_equal '', [].join_with_or(**options)
|
207
|
+
assert_equal '"a"', [ 'a' ].join_with_or(**options)
|
208
|
+
assert_equal '"a" OR "b"', [ 'a', 'b' ].join_with_or(**options)
|
209
|
+
assert_equal '"a"; "b" OR "c"', [ 'a', 'b', 'c' ].join_with_or(**options)
|
210
|
+
assert_equal '"a"; "b"; "c"; "d"; "e"; "f"; "g"; "h"; "i"; "j"; "k"; "l"; "m" OR "n"', [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n' ].join_with_or(**options)
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
|
215
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# executes all other tests
|
4
|
+
|
5
|
+
this_dir = File.expand_path(File.dirname(__FILE__))
|
6
|
+
|
7
|
+
# all tc_*rb in current directory
|
8
|
+
Dir[File.join(this_dir, 'tc_*rb')].each { |file| require file }
|
9
|
+
|
10
|
+
# all ts_*rb in immediate sub-directories
|
11
|
+
Dir[File.join(this_dir, '*', 'ts_*rb')].each { |file| require file }
|
12
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xqsr3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Wilson
|
@@ -19,48 +19,54 @@ executables: []
|
|
19
19
|
extensions: []
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
|
+
- LICENSE
|
23
|
+
- README.md
|
24
|
+
- lib/xqsr3/array_utilities/join_with_or.rb
|
22
25
|
- lib/xqsr3/command_line_utilities/map_option_string.rb
|
23
26
|
- lib/xqsr3/containers/frequency_map.rb
|
24
27
|
- lib/xqsr3/containers/multi_map.rb
|
25
28
|
- lib/xqsr3/conversion/bool_parser.rb
|
26
29
|
- lib/xqsr3/diagnostics/exception_utilities.rb
|
27
30
|
- lib/xqsr3/doc_.rb
|
31
|
+
- lib/xqsr3/extensions/array/join_with_or.rb
|
32
|
+
- lib/xqsr3/extensions/enumerable.rb
|
28
33
|
- lib/xqsr3/extensions/enumerable/collect_with_index.rb
|
29
34
|
- lib/xqsr3/extensions/enumerable/unique.rb
|
30
|
-
- lib/xqsr3/extensions/
|
35
|
+
- lib/xqsr3/extensions/hash.rb
|
31
36
|
- lib/xqsr3/extensions/hash/deep_transform.rb
|
32
37
|
- lib/xqsr3/extensions/hash/has_match.rb
|
33
38
|
- lib/xqsr3/extensions/hash/match.rb
|
34
|
-
- lib/xqsr3/extensions/hash.rb
|
35
|
-
- lib/xqsr3/extensions/io/writelines.rb
|
36
39
|
- lib/xqsr3/extensions/io.rb
|
40
|
+
- lib/xqsr3/extensions/io/writelines.rb
|
41
|
+
- lib/xqsr3/extensions/kernel.rb
|
37
42
|
- lib/xqsr3/extensions/kernel/integer.rb
|
38
43
|
- lib/xqsr3/extensions/kernel/raise_with_options.rb
|
39
|
-
- lib/xqsr3/extensions/
|
44
|
+
- lib/xqsr3/extensions/string.rb
|
40
45
|
- lib/xqsr3/extensions/string/ends_with.rb
|
41
46
|
- lib/xqsr3/extensions/string/map_option_string.rb
|
42
47
|
- lib/xqsr3/extensions/string/quote_if.rb
|
43
48
|
- lib/xqsr3/extensions/string/starts_with.rb
|
44
49
|
- lib/xqsr3/extensions/string/to_bool.rb
|
45
50
|
- lib/xqsr3/extensions/string/to_symbol.rb
|
46
|
-
- lib/xqsr3/extensions/
|
51
|
+
- lib/xqsr3/extensions/test/unit.rb
|
47
52
|
- lib/xqsr3/extensions/test/unit/assert_eql.rb
|
48
53
|
- lib/xqsr3/extensions/test/unit/assert_false.rb
|
49
54
|
- lib/xqsr3/extensions/test/unit/assert_not.rb
|
50
55
|
- lib/xqsr3/extensions/test/unit/assert_not_eql.rb
|
51
56
|
- lib/xqsr3/extensions/test/unit/assert_true.rb
|
52
|
-
- lib/xqsr3/extensions/test/unit.rb
|
53
57
|
- lib/xqsr3/hash_utilities/deep_transform.rb
|
54
58
|
- lib/xqsr3/hash_utilities/key_matching.rb
|
55
59
|
- lib/xqsr3/io/writelines.rb
|
56
|
-
- lib/xqsr3/quality/parameter_checking.rb
|
57
60
|
- lib/xqsr3/quality.rb
|
61
|
+
- lib/xqsr3/quality/parameter_checking.rb
|
58
62
|
- lib/xqsr3/string_utilities/ends_with.rb
|
59
63
|
- lib/xqsr3/string_utilities/quote_if.rb
|
60
64
|
- lib/xqsr3/string_utilities/starts_with.rb
|
61
65
|
- lib/xqsr3/string_utilities/to_symbol.rb
|
62
66
|
- lib/xqsr3/version.rb
|
63
67
|
- lib/xqsr3/xml/utilities/compare.rb
|
68
|
+
- test/unit/array_utilities/tc_join_with_or.rb
|
69
|
+
- test/unit/array_utilities/ts_all.rb
|
64
70
|
- test/unit/command_line_utilities/tc_map_option_string.rb
|
65
71
|
- test/unit/command_line_utilities/ts_all.rb
|
66
72
|
- test/unit/containers/tc_frequency_map.rb
|
@@ -100,8 +106,6 @@ files:
|
|
100
106
|
- test/unit/xml/ts_all.rb
|
101
107
|
- test/unit/xml/utilities/tc_compare.rb
|
102
108
|
- test/unit/xml/utilities/ts_all.rb
|
103
|
-
- README.md
|
104
|
-
- LICENSE
|
105
109
|
homepage: http://github.com/synesissoftware/xqsr3
|
106
110
|
licenses:
|
107
111
|
- 3-clause BSD
|
@@ -122,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
126
|
version: '0'
|
123
127
|
requirements: []
|
124
128
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.4.2
|
126
130
|
signing_key:
|
127
131
|
specification_version: 4
|
128
132
|
summary: xqsr3
|