Upgrade STS to v3.7.0.RELEASE

This commit is contained in:
Jonas Kongslund 2015-07-15 13:39:55 +04:00
parent 9066eab268
commit 3a44c09dc1
1 changed files with 10 additions and 6 deletions

View File

@ -1,17 +1,21 @@
cask :v1 => 'sts' do
version '3.6.4'
sha256 '9627e702f83efa19d25f6041bd86a58395ba1cc769c6e76b3f628d6c23900633'
version '3.7.0.RELEASE'
sha256 'bb7bc748541e552e39095fa10990923c3c17df28b140ef9559a6bbf1f4ed262a'
module Utils
def self.based_on_eclipse
'4.4.2' # find eclipse version at http://spring.io/tools/sts/all
def self.eclipse_version
'4.5' # find eclipse version at http://spring.io/tools/sts/all
end
def self.eclipse_version_major_minor
eclipse_version.split('.').slice(0, 2).join('.')
end
end
url "http://dist.springsource.com/release/STS/#{version}.RELEASE/dist/e#{Utils.based_on_eclipse.gsub(/\.\d$/, '')}/spring-tool-suite-#{version}.RELEASE-e#{Utils.based_on_eclipse}-macosx-cocoa-x86_64.tar.gz"
url "http://dist.springsource.com/release/STS/#{version}/dist/e#{Utils.eclipse_version_major_minor}/spring-tool-suite-#{version}-e#{Utils.eclipse_version}-macosx-cocoa-x86_64.tar.gz"
name 'Spring Tool Suite'
homepage 'https://spring.io/tools/sts'
license :eclipse
app "sts-bundle/sts-#{version}.RELEASE/STS.app"
app 'sts-bundle/STS.app'
end