andrii_codebreaker 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1743f315c3e1b74182843039b68e4a94274b9b32d29e4006ab50bc40a1b9bef2
4
- data.tar.gz: 4562d14615ea91676b026d3fa4038c3542c5293cbc3c1e12bc159b08002e9bef
3
+ metadata.gz: 850117beac1f8b9441630a8a0f97ef5a6c374e671dce56bedc85d9f43b74d828
4
+ data.tar.gz: c52fce0dcceb07cb99bb0ce693b7e38469b380e4310c990e9783cf53acb4fbb7
5
5
  SHA512:
6
- metadata.gz: 53365788f599671f07b0b59725ebb0d2e080ec7d62117052807c2995c384f3b7da63cafd4c8b99a0cc486fcfaa78f6e1d83f151c6f15a62d869659907cd32aef
7
- data.tar.gz: b28fda65ac98bdcf8c5385c068620d5e66fde3ae818a6fe3c044dc85e9cd1b25b432b2cd4167fa06237c842c5d05189ec251f88e299ed7c9ddf9438bee2ea12d
6
+ metadata.gz: 614863a6b0e5d83c2e3752d5244146fc8aaebf1452dcdb367172da66bb8c6c9c6a838fc347e4af237d57792b76676b30dc55224acf1d7cc963cc0a746aa5e00a
7
+ data.tar.gz: 32267d352720c6009cd3b4bff6f3c130e1dae175f6b90b423c1b4ff8ac42459f9b252b0934d55c2fc0e4a22118d2c89f72637083c8ee4a9def75b16ae6331dc0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- andrii_codebreaker (0.1.4)
4
+ andrii_codebreaker (0.1.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
Binary file
@@ -7,7 +7,7 @@ module AndriiCodebreaker
7
7
  include Constant
8
8
 
9
9
  attr_reader :player_name, :difficulty, :attempts_total, :hints_total, :secret_code
10
- attr_accessor :hints_left, :attempts_left, :secret_code_cope
10
+ attr_accessor :hints_left, :attempts_left, :secret_code_copy
11
11
 
12
12
  CONST_COMMAND = {
13
13
  start: 'start',
@@ -29,7 +29,7 @@ module AndriiCodebreaker
29
29
  @hints_total = difficult[:hints]
30
30
  @attempts_total = difficult[:attempts]
31
31
  @secret_code = generate_code
32
- @secret_code_cope = @secret_code.dup
32
+ @secret_code_copy = @secret_code.dup.chars
33
33
  end
34
34
 
35
35
  def show_hints
@@ -15,7 +15,7 @@ module AndriiCodebreaker
15
15
  return unless game.hints_total > game.hints_left
16
16
 
17
17
  game.hints_left += 1
18
- game.secret_code_cope.chars.pop
18
+ game.secret_code_copy.pop
19
19
  end
20
20
 
21
21
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AndriiCodebreaker
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: andrii_codebreaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrii
@@ -127,6 +127,7 @@ files:
127
127
  - LICENSE.txt
128
128
  - README.md
129
129
  - Rakefile
130
+ - andrii_codebreaker-0.1.5.gem
130
131
  - andrii_codebreaker.gemspec
131
132
  - bin/console
132
133
  - bin/setup