From 3770d1a86cced0abf85bb778d9ed481b29e09a26 Mon Sep 17 00:00:00 2001 From: Kevin Chen Date: Wed, 23 Aug 2023 14:14:14 -0400 Subject: [PATCH] +complexity -- A command line tool to identify complex code --- .../thoughtbot/complexity/package.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 projects/github.com/thoughtbot/complexity/package.yml diff --git a/projects/github.com/thoughtbot/complexity/package.yml b/projects/github.com/thoughtbot/complexity/package.yml new file mode 100644 index 00000000..30981492 --- /dev/null +++ b/projects/github.com/thoughtbot/complexity/package.yml @@ -0,0 +1,21 @@ +distributable: + url: https://github.com/thoughtbot/complexity/archive/refs/tags/{{ version }}.tar.gz + strip-components: 1 + +provides: + - bin/complexity + +versions: + github: thoughtbot/complexity + strip: /v/ + +build: + dependencies: + rust-lang.org: '>=1.56' + rust-lang.org/cargo: '*' + script: | + cargo install --locked --path . --root {{prefix}} + +test: + script: + - test "$(complexity --version)" = "complexity {{version}}"