codebreaker_PI 0.6.5 → 6.6.6

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: 4810214ae09c5898e8f02edea9eaa87f664d542f87e403870268c004fbf0f0a0
4
- data.tar.gz: 7d29c80cd56cf4937a037a62b6f5f9a233abbfb07f71557cb63509ae1b67614a
3
+ metadata.gz: 8820467d90dd2779aaf73586afefa3fe34e8b7f8065db0bf01b6e3c795086040
4
+ data.tar.gz: '0910bb7672b011d6324d3518db79b9f334989c4fd96ec64d0dd692a6d8c4c873'
5
5
  SHA512:
6
- metadata.gz: 38629beb71be0b8b21dd2b43629b7bd570f632fd0d88dcc0d2ffbd884236c130c8a6c62e8dddd6c37158fb2ffe16f0c9bd2b6c3c4384a44a62f9cd57860f6681
7
- data.tar.gz: 66023a41dbf23c6510fd72e223f00a21f06682801052147ca6aed568461d865593ae946f3f598d7e986d173f0cb377ee3b67371bd97d99bfd7e2a9b739e51db3
6
+ metadata.gz: 20bbb3a810ca392ab0085be59e5697b0f8cbf5fd1730de28cc426bb074fbff40bc4371957097ca14ce4334c6a161676fc4c07a2e0dc382ba129e881296a9e29c
7
+ data.tar.gz: 4b58c4dc3c80e47e0ae65b7061e7031c5bf5f63bb38dcbd6526398c4011dd3ed2afbec90300f054654fec5cf799bf40024c256bf4cc2b150d12ef98cd57c5805
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- codebreaker_PI (0.6.5)
4
+ codebreaker_PI (6.6.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module Codebreaker
2
- VERSION = "0.6.5"
2
+ VERSION = "6.6.6"
3
3
  end
@@ -2,6 +2,16 @@ module Codebreaker
2
2
  class Statistics
3
3
  include Database
4
4
 
5
+ COLUMN_NUMBERS = {
6
+ name: 0,
7
+ level: 1,
8
+ attempts_left: 2,
9
+ attempts_total: 3,
10
+ have_left: 4,
11
+ hints_total: 5,
12
+ date: 6
13
+ }.freeze
14
+
5
15
  def winners(base)
6
16
  data = multi_sort(base)
7
17
  to_table(data)
@@ -15,10 +25,10 @@ module Codebreaker
15
25
  row = []
16
26
  row << i.name
17
27
  row << i.difficulty
18
- row << i.attempts_total
19
28
  row << i.attempts_left
20
- row << i.hints_total
29
+ row << i.attempts_total
21
30
  row << i.have_hints
31
+ row << i.hints_total
22
32
  row << i.date
23
33
  rows << row
24
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebreaker_PI
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 6.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Pauls