From fac6af93f72eb3ee0c3658ea0e88329e7c1ad2b8 Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Thu, 4 Dec 2014 15:29:21 -0500 Subject: [PATCH 1/3] be explicit: no fallthrough on deeper.rb each version is specific to an OS X release --- Casks/deeper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Casks/deeper.rb b/Casks/deeper.rb index d46105f8c7bcd..d2319ef52caec 100644 --- a/Casks/deeper.rb +++ b/Casks/deeper.rb @@ -14,8 +14,11 @@ url 'http://www.titanium.free.fr/download/108/Deeper.dmg' elsif MacOS.version == :mavericks url 'http://www.titanium.free.fr/download/109/Deeper.dmg' - else + elsif MacOS.version == :yosemite url 'http://www.titanium.free.fr/download/1010/Deeper.dmg' + else + # Unusual case: there is no fall-through. Each version of the software is + # specific to an OS X release, so define nothing when the release is unknown. end homepage 'http://www.titanium.free.fr/downloaddeeper.php' From f058dd817af82db0776d88700c4bafa32a131766 Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Thu, 4 Dec 2014 15:29:35 -0500 Subject: [PATCH 2/3] be explicit: no fallthrough on maintenance.rb each version is specific to an OS X release --- Casks/maintenance.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Casks/maintenance.rb b/Casks/maintenance.rb index d58788f12e06a..7b1bdabf68cb7 100644 --- a/Casks/maintenance.rb +++ b/Casks/maintenance.rb @@ -14,8 +14,11 @@ url 'http://www.titanium.free.fr/download/108/Maintenance.dmg' elsif MacOS.version == :mavericks url 'http://www.titanium.free.fr/download/109/Maintenance.dmg' - else + elsif MacOS.version == :yosemite url 'http://www.titanium.free.fr/download/1010/Maintenance.dmg' + else + # Unusual case: there is no fall-through. Each version of the software is + # specific to an OS X release, so define nothing when the release is unknown. end homepage 'http://www.titanium.free.fr/downloadmaintenance.php' From d1803c40fed74f299ca5526827e11eed1f6b8fa6 Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Thu, 4 Dec 2014 15:29:45 -0500 Subject: [PATCH 3/3] be explicit: no fallthrough on onyx.rb each version is specific to an OS X release --- Casks/onyx.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Casks/onyx.rb b/Casks/onyx.rb index e37549c0cd16b..bd04dc908ecfb 100644 --- a/Casks/onyx.rb +++ b/Casks/onyx.rb @@ -14,8 +14,11 @@ url 'http://www.titanium.free.fr/download/108/OnyX.dmg' elsif MacOS.version == :mavericks url 'http://www.titanium.free.fr/download/109/OnyX.dmg' - else + elsif MacOS.version == :yosemite url 'http://www.titanium.free.fr/download/1010/OnyX.dmg' + else + # Unusual case: there is no fall-through. Each version of the software is + # specific to an OS X release, so define nothing when the release is unknown. end homepage 'http://www.titanium.free.fr/downloadonyx.php' license :unknown