From 53486f8277c23d1698607606ca7f79ba88a4fcb5 Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Wed, 1 Sep 2021 13:44:44 +0300 Subject: [PATCH] fix Crystal nightly test Crystal nightly and macOS --- .github/workflows/crystal.yml | 7 ++++++- src/mechanize/cookie.cr | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/crystal.yml b/.github/workflows/crystal.yml index 0af5fd2..e0bc37b 100644 --- a/.github/workflows/crystal.yml +++ b/.github/workflows/crystal.yml @@ -20,7 +20,12 @@ jobs: test: strategy: fail-fast: false - runs-on: ubuntu-latest + matrix: + include: + - {os: ubuntu-latest, crystal: latest} + - {os: ubuntu-latest, crystal: nightly} + - {os: macos-latest} + runs-on: ${{ matrix.os }} steps: - name: Install Crystal uses: crystal-lang/install-crystal@v1 diff --git a/src/mechanize/cookie.cr b/src/mechanize/cookie.cr index a22e70a..0b3e44d 100644 --- a/src/mechanize/cookie.cr +++ b/src/mechanize/cookie.cr @@ -11,7 +11,7 @@ class ::HTTP::Cookie @expires : Time? = nil, @domain : String? = nil, @secure : Bool = false, @http_only : Bool = false, @samesite : SameSite? = nil, @extension : String? = nil, - @origin : String? = nil) + @origin : String? = nil, @creation_time = Time.utc) validate_name(name) @name = name validate_value(value)