codebreaker_karolina 0.1.1 → 0.1.4

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: f9d11acf77bb3a160bb62b5712dc8f0861b1216bc8248de1050864efbd8a3a30
4
- data.tar.gz: 8ccc1cc0c9f614d7197f79191a503f82795f669f44dabd8f206c7d2ea29c988d
3
+ metadata.gz: 1276ade3c40cf26100044dfbf9666471ea8572c0392bd77876c1d0c05f495097
4
+ data.tar.gz: 4d5962dc8c4751e4d09998f06cb2ea6fbbeef06273c7941d065b37820d4c83b7
5
5
  SHA512:
6
- metadata.gz: 579e33a4591aed9c226d2f821f61106ac3c592ef82b0b2a6a611f6d5f5e9bb867ecfe5d2711c87e8b8b412705454c685a087d8456aceafa99c1535f7903b4915
7
- data.tar.gz: 4c2e49c187c07be7bbf260fce38d84f2f6a25220fcd5711de7778639d2e7f58cd687cfed5177fd647ea23d03bb6b3f931e345ba7af2f206073ef1f099fdb271a
6
+ metadata.gz: 2863324da0f6b4603426e8070b7aaeb0b842a642285e206928ef6f3f4677c6d6a1fa484eadc6b34c97a275abe301bd062d5b57c66e77c7de6058506a1656174d
7
+ data.tar.gz: 9d15b36e87d3f36f27965a6b81b3c821b41f75f373b2815cd9c2d5d4e82edc9d8930420128cbca4d984b5e9abaac4172d994bd5e9d6bb9865ee8b4b6fe6fa0fe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- codebreaker_karolina (0.1.1)
4
+ codebreaker_karolina (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module CodebreakerKarolina
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
data/lib/modules/game.rb CHANGED
@@ -35,7 +35,7 @@ module CodebreakerKarolina
35
35
  return unless hints_left?
36
36
 
37
37
  @user.used_hints += 1
38
- @hint.shuffle.pop
38
+ @hint.shuffle!.pop
39
39
  end
40
40
 
41
41
  private
data/lib/modules/user.rb CHANGED
@@ -1,15 +1,13 @@
1
1
  class User
2
2
  attr_accessor :used_attempts, :used_hints
3
+ attr_reader :name
3
4
 
4
- def initialize
5
- @used_attempts = 0
6
- @used_hints = 0
7
- end
8
-
9
- def name(name)
5
+ def initialize(name)
10
6
  return unless valid?(name)
11
7
 
12
8
  @name = name
9
+ @used_attempts = 0
10
+ @used_hints = 0
13
11
  end
14
12
 
15
13
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebreaker_karolina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - drkarolina
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-07 00:00:00.000000000 Z
11
+ date: 2022-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fasterer
@@ -124,6 +124,9 @@ files:
124
124
  - Rakefile
125
125
  - bin/console
126
126
  - bin/setup
127
+ - codebreaker_karolina-0.1.0.gem
128
+ - codebreaker_karolina-0.1.1.gem
129
+ - codebreaker_karolina-0.1.2.gem
127
130
  - lib/codebreaker_karolina.rb
128
131
  - lib/codebreaker_karolina/version.rb
129
132
  - lib/constants.rb