From 6a0c3cb4f631a8d64305fb0e37a6ec50139534e2 Mon Sep 17 00:00:00 2001 From: Josh Hagins Date: Sun, 3 Jan 2016 14:19:18 -0500 Subject: [PATCH] python.rb: RuboCop (master), RuboCop-cask (master) auto-correct --- Casks/python.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Casks/python.rb b/Casks/python.rb index 01ac326eda2..d8f790b8888 100644 --- a/Casks/python.rb +++ b/Casks/python.rb @@ -10,11 +10,11 @@ cask 'python' do pkg "python-#{version}-macosx10.6.pkg" uninstall :delete => [ - "/Library/Receipts/Python*-#{version.slice(/\d+\.\d+/)}.pkg", - "/Applications/Python #{version.slice(/\d+\.\d+/)}", - "/Library/Frameworks/Python.Framework/Versions/#{version.slice(/\d+\.\d+/)}", - "/Library/Python/#{version.slice(/\d+\.\d+/)}", + "/Library/Receipts/Python*-#{version.slice(%r{\d+\.\d+})}.pkg", + "/Applications/Python #{version.slice(%r{\d+\.\d+})}", + "/Library/Frameworks/Python.Framework/Versions/#{version.slice(%r{\d+\.\d+})}", + "/Library/Python/#{version.slice(%r{\d+\.\d+})}", ] - zap :delete => "~/Library/Python/#{version.slice(/\d+\.\d+/)}" + zap :delete => "~/Library/Python/#{version.slice(%r{\d+\.\d+})}" end