cmpfs-ruby 0.2.0 → 0.2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +17 -16
- data/README.md +20 -9
- data/lib/cmpfs/compare/api_1_9.rb +121 -120
- data/lib/cmpfs/compare/api_2.rb +109 -108
- data/lib/cmpfs/compare/binary/internal_.rb +50 -52
- data/lib/cmpfs/compare/text/internal_.rb +89 -92
- data/lib/cmpfs/compare.rb +25 -23
- data/lib/cmpfs/version.rb +20 -19
- data/lib/cmpfs.rb +16 -12
- data/test/unit/compare/tc_compare_binary.rb +52 -51
- data/test/unit/tc_compare_binary.rb +53 -54
- data/test/unit/tc_compare_text.rb +85 -31
- data/test/unit/tc_version.rb +19 -16
- metadata +22 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 62764eb741e0f301f90321e85c93b0dce924c67194106b0bd1303bf6aa546783
|
4
|
+
data.tar.gz: 5959477f700c9a53c720bb5576a09efaf86cce525e10b5523d043fc72c75918d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a07bfafb304a4a1ae80c144ff232b88617c34e6b8392457fd1b7454dbec32be79da00d03f137ec7e2cf089399876fd185a5b0aac31a1fb94131934b60b37498
|
7
|
+
data.tar.gz: 3e7e33b928703d0c48a2c41d3c765be2dcfd7c77bc8278bea466e9f39e1e76e8e7cd66f6a27083523d547f7d0021c72dee731aa4f0b7658ee7dcf2fa3029d1b5
|
data/LICENSE
CHANGED
@@ -1,31 +1,32 @@
|
|
1
1
|
cmpfs.Ruby
|
2
2
|
|
3
|
+
Copyright (c) 2019-2024, Matthew Wilson and Synesis Information Systems
|
3
4
|
Copyright (c) 2019, Matthew Wilson and Synesis Software
|
4
5
|
All rights reserved.
|
5
6
|
|
6
7
|
Redistribution and use in source and binary forms, with or without
|
7
8
|
modification, are permitted provided that the following conditions are met:
|
8
9
|
|
9
|
-
* Redistributions of source code must retain the above copyright notice,
|
10
|
-
list of conditions and the following disclaimer.
|
10
|
+
* Redistributions of source code must retain the above copyright notice,
|
11
|
+
this list of conditions and the following disclaimer.
|
11
12
|
|
12
13
|
* Redistributions in binary form must reproduce the above copyright notice,
|
13
14
|
this list of conditions and the following disclaimer in the documentation
|
14
15
|
and/or other materials provided with the distribution.
|
15
16
|
|
16
|
-
* Neither the names of cmpfs or cmpfs.Ruby nor the names of
|
17
|
-
|
18
|
-
|
19
|
-
permission.
|
17
|
+
* Neither the names of cmpfs or cmpfs.Ruby nor the names of its contributors
|
18
|
+
or its copyright holders may be used to endorse or promote products
|
19
|
+
derived from this software without specific prior written permission.
|
20
20
|
|
21
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
22
|
-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
23
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
24
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
25
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
26
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
27
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
28
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
29
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
30
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
21
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
22
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
23
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
24
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
25
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
26
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
27
|
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
28
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
29
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
30
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
31
|
+
POSSIBILITY OF SUCH DAMAGE.
|
31
32
|
|
data/README.md
CHANGED
@@ -1,17 +1,25 @@
|
|
1
|
-
# cmpfs.Ruby
|
1
|
+
# cmpfs.Ruby <!-- omit in toc -->
|
2
|
+
|
2
3
|
**Com**pare **F**ile-**S**ystem entities, for **Ruby**
|
3
4
|
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/cmpfs-ruby.svg)](https://badge.fury.io/rb/cmpfs-ruby)
|
6
|
+
|
4
7
|
## Introduction
|
5
8
|
|
6
|
-
|
9
|
+
Provides platform-independent facilities for comparing file contents, for both binary and text files
|
7
10
|
|
8
|
-
## Table of Contents
|
11
|
+
## Table of Contents <!-- omit in toc -->
|
9
12
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
13
|
+
- [Introduction](#introduction)
|
14
|
+
- [Installation](#installation)
|
15
|
+
- [Components](#components)
|
16
|
+
- [Examples](#examples)
|
17
|
+
- [Project Information](#project-information)
|
18
|
+
- [Where to get help](#where-to-get-help)
|
19
|
+
- [Contribution guidelines](#contribution-guidelines)
|
20
|
+
- [Dependencies](#dependencies)
|
21
|
+
- [Related projects](#related-projects)
|
22
|
+
- [License](#license)
|
15
23
|
|
16
24
|
## Installation
|
17
25
|
|
@@ -43,5 +51,8 @@ T.B.C.
|
|
43
51
|
|
44
52
|
### License
|
45
53
|
|
46
|
-
**cmpfs.
|
54
|
+
**cmpfs.Ruby** is released under the 3-clause BSD license. See [LICENSE](./LICENSE) for details.
|
55
|
+
|
56
|
+
|
57
|
+
<!-- ########################### end of file ########################### -->
|
47
58
|
|
@@ -1,139 +1,140 @@
|
|
1
1
|
|
2
2
|
if RUBY_VERSION >= '2'
|
3
3
|
|
4
|
-
|
4
|
+
abort "This file required Ruby 1+: RUBY_VERSION='#{RUBY_VERSION}'"
|
5
5
|
end
|
6
6
|
|
7
7
|
require 'cmpfs/compare/binary/internal_'
|
8
8
|
require 'cmpfs/compare/text/internal_'
|
9
9
|
|
10
|
+
|
10
11
|
module CmpFS
|
11
12
|
module Compare
|
12
13
|
|
13
14
|
module CmpFS_Compare_Methods
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
16
|
+
# Compares two files, named by +lhs_path+ and +rhs_path+, in a binary
|
17
|
+
# (exact) manner
|
18
|
+
def compare_binary_files lhs_path, rhs_path, options = {}
|
19
|
+
|
20
|
+
options ||= {}
|
21
|
+
|
22
|
+
::CmpFS::Compare::Binary::Internal_.compare_binary_files_ lhs_path, rhs_path, options
|
23
|
+
end
|
24
|
+
|
25
|
+
# Compares two streams, +lhs_stm+ and +rhs_stm+, in a binary
|
26
|
+
# (exact) manner
|
27
|
+
def compare_binary_streams lhs_stm, rhs_stm, options = {}
|
28
|
+
|
29
|
+
options ||= {}
|
30
|
+
|
31
|
+
::CmpFS::Compare::Binary::Internal_.compare_binary_streams_ lhs_stm, rhs_stm, options
|
32
|
+
end
|
33
|
+
|
34
|
+
# Compares two files/streams in a binary (exact) manner
|
35
|
+
#
|
36
|
+
# == Signature
|
37
|
+
#
|
38
|
+
# == Return
|
39
|
+
#
|
40
|
+
# +true+ if the files/streams have exactly the same content; +false+
|
41
|
+
# otherwise.
|
42
|
+
def compare_binary lhs, rhs, options = {}
|
43
|
+
|
44
|
+
options ||= {}
|
45
|
+
|
46
|
+
::CmpFS::Compare::Binary::Internal_.compare_binary_ lhs, rhs, options
|
47
|
+
end
|
48
|
+
|
49
|
+
|
50
|
+
# Compares two files, named by +lhs_path+ and +rhs_path+, in a textual
|
51
|
+
# manner according to the given +options+
|
52
|
+
#
|
53
|
+
# === Signature
|
54
|
+
#
|
55
|
+
# * *Parameters:*
|
56
|
+
# - +lhs_path+:: (String) The name of a file
|
57
|
+
# - +rhs_path+:: (String) The name of a file
|
58
|
+
# - +options+:: (Hash) Options
|
59
|
+
#
|
60
|
+
# * *Options:*
|
61
|
+
# - +:skip_blank_lines+:: (boolean) Determines whether blank lines
|
62
|
+
# should be skipped from the comparison
|
63
|
+
# - +:trim_lines+:: (boolean) Determines whether lines should be
|
64
|
+
# trimmed of leading and trailing space (including EOL sequence)
|
65
|
+
#
|
66
|
+
# === Return
|
67
|
+
#
|
68
|
+
# +true+ if the files/streams have exactly the same content; +false+
|
69
|
+
# otherwise.
|
70
|
+
def compare_text_files lhs_path, rhs_path, options = {}
|
71
|
+
|
72
|
+
options |= {}
|
73
|
+
|
74
|
+
::CmpFS::Compare::Text::Internal_.compare_text_files_ lhs_path, rhs_path, options
|
75
|
+
end
|
76
|
+
|
77
|
+
# Compares two streams, named by +lhs_stm+ and +rhs_stm+, in a textual
|
78
|
+
# manner according to the given +options+
|
79
|
+
#
|
80
|
+
# === Signature
|
81
|
+
#
|
82
|
+
# * *Parameters:*
|
83
|
+
# - +lhs_stm+:: (stream) A stream object
|
84
|
+
# - +rhs_stm+:: (stream) A stream object
|
85
|
+
# - +options+:: (Hash) Options
|
86
|
+
#
|
87
|
+
# * *Options:*
|
88
|
+
# - +:no_rewind+:: (boolean) Prevents the default behaviour of
|
89
|
+
# rewinding the stream before processing
|
90
|
+
# - +:skip_blank_lines+:: (boolean) Determines whether blank lines
|
91
|
+
# should be skipped from the comparison
|
92
|
+
# - +:trim_lines+:: (boolean) Determines whether lines should be
|
93
|
+
# trimmed of leading and trailing space (including EOL sequence)
|
94
|
+
#
|
95
|
+
# === Return
|
96
|
+
#
|
97
|
+
# +true+ if the files/streams have exactly the same content; +false+
|
98
|
+
# otherwise.
|
99
|
+
def compare_text_streams lhs_stm, rhs_stm, options = {}
|
100
|
+
|
101
|
+
options ||= {}
|
102
|
+
|
103
|
+
::CmpFS::Compare::Text::Internal_.compare_text_streams_ lhs_stm, rhs_stm, options
|
104
|
+
end
|
105
|
+
|
106
|
+
# Compares two files/streams, named by +lhs+ and +rhs+, in a textual
|
107
|
+
# manner according to the given +options+
|
108
|
+
#
|
109
|
+
# === Signature
|
110
|
+
#
|
111
|
+
# * *Parameters:*
|
112
|
+
# - +lhs+:: (String, stream) The name of a file, or a stream object
|
113
|
+
# - +rhs+:: (String, stream) The name of a file, or a stream object
|
114
|
+
# - +options+:: (Hash) Options
|
115
|
+
#
|
116
|
+
# * *Options:*
|
117
|
+
# - +:no_rewind+:: (boolean) Prevents the default behaviour of
|
118
|
+
# rewinding the stream before processing
|
119
|
+
# - +:skip_blank_lines+:: (boolean) Determines whether blank lines
|
120
|
+
# should be skipped from the comparison
|
121
|
+
# - +:trim_lines+:: (boolean) Determines whether lines should be
|
122
|
+
# trimmed of leading and trailing space (including EOL sequence)
|
123
|
+
#
|
124
|
+
# === Return
|
125
|
+
#
|
126
|
+
# +true+ if the files/streams have exactly the same content; +false+
|
127
|
+
# otherwise.
|
128
|
+
def compare_text lhs, rhs, options = {}
|
129
|
+
|
130
|
+
options ||= {}
|
131
|
+
|
132
|
+
::CmpFS::Compare::Text::Internal_.compare_text_ lhs, rhs, options
|
133
|
+
end
|
133
134
|
end # module CmpFS_Compare_Methods
|
134
135
|
end # module Compare
|
135
136
|
end # module CmpFS
|
136
137
|
|
137
|
-
# ############################## end of file ############################# #
|
138
138
|
|
139
|
+
# ############################## end of file ############################# #
|
139
140
|
|
data/lib/cmpfs/compare/api_2.rb
CHANGED
@@ -1,127 +1,128 @@
|
|
1
1
|
|
2
2
|
unless RUBY_VERSION >= '2'
|
3
3
|
|
4
|
-
|
4
|
+
abort "This file required Ruby 2+: RUBY_VERSION='#{RUBY_VERSION}'"
|
5
5
|
end
|
6
6
|
|
7
7
|
require 'cmpfs/compare/binary/internal_'
|
8
8
|
require 'cmpfs/compare/text/internal_'
|
9
9
|
|
10
|
+
|
10
11
|
module CmpFS
|
11
12
|
module Compare
|
12
13
|
|
13
14
|
module CmpFS_Compare_Methods
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
16
|
+
# Compares two files, named by +lhs_path+ and +rhs_path+, in a binary
|
17
|
+
# (exact) manner
|
18
|
+
def compare_binary_files lhs_path, rhs_path, **options
|
19
|
+
|
20
|
+
::CmpFS::Compare::Binary::Internal_.compare_binary_files_ lhs_path, rhs_path, options
|
21
|
+
end
|
22
|
+
|
23
|
+
# Compares two streams, +lhs_stm+ and +rhs_stm+, in a binary
|
24
|
+
# (exact) manner
|
25
|
+
def compare_binary_streams lhs_stm, rhs_stm, **options
|
26
|
+
|
27
|
+
::CmpFS::Compare::Binary::Internal_.compare_binary_streams_ lhs_stm, rhs_stm, options
|
28
|
+
end
|
29
|
+
|
30
|
+
# Compares two files/streams in a binary (exact) manner
|
31
|
+
#
|
32
|
+
# == Signature
|
33
|
+
#
|
34
|
+
# == Return
|
35
|
+
#
|
36
|
+
# +true+ if the files/streams have exactly the same content; +false+
|
37
|
+
# otherwise.
|
38
|
+
def compare_binary lhs, rhs, **options
|
39
|
+
|
40
|
+
::CmpFS::Compare::Binary::Internal_.compare_binary_ lhs, rhs, options
|
41
|
+
end
|
42
|
+
|
43
|
+
|
44
|
+
# Compares two files, named by +lhs_path+ and +rhs_path+, in a textual
|
45
|
+
# manner according to the given +options+
|
46
|
+
#
|
47
|
+
# === Signature
|
48
|
+
#
|
49
|
+
# * *Parameters:*
|
50
|
+
# - +lhs_path+:: (String) The name of a file
|
51
|
+
# - +rhs_path+:: (String) The name of a file
|
52
|
+
# - +options+:: (Hash) Options
|
53
|
+
#
|
54
|
+
# * *Options:*
|
55
|
+
# - +:skip_blank_lines+:: (boolean) Determines whether blank lines
|
56
|
+
# should be skipped from the comparison
|
57
|
+
# - +:trim_lines+:: (boolean) Determines whether lines should be
|
58
|
+
# trimmed of leading and trailing space (including EOL sequence)
|
59
|
+
#
|
60
|
+
# === Return
|
61
|
+
#
|
62
|
+
# +true+ if the files/streams have exactly the same content; +false+
|
63
|
+
# otherwise.
|
64
|
+
def compare_text_files lhs_path, rhs_path, **options
|
65
|
+
|
66
|
+
::CmpFS::Compare::Text::Internal_.compare_text_files_ lhs_path, rhs_path, options
|
67
|
+
end
|
68
|
+
|
69
|
+
# Compares two streams, named by +lhs_stm+ and +rhs_stm+, in a textual
|
70
|
+
# manner according to the given +options+
|
71
|
+
#
|
72
|
+
# === Signature
|
73
|
+
#
|
74
|
+
# * *Parameters:*
|
75
|
+
# - +lhs_stm+:: (stream) A stream object
|
76
|
+
# - +rhs_stm+:: (stream) A stream object
|
77
|
+
# - +options+:: (Hash) Options
|
78
|
+
#
|
79
|
+
# * *Options:*
|
80
|
+
# - +:no_rewind+:: (boolean) Prevents the default behaviour of
|
81
|
+
# rewinding the stream before processing
|
82
|
+
# - +:skip_blank_lines+:: (boolean) Determines whether blank lines
|
83
|
+
# should be skipped from the comparison
|
84
|
+
# - +:trim_lines+:: (boolean) Determines whether lines should be
|
85
|
+
# trimmed of leading and trailing space (including EOL sequence)
|
86
|
+
#
|
87
|
+
# === Return
|
88
|
+
#
|
89
|
+
# +true+ if the files/streams have exactly the same content; +false+
|
90
|
+
# otherwise.
|
91
|
+
def compare_text_streams lhs_stm, rhs_stm, **options
|
92
|
+
|
93
|
+
::CmpFS::Compare::Text::Internal_.compare_text_streams_ lhs_stm, rhs_stm, options
|
94
|
+
end
|
95
|
+
|
96
|
+
# Compares two files/streams, named by +lhs+ and +rhs+, in a textual
|
97
|
+
# manner according to the given +options+
|
98
|
+
#
|
99
|
+
# === Signature
|
100
|
+
#
|
101
|
+
# * *Parameters:*
|
102
|
+
# - +lhs+:: (String, stream) The name of a file, or a stream object
|
103
|
+
# - +rhs+:: (String, stream) The name of a file, or a stream object
|
104
|
+
# - +options+:: (Hash) Options
|
105
|
+
#
|
106
|
+
# * *Options:*
|
107
|
+
# - +:no_rewind+:: (boolean) Prevents the default behaviour of
|
108
|
+
# rewinding the stream before processing
|
109
|
+
# - +:skip_blank_lines+:: (boolean) Determines whether blank lines
|
110
|
+
# should be skipped from the comparison
|
111
|
+
# - +:trim_lines+:: (boolean) Determines whether lines should be
|
112
|
+
# trimmed of leading and trailing space (including EOL sequence)
|
113
|
+
#
|
114
|
+
# === Return
|
115
|
+
#
|
116
|
+
# +true+ if the files/streams have exactly the same content; +false+
|
117
|
+
# otherwise.
|
118
|
+
def compare_text lhs, rhs, **options
|
119
|
+
|
120
|
+
::CmpFS::Compare::Text::Internal_.compare_text_ lhs, rhs, options
|
121
|
+
end
|
121
122
|
end # module CmpFS_Compare_Methods
|
122
123
|
end # module Compare
|
123
124
|
end # module CmpFS
|
124
125
|
|
125
|
-
# ############################## end of file ############################# #
|
126
126
|
|
127
|
+
# ############################## end of file ############################# #
|
127
128
|
|