lib/digest/crc32c.rb in digest-crc-0.5.1 vs lib/digest/crc32c.rb in digest-crc-0.6.0.rc1
- old
+ new
@@ -74,5 +74,9 @@
0xbe2da0a5, 0x4c4623a6, 0x5f16d052, 0xad7d5351
].freeze
end
end
+
+if RUBY_ENGINE == 'ruby'
+ begin; require 'digest/crc32c/crc32c_ext'; rescue LoadError; end
+end