toji 2.19.0 → 2.20.0

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: 88279093d88d3203f07d8279fe7efdafaa9d5e27842dafb1b9d5d49bf1e97256
4
- data.tar.gz: 5c92d934a4ef3ab0f361307ae4453af27943cc19beb4ee4dde506cdce9c37d2e
3
+ metadata.gz: 7a6e1a509c1fdf68216659098e2084cf5754844178417aa8ecb0fb803e2a1b19
4
+ data.tar.gz: d51550d76a45b2e21d9530608820d76a5805638445b7a07f9350055874a58df5
5
5
  SHA512:
6
- metadata.gz: 3ca63ae60e1627d2b7ac8a78adab6170eaa32cf328911c8cf97593ac62dd2cc9d90b098bf1514b755bdc8a4dffdab3c9e21e0c8a669de0d5a77656561a00c1bf
7
- data.tar.gz: dc0a67b638aa444a65cc45a414653e7344cc3082a32f10bdaafaabe007161b15a3987634c2886ccd7cd0f99e7c71b7c55a86ae3423724f6a0aca2147a12e6228
6
+ metadata.gz: 010b97ab4c669bbe741ae0c10248967fff8f5c7b484171397f491bf91d7e073e17e6e06e074d69ff188039dd41948daae0234f9592163f4bd06c35ccd0689538
7
+ data.tar.gz: 3f8d0b3306a50784df5c8eda013bcf8cd049cd5592f8c38285fa20a5e1662ee511defb82ca37befb127fdc41553483d9db653a6b256733e9cdb1acd18fc72177
@@ -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
@@ -7,7 +7,7 @@ module Toji
7
7
  # @dynamic weight
8
8
 
9
9
  def group_key
10
- ""
10
+ [].join(":")
11
11
  end
12
12
  end
13
13
  end
@@ -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
@@ -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
@@ -7,7 +7,7 @@ module Toji
7
7
  # @dynamic weight
8
8
 
9
9
  def group_key
10
- ""
10
+ [].join(":")
11
11
  end
12
12
  end
13
13
  end
@@ -52,6 +52,9 @@ module Toji
52
52
 
53
53
  # Product.base_dateからの日数差
54
54
  # @dynamic interval_days
55
+
56
+ # グループ識別子
57
+ # @dynamic process_group
55
58
  end
56
59
  end
57
60
  end
@@ -1,3 +1,3 @@
1
1
  module Toji
2
- VERSION = "2.19.0"
2
+ VERSION = "2.20.0"
3
3
  end
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.19.0
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-02 00:00:00.000000000 Z
11
+ date: 2021-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport