Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.9.0 Release Prep #60

Merged
merged 7 commits into from Jun 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/deployment.yml
Expand Up @@ -9,17 +9,14 @@ jobs:
deploy_docs:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:latest-alpine
image: crystallang/crystal
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: shards install --production
- name: Build
run: make docs
run: crystal docs
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.5.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: JamesIves/github-pages-deploy-action@2.0.1
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: docs
SINGLE_COMMIT: true
12 changes: 0 additions & 12 deletions README.md
Expand Up @@ -5,18 +5,6 @@

A web framework comprised of reusable, independent components.

## Installation

1. Add the dependency to your `shard.yml`:

```yaml
dependencies:
athena:
github: athena-framework/athena
```

2. Run `shards install`

## Documentation

Everything is documented in the [API Docs](https://athena-framework.github.io/athena/Athena/Routing.html).
Expand Down
4 changes: 2 additions & 2 deletions shard.yml
@@ -1,6 +1,6 @@
name: athena

version: 0.8.0
version: 0.9.0

crystal: 0.35.0

Expand All @@ -25,7 +25,7 @@ dependencies:
version: ~> 0.1.0
athena-dependency_injection:
github: athena-framework/dependency-injection
branch: di-refactor-v2
version: ~> 0.2.0
amber_router:
github: amberframework/amber-router
version: ~> 0.4.1
Expand Down
2 changes: 1 addition & 1 deletion spec/redirect_response_spec.cr
Expand Up @@ -7,7 +7,7 @@ describe ART::RedirectResponse do
end

it "disallows non redirect codes" do
expect_raises(ArgumentError, "422 is not an HTTP redirect status code.") do
expect_raises(ArgumentError, "'422' is not an HTTP redirect status code.") do
ART::RedirectResponse.new("addresss", 422)
end
end
Expand Down
18 changes: 9 additions & 9 deletions src/annotations.cr
@@ -1,5 +1,5 @@
module Athena::Routing
# Defines a GET endpoint.
# Defines a `GET` endpoint.
#
# A corresponding `HEAD` endpoint is also defined.
#
Expand All @@ -15,7 +15,7 @@ module Athena::Routing
# ```
annotation Get; end

# Defines a POST endpoint.
# Defines a `POST` endpoint.
#
# ## Fields
# * path : `String` - The path for the endpoint, may also be provided as the first positional argument.
Expand All @@ -29,7 +29,7 @@ module Athena::Routing
# ```
annotation Post; end

# Defines a PUT endpoint.
# Defines a `PUT` endpoint.
#
# ## Fields
# * path : `String` - The path for the endpoint, may also be provided as the first positional argument.
Expand All @@ -43,7 +43,7 @@ module Athena::Routing
# ```
annotation Put; end

# Defines a PATCH endpoint.
# Defines a `PATCH` endpoint.
#
# ## Fields
# * path : `String` - The path for the endpoint, may also be provided as the first positional argument.
Expand All @@ -57,7 +57,7 @@ module Athena::Routing
# ```
annotation Patch; end

# Defines a DELETE endpoint.
# Defines a `DELETE` endpoint.
#
# ## Fields
# * path : `String` - The path for the endpoint, may also be provided as the first positional argument.
Expand All @@ -71,7 +71,7 @@ module Athena::Routing
# ```
annotation Delete; end

# Applies an `ART::ParamConverterInterface` to a given parameter.
# Applies an `ART::ParamConverterInterface` to a given argument.
#
# See `ART::ParamConverterInterface` for more information on defining a param converter.
#
Expand All @@ -91,7 +91,7 @@ module Athena::Routing
# ```
annotation ParamConverter; end

# Defines a `ART::Parameters::QueryParameter` tied to a given route.
# Defines a query parameter tied to a given argument.
#
# The type of the query param is derived from the type restriction of the associated controller action argument.
#
Expand All @@ -107,8 +107,8 @@ module Athena::Routing
#
# ```
# @[ART::Get(path: "/example")]
# @[ART::QueryParam(name: "value")]
# def get_user(name : String) : Nil
# @[ART::QueryParam("query_param")]
# def get_user(query_param : String) : Nil
# end
# ```
annotation QueryParam; end
Expand Down