diff options
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
| -rw-r--r-- | Library/Homebrew/software_spec.rb | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 1d2e4bf64..be851ca16 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -8,6 +8,7 @@ require "dependency_collector"  require "utils/bottles"  require "patch"  require "compilers" +require "os/mac/version"  class SoftwareSpec    extend Forwardable @@ -338,8 +339,8 @@ class BottleSpecification      tags = collector.keys.sort_by do |tag|        # Sort non-MacOS tags below MacOS tags.        begin -        MacOS::Version.from_symbol tag -      rescue +        OS::Mac::Version.from_symbol tag +      rescue ArgumentError          "0.#{tag}"        end      end | 
