Merge pull request #9 from mamantoha/crystal-nightly

fix Crystal nightly
master
Kanezoh 2021-09-03 20:08:30 +09:00 committed by GitHub
commit 98ac971e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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)