cask 'moneywell' do if MacOS.release <= :tiger version '1.4.13' sha256 'b2eb23a4d5d9e555d00529f83d4cae43abc184c9174a4b729693b55787dfd64d' url "http://downloads.nothirst.com/MoneyWell_#{version.to_f}.zip" elsif MacOS.release <= :snow_leopard version '1.7.3' sha256 '6f34a57999fcc09147035f62caff7efede3a385c0f2e7b6f3f90e9a64e826410' url "http://downloads.nothirst.com/MoneyWell_#{version.sub(%r{^(\d+)\.(\d+).*}, '\1\2')}.zip" else version '2.3.9' sha256 '0d262ee3c816e30088746d56f71475c46da82362d1edb3d50cf5dd416bd35a6f' # zenvilla.com/mw was verified as official when first introduced to the cask url "http://zenvilla.com/mw/builds/MoneyWell-#{version}.zip" appcast "http://nothirst.com/feeds/MoneyWell#{version.major}Appcast.xml", checkpoint: 'c15c3d7d302707b80fe7256771ac8add22478defe9280e6b4d57784be271a936' end name 'MoneyWell' homepage 'http://nothirst.com/moneywell/' license :commercial depends_on macos: '>= :tiger' app 'MoneyWell.app' end