diff options
| author | Markus Reiter | 2016-09-25 00:55:46 +0200 |
|---|---|---|
| committer | GitHub | 2016-09-25 00:55:46 +0200 |
| commit | 03e568e8cea1d23bdf247958422646c6032ba37e (patch) | |
| tree | 3d89e3ca400cf20ed938aef103d108a7fd55e0e7 /Library/Homebrew/compilers.rb | |
| parent | 817bc2746e594761911edd78f743a640f089494f (diff) | |
| parent | b987230ddf0d067324c2590bf0fd829ed0e85503 (diff) | |
| download | brew-03e568e8cea1d23bdf247958422646c6032ba37e.tar.bz2 | |
Merge pull request #1124 from reitermarkus/rubocop-case-equality
RuboCop: Style/CaseEquality
Diffstat (limited to 'Library/Homebrew/compilers.rb')
| -rw-r--r-- | Library/Homebrew/compilers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 6330db283..7503f1d77 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -49,7 +49,7 @@ class CompilerFailure instance_eval(&block) if block_given? end - def ===(compiler) + def fails_with?(compiler) name == compiler.name && version >= compiler.version end @@ -127,7 +127,7 @@ class CompilerSelector end def fails_with?(compiler) - failures.any? { |failure| failure === compiler } + failures.any? { |failure| failure.fails_with?(compiler) } end def compiler_version(name) |
