Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

Commit

Permalink
Crystal 0.35.0 Updates (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blacksmoke16 authored Jul 6, 2020
1 parent 842d7c4 commit dd2b901
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,34 @@ jobs:
check_format:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
image: crystallang/crystal:latest-alpine
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Format
run: crystal tool format --check
coding_standards:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
image: crystallang/crystal:latest-alpine
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Install Dependencies
run: shards install
- name: Ameba
run: ./bin/ameba
test_latest:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
image: crystallang/crystal:latest-alpine
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Specs
run: crystal spec --warnings all --error-on-warnings
run: crystal spec --order random --error-on-warnings
test_nightly:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:nightly
image: crystallang/crystal:nightly-alpine
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Specs
run: crystal spec --warnings all --error-on-warnings
run: crystal spec --order random --error-on-warnings
4 changes: 2 additions & 2 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
- name: Build
run: crystal docs
- name: Deploy
uses: JamesIves/github-pages-deploy-action@2.0.1
uses: JamesIves/github-pages-deploy-action@2.0.3
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: assert
description: |
Extensible annotation based object validation library
version: 0.1.0
version: 0.2.1

authors:
- Blacksmoke16 <Blacksmoke16@eve.tools>
Expand All @@ -15,4 +15,4 @@ license: MIT
development_dependencies:
ameba:
github: crystal-ameba/ameba
version: ~> 0.10.0
version: ~> 0.13.0
2 changes: 1 addition & 1 deletion spec/exceptions/validation_error_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe Assert::Exceptions::ValidationError do
Assert::Assertions::GreaterThanOrEqual(Int32).new("age", -1, 0),
])

error.to_pretty_json.should eq %({\n \"code\": 400,\n \"message\": \"Validation tests failed\",\n \"errors\": [\n \"'name' should not be blank\",\n \"'age' should be greater than or equal to '0'\"\n ]\n})
error.to_pretty_json.should eq %({\n "code": 400,\n "message": "Validation tests failed",\n "errors": [\n "'name' should not be blank",\n "'age' should be greater than or equal to '0'"\n ]\n})
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/exceptions/validation_error.cr
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Assert::Exceptions::ValidationError < Exception
def to_s : String
String.build do |str|
str << "Validation tests failed: "
@failed_assertions.map(&.message).join(", ", str)
@failed_assertions.map(&.message).join(str, ", ")
end
end
end

0 comments on commit dd2b901

Please sign in to comment.