ruby-stones 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/stones/color.rb +4 -0
- data/lib/stones/gbb/gbb_reader.rb +1 -3
- data/lib/stones/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWI2MjFmMzIxYTk3YThmMWNjZjNhMDU0NWUyNzkyNmY5YzU1Y2E2ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2JmOGM5NWQxODg2M2FkNWM5NjM5OGIzN2UwMWY3Y2I5NTFiYjFjOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGYwYmEzY2NkYmM4OTZjMTA5OWI1OWM2OTEzMzA4ZTdlNWIyMDdmMmNjMGZi
|
10
|
+
ZjJkNmNhN2YzYWEwZWUxNDE4N2M2M2UxNmUyNTM2ZGI4OWVjYWZkZGZlMzlk
|
11
|
+
MDkyZDgxNzcxZGQ1ZWI3MjZkYTc5OWMxNTgzYWQxNTVlNDUzOGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODI0N2YyNDU2YmZhZjkyOTQ4YjAzYjY5MzFjMjI1YTg3ODc1YTliNzQwZTdj
|
14
|
+
YjkxMjU1NThmODdiMGI1ZGEwYWYxOWE3ODViYTViZjNlNmM2N2Q2YTg1MTAx
|
15
|
+
Y2QzYjUzZGJlODllNjU0ZjliZjlhZDYyOTFlYmZlYzM1MDViOTg=
|
data/lib/stones/color.rb
CHANGED
@@ -9,8 +9,6 @@ end
|
|
9
9
|
|
10
10
|
module Stones
|
11
11
|
class GbbReader
|
12
|
-
COLORS = {'Azul' => :blue, 'Negro' => :black, 'Rojo' => :red, 'Verde' => :green}
|
13
|
-
|
14
12
|
def from_string(gbb_string)
|
15
13
|
board = nil
|
16
14
|
|
@@ -46,7 +44,7 @@ module Stones
|
|
46
44
|
end
|
47
45
|
|
48
46
|
def to_color(gbb_color_string)
|
49
|
-
|
47
|
+
Color.all_with_names[gbb_color_string]
|
50
48
|
end
|
51
49
|
end
|
52
50
|
end
|
data/lib/stones/version.rb
CHANGED