Skip to content

Commit

Permalink
Merge branch 'release/v0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
takama committed Apr 18, 2018
2 parents 0781523 + 82b379c commit 5f07753
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ APP=backfriend
REGISTRY=takama

# Service version
RELEASE=v0.2.0
RELEASE=v0.3.0

# service infrastructure
# Namespace: dev, prod, release, cte, username ...
Expand Down
6 changes: 3 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@

[[constraint]]
name = "github.com/takama/backer"
version = "v0.3.9"
version = "v0.4.0"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ REGISTRY?=takama
CA_DIR?=certs

# Use the v0.0.0 tag for testing, it shouldn't clobber any release builds
RELEASE?=v0.2.0
RELEASE?=v0.3.0
GOOS?=linux
GOARCH?=amd64

Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@

Back a friend service: used [backer](https://github.com/takama/backer) package/library

## Installation

Build and run

```sh
make run
```

Or pull from docker registry and run

```sh
docker-compose up -d
```

## Known restrictions

1. A several verifications of input attributes skipped due to complicating the task
Expand Down
9 changes: 8 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Version v0.2.0
# Version v0.3.0

## v0.3.0

### Codebase changes in v0.3.0

- Added tournament handlers and test interactions with players ([#16](https://github.com/takama/back-friend/issues/16), [@takama](https://github.com/takama))
- Integrated backer package and added player handlers ([#15](https://github.com/takama/back-friend/issues/15), [@takama](https://github.com/takama))

## v0.2.0

Expand Down
4 changes: 2 additions & 2 deletions pkg/handlers/tournament_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func TestTournamentResult(t *testing.T) {
testHandlerWithParams(t,
map[string]string{":id": "1", "data": `{"player": "p1"}`},
h, h.TournamentJoin,
http.StatusOK, `{"id":1,"deposit":300,"is_finished":false,"bidders":[{"id":"p1","winner":false,"prize":0,"backers":null}]}`)
http.StatusOK, `{"id":1,"deposit":300,"is_finished":false,"bidders":[{"id":"p1","winner":false,"prize":0,"backers":[]}]}`)

stub.ErrFind = append(stub.ErrFind, ErrTestError, nil)
testHandlerWithParams(t,
Expand All @@ -258,7 +258,7 @@ func TestTournamentResult(t *testing.T) {
testHandlerWithParams(t,
map[string]string{":id": "1", "data": `{"winners": [{"player": "p1", "prize": 300}]}`},
h, h.TournamentResult,
http.StatusOK, `{"id":1,"deposit":300,"is_finished":true,"bidders":[{"id":"p1","winner":true,"prize":300,"backers":null}]}`)
http.StatusOK, `{"id":1,"deposit":300,"is_finished":true,"bidders":[{"id":"p1","winner":true,"prize":300,"backers":[]}]}`)

testHandlerWithParams(t,
map[string]string{":id": "1", "data": `{"winners": [{"player": "p1", "prize": 300}]}`},
Expand Down

0 comments on commit 5f07753

Please sign in to comment.