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 +4 -4
- data/lib/toji/event/rice_event.rb +2 -2
- data/lib/toji/product/event_factory.rb +6 -6
- 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: 744742984a090791f3bab2af0b72cee548d91068a6bf0286486e0c2ae9a3310b
|
4
|
+
data.tar.gz: 326834726a6514b380999f8dcaca1f83c59e4995db6eb6a243a4db38d36208a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52837a74d33edda2f1d53e5c73a89b2f02b9e7cc5ec815d861b271861f325726b02dca03f4622aed61c86e21dd3bcb64423a9d1b1febe45556c8505ce878b0b2
|
7
|
+
data.tar.gz: 2a90d7043581629693beafe074c991b983977d97ad86f9ff8e7e356372680691f4aa0a793c0a59ac786ea0523370d0ed4fe0f9491a934711ce4c0518f84a67a1
|
@@ -2,11 +2,11 @@ module Toji
|
|
2
2
|
module Product
|
3
3
|
module EventFactory
|
4
4
|
|
5
|
-
def create_koji_event(date:,
|
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:,
|
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
|
-
|
32
|
-
|
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
|
-
|
53
|
-
|
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
|
}
|
data/lib/toji/version.rb
CHANGED