toji 2.30.0 → 2.31.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: 57404bb32e7a5ffe514396fcf39b48288ccb54b2a25b44acdf0dc06df5b46ece
4
- data.tar.gz: 34d5dc287e97a6a85c465fb8a47405890c7d2f17d855e37e73194460b66eb45c
3
+ metadata.gz: 2bf9d8505abcc7682462299d3afcc7d9229d9b7e82c34296117b89756caae93a
4
+ data.tar.gz: e4da7462a4a8e7f39c249292cfdc5c48408fd91f8084f15d5a959e5a77bcdad5
5
5
  SHA512:
6
- metadata.gz: bcc564b24eb61d8ab160bdc21862d822eee71027fefa97abb896b481f402ed7cdf56bd4bee3b5f44a2a93c9c7a126914b4aa8bfd05a57f8fd86349fd161c40af
7
- data.tar.gz: 360c36fe52c4ef361ac846661cc86f18730affc64c37a5d4d36323b0e2eecf926141086063d63fbe0d04fedea6cb66d894639c54bedc047e3d2748af39307144
6
+ metadata.gz: d1da9eca5f79395d30484223830d09678e269debded74e613027f58af3ed181848881291f8542c51631e717cf9cfed8a63c8fed5f97ff92928f0e75fa3aee0bb
7
+ data.tar.gz: c5fda38a8bf9b11b974c0a4dd7882868fe9a135afeb6007f014d7c6f879a16477f1adbc378fe0b9ee3828171ffe7240bc80448ce4b0d6d5ec01db2c989d60487
data/lib/toji.rb CHANGED
@@ -15,13 +15,4 @@ require 'toji/utils'
15
15
 
16
16
  module Toji
17
17
  class Error < StandardError; end
18
-
19
- class DuplicateStepIndexError < Error
20
- attr_reader :indexes
21
-
22
- def initialize(indexes)
23
- super("step indexes is deuplicated: #{indexes.inject}")
24
- @indexes = indexes
25
- end
26
- end
27
18
  end
data/lib/toji/recipe.rb CHANGED
@@ -56,12 +56,6 @@ module Toji
56
56
  steps.map(&:compact!)
57
57
  steps.select! {|step| 0<step.ingredients.to_a.length}
58
58
 
59
- indexes = steps.map{|step| {index: step.index, subindex: step.subindex}}
60
- duplicates = indexes - indexes.uniq
61
- if 0<duplicates.length
62
- raise DuplicateStepIndexError.new(duplicates)
63
- end
64
-
65
59
  ab_expects.select! {|ab| ab.alcohol && ab.nihonshudo}
66
60
  ab_expects.uniq! {|ab| [ab.alcohol, ab.nihonshudo]}
67
61
 
data/lib/toji/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Toji
2
- VERSION = "2.30.0"
2
+ VERSION = "2.31.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.30.0
4
+ version: 2.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshida Tetsuya