toji 2.4.0 → 2.4.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: fb5e686c2915d1ed44e16fbe3ce58eb232c7ae5d0710c7c8fbc5c924cc4524f7
4
- data.tar.gz: ca2702441c730f3586be75b300aa1ec07720a88c02f8be76cf88680000ddc2c5
3
+ metadata.gz: 913d49d53fa4cd879ce28a4fe4961edccdc8217c1357712666d1a803c16e89a6
4
+ data.tar.gz: 51eb32477e501ed38527a8cb55ac752d037cb31a10f2eddc706b4dafe8c26d3a
5
5
  SHA512:
6
- metadata.gz: e0b8df9e1c731727b2ef95aed906e04dbc90f584f57d640d1cf509e4ffd4688a73e94e11fd8b24b4b014dba47da6a8f717babe534d2bdb275e171326cb937e13
7
- data.tar.gz: 2dc73ccb8bf508bcc7bf61e04fd750b001f58466d127c5ac828664bced4ceb009f2bbc85c777dbf7d78a4e34d20d8d4e8961358dc136e132bce6729cc8a3404e
6
+ metadata.gz: 7332c31932db265a7d38e21336c2ad0b7993752de274661874485db5da66c4c03a32cd6b26001b6c33e91c574a5c85f685f97cfbf552f7f59f8d8b40d2fa5bd8
7
+ data.tar.gz: bbaae3eb542de0b7458562126ef9b27ccc8805a588327ddbee1150ab572797945b109bc5ed0d4b39ac5384f5f275c4820d9dd5d00b93354f5038f87fcb9607b4
@@ -69,15 +69,15 @@ module Toji
69
69
  end
70
70
 
71
71
  def table_data
72
- headers = [""] + @steps.map(&:name) + [:total]
72
+ headers = [""] + steps.map(&:name) + [:total]
73
73
  keys = [:rice_total, :kake, :koji, :alcohol, :water, :lactic_acid]
74
74
 
75
75
  cells = [keys]
76
- cells += @steps.map {|step|
76
+ cells += steps.map {|step|
77
77
  [step.rice_total, step.kake, step.koji, step.alcohol, step.water, step.lactic_acid]
78
78
  }
79
79
  cells << keys.map {|key|
80
- @steps.map(&key).compact.sum
80
+ steps.map(&key).compact.sum
81
81
  }
82
82
 
83
83
  cells = cells.map {|cell|
@@ -1,3 +1,3 @@
1
1
  module Toji
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toji
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshida Tetsuya