shape_of 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shape_of.rb +3 -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: 7f00894a833612ace3d3197e5bc4ab0af9f34c3057420631a89ec611155bbef0
|
4
|
+
data.tar.gz: fe82328405f29cf631a7d292e939ded6ae5d6bb15463c7f50280b069e96feb65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 352ac07b96d72ee0214119b6afa6fe60d7729f44a5f630d8ceb9add63bf54697adaa0cd2b9cd00f3d702c7494ea7fee3e7ca7c0627f987a148678b4f54178121
|
7
|
+
data.tar.gz: 9e01690dc4c989c9661cf797f9939d226060c6e4ba4889c507cddd68a8cabe9db59d7eabc2b2c3617e8886bb6021d10f40290b7e65c0853f9e584b3f2dca453a
|
data/lib/shape_of.rb
CHANGED
@@ -415,7 +415,9 @@ module ShapeOf
|
|
415
415
|
end
|
416
416
|
|
417
417
|
if !is_any_shape_of && !is_any_shape_of_shape_or_hash_or_array
|
418
|
-
shape_shapes = @shapes.select
|
418
|
+
shape_shapes = @shapes.select do |shape|
|
419
|
+
shape.respond_to?(:shape_of?) || shape.is_a?(::Hash) || shape.is_a?(::Array)
|
420
|
+
end
|
419
421
|
class_shapes = @shapes.select do |shape|
|
420
422
|
!shape.respond_to?(:shape_of?) && !shape.is_a?(::Hash) && !shape.is_a?(::Array) && shape.is_a?(Class)
|
421
423
|
end
|