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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWI0MWI1NTAwZmNlNWIxZGFmNzg1N2EyOWVjZmY1MmQxY2NjYzg4Mg==
4
+ ZWI2MjFmMzIxYTk3YThmMWNjZjNhMDU0NWUyNzkyNmY5YzU1Y2E2ZA==
5
5
  data.tar.gz: !binary |-
6
- N2EyNTFjNGQyYjkzNzY2OWE3OTdhYzVkNzhhYWMxNGFlMjIwYjJjMg==
6
+ N2JmOGM5NWQxODg2M2FkNWM5NjM5OGIzN2UwMWY3Y2I5NTFiYjFjOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWI2ZDY4ZDI0ZDM4NGIzNGM0NWY0NDA0Y2Y4YzNkZjZlNWIzODcwM2ZkODFk
10
- YmM2OWU3ZTkyZjlhNTRjMjc4NTFhMmIxODNkNzJjZjdiZThjODdiNzY0Mjkx
11
- ZmQ1MmI3Njc3MGIxNzVkYTYxZDdmNTE3YjI4Mjg4NWY0Mzg4N2Q=
9
+ NGYwYmEzY2NkYmM4OTZjMTA5OWI1OWM2OTEzMzA4ZTdlNWIyMDdmMmNjMGZi
10
+ ZjJkNmNhN2YzYWEwZWUxNDE4N2M2M2UxNmUyNTM2ZGI4OWVjYWZkZGZlMzlk
11
+ MDkyZDgxNzcxZGQ1ZWI3MjZkYTc5OWMxNTgzYWQxNTVlNDUzOGE=
12
12
  data.tar.gz: !binary |-
13
- NGY1NjlmOTFjMjg5MTI2YzlmNTg1OTgwYWEzODVhYWNlNjg0M2RlMDNlN2Q0
14
- MzY0YzY4MTAzNGI2ZGEzODA4OWFjNWVlMjk5NGQ3OTI5OTc5ZTNkNWM0Yjcx
15
- Mjk3OGEzMTNkNDNmNzdiMmI2Zjg4MTk3MGUwM2JmYWQ2MThhNzE=
13
+ ODI0N2YyNDU2YmZhZjkyOTQ4YjAzYjY5MzFjMjI1YTg3ODc1YTliNzQwZTdj
14
+ YjkxMjU1NThmODdiMGI1ZGEwYWYxOWE3ODViYTViZjNlNmM2N2Q2YTg1MTAx
15
+ Y2QzYjUzZGJlODllNjU0ZjliZjlhZDYyOTFlYmZlYzM1MDViOTg=
@@ -20,6 +20,10 @@ module Stones
20
20
  [red, green, black, blue]
21
21
  end
22
22
 
23
+ def self.all_with_names
24
+ {'Azul' => :blue, 'Negro' => :black, 'Rojo' => :red, 'Verde' => :green}
25
+ end
26
+
23
27
  module_function :red, :blue, :green, :black
24
28
  end
25
29
  end
@@ -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
- COLORS[gbb_color_string]
47
+ Color.all_with_names[gbb_color_string]
50
48
  end
51
49
  end
52
50
  end
@@ -1,3 +1,3 @@
1
1
  module Stones
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-stones
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Federico Aloi