toji 2.11.0 → 2.12.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: d35d2be82d441922dc77bc8a65ee7fc394a5648ec3ab41ede65f4ee38d937b52
4
- data.tar.gz: de06a4db879120fb1fe29d82ffd7ab21588b550fdb6311c64cd5df12cbd69b5e
3
+ metadata.gz: 744742984a090791f3bab2af0b72cee548d91068a6bf0286486e0c2ae9a3310b
4
+ data.tar.gz: 326834726a6514b380999f8dcaca1f83c59e4995db6eb6a243a4db38d36208a6
5
5
  SHA512:
6
- metadata.gz: 3a53215b220614c575a62e3a4d72db29dd8aa8f4ee84828cddd61c9899f9be57980fee68d4526f1233ec0ccf4545595e75757b7845ad49d938aaf166fd7cccf4
7
- data.tar.gz: 2eabc77f232bf25817bf7befbd41a15f991e1083b2d833cd56f4961fbecc774819d9d769c5227aebe15c1fd9d02c4a4343e7c5403acb2151aa200424e1e4c2ff
6
+ metadata.gz: 52837a74d33edda2f1d53e5c73a89b2f02b9e7cc5ec815d861b271861f325726b02dca03f4622aed61c86e21dd3bcb64423a9d1b1febe45556c8505ce878b0b2
7
+ data.tar.gz: 2a90d7043581629693beafe074c991b983977d97ad86f9ff8e7e356372680691f4aa0a793c0a59ac786ea0523370d0ed4fe0f9491a934711ce4c0518f84a67a1
@@ -6,8 +6,8 @@ module Toji
6
6
  include Base
7
7
 
8
8
  attr_reader :rice_type
9
- attr_reader :group_index
10
- attr_reader :indexes
9
+ attr_reader :index
10
+ attr_reader :step_indexes
11
11
 
12
12
  attr_reader :raw
13
13
  attr_reader :soaked
@@ -2,11 +2,11 @@ module Toji
2
2
  module Product
3
3
  module EventFactory
4
4
 
5
- def create_koji_event(date:, group_index:, indexes:, raw:)
5
+ def create_koji_event(date:, index:, step_indexes:, raw:)
6
6
  raise Error, "implement required: create_koji_event"
7
7
  end
8
8
 
9
- def create_kake_event(date:, group_index:, indexes:, raw:)
9
+ def create_kake_event(date:, index:, step_indexes:, raw:)
10
10
  raise Error, "implement required: create_kake_event"
11
11
  end
12
12
 
@@ -28,8 +28,8 @@ module Toji
28
28
  }.map {|date,events|
29
29
  create_koji_event(
30
30
  date: date,
31
- group_index: koji_dates.find_index(date),
32
- indexes: events.map{|ev| ev[:index]},
31
+ index: koji_dates.find_index(date),
32
+ step_indexes: events.map{|ev| ev[:index]},
33
33
  raw: events.map{|ev| ev[:weight]}.sum,
34
34
  )
35
35
  }
@@ -49,8 +49,8 @@ module Toji
49
49
  }.map {|date,events|
50
50
  create_kake_event(
51
51
  date: date,
52
- group_index: kake_dates.find_index(date),
53
- indexes: events.map{|ev| ev[:index]},
52
+ index: kake_dates.find_index(date),
53
+ step_indexes: events.map{|ev| ev[:index]},
54
54
  raw: events.map{|ev| ev[:weight]}.sum,
55
55
  )
56
56
  }
@@ -1,3 +1,3 @@
1
1
  module Toji
2
- VERSION = "2.11.0"
2
+ VERSION = "2.12.0"
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.11.0
4
+ version: 2.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshida Tetsuya