codebreaker-mikhail 0.1.5 → 0.2.0

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: e9b27a05a66bf88a3742fbed5449b6ffaa97a936aad50129b28315d07d786768
4
- data.tar.gz: b9445642ebeb0c9e13c3ccf457c9053368450c2ed91f6e9451137730df3abcef
3
+ metadata.gz: 33371601599f7947de47dffc470f4149670bbb01ff104dd298d3d899e5a2c3b1
4
+ data.tar.gz: 33ddf02486b9bab5f2168965bff2e1cb575c67e2ab6a844a4f5515fbb7dd7153
5
5
  SHA512:
6
- metadata.gz: 5bad0188d94baae33335f95670c18aaca6a1b5886926574c5ad76c6a3361a4e044d6f1a6b8cf954fe628993d9ee884dc2dcf6243d99660ae551d61f89f4ea2ea
7
- data.tar.gz: 643d8387d3e929b37787e2c779925328edce4146ca9b3ce5aaf3d8a38189a853a5c31fa670cf7b398c5a649af3196956aaa5d8ecd1fd935f28685eb96ee4ff37
6
+ metadata.gz: 030cd63a65db415c6c8f93c439f2400c2285ddd74102f0fc650b1882272393783d361cb449a677defa2f1b790b7072fc40e68ccf4ed2884a05dc3cf4c0b83906
7
+ data.tar.gz: ff5ad7439f814845c9b3e74a44e54d9315459b2d1971aaf7de19ae599d4c312b8687668068596fb8652085ded69407f7fec781ec69d7a82fad876d98a5971c02
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- codebreaker-mikhail (0.1.4)
4
+ codebreaker-mikhail (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Codebreaker
4
- module FileStore
4
+ module FileStore
5
5
  FILE_DIRECTORY = "statistics"
6
6
  FILE_NAME = "statistics.yml"
7
7
 
@@ -20,6 +20,10 @@ module Codebreaker
20
20
  def statistics
21
21
  load_file.each.sort_by { |game| [game[:attempts], game[:used_hints], game[:used_attempts]] }
22
22
  end
23
+
24
+ def self.statistics
25
+ load_file.each.sort_by { |game| [game[:attempts], game[:used_hints], game[:used_attempts]] }
26
+ end
23
27
 
24
28
  private
25
29
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Codebreaker
4
- VERSION = "0.1.5"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebreaker-mikhail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Bogun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-07 00:00:00.000000000 Z
11
+ date: 2022-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler