cmpfs-ruby 0.2.1.2 → 0.2.1.4
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/cmpfs/compare/api_1_9.rb +8 -11
- data/lib/cmpfs/compare/api_2.rb +8 -11
- data/lib/cmpfs/compare/binary/internal_.rb +4 -1
- data/lib/cmpfs/compare/text/internal_.rb +4 -1
- data/lib/cmpfs/compare.rb +4 -4
- data/lib/cmpfs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93a3cb98422e6c37f08362bcfe01a9da3c00527a00f2bff54fe3bfd4a6fbe70f
|
4
|
+
data.tar.gz: 9ca9e696cfd8929e26231265c8726eeddababf00e7177d139ff0d3fb037d1464
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 057fbfbbeab16ce70340e1fa91d9aab25e6fb581e3f3951f226b28d5ecd58f0b2e21d1b9b11470a7ab5d9c4d0ea10d9aee1cc7dc9fbc7e1920e8ae4e2be1c3f3
|
7
|
+
data.tar.gz: b25d81e360bdbbc0682d2d0a65da88727594e8863c5cbd36d95c0303e2dc12ddacfa87c3292acea2558fcfdc6baac26173468730f3c90f2b4da472b3455b3473
|
@@ -80,7 +80,7 @@ module CmpFS_Compare_Methods
|
|
80
80
|
|
81
81
|
|
82
82
|
# Compares two files, named by +lhs_path+ and +rhs_path+, in a textual
|
83
|
-
# manner according to the given +options
|
83
|
+
# manner according to the given +options+.
|
84
84
|
#
|
85
85
|
# === Signature
|
86
86
|
#
|
@@ -94,8 +94,7 @@ module CmpFS_Compare_Methods
|
|
94
94
|
# - +:trim_lines+:: (boolean) Determines whether lines should be trimmed of leading and trailing space (including EOL sequence)
|
95
95
|
#
|
96
96
|
# === Return
|
97
|
-
# +true+ if the files/streams have
|
98
|
-
# otherwise.
|
97
|
+
# +true+ if the files/streams have the same content; +false+ otherwise.
|
99
98
|
def compare_text_files lhs_path, rhs_path, options = {}
|
100
99
|
|
101
100
|
options |= {}
|
@@ -103,8 +102,8 @@ module CmpFS_Compare_Methods
|
|
103
102
|
::CmpFS::Compare::Text::Internal_.compare_text_files_ lhs_path, rhs_path, options
|
104
103
|
end
|
105
104
|
|
106
|
-
# Compares two streams,
|
107
|
-
# manner according to the given +options
|
105
|
+
# Compares two streams, +lhs_stm+ and +rhs_stm+, in a textual
|
106
|
+
# manner according to the given +options+.
|
108
107
|
#
|
109
108
|
# === Signature
|
110
109
|
#
|
@@ -119,8 +118,7 @@ module CmpFS_Compare_Methods
|
|
119
118
|
# - +:trim_lines+:: (boolean) Determines whether lines should be trimmed of leading and trailing space (including EOL sequence)
|
120
119
|
#
|
121
120
|
# === Return
|
122
|
-
# +true+ if the files/streams have
|
123
|
-
# otherwise.
|
121
|
+
# +true+ if the files/streams have the same content; +false+ otherwise.
|
124
122
|
def compare_text_streams lhs_stm, rhs_stm, options = {}
|
125
123
|
|
126
124
|
options ||= {}
|
@@ -128,8 +126,8 @@ module CmpFS_Compare_Methods
|
|
128
126
|
::CmpFS::Compare::Text::Internal_.compare_text_streams_ lhs_stm, rhs_stm, options
|
129
127
|
end
|
130
128
|
|
131
|
-
# Compares two files/streams,
|
132
|
-
# manner according to the given +options
|
129
|
+
# Compares two files/streams, +lhs+ and +rhs+, in a textual
|
130
|
+
# manner according to the given +options+.
|
133
131
|
#
|
134
132
|
# === Signature
|
135
133
|
#
|
@@ -144,8 +142,7 @@ module CmpFS_Compare_Methods
|
|
144
142
|
# - +:trim_lines+:: (boolean) Determines whether lines should be trimmed of leading and trailing space (including EOL sequence)
|
145
143
|
#
|
146
144
|
# === Return
|
147
|
-
# +true+ if the files/streams have
|
148
|
-
# otherwise.
|
145
|
+
# +true+ if the files/streams have the same content; +false+ otherwise.
|
149
146
|
def compare_text lhs, rhs, options = {}
|
150
147
|
|
151
148
|
options ||= {}
|
data/lib/cmpfs/compare/api_2.rb
CHANGED
@@ -74,7 +74,7 @@ module CmpFS_Compare_Methods
|
|
74
74
|
|
75
75
|
|
76
76
|
# Compares two files, named by +lhs_path+ and +rhs_path+, in a textual
|
77
|
-
# manner according to the given +options
|
77
|
+
# manner according to the given +options+.
|
78
78
|
#
|
79
79
|
# === Signature
|
80
80
|
#
|
@@ -88,15 +88,14 @@ module CmpFS_Compare_Methods
|
|
88
88
|
# - +:trim_lines+:: (boolean) Determines whether lines should be trimmed of leading and trailing space (including EOL sequence)
|
89
89
|
#
|
90
90
|
# === Return
|
91
|
-
# +true+ if the files/streams have
|
92
|
-
# otherwise.
|
91
|
+
# +true+ if the files/streams have the same content; +false+ otherwise.
|
93
92
|
def compare_text_files lhs_path, rhs_path, **options
|
94
93
|
|
95
94
|
::CmpFS::Compare::Text::Internal_.compare_text_files_ lhs_path, rhs_path, options
|
96
95
|
end
|
97
96
|
|
98
|
-
# Compares two streams,
|
99
|
-
# manner according to the given +options
|
97
|
+
# Compares two streams, +lhs_stm+ and +rhs_stm+, in a textual
|
98
|
+
# manner according to the given +options+.
|
100
99
|
#
|
101
100
|
# === Signature
|
102
101
|
#
|
@@ -111,15 +110,14 @@ module CmpFS_Compare_Methods
|
|
111
110
|
# - +:trim_lines+:: (boolean) Determines whether lines should be trimmed of leading and trailing space (including EOL sequence)
|
112
111
|
#
|
113
112
|
# === Return
|
114
|
-
# +true+ if the files/streams have
|
115
|
-
# otherwise.
|
113
|
+
# +true+ if the files/streams have the same content; +false+ otherwise.
|
116
114
|
def compare_text_streams lhs_stm, rhs_stm, **options
|
117
115
|
|
118
116
|
::CmpFS::Compare::Text::Internal_.compare_text_streams_ lhs_stm, rhs_stm, options
|
119
117
|
end
|
120
118
|
|
121
|
-
# Compares two files/streams,
|
122
|
-
# manner according to the given +options
|
119
|
+
# Compares two files/streams, +lhs+ and +rhs+, in a textual
|
120
|
+
# manner according to the given +options+.
|
123
121
|
#
|
124
122
|
# === Signature
|
125
123
|
#
|
@@ -134,8 +132,7 @@ module CmpFS_Compare_Methods
|
|
134
132
|
# - +:trim_lines+:: (boolean) Determines whether lines should be trimmed of leading and trailing space (including EOL sequence)
|
135
133
|
#
|
136
134
|
# === Return
|
137
|
-
# +true+ if the files/streams have
|
138
|
-
# otherwise.
|
135
|
+
# +true+ if the files/streams have the same content; +false+ otherwise.
|
139
136
|
def compare_text lhs, rhs, **options
|
140
137
|
|
141
138
|
::CmpFS::Compare::Text::Internal_.compare_text_ lhs, rhs, options
|
data/lib/cmpfs/compare.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# Purpose: Version for cmpfs.Ruby library
|
6
6
|
#
|
7
7
|
# Created: 1st March 2019
|
8
|
-
# Updated:
|
8
|
+
# Updated: 2nd April 2024
|
9
9
|
#
|
10
10
|
# Home: http://github.com/synesissoftware/cmpfs.Ruby
|
11
11
|
#
|
@@ -45,12 +45,12 @@
|
|
45
45
|
# ######################################################################## #
|
46
46
|
|
47
47
|
|
48
|
-
if RUBY_VERSION
|
48
|
+
if RUBY_VERSION < '2'
|
49
49
|
|
50
|
-
require 'cmpfs/compare/
|
50
|
+
require 'cmpfs/compare/api_1_9'
|
51
51
|
else
|
52
52
|
|
53
|
-
require 'cmpfs/compare/
|
53
|
+
require 'cmpfs/compare/api_2'
|
54
54
|
end
|
55
55
|
|
56
56
|
|
data/lib/cmpfs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmpfs-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.1.
|
4
|
+
version: 0.2.1.4
|
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-04-
|
11
|
+
date: 2024-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xqsr3
|