ravensat 1.0.6 → 1.0.7

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: c1c1d5979a19db3adbe7a8541d669ace60880845f7ed0e399f915392102757b9
4
- data.tar.gz: 3829e433c926fb89b6b75743301926b1aca1d9e411fed63e91757464d4601a81
3
+ metadata.gz: ceabe3e3d03de374a38f92df583ab84bc69cbdfd80bc842d722bf8730a60c69e
4
+ data.tar.gz: 1973d2e270011520d59ec8ab32296f4589a4511901b4701bb58c74f066535a57
5
5
  SHA512:
6
- metadata.gz: 4f202c5196a0c611e965675341adcb889700814d0b80883a7adfecd86c10ce278f200afe0f99c4cf859a247391e60767c59f91b64aee7420ca33c42a03cd6455
7
- data.tar.gz: e73fce1a7eb44ae778099cffba247f85b832f87ee4a602299800e474fe0d76fedb76267d31caa26314a9fa93d68d1976f34b2d0c9095fa0b390ec7b13ccf4305
6
+ metadata.gz: b6e2aa1f4f21111d07f8e586876293fe2569190eeb4875cfef4bf35d1bc23c755475d0470b15f24dd6e640d6f7d3a4ec927b6102f8401c3dc7a46527f1b5d2fd
7
+ data.tar.gz: 6f69d190d6fe8546035a59ba4643c33322210716a295a3b6c556d4f063d1a187e54afd507d0b4c0a10d65bc3db3766f23f2b58cc522f6ad67d0955ed78b77ca7
@@ -1,6 +1,7 @@
1
1
  module Ravensat
2
2
  class AndNode < OprNode
3
3
  def &(object)
4
+ raise TypeError.new("#{object.class} can't be coerced into Ravensat::Node") unless object.is_a? Node
4
5
  @children.append object
5
6
  self
6
7
  end
@@ -63,10 +63,12 @@ module Ravensat
63
63
  end
64
64
 
65
65
  def &(object)
66
+ raise TypeError.new("#{object.class} can't be coerced into Ravensat::Node") unless object.is_a? Node
66
67
  AndNode.new(self, object)
67
68
  end
68
69
 
69
70
  def |(object)
71
+ raise TypeError.new("#{object.class} can't be coerced into Ravensat::Node") unless object.is_a? Node
70
72
  OrNode.new(self, object)
71
73
  end
72
74
 
@@ -1,6 +1,7 @@
1
1
  module Ravensat
2
2
  class OrNode < OprNode
3
3
  def |(object)
4
+ raise TypeError.new("#{object.class} can't be coerced into Ravensat::Node") unless object.is_a? Node
4
5
  @children.append object
5
6
  self
6
7
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ravensat
4
- VERSION = "1.0.6"
4
+ VERSION = "1.0.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ravensat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikuto matsuda