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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 429e9eeeffb945a1a475dd46b905218bb37957949f546dbe397340cd676126ec
4
- data.tar.gz: ba6ce92d393d67ba66454f8d15d9f7f7aaf2ca652be94480c8e7770198357a3d
3
+ metadata.gz: 56de715e78ed6183d24009f05ba8c1e87c5d7d293c1536946b056f65f848ba55
4
+ data.tar.gz: d3b273a52c6960cad1cea55425942b3548d947df93abee5321bee1e63506fb67
5
5
  SHA512:
6
- metadata.gz: 34139f9cb7e87b8f7a55fad1ffea779dfcf17a1c4575e2f59d49e50c4930691886a3853fe4ed9c408c60740b28fcde5ce347b358d9919c1a8e5faf1a94d37dbb
7
- data.tar.gz: ae9df3f15afc81b8b4c239d2f0d18ee5c77bc293327aae8c1cee44dad98948a6abde97c498df83b3a3d0a29a44c015e25f5c88969425d345e21516911018eb00
6
+ metadata.gz: b7c2f52e5fca256c6adf6589b561bf7239ade63fb57198a9257d390b9c1866b325baa748cdb6c7f5c9ba1e8ad34dda7022819b7ba8e9cad26cd3c565616f5a27
7
+ data.tar.gz: fc50c1770c0679eecd19b2e0367afd51a43fb4d02e5fe808849d4ba6e694e27bcc91046c4a4fef94637ca2721ab8ce164e66f1b8db2f18d9f42dcbb19a6ee877
@@ -58,25 +58,21 @@ module Toji
58
58
  end
59
59
 
60
60
  def koji_event_groups
61
- koji_events.group_by{|event|
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.group_by{|event|
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Toji
2
- VERSION = "2.7.0"
2
+ VERSION = "2.7.1"
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.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshida Tetsuya