cmpfs-ruby 0.2.0 → 0.2.1.2
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 +5 -5
- data/LICENSE +17 -16
- data/README.md +133 -11
- data/examples/compare_two_binary_files.rb +44 -0
- data/examples/compare_two_text_files.rb +44 -0
- data/lib/cmpfs/compare/api_1_9.rb +142 -120
- data/lib/cmpfs/compare/api_2.rb +130 -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 +22 -18
- data/test/unit/compare/tc_compare_binary.rb +52 -51
- data/test/unit/compare/ts_all.rb +1 -1
- 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
- data/test/unit/ts_all.rb +1 -1
- metadata +24 -17
data/test/unit/tc_version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!
|
1
|
+
#! /usr/bin/env ruby
|
2
2
|
|
3
3
|
$:.unshift File.join(File.dirname(__FILE__), '../../lib')
|
4
4
|
|
@@ -9,29 +9,32 @@ require 'test/unit'
|
|
9
9
|
|
10
10
|
class Test_version < Test::Unit::TestCase
|
11
11
|
|
12
|
-
|
12
|
+
def test__VERSION
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
assert defined? CmpFS::VERSION
|
15
|
+
end
|
16
16
|
|
17
|
-
|
17
|
+
def test__VERSION_MAJOR
|
18
18
|
|
19
|
-
|
20
|
-
|
19
|
+
assert defined? CmpFS::VERSION_MAJOR
|
20
|
+
end
|
21
21
|
|
22
|
-
|
22
|
+
def test__VERSION_MINOR
|
23
23
|
|
24
|
-
|
25
|
-
|
24
|
+
assert defined? CmpFS::VERSION_MINOR
|
25
|
+
end
|
26
26
|
|
27
|
-
|
27
|
+
def test__VERSION_REVISION
|
28
28
|
|
29
|
-
|
30
|
-
|
29
|
+
assert defined? CmpFS::VERSION_REVISION
|
30
|
+
end
|
31
31
|
|
32
|
-
|
32
|
+
def test__VERSION_has_consistent_format
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
version = CmpFS::VERSION
|
35
|
+
j_n_p = "#{CmpFS::VERSION_MAJOR}.#{CmpFS::VERSION_MINOR}.#{CmpFS::VERSION_PATCH}"
|
36
|
+
|
37
|
+
assert_match /^#{j_n_p}(|\..+)$/, version
|
38
|
+
end
|
36
39
|
end
|
37
40
|
|
data/test/unit/ts_all.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmpfs-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Wilson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xqsr3
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.39'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.39.1
|
20
23
|
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - ~>
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.39'
|
30
|
+
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 0.39.1
|
27
33
|
description: |
|
28
34
|
Compare File-System entities, for Ruby is a library that provides comparison
|
29
35
|
functions for file-system entities - files and streams - including binary and
|
@@ -33,43 +39,44 @@ executables: []
|
|
33
39
|
extensions: []
|
34
40
|
extra_rdoc_files: []
|
35
41
|
files:
|
42
|
+
- LICENSE
|
43
|
+
- README.md
|
44
|
+
- examples/compare_two_binary_files.rb
|
45
|
+
- examples/compare_two_text_files.rb
|
46
|
+
- lib/cmpfs.rb
|
47
|
+
- lib/cmpfs/compare.rb
|
36
48
|
- lib/cmpfs/compare/api_1_9.rb
|
37
49
|
- lib/cmpfs/compare/api_2.rb
|
38
50
|
- lib/cmpfs/compare/binary/internal_.rb
|
39
51
|
- lib/cmpfs/compare/text/internal_.rb
|
40
|
-
- lib/cmpfs/compare.rb
|
41
52
|
- lib/cmpfs/version.rb
|
42
|
-
- lib/cmpfs.rb
|
43
53
|
- test/unit/compare/tc_compare_binary.rb
|
44
54
|
- test/unit/compare/ts_all.rb
|
45
55
|
- test/unit/tc_compare_binary.rb
|
46
56
|
- test/unit/tc_compare_text.rb
|
47
57
|
- test/unit/tc_version.rb
|
48
58
|
- test/unit/ts_all.rb
|
49
|
-
- README.md
|
50
|
-
- LICENSE
|
51
59
|
homepage: http://github.com/synesissoftware/cmpfs.Ruby
|
52
60
|
licenses:
|
53
61
|
- BSD 3-Clause
|
54
62
|
metadata: {}
|
55
|
-
post_install_message:
|
63
|
+
post_install_message:
|
56
64
|
rdoc_options: []
|
57
65
|
require_paths:
|
58
66
|
- lib
|
59
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
68
|
requirements:
|
61
|
-
- - ~>
|
69
|
+
- - "~>"
|
62
70
|
- !ruby/object:Gem::Version
|
63
71
|
version: '2.0'
|
64
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
73
|
requirements:
|
66
|
-
- -
|
74
|
+
- - ">="
|
67
75
|
- !ruby/object:Gem::Version
|
68
76
|
version: '0'
|
69
77
|
requirements: []
|
70
|
-
|
71
|
-
|
72
|
-
signing_key:
|
78
|
+
rubygems_version: 3.3.7
|
79
|
+
signing_key:
|
73
80
|
specification_version: 4
|
74
81
|
summary: CmpFS.Ruby
|
75
82
|
test_files: []
|