codebreaker_karolina 0.1.3 → 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: 84a47effeddafeda4411b08602e9a8de2cc07d16b3b43e480d79546bc951d470
4
- data.tar.gz: 2c9e78284baf9500f39059eb7512aa0e5ce28f9cbca28bb3567a688e47b8a121
3
+ metadata.gz: 1276ade3c40cf26100044dfbf9666471ea8572c0392bd77876c1d0c05f495097
4
+ data.tar.gz: 4d5962dc8c4751e4d09998f06cb2ea6fbbeef06273c7941d065b37820d4c83b7
5
5
  SHA512:
6
- metadata.gz: f483622d39b4a960722381a7ee15ea6288f5b2081f0802fb32854cb432405db7ca74ac6842bb7395f632f8e3ccf31238f3efc299c2360992f92288bc28ca6083
7
- data.tar.gz: e0d53cd64f77705bbf7dbba7c620cf046ae79c6d1e77db747469dea6a246610f7116e3f555996e5c234bf229e52bb3e67b295d32972ae5916bf51137dd44e738
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.3)
4
+ codebreaker_karolina (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module CodebreakerKarolina
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebreaker_karolina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - drkarolina