toji 1.6.5 → 1.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/toji/recipe/step.rb +11 -0
- data/lib/toji/recipe/three_step_mashing.rb +11 -1
- data/lib/toji/schedule/product.rb +10 -0
- data/lib/toji/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a988802371162370669a50350ab7878a88e76366f2d9f32401dcb3a06fadf4e
|
4
|
+
data.tar.gz: b8300b0795e0eee8055765301a165a191fd334736ec0d19f76278dc4cb1262b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 312348c96281f8576e078446c76044855d45c02ad7165691d817c0958f83539e9c8d03f0bf2d1a7eb882e890e0e575ae041370e0c8ce594546bc308016b18640
|
7
|
+
data.tar.gz: 85a29ffef5ef2055102890a74509e38ffd090a5ea5336adeb3710c74f69ad4ffaeaa8271f7c88b194239d279087d72ad52b321bccbeac9ca6366ddf71bee4004
|
data/lib/toji/recipe/step.rb
CHANGED
@@ -70,7 +70,7 @@ module Toji
|
|
70
70
|
#
|
71
71
|
# 出典: 酒造教本 P96
|
72
72
|
def shubo_rate
|
73
|
-
cumulative_shubo_rates.last
|
73
|
+
cumulative_shubo_rates.last || 0.0
|
74
74
|
end
|
75
75
|
|
76
76
|
# 白米比率
|
@@ -87,6 +87,16 @@ module Toji
|
|
87
87
|
}
|
88
88
|
end
|
89
89
|
|
90
|
+
def to_h
|
91
|
+
{
|
92
|
+
steps: steps.map(&:to_h),
|
93
|
+
cumulative_rice_totals: cumulative_rice_totals,
|
94
|
+
cumulative_shubo_rates: cumulative_shubo_rates,
|
95
|
+
shubo_rate: shubo_rate,
|
96
|
+
rice_rates: rice_rates,
|
97
|
+
}
|
98
|
+
end
|
99
|
+
|
90
100
|
def table_data
|
91
101
|
headers = [""] + @steps.map(&:name) + [:total]
|
92
102
|
keys = [:rice_total, :rice, :koji, :alcohol, :water, :lactic_acid]
|
data/lib/toji/version.rb
CHANGED