From 882cb08271e3decc94679a58586c2c58834e6659 Mon Sep 17 00:00:00 2001 From: Kevin Chen Date: Sun, 27 Aug 2023 17:05:50 -0400 Subject: [PATCH] +check-if-email-exists -- Check if an email address exists without sending any email (#3129) * +check-if-email-exists -- Check if an email address exists without sending any email * openssl dep * perl and make * rebuild * fix version --------- Co-authored-by: Jacob Heider --- .../check-if-email-exists-cli/package.yml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 projects/reacher.email/check-if-email-exists-cli/package.yml diff --git a/projects/reacher.email/check-if-email-exists-cli/package.yml b/projects/reacher.email/check-if-email-exists-cli/package.yml new file mode 100644 index 00000000..33f7d041 --- /dev/null +++ b/projects/reacher.email/check-if-email-exists-cli/package.yml @@ -0,0 +1,37 @@ +distributable: + url: https://github.com/reacherhq/check-if-email-exists/archive/refs/tags/v{{ version }}.tar.gz + strip-components: 1 + +provides: + - bin/check_if_email_exists + +versions: + github: reacherhq/check-if-email-exists + strip: /v/ + +dependencies: + openssl.org: ^1.1 + +build: + working-directory: cli + dependencies: + rust-lang.org: '>=1.65' + rust-lang.org/cargo: '*' + perl.org: '*' + tea.xyz/gx/make: '*' + script: + # 0.9.0 forgot to bump the version + - run: | + sed -i.bak -e 's/0\.8\.32/{{version}}/' Cargo.toml + rm Cargo.toml.bak + if: =0.9.0 + - run: | + sed -i.bak -e 's/0\.8\.32/{{version}}/' Cargo.toml + rm Cargo.toml.bak + working-directory: ../core + if: =0.9.0 + - cargo install --path . --root {{prefix}} + +test: + script: + - test "$(check_if_email_exists --version)" = "check-if-email-exists-cli {{version}}"