mirror of
https://github.com/gosticks/brew.git
synced 2026-08-12 20:50:29 +00:00
Fix incorrect formula name from file name
This commit is contained in:
@@ -142,7 +142,7 @@ module Homebrew
|
||||
|
||||
# The class name has to be renamed to match the new filename,
|
||||
# e.g. Foo version 1.2.3 becomes FooAT123 and resides in Foo@1.2.3.rb.
|
||||
class_name = name.capitalize
|
||||
class_name = Formulary.class_s(name.to_s)
|
||||
versioned_name = Formulary.class_s("#{class_name}@#{version}")
|
||||
result.gsub!("class #{class_name} < Formula", "class #{versioned_name} < Formula")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user