···11+class SlackProfile < Formula
22+ desc "CLI tool for updating Slack user profiles (Ruby version)"
33+ homepage "https://github.com/jaspermayone/slack-profile-cli"
44+ url "https://github.com/jaspermayone/slack-profile-cli/archive/refs/tags/v2.0.0.tar.gz"
55+ sha256 "" # Will be generated when you create a GitHub release
66+ license "MIT"
77+ head "https://github.com/jaspermayone/slack-profile-cli.git", branch: "main"
88+99+ depends_on "ruby"
1010+1111+ def install
1212+ cd "ruby" do
1313+ ENV["GEM_HOME"] = libexec
1414+ system "gem", "build", "slack_profile.gemspec"
1515+ system "gem", "install", "slack_profile-#{version}.gem"
1616+ bin.install libexec/"bin/slack-profile"
1717+ bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV["GEM_HOME"])
1818+ end
1919+ end
2020+2121+ test do
2222+ # Test that the CLI runs and shows version
2323+ assert_match version.to_s, shell_output("#{bin}/slack-profile version")
2424+ end
2525+end