cmpfs-ruby 0.2.1.2 → 0.2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- 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.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: 2ef217a9a168e19ff15d4884b0910bde940ab5f7ab204ed3037e3521844bf845
|
4
|
+
data.tar.gz: 45439f73e36b1c2b27dfd17c67d2bde9c6e6ef35e66c64275204af9118aba2df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b539e9b6c0650fcacf55a1137e635e6822c28bd952f3a9aaeecb3e666b8225f177ca947f790387bf43dd384f7f8c680d968621a9af7326590cff9e82ee923945
|
7
|
+
data.tar.gz: 3368c43940335aa538e856aeda5b8924fb517ef69c59913705fea88765e1714dfa1c5cfc30ce4cd99757f1b01e29454de1bb9995fee717a8ee5cab7468773b90
|
@@ -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.3
|
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
|