diff options
Diffstat (limited to 'Library/Homebrew/cmd/edit.rb')
| -rw-r--r-- | Library/Homebrew/cmd/edit.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/edit.rb b/Library/Homebrew/cmd/edit.rb index 534fcba33..c683de0dc 100644 --- a/Library/Homebrew/cmd/edit.rb +++ b/Library/Homebrew/cmd/edit.rb @@ -1,8 +1,8 @@ -require 'formula' +require "formula" module Homebrew def edit - unless (HOMEBREW_REPOSITORY/'.git').directory? + unless (HOMEBREW_REPOSITORY/".git").directory? raise <<-EOS.undent Changes will be lost! The first time you `brew update', all local changes will be lost, you should @@ -13,11 +13,11 @@ module Homebrew # If no brews are listed, open the project root in an editor. if ARGV.named.empty? editor = File.basename which_editor - if editor == "mate" or editor == "subl" + if editor == "mate" || editor == "subl" # If the user is using TextMate or Sublime Text, # give a nice project view instead. exec_editor HOMEBREW_REPOSITORY+"bin/brew", - HOMEBREW_REPOSITORY+'README.md', + HOMEBREW_REPOSITORY+"README.md", HOMEBREW_REPOSITORY+".gitignore", *library_folders else @@ -38,7 +38,7 @@ module Homebrew def library_folders Dir["#{HOMEBREW_LIBRARY}/*"].reject do |d| - case File.basename(d) when 'LinkedKegs', 'Aliases' then true end + case File.basename(d) when "LinkedKegs", "Aliases" then true end end end end |
