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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/shape_of.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a8e5e89c8b1a515b043085f63fd764221ece2ecafd1c91f471250e9d62a3b36
4
- data.tar.gz: d676fa033eeb7da482e60789042c080ef95d317e4aa05d4452547166126191ef
3
+ metadata.gz: 7f00894a833612ace3d3197e5bc4ab0af9f34c3057420631a89ec611155bbef0
4
+ data.tar.gz: fe82328405f29cf631a7d292e939ded6ae5d6bb15463c7f50280b069e96feb65
5
5
  SHA512:
6
- metadata.gz: c1d4be16b5e9b2fa80b08999860ea45ac44ee11fb17c7092ccdf4d1c82b1e17f2c40064aae3d7b8cdf7f222ecc14d5785b2a8aa1bdc411a8f1765fbc8fa1faf2
7
- data.tar.gz: 5fbd3d63b7a00d38dac0e7b9521ebd44ec7f24eaa25b4786e40dd7e549d34b6ec066f8e5f64ac031586c33f24f2060643acc5d64e0992189298b592b0c6758e1
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 { |shape| shape.respond_to?(:shape_of?) }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shape_of
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Isom