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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46fb5f08ba76dfb2e7850d848f46c57016635721b445974b280a8247d7d93ac0
4
- data.tar.gz: 60baeea6023c1d8178ecfc5c54b3f8ab8fe9e2b562773785b5453c2a868d560a
3
+ metadata.gz: 93a3cb98422e6c37f08362bcfe01a9da3c00527a00f2bff54fe3bfd4a6fbe70f
4
+ data.tar.gz: 9ca9e696cfd8929e26231265c8726eeddababf00e7177d139ff0d3fb037d1464
5
5
  SHA512:
6
- metadata.gz: ed2d57ba6d485a995ef08244373e7518a2212fff1560cc23be8809100200a83759c37416c4e9a37e5dc878ad5facf58d99b1baef9221d350ecf828b8b6711151
7
- data.tar.gz: e9b77bf3cb58c210afbc64db805a2a7898a0fd8507a8f2e470df66cdbdd58c5799c8ec68bd0e23f832d30d5e16ff030ea81965e958804b35d1e2eec1efab6ee7
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 exactly the same content; +false+
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, named by +lhs_stm+ and +rhs_stm+, in a textual
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 exactly the same content; +false+
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, named by +lhs+ and +rhs+, in a textual
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 exactly the same content; +false+
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 ||= {}
@@ -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 exactly the same content; +false+
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, named by +lhs_stm+ and +rhs_stm+, in a textual
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 exactly the same content; +false+
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, named by +lhs+ and +rhs+, in a textual
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 exactly the same content; +false+
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
@@ -5,9 +5,12 @@ require 'stringio'
5
5
 
6
6
  module CmpFS
7
7
  module Compare
8
+
9
+ # Binary comparison functions
8
10
  module Binary
9
11
 
10
- module Internal_
12
+ # @!visibility private
13
+ module Internal_ # :nodoc: all
11
14
 
12
15
  def self.determine_param_type_ p
13
16
 
@@ -5,9 +5,12 @@ require 'stringio'
5
5
 
6
6
  module CmpFS
7
7
  module Compare
8
+
9
+ # Text comparison functions
8
10
  module Text
9
11
 
10
- module Internal_
12
+ # @!visibility private
13
+ module Internal_ # :nodoc: all
11
14
 
12
15
  def self.determine_param_type_ p
13
16
 
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: 1st April 2024
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 >= '2'
48
+ if RUBY_VERSION < '2'
49
49
 
50
- require 'cmpfs/compare/api_2'
50
+ require 'cmpfs/compare/api_1_9'
51
51
  else
52
52
 
53
- require 'cmpfs/compare/api_1_9'
53
+ require 'cmpfs/compare/api_2'
54
54
  end
55
55
 
56
56
 
data/lib/cmpfs/version.rb CHANGED
@@ -51,7 +51,7 @@
51
51
  module CmpFS
52
52
 
53
53
  # Current version of the cmpfs.Ruby library
54
- VERSION = '0.2.1.2'
54
+ VERSION = '0.2.1.4'
55
55
 
56
56
  private
57
57
  VERSION_PARTS_ = VERSION.split(/[.]/).collect { |n| n.to_i } # :nodoc:
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.2
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-02 00:00:00.000000000 Z
11
+ date: 2024-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xqsr3