toji 2.19.0 → 2.20.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 +4 -4
- data/example/example_core.rb +2 -0
- data/lib/toji/ingredient/alcohol.rb +1 -1
- data/lib/toji/ingredient/kake.rb +1 -1
- data/lib/toji/ingredient/koji.rb +1 -1
- data/lib/toji/ingredient/lactic_acid.rb +1 -1
- data/lib/toji/ingredient/rice.rb +3 -0
- data/lib/toji/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a6e1a509c1fdf68216659098e2084cf5754844178417aa8ecb0fb803e2a1b19
|
4
|
+
data.tar.gz: d51550d76a45b2e21d9530608820d76a5805638445b7a07f9350055874a58df5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 010b97ab4c669bbe741ae0c10248967fff8f5c7b484171397f491bf91d7e073e17e6e06e074d69ff188039dd41948daae0234f9592163f4bd06c35ccd0689538
|
7
|
+
data.tar.gz: 3f8d0b3306a50784df5c8eda013bcf8cd049cd5592f8c38285fa20a5e1662ee511defb82ca37befb127fdc41553483d9db653a6b256733e9cdb1acd18fc72177
|
data/example/example_core.rb
CHANGED
@@ -134,6 +134,7 @@ module Example
|
|
134
134
|
attr_reader :tanekojis
|
135
135
|
attr_reader :dekoji_ratio
|
136
136
|
attr_reader :interval_days
|
137
|
+
attr_reader :process_group
|
137
138
|
|
138
139
|
def initialize(weight:, brand:, polishing_ratio:, made_in:, year:, soaking_ratio:, steaming_ratio:, cooling_ratio:, tanekojis:, dekoji_ratio:, interval_days:)
|
139
140
|
@weight = weight
|
@@ -203,6 +204,7 @@ module Example
|
|
203
204
|
attr_reader :steaming_ratio
|
204
205
|
attr_reader :cooling_ratio
|
205
206
|
attr_reader :interval_days
|
207
|
+
attr_reader :process_group
|
206
208
|
|
207
209
|
def initialize(weight:, brand:, polishing_ratio:, made_in:, year:, soaking_ratio:, steaming_ratio:, cooling_ratio:, interval_days:)
|
208
210
|
@weight = weight
|
data/lib/toji/ingredient/kake.rb
CHANGED
@@ -4,7 +4,7 @@ module Toji
|
|
4
4
|
include Rice
|
5
5
|
|
6
6
|
def group_key
|
7
|
-
[brand, polishing_ratio, made_in, year, soaking_ratio, steaming_ratio, cooling_ratio].join(":")
|
7
|
+
[brand, polishing_ratio, made_in, year, soaking_ratio, steaming_ratio, cooling_ratio, process_group].join(":")
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
data/lib/toji/ingredient/koji.rb
CHANGED
@@ -19,7 +19,7 @@ module Toji
|
|
19
19
|
|
20
20
|
# Scheduleへのグループ識別子
|
21
21
|
def group_key
|
22
|
-
keys1 = [brand, polishing_ratio, made_in, year, soaking_ratio, steaming_ratio, cooling_ratio, dekoji_ratio]
|
22
|
+
keys1 = [brand, polishing_ratio, made_in, year, soaking_ratio, steaming_ratio, cooling_ratio, dekoji_ratio, process_group]
|
23
23
|
keys2 = tanekojis&.map(&:group_key)&.sort || []
|
24
24
|
(keys1 + keys2).join(":")
|
25
25
|
end
|
data/lib/toji/ingredient/rice.rb
CHANGED
data/lib/toji/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toji
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshida Tetsuya
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|