digest-crc 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
File without changes
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --colour --format documentation
@@ -1,3 +1,10 @@
1
+ ### 0.2.0 / 2011-05-10
2
+
3
+ * Added {Digest::CRC32c}.
4
+ * Opted into [test.rubygems.org](http://test.rubygems.org/)
5
+ * Switched from using Jeweler and Bundler, to using
6
+ [Ore::Tasks](http://github.com/ruby-ore/ore-tasks).
7
+
1
8
  ### 0.1.0 / 2010-06-01
2
9
 
3
10
  * Initial release.
@@ -1,5 +1,4 @@
1
-
2
- Copyright (c) 2010 Hal Brodigan
1
+ Copyright (c) 2010-2011 Hal Brodigan
3
2
 
4
3
  Permission is hereby granted, free of charge, to any person obtaining
5
4
  a copy of this software and associated documentation files (the
@@ -19,4 +18,3 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19
18
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20
19
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21
20
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
-
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Digest CRC
2
2
 
3
- * [github.com/postmodern/digest-crc](http://github.com/postmodern/digest-crc)
4
- * [github.com/postmodern/digest-crc/issues](http://github.com/postmodern/digest-crc/issues)
5
- * Postmodern (postmodern.mod3 at gmail.com)
3
+ * [Source](http://github.com/postmodern/digest-crc)
4
+ * [Issues](http://github.com/postmodern/digest-crc/issues)
5
+ * [Documentation](http://rubydoc.info/gems/digest-crc/frames)
6
+ * [Email](mailto:postmodern.mod3 at gmail.com)
6
7
 
7
8
  ## Description
8
9
 
@@ -24,6 +25,7 @@ module.
24
25
  * CRC16 ZModem
25
26
  * CRC24
26
27
  * CRC32
28
+ * CRC32c
27
29
  * CRC32 Mpeg
28
30
  * CRC64
29
31
  * Pure Ruby implementation.
@@ -31,7 +33,7 @@ module.
31
33
 
32
34
  ## Install
33
35
 
34
- $ sudo gem install digest-crc
36
+ $ gem install digest-crc
35
37
 
36
38
  ## Examples
37
39
 
@@ -69,5 +71,6 @@ including their CRC Tables.
69
71
 
70
72
  ## License
71
73
 
72
- See {file:LICENSE.txt} for license information.
74
+ Copyright (c) 2010-2011 Hal Brodigan
73
75
 
76
+ See {file:LICENSE.txt} for license information.
data/Rakefile CHANGED
@@ -2,38 +2,35 @@ require 'rubygems'
2
2
  require 'rake'
3
3
 
4
4
  begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = 'digest-crc'
8
- gem.license = 'MIT'
9
- gem.summary = %Q{A Cyclic Redundancy Check (CRC) library for Ruby.}
10
- gem.description = %Q{Adds support for calculating Cyclic Redundancy Check (CRC) to the Digest module.}
11
- gem.email = 'postmodern.mod3@gmail.com'
12
- gem.homepage = 'http://github.com/postmodern/digest-crc'
13
- gem.authors = ['Postmodern']
14
- gem.add_development_dependency 'rspec', '>= 1.3.0'
15
- gem.has_rdoc = 'yard'
16
- end
17
- Jeweler::GemcutterTasks.new
18
- rescue LoadError
19
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
20
- end
5
+ gem 'ore-tasks', '~> 0.4'
6
+ require 'ore/tasks'
21
7
 
22
- require 'spec/rake/spectask'
23
- Spec::Rake::SpecTask.new(:spec) do |spec|
24
- spec.libs += ['lib', 'spec']
25
- spec.spec_files = FileList['spec/**/*_spec.rb']
26
- spec.spec_opts = ['--options', '.specopts']
8
+ Ore::Tasks.new
9
+ rescue LoadError => e
10
+ STDERR.puts e.message
11
+ STDERR.puts "Run `gem install ore-tasks` to install 'ore/tasks'."
27
12
  end
28
13
 
29
- task :spec => :check_dependencies
14
+ begin
15
+ gem 'rspec', '~> 2.4'
16
+ require 'rspec/core/rake_task'
17
+
18
+ RSpec::Core::RakeTask.new
19
+ rescue LoadError => e
20
+ task :spec do
21
+ abort "Please run `gem install rspec` to install RSpec."
22
+ end
23
+ end
24
+ task :test => :spec
30
25
  task :default => :spec
31
26
 
32
27
  begin
28
+ gem 'yard', '~> 0.6.0'
33
29
  require 'yard'
34
- YARD::Rake::YardocTask.new
35
- rescue LoadError
30
+
31
+ YARD::Rake::YardocTask.new
32
+ rescue LoadError => e
36
33
  task :yard do
37
- abort "YARD is not available. In order to run yard, you must: gem install yard"
34
+ abort "Please run `gem install yard` to install YARD."
38
35
  end
39
36
  end
@@ -1,101 +1,15 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
1
  # -*- encoding: utf-8 -*-
5
2
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{digest-crc}
8
- s.version = "0.1.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Postmodern"]
12
- s.date = %q{2010-06-01}
13
- s.description = %q{Adds support for calculating Cyclic Redundancy Check (CRC) to the Digest module.}
14
- s.email = %q{postmodern.mod3@gmail.com}
15
- s.extra_rdoc_files = [
16
- "ChangeLog.md",
17
- "LICENSE.txt",
18
- "README.md"
19
- ]
20
- s.files = [
21
- ".gitignore",
22
- ".specopts",
23
- ".yardopts",
24
- "ChangeLog.md",
25
- "LICENSE.txt",
26
- "README.md",
27
- "Rakefile",
28
- "VERSION",
29
- "digest-crc.gemspec",
30
- "lib/digest/crc.rb",
31
- "lib/digest/crc1.rb",
32
- "lib/digest/crc16.rb",
33
- "lib/digest/crc16_ccitt.rb",
34
- "lib/digest/crc16_dnp.rb",
35
- "lib/digest/crc16_modbus.rb",
36
- "lib/digest/crc16_usb.rb",
37
- "lib/digest/crc16_xmodem.rb",
38
- "lib/digest/crc16_zmodem.rb",
39
- "lib/digest/crc24.rb",
40
- "lib/digest/crc32.rb",
41
- "lib/digest/crc32_mpeg.rb",
42
- "lib/digest/crc5.rb",
43
- "lib/digest/crc64.rb",
44
- "lib/digest/crc8.rb",
45
- "spec/crc16_ccitt_spec.rb",
46
- "spec/crc16_modbus_spec.rb",
47
- "spec/crc16_spec.rb",
48
- "spec/crc16_usb_spec.rb",
49
- "spec/crc16_xmodem_spec.rb",
50
- "spec/crc16_zmodem_spec.rb",
51
- "spec/crc1_spec.rb",
52
- "spec/crc24_spec.rb",
53
- "spec/crc32_mpeg_spec.rb",
54
- "spec/crc32_spec.rb",
55
- "spec/crc5_spec.rb",
56
- "spec/crc64_spec.rb",
57
- "spec/crc8_spec.rb",
58
- "spec/crc_examples.rb",
59
- "spec/crc_spec.rb",
60
- "spec/spec_helper.rb"
61
- ]
62
- s.has_rdoc = %q{yard}
63
- s.homepage = %q{http://github.com/postmodern/digest-crc}
64
- s.licenses = ["MIT"]
65
- s.rdoc_options = ["--charset=UTF-8"]
66
- s.require_paths = ["lib"]
67
- s.rubygems_version = %q{1.3.7}
68
- s.summary = %q{A Cyclic Redundancy Check (CRC) library for Ruby.}
69
- s.test_files = [
70
- "spec/crc_spec.rb",
71
- "spec/crc8_spec.rb",
72
- "spec/crc64_spec.rb",
73
- "spec/spec_helper.rb",
74
- "spec/crc32_mpeg_spec.rb",
75
- "spec/crc_examples.rb",
76
- "spec/crc16_spec.rb",
77
- "spec/crc16_xmodem_spec.rb",
78
- "spec/crc5_spec.rb",
79
- "spec/crc1_spec.rb",
80
- "spec/crc16_usb_spec.rb",
81
- "spec/crc16_zmodem_spec.rb",
82
- "spec/crc32_spec.rb",
83
- "spec/crc24_spec.rb",
84
- "spec/crc16_ccitt_spec.rb",
85
- "spec/crc16_modbus_spec.rb"
86
- ]
87
-
88
- if s.respond_to? :specification_version then
89
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
90
- s.specification_version = 3
91
-
92
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
93
- s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
94
- else
95
- s.add_dependency(%q<rspec>, [">= 1.3.0"])
96
- end
97
- else
98
- s.add_dependency(%q<rspec>, [">= 1.3.0"])
3
+ begin
4
+ Ore::Specification.new do |gemspec|
5
+ # custom logic here
6
+ end
7
+ rescue NameError
8
+ begin
9
+ require 'ore/specification'
10
+ retry
11
+ rescue LoadError
12
+ STDERR.puts "The '#{__FILE__}' file requires Ore."
13
+ STDERR.puts "Run `gem install ore-core` to install Ore."
99
14
  end
100
15
  end
101
-
@@ -0,0 +1,17 @@
1
+ name: digest-crc
2
+ version: 0.2.0
3
+ summary: A Cyclic Redundancy Check (CRC) library for Ruby.
4
+ description:
5
+ Adds support for calculating Cyclic Redundancy Check (CRC) to the
6
+ Digest module.
7
+
8
+ license: MIT
9
+ authors: Postmodern
10
+ email: postmodern.mod3@gmail.com
11
+ homepage: http://github.com/postmodern/digest-crc
12
+ has_yard: true
13
+
14
+ development_dependencies:
15
+ ore-tasks: ~> 0.4
16
+ rspec: ~> 2.4
17
+ yard: ~> 0.6.0
@@ -1,6 +1,9 @@
1
1
  require 'digest'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Base class for all CRC algorithms.
6
+ #
4
7
  class CRC < Digest::Class
5
8
 
6
9
  include Digest::Instance
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC1 algorithm.
6
+ #
4
7
  class CRC1 < CRC
5
8
 
6
9
  TABLE = []
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC16 algorithm.
6
+ #
4
7
  class CRC16 < CRC
5
8
 
6
9
  WIDTH = 16
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc16'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC16 CCITT algorithm.
6
+ #
4
7
  class CRC16CCITT < CRC16
5
8
 
6
9
  INIT_CRC = 0xffff
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc16'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC16 DNP algorithm.
6
+ #
4
7
  class CRC16DNP < CRC16
5
8
 
6
9
  INIT_CRC = 0
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc16'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC16 Modbus algorithm.
6
+ #
4
7
  class CRC16Modbus < CRC16
5
8
 
6
9
  INIT_CRC = 0xffff
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc16'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC16 USB algorithm.
6
+ #
4
7
  class CRC16USB < CRC16
5
8
 
6
9
  INIT_CRC = 0xffff
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc16'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC16 XMmodem algorithm.
6
+ #
4
7
  class CRC16XModem < CRC16
5
8
 
6
9
  # Generated by `./pycrc.py --algorithm=table-driven --model=xmodem --generate=c`
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc16'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC16 ZModem algorithm.
6
+ #
4
7
  class CRC16ZModem < CRC16
5
8
 
6
9
  # Generated by `./pycrc.py --algorithm=table-driven --model=zmodem --generate=c`
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC24 algorithm.
6
+ #
4
7
  class CRC24 < CRC
5
8
 
6
9
  WIDTH = 24
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC32 algorithm.
6
+ #
4
7
  class CRC32 < CRC
5
8
 
6
9
  WIDTH = 4
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc32'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC32 Mpeg algorithm.
6
+ #
4
7
  class CRC32Mpeg < CRC32
5
8
 
6
9
  XOR_MASK = 0x00000000
@@ -0,0 +1,92 @@
1
+ require 'digest/crc32'
2
+
3
+ module Digest
4
+ #
5
+ # Implements the CRC32c algorithm.
6
+ #
7
+ class CRC32c < CRC32
8
+
9
+ # Generated by `./pycrc.py --algorithm=table-driven --model=crc-32c --generate=c`
10
+ TABLE = [
11
+ 0x00000000, 0xf26b8303, 0xe13b70f7, 0x1350f3f4,
12
+ 0xc79a971f, 0x35f1141c, 0x26a1e7e8, 0xd4ca64eb,
13
+ 0x8ad958cf, 0x78b2dbcc, 0x6be22838, 0x9989ab3b,
14
+ 0x4d43cfd0, 0xbf284cd3, 0xac78bf27, 0x5e133c24,
15
+ 0x105ec76f, 0xe235446c, 0xf165b798, 0x030e349b,
16
+ 0xd7c45070, 0x25afd373, 0x36ff2087, 0xc494a384,
17
+ 0x9a879fa0, 0x68ec1ca3, 0x7bbcef57, 0x89d76c54,
18
+ 0x5d1d08bf, 0xaf768bbc, 0xbc267848, 0x4e4dfb4b,
19
+ 0x20bd8ede, 0xd2d60ddd, 0xc186fe29, 0x33ed7d2a,
20
+ 0xe72719c1, 0x154c9ac2, 0x061c6936, 0xf477ea35,
21
+ 0xaa64d611, 0x580f5512, 0x4b5fa6e6, 0xb93425e5,
22
+ 0x6dfe410e, 0x9f95c20d, 0x8cc531f9, 0x7eaeb2fa,
23
+ 0x30e349b1, 0xc288cab2, 0xd1d83946, 0x23b3ba45,
24
+ 0xf779deae, 0x05125dad, 0x1642ae59, 0xe4292d5a,
25
+ 0xba3a117e, 0x4851927d, 0x5b016189, 0xa96ae28a,
26
+ 0x7da08661, 0x8fcb0562, 0x9c9bf696, 0x6ef07595,
27
+ 0x417b1dbc, 0xb3109ebf, 0xa0406d4b, 0x522bee48,
28
+ 0x86e18aa3, 0x748a09a0, 0x67dafa54, 0x95b17957,
29
+ 0xcba24573, 0x39c9c670, 0x2a993584, 0xd8f2b687,
30
+ 0x0c38d26c, 0xfe53516f, 0xed03a29b, 0x1f682198,
31
+ 0x5125dad3, 0xa34e59d0, 0xb01eaa24, 0x42752927,
32
+ 0x96bf4dcc, 0x64d4cecf, 0x77843d3b, 0x85efbe38,
33
+ 0xdbfc821c, 0x2997011f, 0x3ac7f2eb, 0xc8ac71e8,
34
+ 0x1c661503, 0xee0d9600, 0xfd5d65f4, 0x0f36e6f7,
35
+ 0x61c69362, 0x93ad1061, 0x80fde395, 0x72966096,
36
+ 0xa65c047d, 0x5437877e, 0x4767748a, 0xb50cf789,
37
+ 0xeb1fcbad, 0x197448ae, 0x0a24bb5a, 0xf84f3859,
38
+ 0x2c855cb2, 0xdeeedfb1, 0xcdbe2c45, 0x3fd5af46,
39
+ 0x7198540d, 0x83f3d70e, 0x90a324fa, 0x62c8a7f9,
40
+ 0xb602c312, 0x44694011, 0x5739b3e5, 0xa55230e6,
41
+ 0xfb410cc2, 0x092a8fc1, 0x1a7a7c35, 0xe811ff36,
42
+ 0x3cdb9bdd, 0xceb018de, 0xdde0eb2a, 0x2f8b6829,
43
+ 0x82f63b78, 0x709db87b, 0x63cd4b8f, 0x91a6c88c,
44
+ 0x456cac67, 0xb7072f64, 0xa457dc90, 0x563c5f93,
45
+ 0x082f63b7, 0xfa44e0b4, 0xe9141340, 0x1b7f9043,
46
+ 0xcfb5f4a8, 0x3dde77ab, 0x2e8e845f, 0xdce5075c,
47
+ 0x92a8fc17, 0x60c37f14, 0x73938ce0, 0x81f80fe3,
48
+ 0x55326b08, 0xa759e80b, 0xb4091bff, 0x466298fc,
49
+ 0x1871a4d8, 0xea1a27db, 0xf94ad42f, 0x0b21572c,
50
+ 0xdfeb33c7, 0x2d80b0c4, 0x3ed04330, 0xccbbc033,
51
+ 0xa24bb5a6, 0x502036a5, 0x4370c551, 0xb11b4652,
52
+ 0x65d122b9, 0x97baa1ba, 0x84ea524e, 0x7681d14d,
53
+ 0x2892ed69, 0xdaf96e6a, 0xc9a99d9e, 0x3bc21e9d,
54
+ 0xef087a76, 0x1d63f975, 0x0e330a81, 0xfc588982,
55
+ 0xb21572c9, 0x407ef1ca, 0x532e023e, 0xa145813d,
56
+ 0x758fe5d6, 0x87e466d5, 0x94b49521, 0x66df1622,
57
+ 0x38cc2a06, 0xcaa7a905, 0xd9f75af1, 0x2b9cd9f2,
58
+ 0xff56bd19, 0x0d3d3e1a, 0x1e6dcdee, 0xec064eed,
59
+ 0xc38d26c4, 0x31e6a5c7, 0x22b65633, 0xd0ddd530,
60
+ 0x0417b1db, 0xf67c32d8, 0xe52cc12c, 0x1747422f,
61
+ 0x49547e0b, 0xbb3ffd08, 0xa86f0efc, 0x5a048dff,
62
+ 0x8ecee914, 0x7ca56a17, 0x6ff599e3, 0x9d9e1ae0,
63
+ 0xd3d3e1ab, 0x21b862a8, 0x32e8915c, 0xc083125f,
64
+ 0x144976b4, 0xe622f5b7, 0xf5720643, 0x07198540,
65
+ 0x590ab964, 0xab613a67, 0xb831c993, 0x4a5a4a90,
66
+ 0x9e902e7b, 0x6cfbad78, 0x7fab5e8c, 0x8dc0dd8f,
67
+ 0xe330a81a, 0x115b2b19, 0x020bd8ed, 0xf0605bee,
68
+ 0x24aa3f05, 0xd6c1bc06, 0xc5914ff2, 0x37faccf1,
69
+ 0x69e9f0d5, 0x9b8273d6, 0x88d28022, 0x7ab90321,
70
+ 0xae7367ca, 0x5c18e4c9, 0x4f48173d, 0xbd23943e,
71
+ 0xf36e6f75, 0x0105ec76, 0x12551f82, 0xe03e9c81,
72
+ 0x34f4f86a, 0xc69f7b69, 0xd5cf889d, 0x27a40b9e,
73
+ 0x79b737ba, 0x8bdcb4b9, 0x988c474d, 0x6ae7c44e,
74
+ 0xbe2da0a5, 0x4c4623a6, 0x5f16d052, 0xad7d5351
75
+ ]
76
+
77
+ #
78
+ # Updates the CRC32 checksum.
79
+ #
80
+ # @param [String] data
81
+ # The data to update the checksum with.
82
+ #
83
+ def update(data)
84
+ data.each_byte do |b|
85
+ @crc = (((@crc >> 8) & 0x00ffffff) ^ TABLE[(@crc ^ b) & 0xff])
86
+ end
87
+
88
+ return self
89
+ end
90
+
91
+ end
92
+ end
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC5 algorithm.
6
+ #
4
7
  class CRC5 < CRC
5
8
 
6
9
  WIDTH = 5
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC64 algorithm.
6
+ #
4
7
  class CRC64 < CRC
5
8
 
6
9
  WIDTH = 64
@@ -1,6 +1,9 @@
1
1
  require 'digest/crc'
2
2
 
3
3
  module Digest
4
+ #
5
+ # Implements the CRC8 algorithm.
6
+ #
4
7
  class CRC8 < CRC
5
8
 
6
9
  WIDTH = 8
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+ require 'crc_examples'
3
+ require 'digest/crc32c'
4
+
5
+ describe Digest::CRC32c do
6
+ before(:all) do
7
+ @crc_class = Digest::CRC32c
8
+ @string = '1234567890'
9
+ @expected = 'f3dbd4fe'
10
+ end
11
+
12
+ it_should_behave_like "CRC"
13
+ end
@@ -3,12 +3,13 @@ require 'crc_examples'
3
3
  require 'digest/crc5'
4
4
 
5
5
  describe Digest::CRC5 do
6
- before { pending }
7
6
  before(:all) do
8
7
  @crc_class = Digest::CRC5
9
8
  @string = '1234567890'
10
9
  @expected = '1'
11
10
  end
12
11
 
13
- it_should_behave_like "CRC"
12
+ pending "Implementation of CRC5 does not match pycrc.py" do
13
+ it_should_behave_like "CRC"
14
+ end
14
15
  end
@@ -1,4 +1,2 @@
1
- require 'rubygems'
2
- gem 'rspec', '>= 1.3.0'
3
-
4
- require 'spec'
1
+ gem 'rspec', '~> 2.4'
2
+ require 'rspec'
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digest-crc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 0
10
- version: 0.1.0
4
+ prerelease:
5
+ version: 0.2.0
11
6
  platform: ruby
12
7
  authors:
13
8
  - Postmodern
@@ -15,45 +10,60 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2010-06-01 00:00:00 -07:00
19
- default_executable:
13
+ date: 2011-05-10 00:00:00 Z
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
- name: rspec
16
+ name: ore-tasks
23
17
  prerelease: false
24
18
  requirement: &id001 !ruby/object:Gem::Requirement
25
19
  none: false
26
20
  requirements:
27
- - - ">="
21
+ - - ~>
28
22
  - !ruby/object:Gem::Version
29
- hash: 27
30
- segments:
31
- - 1
32
- - 3
33
- - 0
34
- version: 1.3.0
23
+ version: "0.4"
35
24
  type: :development
36
25
  version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: "2.4"
35
+ type: :development
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: yard
39
+ prerelease: false
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.6.0
46
+ type: :development
47
+ version_requirements: *id003
37
48
  description: Adds support for calculating Cyclic Redundancy Check (CRC) to the Digest module.
38
- email: postmodern.mod3@gmail.com
49
+ email:
50
+ - postmodern.mod3@gmail.com
39
51
  executables: []
40
52
 
41
53
  extensions: []
42
54
 
43
55
  extra_rdoc_files:
44
- - ChangeLog.md
45
- - LICENSE.txt
46
56
  - README.md
47
57
  files:
48
- - .gitignore
49
- - .specopts
58
+ - .gemtest
59
+ - .rspec
50
60
  - .yardopts
51
61
  - ChangeLog.md
52
62
  - LICENSE.txt
53
63
  - README.md
54
64
  - Rakefile
55
- - VERSION
56
65
  - digest-crc.gemspec
66
+ - gemspec.yml
57
67
  - lib/digest/crc.rb
58
68
  - lib/digest/crc1.rb
59
69
  - lib/digest/crc16.rb
@@ -66,6 +76,7 @@ files:
66
76
  - lib/digest/crc24.rb
67
77
  - lib/digest/crc32.rb
68
78
  - lib/digest/crc32_mpeg.rb
79
+ - lib/digest/crc32c.rb
69
80
  - lib/digest/crc5.rb
70
81
  - lib/digest/crc64.rb
71
82
  - lib/digest/crc8.rb
@@ -79,19 +90,19 @@ files:
79
90
  - spec/crc24_spec.rb
80
91
  - spec/crc32_mpeg_spec.rb
81
92
  - spec/crc32_spec.rb
93
+ - spec/crc32c_spec.rb
82
94
  - spec/crc5_spec.rb
83
95
  - spec/crc64_spec.rb
84
96
  - spec/crc8_spec.rb
85
97
  - spec/crc_examples.rb
86
98
  - spec/crc_spec.rb
87
99
  - spec/spec_helper.rb
88
- has_rdoc: yard
89
100
  homepage: http://github.com/postmodern/digest-crc
90
101
  licenses:
91
102
  - MIT
92
103
  post_install_message:
93
- rdoc_options:
94
- - --charset=UTF-8
104
+ rdoc_options: []
105
+
95
106
  require_paths:
96
107
  - lib
97
108
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -99,40 +110,33 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
110
  requirements:
100
111
  - - ">="
101
112
  - !ruby/object:Gem::Version
102
- hash: 3
103
- segments:
104
- - 0
105
113
  version: "0"
106
114
  required_rubygems_version: !ruby/object:Gem::Requirement
107
115
  none: false
108
116
  requirements:
109
117
  - - ">="
110
118
  - !ruby/object:Gem::Version
111
- hash: 3
112
- segments:
113
- - 0
114
119
  version: "0"
115
120
  requirements: []
116
121
 
117
- rubyforge_project:
118
- rubygems_version: 1.3.7
122
+ rubyforge_project: digest-crc
123
+ rubygems_version: 1.8.1
119
124
  signing_key:
120
125
  specification_version: 3
121
126
  summary: A Cyclic Redundancy Check (CRC) library for Ruby.
122
127
  test_files:
123
- - spec/crc_spec.rb
124
- - spec/crc8_spec.rb
125
128
  - spec/crc64_spec.rb
126
- - spec/spec_helper.rb
129
+ - spec/crc32_spec.rb
130
+ - spec/crc16_ccitt_spec.rb
127
131
  - spec/crc32_mpeg_spec.rb
128
- - spec/crc_examples.rb
129
- - spec/crc16_spec.rb
130
- - spec/crc16_xmodem_spec.rb
131
- - spec/crc5_spec.rb
132
+ - spec/crc16_modbus_spec.rb
132
133
  - spec/crc1_spec.rb
134
+ - spec/crc_spec.rb
133
135
  - spec/crc16_usb_spec.rb
136
+ - spec/crc16_spec.rb
137
+ - spec/crc16_xmodem_spec.rb
138
+ - spec/crc8_spec.rb
134
139
  - spec/crc16_zmodem_spec.rb
135
- - spec/crc32_spec.rb
136
140
  - spec/crc24_spec.rb
137
- - spec/crc16_ccitt_spec.rb
138
- - spec/crc16_modbus_spec.rb
141
+ - spec/crc32c_spec.rb
142
+ - spec/crc5_spec.rb
data/.gitignore DELETED
@@ -1,3 +0,0 @@
1
- doc
2
- pkg
3
- .yardoc
data/.specopts DELETED
@@ -1 +0,0 @@
1
- --colour --format specdoc
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.1.0