From f7079ed270e82e49f0878f6cf7e3e0b6717cf7ff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 5 Oct 2023 09:57:29 +0000 Subject: [PATCH 1/2] Bump the bundler-dependencies group with 1 update Updates the requirements on [httpx](https://gitlab.com/os85/httpx) to permit the latest version. - [Commits](https://gitlab.com/os85/httpx/compare/v0.24.0...v1.0.1) --- updated-dependencies: - dependency-name: httpx dependency-type: direct:production dependency-group: bundler-dependencies ... Signed-off-by: dependabot[bot] --- httpsensible.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpsensible.gemspec b/httpsensible.gemspec index ffb352d..78849ee 100644 --- a/httpsensible.gemspec +++ b/httpsensible.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency("httpx", "~> 0.24") + spec.add_dependency("httpx", ">= 0.24", "< 2.0") spec.add_dependency("jwt", "~> 2.7") spec.add_development_dependency("minitest", "~> 5.6") From c85225a8647ec0dad538e37c657ed7d1c13735cb Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Fri, 6 Oct 2023 20:21:44 -0400 Subject: [PATCH 2/2] add test scripts --- script/ci | 7 +++++++ script/test | 26 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100755 script/ci create mode 100755 script/test diff --git a/script/ci b/script/ci new file mode 100755 index 0000000..223430d --- /dev/null +++ b/script/ci @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e + +export CI=true + +script/test diff --git a/script/test b/script/test new file mode 100755 index 0000000..e449dbf --- /dev/null +++ b/script/test @@ -0,0 +1,26 @@ +#!/usr/bin/env bash +#/ Usage: script/test +#/ 1. `script/test FILE` runs all tests in the file. +#/ 1. `script/test FILE:LINE` runs test in specific line of the file. +#/ 1. `script/test 'GLOB'` runs all tests for matching glob. +#/ * make sure to wrap the `GLOB` in single quotes `''`. + +if ! [ $# -eq 0 ]; then + export TEST=$(echo "$1" | cut -d ":" -f 1) + + if [[ "$1" == *":"* ]]; then + LINE=$(echo "$1" | cut -d ":" -f 2) + LINE=$(head -n $LINE $TEST | tail -1) + NAME=$(echo "$LINE" | sed "s/.*def //") + + if ! [[ "$NAME" == "test_"* ]]; then + echo + echo "ERROR: Line provided does not define a test case" + exit 1 + fi + + export TESTOPTS="--name=$NAME" + fi +fi + +bundle exec rake test