From 625833bcd346b86cf69ba80ca9f7b976957a50c8 Mon Sep 17 00:00:00 2001 From: Jeremy Woertink Date: Thu, 1 Apr 2021 11:43:59 -0700 Subject: [PATCH] Update the shards to latest versions (#54) * moving the CI shards install below cache to keep consistent with others and avoid weird cache issues * Update to the latest shards required --- .github/workflows/ci.yml | 4 ++-- shard.yml | 6 +++--- .../expectations/have_delivered_emails_expectation.cr | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a29b2c1..39e5122 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,13 +41,13 @@ jobs: container: crystallang/crystal:${{ matrix.crystal_version }}-alpine steps: - uses: actions/checkout@v2 - - name: Install dependencies - run: shards install - name: Cache Crystal uses: actions/cache@v1 with: path: ~/.cache/crystal key: ${{ runner.os }}-crystal + - name: Install dependencies + run: shards install - name: Create .env file run: touch .env - if: env.RUN_INTEGRATION_SPECS == true diff --git a/shard.yml b/shard.yml index e5120fd..f016af1 100644 --- a/shard.yml +++ b/shard.yml @@ -11,13 +11,13 @@ license: MIT dependencies: habitat: github: luckyframework/habitat - branch: master + version: ~> 0.4.7 development_dependencies: lucky_env: github: luckyframework/lucky_env - branch: master + version: ~> 0.1.1 ameba: github: crystal-ameba/ameba - version: ~> 0.13.4 + version: ~> 0.14.2 diff --git a/src/carbon/expectations/have_delivered_emails_expectation.cr b/src/carbon/expectations/have_delivered_emails_expectation.cr index d216937..c7359f0 100644 --- a/src/carbon/expectations/have_delivered_emails_expectation.cr +++ b/src/carbon/expectations/have_delivered_emails_expectation.cr @@ -1,6 +1,6 @@ class Carbon::Expectations::HaveDeliveredEmailsExpectation def match(_carbon : Carbon.class) : Bool - Carbon::DevAdapter.delivered_emails.any? + !Carbon::DevAdapter.delivered_emails.empty? end def failure_message(_carbon : Carbon.class)