codebreakergem 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +13 -0
- data/lib/classes/game.rb +4 -6
- data/lib/classes/statistic.rb +1 -1
- data/lib/codebreakergem/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db252ffc7ce598601b77335ada268b415a4f16fd6d0c59b83e85d10f7fe0384f
|
4
|
+
data.tar.gz: 91d67d1725dfa77bbf88883a18a9d87ca0a1b665bf08992ea555012b36534bdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cbdbfd46830d0e5f24371d4f7de74bf856f81fba8d2b7f9327b2ca2cedddcc3f7bfee95c677f8ed0429546f40db7bb33a551b5e51beee14e3430ec54197663a
|
7
|
+
data.tar.gz: 116363dacb70978f86d9101200f134c0daa9fdb6243b508c2b00443ac5a00586000ae348e4e5274d5731611c378b8e03ad31bfb406eae85227849ff239580ea5
|
data/lib/classes/game.rb
CHANGED
@@ -20,12 +20,10 @@ module Codebreakergem
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def show_hint
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
I18n.t(:no_hints)
|
28
|
-
end
|
23
|
+
return I18n.t(:no_hints) unless difficulty.hints.positive?
|
24
|
+
|
25
|
+
difficulty.hints -= 1
|
26
|
+
secret_code[difficulty.hints]
|
29
27
|
end
|
30
28
|
|
31
29
|
def try_guess(guess)
|
data/lib/classes/statistic.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codebreakergem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sasha
|
@@ -59,6 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- ".circleci/config.yml"
|
62
63
|
- ".fasterer.yml"
|
63
64
|
- ".gitignore"
|
64
65
|
- ".rspec"
|