codebreaker-mikhail 0.2.0 → 0.2.1

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: a9d518c9c4d75335e173c2014df00e54d059365f7cda7a222f8747a85ee5be47
4
+ data.tar.gz: 2f9dd4b81e36c2a7502e5f92078251b71cddfea5bbb337e77684474095e15960
5
5
  SHA512:
6
- metadata.gz: 030cd63a65db415c6c8f93c439f2400c2285ddd74102f0fc650b1882272393783d361cb449a677defa2f1b790b7072fc40e68ccf4ed2884a05dc3cf4c0b83906
7
- data.tar.gz: ff5ad7439f814845c9b3e74a44e54d9315459b2d1971aaf7de19ae599d4c312b8687668068596fb8652085ded69407f7fec781ec69d7a82fad876d98a5971c02
6
+ metadata.gz: b9722de784ab7d293f7e53c7270356f8324ad0addb140d699dee1593ac72349f6f92044fdae795c0dda40b963f54b7429aa488548634f5e1b2a9b243de0594df
7
+ data.tar.gz: d4438da1f860eed1a82fc64ad94f8003cc9439cb126106247e14d87091508d8e76acdb7204c4df9c17d111620ea2fce02399bbb1955934e7e26e09165851cb18
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.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -10,3 +10,4 @@ require_relative "code_generator"
10
10
  require_relative "user"
11
11
  require_relative "file_store"
12
12
  require_relative "game"
13
+ 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.1"
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Bogun