My homebrew tap - storing the formulas i make
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add slack profile formula

Jasper Mayone 08481e1e

+25
+25
Formula/slack-profile.rb
··· 1 + class SlackProfile < Formula 2 + desc "CLI tool for updating Slack user profiles (Ruby version)" 3 + homepage "https://github.com/jaspermayone/slack-profile-cli" 4 + url "https://github.com/jaspermayone/slack-profile-cli/archive/refs/tags/v2.0.0.tar.gz" 5 + sha256 "" # Will be generated when you create a GitHub release 6 + license "MIT" 7 + head "https://github.com/jaspermayone/slack-profile-cli.git", branch: "main" 8 + 9 + depends_on "ruby" 10 + 11 + def install 12 + cd "ruby" do 13 + ENV["GEM_HOME"] = libexec 14 + system "gem", "build", "slack_profile.gemspec" 15 + system "gem", "install", "slack_profile-#{version}.gem" 16 + bin.install libexec/"bin/slack-profile" 17 + bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV["GEM_HOME"]) 18 + end 19 + end 20 + 21 + test do 22 + # Test that the CLI runs and shows version 23 + assert_match version.to_s, shell_output("#{bin}/slack-profile version") 24 + end 25 + end