toji 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/toji/product.rb +6 -10
- data/lib/toji/recipe.rb +6 -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: 56de715e78ed6183d24009f05ba8c1e87c5d7d293c1536946b056f65f848ba55
|
4
|
+
data.tar.gz: d3b273a52c6960cad1cea55425942b3548d947df93abee5321bee1e63506fb67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7c2f52e5fca256c6adf6589b561bf7239ade63fb57198a9257d390b9c1866b325baa748cdb6c7f5c9ba1e8ad34dda7022819b7ba8e9cad26cd3c565616f5a27
|
7
|
+
data.tar.gz: fc50c1770c0679eecd19b2e0367afd51a43fb4d02e5fe808849d4ba6e694e27bcc91046c4a4fef94637ca2721ab8ce164e66f1b8db2f18d9f42dcbb19a6ee877
|
data/lib/toji/product.rb
CHANGED
@@ -58,25 +58,21 @@ module Toji
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def koji_event_groups
|
61
|
-
koji_events.
|
61
|
+
koji_events.select{|event|
|
62
|
+
0<event.weight
|
63
|
+
}.group_by{|event|
|
62
64
|
event.group_key
|
63
65
|
}.map {|group_key,events|
|
64
|
-
events.select{|event| 0<event.weight}
|
65
|
-
}.select {|events|
|
66
|
-
0<events.length
|
67
|
-
}.map {|events|
|
68
66
|
RiceEventGroup.new(events)
|
69
67
|
}
|
70
68
|
end
|
71
69
|
|
72
70
|
def kake_event_groups
|
73
|
-
kake_events.
|
71
|
+
kake_events.select{|event|
|
72
|
+
0<event.weight
|
73
|
+
}.group_by{|event|
|
74
74
|
event.group_key
|
75
75
|
}.map {|group_key,events|
|
76
|
-
events.select{|event| 0<event.weight}
|
77
|
-
}.select {|events|
|
78
|
-
0<events.length
|
79
|
-
}.map {|events|
|
80
76
|
RiceEventGroup.new(events)
|
81
77
|
}
|
82
78
|
end
|
data/lib/toji/recipe.rb
CHANGED
@@ -4,6 +4,8 @@ require 'toji/recipe/ab_expect'
|
|
4
4
|
module Toji
|
5
5
|
module Recipe
|
6
6
|
attr_accessor :steps
|
7
|
+
attr_accessor :has_shubo
|
8
|
+
attr_accessor :has_moromi
|
7
9
|
attr_accessor :ab_coef
|
8
10
|
attr_accessor :ab_expects
|
9
11
|
attr_accessor :squeeze_interval_days
|
@@ -16,6 +18,8 @@ module Toji
|
|
16
18
|
|
17
19
|
self.class.new.tap {|o|
|
18
20
|
o.steps = new_steps
|
21
|
+
o.has_shubo = has_shubo
|
22
|
+
o.has_moromi = has_moromi
|
19
23
|
o.ab_coef = ab_coef
|
20
24
|
o.ab_expects = ab_expects.deep_dup
|
21
25
|
o.squeeze_interval_days = squeeze_interval_days
|
@@ -29,6 +33,8 @@ module Toji
|
|
29
33
|
|
30
34
|
self.class.new.tap {|o|
|
31
35
|
o.steps = new_steps
|
36
|
+
o.has_shubo = has_shubo
|
37
|
+
o.has_moromi = has_moromi
|
32
38
|
o.ab_coef = ab_coef
|
33
39
|
o.ab_expects = ab_expects.deep_dup
|
34
40
|
o.squeeze_interval_days = squeeze_interval_days
|
data/lib/toji/version.rb
CHANGED