digest-crc 0.4.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +6 -0
- data/.travis.yml +24 -0
- data/.yardopts +0 -1
- data/ChangeLog.md +138 -0
- data/Gemfile +15 -0
- data/LICENSE.txt +1 -1
- data/README.md +19 -4
- data/Rakefile +32 -28
- data/benchmarks.rb +58 -0
- data/digest-crc.gemspec +2 -1
- data/ext/digest/Rakefile +51 -0
- data/ext/digest/compat/ruby.h +11 -0
- data/ext/digest/crc12_3gpp/crc12_3gpp.c +66 -0
- data/ext/digest/crc12_3gpp/crc12_3gpp.h +11 -0
- data/ext/digest/crc12_3gpp/crc12_3gpp_ext.c +27 -0
- data/ext/digest/crc12_3gpp/extconf.rb +7 -0
- data/ext/digest/crc15/crc15.c +53 -0
- data/ext/digest/crc15/crc15.h +11 -0
- data/ext/digest/crc15/crc15_ext.c +28 -0
- data/ext/digest/crc15/extconf.rb +7 -0
- data/ext/digest/crc16/crc16.c +69 -0
- data/ext/digest/crc16/crc16.h +11 -0
- data/ext/digest/crc16/crc16_ext.c +28 -0
- data/ext/digest/crc16/extconf.rb +7 -0
- data/ext/digest/crc16_ccitt/crc16_ccitt.c +69 -0
- data/ext/digest/crc16_ccitt/crc16_ccitt.h +8 -0
- data/ext/digest/crc16_ccitt/crc16_ccitt_ext.c +28 -0
- data/ext/digest/crc16_ccitt/extconf.rb +7 -0
- data/ext/digest/crc16_dnp/crc16_dnp.c +53 -0
- data/ext/digest/crc16_dnp/crc16_dnp.h +8 -0
- data/ext/digest/crc16_dnp/crc16_dnp_ext.c +28 -0
- data/ext/digest/crc16_dnp/extconf.rb +7 -0
- data/ext/digest/crc16_genibus/crc16_genibus.c +69 -0
- data/ext/digest/crc16_genibus/crc16_genibus.h +8 -0
- data/ext/digest/crc16_genibus/crc16_genibus_ext.c +28 -0
- data/ext/digest/crc16_genibus/extconf.rb +7 -0
- data/ext/digest/crc16_kermit/crc16_kermit.c +69 -0
- data/ext/digest/crc16_kermit/crc16_kermit.h +8 -0
- data/ext/digest/crc16_kermit/crc16_kermit_ext.c +28 -0
- data/ext/digest/crc16_kermit/extconf.rb +7 -0
- data/ext/digest/crc16_modbus/crc16_modbus.c +69 -0
- data/ext/digest/crc16_modbus/crc16_modbus.h +8 -0
- data/ext/digest/crc16_modbus/crc16_modbus_ext.c +28 -0
- data/ext/digest/crc16_modbus/extconf.rb +7 -0
- data/ext/digest/crc16_usb/crc16_usb.c +69 -0
- data/ext/digest/crc16_usb/crc16_usb.h +8 -0
- data/ext/digest/crc16_usb/crc16_usb_ext.c +28 -0
- data/ext/digest/crc16_usb/extconf.rb +7 -0
- data/ext/digest/crc16_x_25/crc16_x_25.c +69 -0
- data/ext/digest/crc16_x_25/crc16_x_25.h +8 -0
- data/ext/digest/crc16_x_25/crc16_x_25_ext.c +28 -0
- data/ext/digest/crc16_x_25/extconf.rb +7 -0
- data/ext/digest/crc16_xmodem/crc16_xmodem.c +69 -0
- data/ext/digest/crc16_xmodem/crc16_xmodem.h +8 -0
- data/ext/digest/crc16_xmodem/crc16_xmodem_ext.c +28 -0
- data/ext/digest/crc16_xmodem/extconf.rb +7 -0
- data/ext/digest/crc16_zmodem/crc16_zmodem.c +69 -0
- data/ext/digest/crc16_zmodem/crc16_zmodem.h +8 -0
- data/ext/digest/crc16_zmodem/crc16_zmodem_ext.c +28 -0
- data/ext/digest/crc16_zmodem/extconf.rb +7 -0
- data/ext/digest/crc24/crc24.c +69 -0
- data/ext/digest/crc24/crc24.h +11 -0
- data/ext/digest/crc24/crc24_ext.c +27 -0
- data/ext/digest/crc24/extconf.rb +7 -0
- data/ext/digest/crc32/crc32.c +68 -0
- data/ext/digest/crc32/crc32.h +11 -0
- data/ext/digest/crc32/crc32_ext.c +27 -0
- data/ext/digest/crc32/extconf.rb +7 -0
- data/ext/digest/crc32_bzip2/crc32_bzip2.c +69 -0
- data/ext/digest/crc32_bzip2/crc32_bzip2.h +8 -0
- data/ext/digest/crc32_bzip2/crc32_bzip2_ext.c +27 -0
- data/ext/digest/crc32_bzip2/extconf.rb +7 -0
- data/ext/digest/crc32_jam/crc32_jam.c +69 -0
- data/ext/digest/crc32_jam/crc32_jam.h +8 -0
- data/ext/digest/crc32_jam/crc32_jam_ext.c +27 -0
- data/ext/digest/crc32_jam/extconf.rb +7 -0
- data/ext/digest/crc32_mpeg/crc32_mpeg.c +69 -0
- data/ext/digest/crc32_mpeg/crc32_mpeg.h +8 -0
- data/ext/digest/crc32_mpeg/crc32_mpeg_ext.c +27 -0
- data/ext/digest/crc32_mpeg/extconf.rb +7 -0
- data/ext/digest/crc32_posix/crc32_posix.c +69 -0
- data/ext/digest/crc32_posix/crc32_posix.h +8 -0
- data/ext/digest/crc32_posix/crc32_posix_ext.c +27 -0
- data/ext/digest/crc32_posix/extconf.rb +7 -0
- data/ext/digest/crc32_xfer/crc32_xfer.c +69 -0
- data/ext/digest/crc32_xfer/crc32_xfer.h +8 -0
- data/ext/digest/crc32_xfer/crc32_xfer_ext.c +27 -0
- data/ext/digest/crc32_xfer/extconf.rb +7 -0
- data/ext/digest/crc32c/crc32c.c +69 -0
- data/ext/digest/crc32c/crc32c.h +8 -0
- data/ext/digest/crc32c/crc32c_ext.c +27 -0
- data/ext/digest/crc32c/extconf.rb +7 -0
- data/ext/digest/crc5/crc5.c +53 -0
- data/ext/digest/crc5/crc5.h +11 -0
- data/ext/digest/crc5/crc5_ext.c +27 -0
- data/ext/digest/crc5/extconf.rb +7 -0
- data/ext/digest/crc64/crc64.c +102 -0
- data/ext/digest/crc64/crc64.h +11 -0
- data/ext/digest/crc64/crc64_ext.c +27 -0
- data/ext/digest/crc64/extconf.rb +7 -0
- data/ext/digest/crc64_jones/crc64_jones.c +102 -0
- data/ext/digest/crc64_jones/crc64_jones.h +8 -0
- data/ext/digest/crc64_jones/crc64_jones_ext.c +27 -0
- data/ext/digest/crc64_jones/extconf.rb +7 -0
- data/ext/digest/crc64_xz/crc64_xz.c +102 -0
- data/ext/digest/crc64_xz/crc64_xz.h +8 -0
- data/ext/digest/crc64_xz/crc64_xz_ext.c +27 -0
- data/ext/digest/crc64_xz/extconf.rb +7 -0
- data/ext/digest/crc8/crc8.c +53 -0
- data/ext/digest/crc8/crc8.h +11 -0
- data/ext/digest/crc8/crc8_ext.c +27 -0
- data/ext/digest/crc8/extconf.rb +7 -0
- data/ext/digest/crc8_1wire/crc8_1wire.c +53 -0
- data/ext/digest/crc8_1wire/crc8_1wire.h +8 -0
- data/ext/digest/crc8_1wire/crc8_1wire_ext.c +27 -0
- data/ext/digest/crc8_1wire/extconf.rb +7 -0
- data/gemspec.yml +14 -6
- data/lib/digest/crc.rb +11 -3
- data/lib/digest/crc15.rb +70 -0
- data/lib/digest/crc16.rb +4 -0
- data/lib/digest/crc16_ccitt.rb +5 -1
- data/lib/digest/crc16_dnp.rb +4 -0
- data/lib/digest/crc16_genibus.rb +72 -0
- data/lib/digest/crc16_kermit.rb +66 -0
- data/lib/digest/crc16_modbus.rb +4 -0
- data/lib/digest/crc16_qt.rb +3 -58
- data/lib/digest/crc16_usb.rb +4 -0
- data/lib/digest/crc16_x_25.rb +56 -0
- data/lib/digest/crc16_xmodem.rb +4 -0
- data/lib/digest/crc16_zmodem.rb +4 -0
- data/lib/digest/crc24.rb +4 -0
- data/lib/digest/crc32.rb +6 -2
- data/lib/digest/crc32_bzip2.rb +64 -0
- data/lib/digest/crc32_jam.rb +16 -0
- data/lib/digest/crc32_mpeg.rb +9 -1
- data/lib/digest/crc32_posix.rb +65 -0
- data/lib/digest/crc32_xfer.rb +68 -0
- data/lib/digest/crc32c.rb +4 -0
- data/lib/digest/crc5.rb +17 -0
- data/lib/digest/crc64.rb +4 -0
- data/lib/digest/crc64_jones.rb +88 -0
- data/lib/digest/crc64_xz.rb +90 -0
- data/lib/digest/crc8.rb +4 -0
- data/lib/digest/crc8_1wire.rb +9 -2
- data/spec/crc15_spec.rb +10 -0
- data/spec/crc16_genibus_spec.rb +10 -0
- data/spec/crc16_kermit_spec.rb +10 -0
- data/spec/crc16_qt_spec.rb +5 -5
- data/spec/crc16_x_25_spec.rb +10 -0
- data/spec/crc32_bzip2_spec.rb +10 -0
- data/spec/crc32_jam_spec.rb +10 -0
- data/spec/crc32_mpeg_spec.rb +7 -1
- data/spec/crc32_posix_spec.rb +10 -0
- data/spec/crc32_xfer_spec.rb +10 -0
- data/spec/crc64_jones_spec.rb +10 -0
- data/spec/crc64_xz_spec.rb +10 -0
- data/spec/crc8_1wire_spec.rb +7 -1
- data/spec/crc_examples.rb +3 -3
- data/spec/crc_spec.rb +21 -13
- data/spec/spec_helper.rb +0 -1
- metadata +150 -45
- data/.gemtest +0 -0
data/spec/crc_spec.rb
CHANGED
@@ -2,14 +2,22 @@ require 'spec_helper'
|
|
2
2
|
require 'digest/crc'
|
3
3
|
|
4
4
|
describe Digest::CRC do
|
5
|
-
|
6
|
-
|
5
|
+
describe "#block_length" do
|
6
|
+
it { expect(subject.block_length).to be 1 }
|
7
|
+
end
|
8
|
+
|
9
|
+
describe ".pack" do
|
10
|
+
subject { described_class }
|
7
11
|
|
8
|
-
|
12
|
+
it do
|
13
|
+
expect { subject.pack(0) }.to raise_error(NotImplementedError)
|
14
|
+
end
|
9
15
|
end
|
10
16
|
|
11
|
-
|
12
|
-
|
17
|
+
describe "#update" do
|
18
|
+
it do
|
19
|
+
expect { subject.update('') }.to raise_error(NotImplementedError)
|
20
|
+
end
|
13
21
|
end
|
14
22
|
|
15
23
|
context "when inherited" do
|
@@ -26,38 +34,38 @@ describe Digest::CRC do
|
|
26
34
|
end
|
27
35
|
|
28
36
|
it "should override WIDTH" do
|
29
|
-
subject::WIDTH.
|
37
|
+
expect(subject::WIDTH).not_to be described_class::WIDTH
|
30
38
|
end
|
31
39
|
|
32
40
|
it "should override INIT_CRC" do
|
33
|
-
subject::INIT_CRC.
|
41
|
+
expect(subject::INIT_CRC).not_to be described_class::INIT_CRC
|
34
42
|
end
|
35
43
|
|
36
44
|
it "should override XOR_MASK" do
|
37
|
-
subject::XOR_MASK.
|
45
|
+
expect(subject::XOR_MASK).not_to be described_class::XOR_MASK
|
38
46
|
end
|
39
47
|
|
40
48
|
it "should override TABLE" do
|
41
|
-
subject::TABLE.
|
49
|
+
expect(subject::TABLE).not_to be described_class::TABLE
|
42
50
|
end
|
43
51
|
|
44
52
|
describe "#initialize" do
|
45
53
|
let(:instance) { subject.new }
|
46
54
|
|
47
55
|
it "should initialize @init_crc" do
|
48
|
-
instance.instance_variable_get("@init_crc").
|
56
|
+
expect(instance.instance_variable_get("@init_crc")).to be subject::INIT_CRC
|
49
57
|
end
|
50
58
|
|
51
59
|
it "should initialize @xor_mask" do
|
52
|
-
instance.instance_variable_get("@xor_mask").
|
60
|
+
expect(instance.instance_variable_get("@xor_mask")).to be subject::XOR_MASK
|
53
61
|
end
|
54
62
|
|
55
63
|
it "should initialize @width" do
|
56
|
-
instance.instance_variable_get("@width").
|
64
|
+
expect(instance.instance_variable_get("@width")).to be subject::WIDTH
|
57
65
|
end
|
58
66
|
|
59
67
|
it "should initialize @table" do
|
60
|
-
instance.instance_variable_get("@table").
|
68
|
+
expect(instance.instance_variable_get("@table")).to be subject::TABLE
|
61
69
|
end
|
62
70
|
end
|
63
71
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,109 +1,210 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: digest-crc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Postmodern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rspec
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '2.4'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '2.4'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: yard
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ~>
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0.8'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0.8'
|
26
|
+
version: '2.0'
|
55
27
|
description: Adds support for calculating Cyclic Redundancy Check (CRC) to the Digest
|
56
28
|
module.
|
57
29
|
email: postmodern.mod3@gmail.com
|
58
30
|
executables: []
|
59
|
-
extensions:
|
31
|
+
extensions:
|
32
|
+
- ext/digest/Rakefile
|
60
33
|
extra_rdoc_files:
|
61
34
|
- ChangeLog.md
|
62
35
|
- LICENSE.txt
|
63
36
|
- README.md
|
64
37
|
files:
|
65
|
-
- .
|
66
|
-
- .
|
67
|
-
- .
|
68
|
-
- .yardopts
|
38
|
+
- ".gitignore"
|
39
|
+
- ".rspec"
|
40
|
+
- ".travis.yml"
|
41
|
+
- ".yardopts"
|
69
42
|
- ChangeLog.md
|
43
|
+
- Gemfile
|
70
44
|
- LICENSE.txt
|
71
45
|
- README.md
|
72
46
|
- Rakefile
|
47
|
+
- benchmarks.rb
|
73
48
|
- digest-crc.gemspec
|
49
|
+
- ext/digest/Rakefile
|
50
|
+
- ext/digest/compat/ruby.h
|
51
|
+
- ext/digest/crc12_3gpp/crc12_3gpp.c
|
52
|
+
- ext/digest/crc12_3gpp/crc12_3gpp.h
|
53
|
+
- ext/digest/crc12_3gpp/crc12_3gpp_ext.c
|
54
|
+
- ext/digest/crc12_3gpp/extconf.rb
|
55
|
+
- ext/digest/crc15/crc15.c
|
56
|
+
- ext/digest/crc15/crc15.h
|
57
|
+
- ext/digest/crc15/crc15_ext.c
|
58
|
+
- ext/digest/crc15/extconf.rb
|
59
|
+
- ext/digest/crc16/crc16.c
|
60
|
+
- ext/digest/crc16/crc16.h
|
61
|
+
- ext/digest/crc16/crc16_ext.c
|
62
|
+
- ext/digest/crc16/extconf.rb
|
63
|
+
- ext/digest/crc16_ccitt/crc16_ccitt.c
|
64
|
+
- ext/digest/crc16_ccitt/crc16_ccitt.h
|
65
|
+
- ext/digest/crc16_ccitt/crc16_ccitt_ext.c
|
66
|
+
- ext/digest/crc16_ccitt/extconf.rb
|
67
|
+
- ext/digest/crc16_dnp/crc16_dnp.c
|
68
|
+
- ext/digest/crc16_dnp/crc16_dnp.h
|
69
|
+
- ext/digest/crc16_dnp/crc16_dnp_ext.c
|
70
|
+
- ext/digest/crc16_dnp/extconf.rb
|
71
|
+
- ext/digest/crc16_genibus/crc16_genibus.c
|
72
|
+
- ext/digest/crc16_genibus/crc16_genibus.h
|
73
|
+
- ext/digest/crc16_genibus/crc16_genibus_ext.c
|
74
|
+
- ext/digest/crc16_genibus/extconf.rb
|
75
|
+
- ext/digest/crc16_kermit/crc16_kermit.c
|
76
|
+
- ext/digest/crc16_kermit/crc16_kermit.h
|
77
|
+
- ext/digest/crc16_kermit/crc16_kermit_ext.c
|
78
|
+
- ext/digest/crc16_kermit/extconf.rb
|
79
|
+
- ext/digest/crc16_modbus/crc16_modbus.c
|
80
|
+
- ext/digest/crc16_modbus/crc16_modbus.h
|
81
|
+
- ext/digest/crc16_modbus/crc16_modbus_ext.c
|
82
|
+
- ext/digest/crc16_modbus/extconf.rb
|
83
|
+
- ext/digest/crc16_usb/crc16_usb.c
|
84
|
+
- ext/digest/crc16_usb/crc16_usb.h
|
85
|
+
- ext/digest/crc16_usb/crc16_usb_ext.c
|
86
|
+
- ext/digest/crc16_usb/extconf.rb
|
87
|
+
- ext/digest/crc16_x_25/crc16_x_25.c
|
88
|
+
- ext/digest/crc16_x_25/crc16_x_25.h
|
89
|
+
- ext/digest/crc16_x_25/crc16_x_25_ext.c
|
90
|
+
- ext/digest/crc16_x_25/extconf.rb
|
91
|
+
- ext/digest/crc16_xmodem/crc16_xmodem.c
|
92
|
+
- ext/digest/crc16_xmodem/crc16_xmodem.h
|
93
|
+
- ext/digest/crc16_xmodem/crc16_xmodem_ext.c
|
94
|
+
- ext/digest/crc16_xmodem/extconf.rb
|
95
|
+
- ext/digest/crc16_zmodem/crc16_zmodem.c
|
96
|
+
- ext/digest/crc16_zmodem/crc16_zmodem.h
|
97
|
+
- ext/digest/crc16_zmodem/crc16_zmodem_ext.c
|
98
|
+
- ext/digest/crc16_zmodem/extconf.rb
|
99
|
+
- ext/digest/crc24/crc24.c
|
100
|
+
- ext/digest/crc24/crc24.h
|
101
|
+
- ext/digest/crc24/crc24_ext.c
|
102
|
+
- ext/digest/crc24/extconf.rb
|
103
|
+
- ext/digest/crc32/crc32.c
|
104
|
+
- ext/digest/crc32/crc32.h
|
105
|
+
- ext/digest/crc32/crc32_ext.c
|
106
|
+
- ext/digest/crc32/extconf.rb
|
107
|
+
- ext/digest/crc32_bzip2/crc32_bzip2.c
|
108
|
+
- ext/digest/crc32_bzip2/crc32_bzip2.h
|
109
|
+
- ext/digest/crc32_bzip2/crc32_bzip2_ext.c
|
110
|
+
- ext/digest/crc32_bzip2/extconf.rb
|
111
|
+
- ext/digest/crc32_jam/crc32_jam.c
|
112
|
+
- ext/digest/crc32_jam/crc32_jam.h
|
113
|
+
- ext/digest/crc32_jam/crc32_jam_ext.c
|
114
|
+
- ext/digest/crc32_jam/extconf.rb
|
115
|
+
- ext/digest/crc32_mpeg/crc32_mpeg.c
|
116
|
+
- ext/digest/crc32_mpeg/crc32_mpeg.h
|
117
|
+
- ext/digest/crc32_mpeg/crc32_mpeg_ext.c
|
118
|
+
- ext/digest/crc32_mpeg/extconf.rb
|
119
|
+
- ext/digest/crc32_posix/crc32_posix.c
|
120
|
+
- ext/digest/crc32_posix/crc32_posix.h
|
121
|
+
- ext/digest/crc32_posix/crc32_posix_ext.c
|
122
|
+
- ext/digest/crc32_posix/extconf.rb
|
123
|
+
- ext/digest/crc32_xfer/crc32_xfer.c
|
124
|
+
- ext/digest/crc32_xfer/crc32_xfer.h
|
125
|
+
- ext/digest/crc32_xfer/crc32_xfer_ext.c
|
126
|
+
- ext/digest/crc32_xfer/extconf.rb
|
127
|
+
- ext/digest/crc32c/crc32c.c
|
128
|
+
- ext/digest/crc32c/crc32c.h
|
129
|
+
- ext/digest/crc32c/crc32c_ext.c
|
130
|
+
- ext/digest/crc32c/extconf.rb
|
131
|
+
- ext/digest/crc5/crc5.c
|
132
|
+
- ext/digest/crc5/crc5.h
|
133
|
+
- ext/digest/crc5/crc5_ext.c
|
134
|
+
- ext/digest/crc5/extconf.rb
|
135
|
+
- ext/digest/crc64/crc64.c
|
136
|
+
- ext/digest/crc64/crc64.h
|
137
|
+
- ext/digest/crc64/crc64_ext.c
|
138
|
+
- ext/digest/crc64/extconf.rb
|
139
|
+
- ext/digest/crc64_jones/crc64_jones.c
|
140
|
+
- ext/digest/crc64_jones/crc64_jones.h
|
141
|
+
- ext/digest/crc64_jones/crc64_jones_ext.c
|
142
|
+
- ext/digest/crc64_jones/extconf.rb
|
143
|
+
- ext/digest/crc64_xz/crc64_xz.c
|
144
|
+
- ext/digest/crc64_xz/crc64_xz.h
|
145
|
+
- ext/digest/crc64_xz/crc64_xz_ext.c
|
146
|
+
- ext/digest/crc64_xz/extconf.rb
|
147
|
+
- ext/digest/crc8/crc8.c
|
148
|
+
- ext/digest/crc8/crc8.h
|
149
|
+
- ext/digest/crc8/crc8_ext.c
|
150
|
+
- ext/digest/crc8/extconf.rb
|
151
|
+
- ext/digest/crc8_1wire/crc8_1wire.c
|
152
|
+
- ext/digest/crc8_1wire/crc8_1wire.h
|
153
|
+
- ext/digest/crc8_1wire/crc8_1wire_ext.c
|
154
|
+
- ext/digest/crc8_1wire/extconf.rb
|
74
155
|
- gemspec.yml
|
75
156
|
- lib/digest/crc.rb
|
76
157
|
- lib/digest/crc1.rb
|
158
|
+
- lib/digest/crc15.rb
|
77
159
|
- lib/digest/crc16.rb
|
78
160
|
- lib/digest/crc16_ccitt.rb
|
79
161
|
- lib/digest/crc16_dnp.rb
|
162
|
+
- lib/digest/crc16_genibus.rb
|
163
|
+
- lib/digest/crc16_kermit.rb
|
80
164
|
- lib/digest/crc16_modbus.rb
|
81
165
|
- lib/digest/crc16_qt.rb
|
82
166
|
- lib/digest/crc16_usb.rb
|
167
|
+
- lib/digest/crc16_x_25.rb
|
83
168
|
- lib/digest/crc16_xmodem.rb
|
84
169
|
- lib/digest/crc16_zmodem.rb
|
85
170
|
- lib/digest/crc24.rb
|
86
171
|
- lib/digest/crc32.rb
|
172
|
+
- lib/digest/crc32_bzip2.rb
|
173
|
+
- lib/digest/crc32_jam.rb
|
87
174
|
- lib/digest/crc32_mpeg.rb
|
175
|
+
- lib/digest/crc32_posix.rb
|
176
|
+
- lib/digest/crc32_xfer.rb
|
88
177
|
- lib/digest/crc32c.rb
|
89
178
|
- lib/digest/crc5.rb
|
90
179
|
- lib/digest/crc64.rb
|
180
|
+
- lib/digest/crc64_jones.rb
|
181
|
+
- lib/digest/crc64_xz.rb
|
91
182
|
- lib/digest/crc8.rb
|
92
183
|
- lib/digest/crc8_1wire.rb
|
184
|
+
- spec/crc15_spec.rb
|
93
185
|
- spec/crc16_ccitt_spec.rb
|
186
|
+
- spec/crc16_genibus_spec.rb
|
187
|
+
- spec/crc16_kermit_spec.rb
|
94
188
|
- spec/crc16_modbus_spec.rb
|
95
189
|
- spec/crc16_qt_spec.rb
|
96
190
|
- spec/crc16_spec.rb
|
97
191
|
- spec/crc16_usb_spec.rb
|
192
|
+
- spec/crc16_x_25_spec.rb
|
98
193
|
- spec/crc16_xmodem_spec.rb
|
99
194
|
- spec/crc16_zmodem_spec.rb
|
100
195
|
- spec/crc1_spec.rb
|
101
196
|
- spec/crc24_spec.rb
|
197
|
+
- spec/crc32_bzip2_spec.rb
|
198
|
+
- spec/crc32_jam_spec.rb
|
102
199
|
- spec/crc32_mpeg_spec.rb
|
200
|
+
- spec/crc32_posix_spec.rb
|
103
201
|
- spec/crc32_spec.rb
|
202
|
+
- spec/crc32_xfer_spec.rb
|
104
203
|
- spec/crc32c_spec.rb
|
105
204
|
- spec/crc5_spec.rb
|
205
|
+
- spec/crc64_jones_spec.rb
|
106
206
|
- spec/crc64_spec.rb
|
207
|
+
- spec/crc64_xz_spec.rb
|
107
208
|
- spec/crc8_1wire_spec.rb
|
108
209
|
- spec/crc8_spec.rb
|
109
210
|
- spec/crc_examples.rb
|
@@ -112,24 +213,28 @@ files:
|
|
112
213
|
homepage: https://github.com/postmodern/digest-crc#readme
|
113
214
|
licenses:
|
114
215
|
- MIT
|
115
|
-
metadata:
|
216
|
+
metadata:
|
217
|
+
documentation_uri: https://rubydoc.info/gems/digest-crc
|
218
|
+
source_code_uri: https://github.com/postmodern/digest-crc
|
219
|
+
bug_tracker_uri: https://github.com/postmodern/digest-crc/issues
|
220
|
+
changelog_uri: https://github.com/postmodern/digest-crc/blob/master/ChangeLog.md
|
116
221
|
post_install_message:
|
117
222
|
rdoc_options: []
|
118
223
|
require_paths:
|
224
|
+
- ext
|
119
225
|
- lib
|
120
226
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
227
|
requirements:
|
122
|
-
- -
|
228
|
+
- - ">="
|
123
229
|
- !ruby/object:Gem::Version
|
124
230
|
version: '0'
|
125
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
232
|
requirements:
|
127
|
-
- -
|
233
|
+
- - ">="
|
128
234
|
- !ruby/object:Gem::Version
|
129
235
|
version: '0'
|
130
236
|
requirements: []
|
131
|
-
|
132
|
-
rubygems_version: 2.0.14
|
237
|
+
rubygems_version: 3.1.2
|
133
238
|
signing_key:
|
134
239
|
specification_version: 4
|
135
240
|
summary: A Cyclic Redundancy Check (CRC) library for Ruby.
|
data/.gemtest
DELETED
File without changes
|