From dcfee170e21c9b1b32a444f54fe296390abb9926 Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Fri, 22 Jul 2016 22:03:27 -0700 Subject: [PATCH] update homebrew formula to include sha256 digest --- pup.rb | 16 ++++++++-------- release.sh | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pup.rb b/pup.rb index a5e5d8d..17d6a8b 100644 --- a/pup.rb +++ b/pup.rb @@ -1,18 +1,18 @@ -# This file was generated by release.py +# This file was generated by release.sh require 'formula' class Pup < Formula - homepage 'https://github.com/EricChiang/pup' - version '0.3.9' + homepage 'https://github.com/ericchiang/pup' + version '0.4.0' if Hardware.is_64_bit? - url 'https://github.com/EricChiang/pup/releases/download/v0.3.9/pup_darwin_amd64.zip' - sha1 'cc7cfc54567eb5b6d6ffdb1784e5c8e462845cca' + url 'https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_darwin_amd64.zip' + sha256 'c539a697efee2f8e56614a54cb3b215338e00de1f6a7c2fa93144ab6e1db8ebe' else - url 'https://github.com/EricChiang/pup/releases/download/v0.3.9/pup_darwin_386.zip' - sha1 'f83ddac28176bcaca8f80e8182064f7cef62595b' + url 'https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_darwin_386.zip' + sha256 '75c27caa0008a9cc639beb7506077ad9f32facbffcc4e815e999eaf9588a527e' end def install bin.install 'pup' end -end \ No newline at end of file +end diff --git a/release.sh b/release.sh index 1d5fd33..0b57615 100755 --- a/release.sh +++ b/release.sh @@ -51,10 +51,10 @@ class Pup < Formula version '0.4.0' if Hardware.is_64_bit? - url 'https://github.com/ericchiang/pup/releases/download/${VERSION}/${DARWIN_AMD64}' + url 'https://github.com/ericchiang/pup/releases/download/v${VERSION}/${DARWIN_AMD64}' sha256 '$( sha256sum dist/${DARWIN_AMD64} | awk '{ print $1 }' | xargs printf )' else - url 'https://github.com/ericchiang/pup/releases/download/${VERSION}/${DARWIN_386}' + url 'https://github.com/ericchiang/pup/releases/download/v${VERSION}/${DARWIN_386}' sha256 '$( sha256sum dist/${DARWIN_386} | awk '{ print $1 }' | xargs printf )' end