Skip to content

Commit

Permalink
Changed cert for new release and added checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
pbhogan committed Sep 28, 2018
1 parent ee209f6 commit 27e68ff
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ require 'rspec/core/rake_task'
require 'ffi'
require 'ffi-compiler/compile_task'

require 'digest/sha2'
require './lib/scrypt/version'

require 'rubygems'
require 'rubygems/package_task'

Expand All @@ -21,6 +24,14 @@ task :spec do
RSpec::Core::RakeTask.new
end

desc 'generate checksum'
task :checksum do
built_gem_path = "pkg/scrypt-#{SCrypt::VERSION}.gem"
checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
checksum_path = "checksum/scrypt-#{SCrypt::VERSION}.gem.sha512"
File.open(checksum_path, 'w' ) {|f| f.write(checksum) }
end

desc 'FFI compiler'
namespace 'ffi-compiler' do
FFI::Compiler::CompileTask.new('ext/scrypt/scrypt_ext') do |t|
Expand Down Expand Up @@ -69,3 +80,4 @@ Gem::PackageTask.new(gem_spec) do |pkg|
pkg.need_tar = true
pkg.package_dir = 'pkg'
end

26 changes: 26 additions & 0 deletions certs/pbhogan.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----BEGIN CERTIFICATE-----
MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MRAwDgYDVQQDDAdwYmhv
Z2FuMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNjb20w
HhcNMTgwOTI4MjEzNTU1WhcNMTkwOTI4MjEzNTU1WjA+MRAwDgYDVQQDDAdwYmhv
Z2FuMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNjb20w
ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC9zOef8L5HfWsmMpdRtigG
+Cc62cDOds9/dv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46dBWZcbe+
FcO692GiKUmAd9b5WSvSgKBKzrnWGSzvH2MiL9RUa5BaVleB5uDdr6s+H6HQDyRk
zJEymUkjdHk3cmNgIQAhdQasTM1qSCToMw2dBwjlVKc=
-----END CERTIFICATE-----
1 change: 1 addition & 0 deletions checksum/scrypt-3.0.6.gem.sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fb1b89bddfd5fa440994aad7f3edc6cce588c41018bf60ba82eab927863e243025c2e25094be2dfefdbe21a022dec62bdd072284ff83e472071791ff69bcb949
3 changes: 2 additions & 1 deletion scrypt.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Gem::Specification.new do |s|
s.authors = ["Patrick Hogan", "Stephen von Takach", "Rene van Paassen" ]
s.email = ["[email protected]", "[email protected]",
"[email protected]" ]
s.cert_chain = ['certs/stakach.pem']
s.cert_chain = ['certs/pbhogan.pem']
s.license = 'BSD-3-Clause'
s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/
s.homepage = "https://github.com/pbhogan/scrypt"
Expand All @@ -34,3 +34,4 @@ Gem::Specification.new do |s|
s.test_files = Dir.glob("spec/**/*")
s.require_paths = ["lib"]
end

0 comments on commit 27e68ff

Please sign in to comment.