Browse Source

Migrate to code.rocketnine.space

master v0.1.3
Trevor Slocum 1 year ago
parent
commit
1d7fe003af
  1. 20
      .gitlab-ci.yml
  2. 3
      CHANGELOG
  3. 11
      README.md
  4. 2
      card.go
  5. 4
      go.mod
  6. 4
      go.sum
  7. 2
      score.go
  8. 2
      score_result.go
  9. 2
      score_test.go

20
.gitlab-ci.yml

@ -1,20 +0,0 @@ @@ -1,20 +0,0 @@
image: golang:latest
stages:
- validate
fmt:
stage: validate
script:
- gofmt -l -s -e .
- exit $(gofmt -l -s -e . | wc -l)
vet:
stage: validate
script:
- go vet -composites=false ./...
test:
stage: validate
script:
- go test -race -v ./...

3
CHANGELOG

@ -1,3 +1,6 @@ @@ -1,3 +1,6 @@
0.1.3:
- Migrate to code.rocketnine.space
0.1.2:
- Update joker

11
README.md

@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
# joker-cribbage
[![GoDoc](https://gitlab.com/tslocum/godoc-static/-/raw/master/badge.svg)](https://docs.rocketnine.space/gitlab.com/tslocum/joker-cribbage)
[![CI status](https://gitlab.com/tslocum/joker-cribbage/badges/master/pipeline.svg)](https://gitlab.com/tslocum/joker-cribbage/commits/master)
[![GoDoc](https://code.rocketnine.space/tslocum/godoc-static/raw/branch/master/badge.svg)](https://docs.rocketnine.space/code.rocketnine.space/tslocum/joker-cribbage)
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
Cribbage scoring library based on [joker](https://gitlab.com/tslocum/joker)
Cribbage scoring library based on [joker](https://code.rocketnine.space/tslocum/joker)
## Documentation
Documentation is available via [godoc](https://docs.rocketnine.space):
- [joker](https://docs.rocketnine.space/gitlab.com/tslocum/joker)
- [joker-cribbage](https://docs.rocketnine.space/gitlab.com/tslocum/joker-cribbage)
- [joker](https://docs.rocketnine.space/code.rocketnine.space/tslocum/joker)
- [joker-cribbage](https://docs.rocketnine.space/code.rocketnine.space/tslocum/joker-cribbage)
## Support
Please share issues and suggestions [here](https:/gitlab.com/tslocum/joker-cribbage/issues).
Please share issues and suggestions [here](https:/code.rocketnine.space/tslocum/joker-cribbage/issues).

2
card.go

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
package cribbage
import "gitlab.com/tslocum/joker"
import "code.rocketnine.space/tslocum/joker"
// Value returns the cribbage value of a card.
func Value(c joker.Card) int {

4
go.mod

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
module gitlab.com/tslocum/joker-cribbage
module code.rocketnine.space/tslocum/joker-cribbage
go 1.13
require gitlab.com/tslocum/joker v0.1.4
require code.rocketnine.space/tslocum/joker v0.1.5

4
go.sum

@ -1,2 +1,2 @@ @@ -1,2 +1,2 @@
gitlab.com/tslocum/joker v0.1.4 h1:eE/lF/m+L9gQRajPIoZnYa+7vSg2MYlzcd39TMjs0lk=
gitlab.com/tslocum/joker v0.1.4/go.mod h1:bxTQ0FFmBP465r9z76zcm97S4Ld9eCLa3q20TyVM82A=
code.rocketnine.space/tslocum/joker v0.1.5 h1:mO2lScZOUmRfsySKbzO3z2IgNTHGocXHDiyFgsCosHs=
code.rocketnine.space/tslocum/joker v0.1.5/go.mod h1:tyFPY9/xiz86HWj4d1gLq6ZvL3vi510b2hsOjyO4wmI=

2
score.go

@ -3,7 +3,7 @@ package cribbage @@ -3,7 +3,7 @@ package cribbage
import (
"sort"
"gitlab.com/tslocum/joker"
"code.rocketnine.space/tslocum/joker"
)
// ScoringType represents a set of scoring rules.

2
score_result.go

@ -3,7 +3,7 @@ package cribbage @@ -3,7 +3,7 @@ package cribbage
import (
"fmt"
"gitlab.com/tslocum/joker"
"code.rocketnine.space/tslocum/joker"
)
// ScoreResult is a score from pegging or showing a hand.

2
score_test.go

@ -3,7 +3,7 @@ package cribbage @@ -3,7 +3,7 @@ package cribbage
import (
"testing"
. "gitlab.com/tslocum/joker"
. "code.rocketnine.space/tslocum/joker"
)
var (

Loading…
Cancel
Save