new_super_codebreaker_2021 0.4.2 → 0.4.3

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: dd7869a4d751d84d0a042d1cd3952bab0d885810a52108988056d7e060064fca
4
- data.tar.gz: f352eda0a33895d65c847f80f4f393382a48eebfac47a218dfb713b9f763248b
3
+ metadata.gz: b01bc7a275dbe137e6879ba102273580840d82b6073f218b69777734569d1fa2
4
+ data.tar.gz: a2fad34a1922ca14d468330854af5a8e77502648a69976871fdc97dc3ef0af71
5
5
  SHA512:
6
- metadata.gz: 6504ce6e5d9162e084b055deb28710aaf73b7433eb0f0e58ba543ac219e3e22c8154ad6e4604e14955c70cc7ab58c5988b27095cf7e8cdcbef2fe590eef39958
7
- data.tar.gz: 96bd8fb3d4797bd36ac5ba4e735a7a8741a165fa046db94cc9ab9ac5231364eef1a2d857d35c31c317afe4fbcb027962ef99653559c02bb4232eb488ae21b7f9
6
+ metadata.gz: 1d7119bb3c56e309023745790971210f91f86413d959499b102991f9124679392a89fb372acaca64c61bf3095f674a355e50ae6372b627427d486487fdd030b1
7
+ data.tar.gz: 962f3f97f315a8b754cfb8f2c7288550563b8caa88eae34e7d59f6f6e038f738663f335042cda618524387286b68ef1fb07522e946f7d178440feadba886e228
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NewSuperCodebreaker2021
4
- VERSION = '0.4.2'
4
+ VERSION = '0.4.3'
5
5
  end
data/lib/show_content.rb CHANGED
@@ -9,8 +9,7 @@ module ShowContent
9
9
 
10
10
  def show_stats(file)
11
11
  data = YAML.load_file(file) || []
12
- data.sort_by(&:hints_used).sort_by(&:attempts_used).sort_by { |game| -game.difficulty }
13
- create_table(data)
12
+ create_table(data.sort_by(&:hints_used).sort_by(&:attempts_used).sort_by { |game| -game.difficulty })
14
13
  rescue Errno::ENOENT
15
14
  []
16
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: new_super_codebreaker_2021
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nazar Dakhno