xqsr3 0.8.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 +7 -0
- data/LICENSE +27 -0
- data/README.md +26 -0
- data/lib/xqsr3/command_line_utilities/map_option_string.rb +137 -0
- data/lib/xqsr3/containers/frequency_map.rb +473 -0
- data/lib/xqsr3/containers/multi_map.rb +383 -0
- data/lib/xqsr3/diagnostics/exception_utilities.rb +216 -0
- data/lib/xqsr3/doc_.rb +116 -0
- data/lib/xqsr3/extensions/enumerable.rb +4 -0
- data/lib/xqsr3/extensions/enumerable/collect_with_index.rb +71 -0
- data/lib/xqsr3/extensions/enumerable/unique.rb +102 -0
- data/lib/xqsr3/extensions/io.rb +3 -0
- data/lib/xqsr3/extensions/io/writelines.rb +66 -0
- data/lib/xqsr3/extensions/kernel.rb +3 -0
- data/lib/xqsr3/extensions/kernel/raise_with_options.rb +68 -0
- data/lib/xqsr3/extensions/string.rb +5 -0
- data/lib/xqsr3/extensions/string/ends_with.rb +8 -0
- data/lib/xqsr3/extensions/string/map_option_string.rb +8 -0
- data/lib/xqsr3/extensions/string/starts_with.rb +8 -0
- data/lib/xqsr3/extensions/string/to_symbol.rb +8 -0
- data/lib/xqsr3/extensions/test/unit.rb +5 -0
- data/lib/xqsr3/extensions/test/unit/assert_eql.rb +18 -0
- data/lib/xqsr3/extensions/test/unit/assert_not.rb +18 -0
- data/lib/xqsr3/extensions/test/unit/assert_not_eql.rb +18 -0
- data/lib/xqsr3/io/writelines.rb +192 -0
- data/lib/xqsr3/quality/parameter_checking.rb +343 -0
- data/lib/xqsr3/string_utilities/ends_with.rb +134 -0
- data/lib/xqsr3/string_utilities/starts_with.rb +127 -0
- data/lib/xqsr3/string_utilities/to_symbol.rb +145 -0
- data/lib/xqsr3/version.rb +68 -0
- data/test/unit/command_line_utilities/tc_map_option_string.rb +39 -0
- data/test/unit/command_line_utilities/ts_all.rb +13 -0
- data/test/unit/containers/tc_frequency_map.rb +738 -0
- data/test/unit/containers/tc_multi_map.rb +640 -0
- data/test/unit/containers/ts_all.rb +13 -0
- data/test/unit/diagnostics/tc_exception_utilities.rb +221 -0
- data/test/unit/diagnostics/ts_all.rb +13 -0
- data/test/unit/extensions/enumerable/tc_collect_with_index.rb +36 -0
- data/test/unit/extensions/enumerable/tc_unique.rb +47 -0
- data/test/unit/extensions/enumerable/ts_all.rb +13 -0
- data/test/unit/extensions/io/tc_writelines.rb +110 -0
- data/test/unit/extensions/io/ts_all.rb +13 -0
- data/test/unit/extensions/kernel/tc_raise_with_options.rb +239 -0
- data/test/unit/extensions/kernel/ts_all.rb +13 -0
- data/test/unit/extensions/string/tc_ends_with.rb +70 -0
- data/test/unit/extensions/string/tc_map_option_string.rb +37 -0
- data/test/unit/extensions/string/tc_starts_with.rb +70 -0
- data/test/unit/extensions/string/tc_to_symbol.rb +51 -0
- data/test/unit/extensions/string/ts_all.rb +13 -0
- data/test/unit/extensions/ts_all.rb +13 -0
- data/test/unit/io/tc_writelines.rb +200 -0
- data/test/unit/io/ts_all.rb +13 -0
- data/test/unit/quality/tc_parameter_checking.rb +181 -0
- data/test/unit/quality/ts_all.rb +13 -0
- data/test/unit/tc_version.rb +37 -0
- data/test/unit/ts_all.rb +13 -0
- metadata +101 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
#! /usr/bin/ruby
|
2
|
+
#
|
3
|
+
# executes all other tests
|
4
|
+
|
5
|
+
this_file = File.expand_path(__FILE__)
|
6
|
+
this_dir = File.expand_path(File.dirname(__FILE__))
|
7
|
+
|
8
|
+
# all tc_*rb in current directory
|
9
|
+
Dir[File.join(this_dir, 'tc_*rb')].each { |file| require file }
|
10
|
+
|
11
|
+
# all ts_*rb in immediate sub-directories
|
12
|
+
Dir[File.join(this_dir, '*', 'ts_*rb')].each { |file| require file }
|
13
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
#! /usr/bin/ruby
|
2
|
+
|
3
|
+
$:.unshift File.join(File.dirname(__FILE__), '../../lib')
|
4
|
+
|
5
|
+
require 'xqsr3/version'
|
6
|
+
|
7
|
+
require 'test/unit'
|
8
|
+
|
9
|
+
class Test_version < Test::Unit::TestCase
|
10
|
+
|
11
|
+
def test_has_VERSION
|
12
|
+
|
13
|
+
assert defined? Xqsr3::VERSION
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_has_VERSION_MAJOR
|
17
|
+
|
18
|
+
assert defined? Xqsr3::VERSION_MAJOR
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_has_VERSION_MINOR
|
22
|
+
|
23
|
+
assert defined? Xqsr3::VERSION_MINOR
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_has_VERSION_REVISION
|
27
|
+
|
28
|
+
assert defined? Xqsr3::VERSION_REVISION
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_VERSION_has_consistent_format
|
32
|
+
|
33
|
+
assert_equal Xqsr3::VERSION, "#{Xqsr3::VERSION_MAJOR}.#{Xqsr3::VERSION_MINOR}.#{Xqsr3::VERSION_REVISION}"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
|
data/test/unit/ts_all.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#! /usr/bin/ruby
|
2
|
+
#
|
3
|
+
# executes all other tests
|
4
|
+
|
5
|
+
this_file = File.expand_path(__FILE__)
|
6
|
+
this_dir = File.expand_path(File.dirname(__FILE__))
|
7
|
+
|
8
|
+
# all tc_*rb in current directory
|
9
|
+
Dir[File.join(this_dir, 'tc_*rb')].each { |file| require file }
|
10
|
+
|
11
|
+
# all ts_*rb in immediate sub-directories
|
12
|
+
Dir[File.join(this_dir, '*', 'ts_*rb')].each { |file| require file }
|
13
|
+
|
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: xqsr3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matt Wilson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-06-11 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: |
|
14
|
+
eXtensions by fine Quantum for Standard Ruby and 3rd-party libraries is a
|
15
|
+
lightweight, low-coupling library of assorted extensions to standard ruby and
|
16
|
+
3rd-party libraries.
|
17
|
+
email: matthew@synesis.com.au
|
18
|
+
executables: []
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- LICENSE
|
23
|
+
- README.md
|
24
|
+
- lib/xqsr3/command_line_utilities/map_option_string.rb
|
25
|
+
- lib/xqsr3/containers/frequency_map.rb
|
26
|
+
- lib/xqsr3/containers/multi_map.rb
|
27
|
+
- lib/xqsr3/diagnostics/exception_utilities.rb
|
28
|
+
- lib/xqsr3/doc_.rb
|
29
|
+
- lib/xqsr3/extensions/enumerable.rb
|
30
|
+
- lib/xqsr3/extensions/enumerable/collect_with_index.rb
|
31
|
+
- lib/xqsr3/extensions/enumerable/unique.rb
|
32
|
+
- lib/xqsr3/extensions/io.rb
|
33
|
+
- lib/xqsr3/extensions/io/writelines.rb
|
34
|
+
- lib/xqsr3/extensions/kernel.rb
|
35
|
+
- lib/xqsr3/extensions/kernel/raise_with_options.rb
|
36
|
+
- lib/xqsr3/extensions/string.rb
|
37
|
+
- lib/xqsr3/extensions/string/ends_with.rb
|
38
|
+
- lib/xqsr3/extensions/string/map_option_string.rb
|
39
|
+
- lib/xqsr3/extensions/string/starts_with.rb
|
40
|
+
- lib/xqsr3/extensions/string/to_symbol.rb
|
41
|
+
- lib/xqsr3/extensions/test/unit.rb
|
42
|
+
- lib/xqsr3/extensions/test/unit/assert_eql.rb
|
43
|
+
- lib/xqsr3/extensions/test/unit/assert_not.rb
|
44
|
+
- lib/xqsr3/extensions/test/unit/assert_not_eql.rb
|
45
|
+
- lib/xqsr3/io/writelines.rb
|
46
|
+
- lib/xqsr3/quality/parameter_checking.rb
|
47
|
+
- lib/xqsr3/string_utilities/ends_with.rb
|
48
|
+
- lib/xqsr3/string_utilities/starts_with.rb
|
49
|
+
- lib/xqsr3/string_utilities/to_symbol.rb
|
50
|
+
- lib/xqsr3/version.rb
|
51
|
+
- test/unit/command_line_utilities/tc_map_option_string.rb
|
52
|
+
- test/unit/command_line_utilities/ts_all.rb
|
53
|
+
- test/unit/containers/tc_frequency_map.rb
|
54
|
+
- test/unit/containers/tc_multi_map.rb
|
55
|
+
- test/unit/containers/ts_all.rb
|
56
|
+
- test/unit/diagnostics/tc_exception_utilities.rb
|
57
|
+
- test/unit/diagnostics/ts_all.rb
|
58
|
+
- test/unit/extensions/enumerable/tc_collect_with_index.rb
|
59
|
+
- test/unit/extensions/enumerable/tc_unique.rb
|
60
|
+
- test/unit/extensions/enumerable/ts_all.rb
|
61
|
+
- test/unit/extensions/io/tc_writelines.rb
|
62
|
+
- test/unit/extensions/io/ts_all.rb
|
63
|
+
- test/unit/extensions/kernel/tc_raise_with_options.rb
|
64
|
+
- test/unit/extensions/kernel/ts_all.rb
|
65
|
+
- test/unit/extensions/string/tc_ends_with.rb
|
66
|
+
- test/unit/extensions/string/tc_map_option_string.rb
|
67
|
+
- test/unit/extensions/string/tc_starts_with.rb
|
68
|
+
- test/unit/extensions/string/tc_to_symbol.rb
|
69
|
+
- test/unit/extensions/string/ts_all.rb
|
70
|
+
- test/unit/extensions/ts_all.rb
|
71
|
+
- test/unit/io/tc_writelines.rb
|
72
|
+
- test/unit/io/ts_all.rb
|
73
|
+
- test/unit/quality/tc_parameter_checking.rb
|
74
|
+
- test/unit/quality/ts_all.rb
|
75
|
+
- test/unit/tc_version.rb
|
76
|
+
- test/unit/ts_all.rb
|
77
|
+
homepage: http://github.com/synesissoftware/xqsr3
|
78
|
+
licenses:
|
79
|
+
- Modified BSD
|
80
|
+
metadata: {}
|
81
|
+
post_install_message:
|
82
|
+
rdoc_options: []
|
83
|
+
require_paths:
|
84
|
+
- lib
|
85
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
requirements: []
|
96
|
+
rubyforge_project:
|
97
|
+
rubygems_version: 2.4.2
|
98
|
+
signing_key:
|
99
|
+
specification_version: 4
|
100
|
+
summary: xqsr3
|
101
|
+
test_files: []
|