generate_cask_token: uninitialized constant AppName::Pathname
### Verification
- [x] I understand that [if I ignore these instructions, my issue may be closed without review](https://github.com/Homebrew/homebrew-cask/blob/HEAD/doc/faq/closing_issues_without_review.md).
- [x] I have retried my command with `--force`. (not working)
- [x] I ran `brew update-reset && brew update` and retried my command.
- [x] I ran `brew doctor`, fixed as many issues as possible and retried my command.
- [x] I have checked the instructions for [reporting bugs](https://github.com/Homebrew/homebrew-cask#reporting-bugs).
- [x] I made doubly sure this is not a [checksum does not match / SHA256 mismatch](https://docs.brew.sh/Common-Issues#cask---checksum-does-not-match) error (do not open an issue before trying to open a PR to fix first).
### Description of issue
I want to pushing a cask by making a PR.
I've wrote the cask and next up would be the "Generation of a token for the cask" in regards to the [docs](https://docs.brew.sh/Adding-Software-to-Homebrew).
Since I don't have an app bundle, I just used the name. I get this error:
```bash
$(brew --repository homebrew/cask)/developer/bin/generate_cask_token "TangleGuard CLI"
/opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:200:in `basename': uninitialized constant AppName::Pathname (NameError)
from /opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:265:in `simplified'
from /opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:369:in `simplified_app_name'
from /opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:373:in `cask_file_name'
from /opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:377:in `cask_token'
from /opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:399:in `report'
from /opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:440:in `<main>'
```
Providing just the name instead of the path, results in the same error:
```bash
$(brew --repository homebrew/cask)/developer/bin/generate_cask_token "TangleGuard CLI"
/opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:200:in `basename': uninitialized constant AppName::Pathname (NameError)
from /opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:265:in `simplified'
from /opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:369:in `simplified_app_name'
from /opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:373:in `cask_file_name'
from /opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:377:in `cask_token'
from /opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:399:in `report'
from /opt/homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/generate_cask_token:440:in `<main>'
```
### Command that failed
generate_cask_token
### Output of command with `--verbose --debug`
```shell
$(brew --repository homebrew/cask)/developer/bin/generate_cask_token --verbose --debug "TangleGuard CLI"
Usage: generate_cask_token [ -debug ] <application.app>
Given an Application name or a path to an Application, propose a
Cask token, filename, and header line.
With -debug, also provide the internal "Simplified App Name".
```
### Output of `brew doctor` and `brew config`
```shell
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
icu4c@76
icu4c@77
pcre
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libASAF.dylib
Warning: You have an unnecessary local Cask tap.
This can cause problems installing up-to-date casks.
Please remove it by running:
brew untap homebrew/cask
Warning: You have uncommitted modifications to Homebrew/homebrew-cask.
If this is a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
git -C "/opt/homebrew/Library/Taps/homebrew/homebrew-cask" stash -u && git -C "/opt/homebrew/Library/Taps/homebrew/homebrew-cask" clean -d -f
Uncommitted files:
?? Casks/t/tangleguard-cli.rb
HOMEBREW_VERSION: 5.1.13
ORIGIN: https://github.com/Homebrew/brew
HEAD: d8deaca5574faf79a27f110caedc9e153709e628
Last commit: 2 days ago
Branch: stable
Core tap JSON: 23 May 17:13 UTC
Core cask tap HEAD: 247ef0809f400dcab21d11b1305fe58007c7ddca
Core cask tap last commit: 20 minutes ago
Core cask tap JSON: 23 May 17:13 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DOWNLOAD_CONCURRENCY: 20
HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 4.0.5 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/4.0.5/bin/ruby
CPU: deca-core 64-bit arm_blizzard_avalanche
Clang: 21.0.0 build 2100
Git: 2.48.1 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 26.5-arm64
CLT: 26.5.0.0.1777544298
Xcode: 26.5
Metal Toolchain: N/A
Rosetta 2: false
```
### Output of `brew tap`
```shell
goreleaser/tap
homebrew/cask
```
2 条评论