From a9ef3176aced9d0ea59ce857bd870c364df7d5a6 Mon Sep 17 00:00:00 2001 From: "Hongli Lai (Phusion)" Date: Thu, 4 Oct 2012 18:46:08 +0200 Subject: [PATCH] Add gemspec --- digest-sha3.gemspec | 18 ++++++++++++++++++ lib/digest/sha3/version.rb | 7 +++++++ 2 files changed, 25 insertions(+) create mode 100644 digest-sha3.gemspec create mode 100644 lib/digest/sha3/version.rb diff --git a/digest-sha3.gemspec b/digest-sha3.gemspec new file mode 100644 index 0000000..243b347 --- /dev/null +++ b/digest-sha3.gemspec @@ -0,0 +1,18 @@ +require File.expand_path('lib/digest/sha3/version') + +Gem::Specification.new do |s| + s.name = "digest-sha3" + s.version = Digest::SHA3::Version::STRING + s.summary = "The SHA-3 (Keccak) hash" + s.email = "hongli@phusion.nl" + s.homepage = "https://github.com/phusion/digest-sha3" + s.description = "The SHA-3 (Keccak) hash." + s.authors = ["Hongli Lai", "Keccak authors"] + s.extensions << "ext/digest/extconf.rb" + + s.files = Dir[ + "digest-sha3.gemspec", + "ext/**/*.{c,h,rb}", + "lib/**/*" + ] +end diff --git a/lib/digest/sha3/version.rb b/lib/digest/sha3/version.rb new file mode 100644 index 0000000..a06d262 --- /dev/null +++ b/lib/digest/sha3/version.rb @@ -0,0 +1,7 @@ +module Digest + class SHA3 + module Version + STRING = "1.0.0" + end + end +end \ No newline at end of file