10 changed files with 37 additions and 27 deletions
@ -1,24 +1,16 @@
|
||||
NAME=`ls -d src/*/ | cut -f2 -d'/'`
|
||||
|
||||
all: deps_opt build |
||||
all: deps_opt test |
||||
|
||||
run: |
||||
crystal run src/$(NAME).cr
|
||||
build: |
||||
crystal build src/$(NAME).cr --stats
|
||||
release: |
||||
crystal build src/$(NAME).cr --stats --release
|
||||
test: |
||||
crystal spec
|
||||
deps: |
||||
crystal deps install
|
||||
shards install
|
||||
deps_update: |
||||
crystal deps update
|
||||
shards update
|
||||
deps_opt: |
||||
@[ -d lib/ ] || make deps
|
||||
doc: |
||||
crystal docs
|
||||
clean: |
||||
rm $(NAME)
|
||||
|
||||
.PHONY: all run build release test deps deps_update clean doc |
||||
.PHONY: all run build release test deps deps_update doc |
||||
|
@ -1,7 +1,7 @@
|
||||
name: rollable |
||||
version: 0.1.4 |
||||
version: 1.0.0 |
||||
|
||||
authors: |
||||
- Arthur Poulet <arthur.poulet@mailoo.org> |
||||
- Arthur Poulet <arthur.poulet@sceptique.eu> |
||||
|
||||
license: MIT |
||||
|
@ -1,6 +1,6 @@
|
||||
abstract class Rollable::IsRollable |
||||
abstract def min : Int32 |
||||
abstract def max : Int32 |
||||
abstract def average : Int32 |
||||
abstract def average : Float64 |
||||
abstract def test : Int32 |
||||
end |
||||
|
Loading…
Reference in new issue