github.com/joselitofilho/goreleaser@v0.155.1-0.20210123221854-e4891856c593/internal/pipe/brew/testdata/test.rb.golden (about) 1 # typed: false 2 # frozen_string_literal: true 3 4 # This file was generated by GoReleaser. DO NOT EDIT. 5 class Test < Formula 6 desc "Some desc" 7 homepage "https://google.com" 8 version "0.1.3" 9 license "MIT" 10 bottle :unneeded 11 12 if OS.mac? 13 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz" 14 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68" 15 end 16 if OS.linux? && Hardware::CPU.intel? 17 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Linux_x86_64.tar.gz" 18 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" 19 end 20 if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? 21 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm6.tar.gz" 22 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" 23 end 24 if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? 25 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm64.tar.gz" 26 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" 27 end 28 29 devel do 30 url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz" 31 sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68" 32 end 33 34 depends_on "gtk+" 35 36 conflicts_with "svn" 37 38 def install 39 custom install script 40 another install script 41 end 42 43 def post_install 44 system "touch", "/tmp/foo" 45 end 46 47 def caveats; <<~EOS 48 Here are some caveats 49 EOS 50 end 51 52 plist_options :startup => false 53 54 def plist; <<~EOS 55 it works 56 EOS 57 end 58 59 test do 60 system "#{bin}/foo -version" 61 end 62 end