Skip to content

Commit

Permalink
brew-cask.rb: name requirement subclass better
Browse files Browse the repository at this point in the history
Sorry, pedantry here that I'm about to fix globally in Homebrew/homebrew: it doesn't really make sense to use `Dependency` in the name here because this is a `Requirement` and a `Dependency` is another, similar internal Homebrew class so this change is a bit less confusing.
  • Loading branch information
MikeMcQuaid committed Apr 14, 2015
1 parent a328cf8 commit a1f9871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brew-cask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
HBC_VERSION = HOMEBREW_CASK_VERSION
end

class Ruby20Dependency < Requirement
class Ruby20Requirement < Requirement
fatal true
default_formula "ruby"

Expand Down Expand Up @@ -35,7 +35,7 @@ class BrewCask < Formula

skip_clean "bin"

depends_on Ruby20Dependency
depends_on Ruby20Requirement

def install
man1.install "doc/man/brew-cask.1"
Expand Down

0 comments on commit a1f9871

Please sign in to comment.