dracula / homebrew-install

🧛🏻‍♂️ @Homebrew formulae to easily install @Dracula themes.
https://draculatheme.com
MIT License
10 stars 5 forks source link

Replace titlecase with standard library functions #15

Closed joonas closed 10 months ago

joonas commented 10 months ago

While I was attempting to search what themes were available via the dracula tap, I was greeted with:

$ brew search dracula
Error: Cask 'dracula-ableton-live' is unreadable: undefined method `titlecase' for "ableton-live":String

Given that #titlecase is an ActiveSupport extension, that makes sense, so I figured it could be replaced with a couple of standard library methods instead.

danielbayley commented 10 months ago

Given that #titlecase is an ActiveSupport extension, that makes sense, so I figured it could be replaced with a couple of standard library methods instead.

@joonas @luxonauta Looks like Homebrew rearranged their internals to break this… The ActiveSupport extension should still actually be accessible with something like require "active_support/core_ext/string/inflections"