Skip to content

Commit

Permalink
Merge pull request #5882 from kiendang/extract-class-name
Browse files Browse the repository at this point in the history
Fix class name for brew extract
  • Loading branch information
MikeMcQuaid authored Mar 15, 2019
2 parents 298ed29 + d58e94e commit c510b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/dev-cmd/extract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def extract

# The class name has to be renamed to match the new filename,
# e.g. Foo version 1.2.3 becomes FooAT123 and resides in [email protected].
class_name = Formulary.class_s(name.to_s)
versioned_name = Formulary.class_s("#{class_name}@#{version}")
class_name = Formulary.class_s(name)
versioned_name = Formulary.class_s("#{name}@#{version}")
result.gsub!("class #{class_name} < Formula", "class #{versioned_name} < Formula")

path = destination_tap.path/"Formula/#{name}@#{version}.rb"
Expand Down

0 comments on commit c510b64

Please sign in to comment.