codebreaker-rg-te 0.1.28 → 0.1.29

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9fd925785711bb5a899a960d80654edfe94e60d1011e1c1fd4cba1714ecafa5
4
- data.tar.gz: 432979831e155bf16ebed36ff546efbaf3a7b45316520537453481f661377e5b
3
+ metadata.gz: 7c27b2af05d7910ef7d1ee2e91d1027e53ce79f8449f685f4c792261ddb9b234
4
+ data.tar.gz: 92885a0a0caf91ce47c627d9ec6c6928a602ccd514fcfb5085e281ff7202a190
5
5
  SHA512:
6
- metadata.gz: c546b4e775a75e311354fbbbbc435b910dac844245795dfb1b3454c58e879ab7caad888457fb2e2cc94a677cce67785fbe32771e8b820a814e5dbf0b865a91f6
7
- data.tar.gz: d134c28b487887148b69d30cc1c059ca904b7182c5e8c5aafc58b6dfd37ac766c8b0269c44b0e3c92d87389268aa865a403f859e9a1981366c0c27ca800a4d7a
6
+ metadata.gz: e0d52506565494a21b7c45683f6b9ed991f1eada9c832fe432af86aaa46ce59e02eeacba103997d29beb69d8a81b13fca95b97f472942f244d75356f48b51dd9
7
+ data.tar.gz: e90025d471424086276ff7dde3ebfe14fab3274edfdf1bd21c3191618f601cb6be38082f0718e7a31497614608830c1ce7543035f88ea05d413d70f3b514bae8
@@ -0,0 +1,25 @@
1
+ ---
2
+ - :name: Player1
3
+ :level: easy
4
+ :level_num: 0
5
+ :attempts: 28
6
+ :attempts_used: 2
7
+ :hints: 3
8
+ :hints_used: 0
9
+ :game_date: 2019/01/27 12:55:55
10
+ - :name: Player2
11
+ :level: easy
12
+ :level_num: 0
13
+ :attempts: 28
14
+ :attempts_used: 2
15
+ :hints: 2
16
+ :hints_used: 1
17
+ :game_date: 2019/01/27 20:29:39
18
+ - :name: Player3
19
+ :level: hard
20
+ :level_num: 2
21
+ :attempts: 8
22
+ :attempts_used: 2
23
+ :hints: 0
24
+ :hints_used: 1
25
+ :game_date: 2019/01/27 20:30:07
@@ -1,7 +1,9 @@
1
1
  module Codebreaker
2
2
  class Statistics
3
- def initialize
4
- @storage = StorageInterceptor.new
3
+ DEFAULT_PATH_TO_FILE = "./lib/codebreaker/data/stat.yml".freeze
4
+
5
+ def initialize(path_to_file = DEFAULT_PATH_TO_FILE)
6
+ @storage = StorageInterceptor.new(path_to_file)
5
7
  end
6
8
 
7
9
  def stats
@@ -1,6 +1,6 @@
1
1
  module Codebreaker
2
2
  class StorageInterceptor
3
- DEFAULT_PATH_TO_FILE = './lib/codebreaker/data/stat.yml'.freeze
3
+ DEFAULT_PATH_TO_FILE = "./lib/codebreaker/data/stat.yml".freeze
4
4
 
5
5
  def initialize(path_to_file = DEFAULT_PATH_TO_FILE)
6
6
  @path_to_file = path_to_file.empty? ? DEFAULT_PATH_TO_FILE : path_to_file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebreaker-rg-te
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Tereschenko
@@ -133,6 +133,7 @@ files:
133
133
  - lib/codebreaker/autoload.rb
134
134
  - lib/codebreaker/console.rb
135
135
  - lib/codebreaker/data/help.yml
136
+ - lib/codebreaker/data/stat.yml
136
137
  - lib/codebreaker/game.rb
137
138
  - lib/codebreaker/localization.rb
138
139
  - lib/codebreaker/statistics.rb