codebreaker-mikhail 0.2.0 → 0.2.2

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: 33371601599f7947de47dffc470f4149670bbb01ff104dd298d3d899e5a2c3b1
4
- data.tar.gz: 33ddf02486b9bab5f2168965bff2e1cb575c67e2ab6a844a4f5515fbb7dd7153
3
+ metadata.gz: d51b04a1f96d714a3d86a20812a2fefd9137eb91f44eee2be8fc9e5728d136ff
4
+ data.tar.gz: f22cbd50df397d3b9df8bc0cee9cc91959f084430ebc4879dfac33c252770fea
5
5
  SHA512:
6
- metadata.gz: 030cd63a65db415c6c8f93c439f2400c2285ddd74102f0fc650b1882272393783d361cb449a677defa2f1b790b7072fc40e68ccf4ed2884a05dc3cf4c0b83906
7
- data.tar.gz: ff5ad7439f814845c9b3e74a44e54d9315459b2d1971aaf7de19ae599d4c312b8687668068596fb8652085ded69407f7fec781ec69d7a82fad876d98a5971c02
6
+ metadata.gz: 783615a4c6d9132508b29d1ec12db9331f177e4ed0b55bbc1fbb00018a351e0aecf651cf20c4b726d3ba96a55ffa73adbf1f1c83b089d4d7ea11fec648d6c590
7
+ data.tar.gz: d4d72b31e6ed7c2ec77df839a5374fd04781add6e0c5282761d7ed3633a399cee7a993a13cee51db7e3a43217466e258d0a289960f41cd0a3d939bd406969e86
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- codebreaker-mikhail (0.2.0)
4
+ codebreaker-mikhail (0.2.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,4 +1,5 @@
1
1
  require "yaml"
2
+ require 'fileutils'
2
3
  require_relative "version"
3
4
  require_relative "game_const"
4
5
  require_relative "matrix"
@@ -10,3 +11,4 @@ require_relative "code_generator"
10
11
  require_relative "user"
11
12
  require_relative "file_store"
12
13
  require_relative "game"
14
+ require_relative "stats"
@@ -17,9 +17,9 @@ module Codebreaker
17
17
  (YAML.load_file(storage_path) || {})[:codebrakers] || []
18
18
  end
19
19
 
20
- def statistics
21
- load_file.each.sort_by { |game| [game[:attempts], game[:used_hints], game[:used_attempts]] }
22
- end
20
+ # def statistics
21
+ # load_file.each.sort_by { |game| [game[:attempts], game[:used_hints], game[:used_attempts]] }
22
+ # end
23
23
 
24
24
  def self.statistics
25
25
  load_file.each.sort_by { |game| [game[:attempts], game[:used_hints], game[:used_attempts]] }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Codebreaker
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebreaker-mikhail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Bogun