aboutsummaryrefslogtreecommitdiffstats
path: root/HomebrewFormula/git-suggestion.rb
blob: 3f773f1b3511059d9995ca618ca7d0e8091a1be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

class GitSuggestion < Formula
  desc "Diffs and patches for GitHub pull request suggestions"
  homepage "https://github.com/teddywing/git-suggestion"
  url "https://github.com/teddywing/git-suggestion/releases/download/v0.2.1/git-suggestion_0.2.1_x86_64-apple-darwin.tar.bz2"
  sha256 "bc0082885f99064242487c59ac4e2eb135f7817e8700120f0d6fcb0d54725351"

  def install
    bin.install Dir["bin/*"]
    man1.install Dir["share/man/man1/*"]
  end

  test do
    assert_equal version, shell_output("git sugapply --version").strip
    assert_equal version, shell_output("git sugdiff --version").strip
  end
end