Skip to content

Commit

Permalink
Change circleCI yaml for validation with gem
Browse files Browse the repository at this point in the history
  • Loading branch information
Borja Martín Fernández committed Jun 27, 2016
1 parent a93fa8b commit 5915959
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
test:
override:
- bundle exec rspec test.rb
- bundle exec rspec test.rb
- yaml-lint data/
4 changes: 4 additions & 0 deletions data/buscar_tesoros.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
pifia:
eagle:
"Tropiezas y pierdes 1PC. A pesar de tu torpeza,
te levantas disimuladamente..."
default: "Tropiezas y pierdes 1PC forma patética."
vacia:
maldición:
trampa:
Expand Down
5 changes: 5 additions & 0 deletions lib/buscar_tesoros.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ def tesoro(sigmar, dado1, dado2)
send(valores[dado1 + dado2 - 2], sigmar, dado1, dado2)
end

# DB in YAML format
def buscar_tesoros
load_yaml('buscar_tesoros')
end

# Resultados dependiendo de Sigmar
# --------------------------------

Expand Down

0 comments on commit 5915959

Please sign in to comment.