shape_of 0.0.2 → 0.0.3

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 +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d29d9baae8a0e917051667ba6d9526372191522dc82a75e06fc17171b8809526
4
- data.tar.gz: 0c242d2d00c3acf7f690b178760ca164f01b45c8d782145004ee3972d1cd25cd
3
+ metadata.gz: 2bae6d75a1270a9fe921b765b5d3d545b22c7dc50204ebad73f806960107056c
4
+ data.tar.gz: 85138e3abbff51f597743cdf9e2ee299ceab2c58e359fa25c4836fafc329bdcc
5
5
  SHA512:
6
- metadata.gz: 170be793850595786dddbd03fafa7244e68aa7a19aee1757bbe439b4169cc9ea2e612371231c9e331a61d814dfae94afa0149afd2d3f754b542a7e01b4b790e1
7
- data.tar.gz: 859512b4a374791f987296f27b774c5b9ac7fa5833505a3abff4ff72cc9942d6c0c8ff226daff3a7ea7dcef81fce80f31b3b3b1f7bc2d307e8491dae736dab67
6
+ metadata.gz: 15446ab268e0fc1a6a3f31211b463f12f5b4a4e53b1f8b90ce581be9f594a6e10007341ac56273d0e45bedd2d2e9870f5a4c04af2fb0ae7af7bf76fb59b45223
7
+ data.tar.gz: e6c37c58a73e70c9445c6787d376ccf46c3b1e198a988b37723929a059601de2af3e45693914d7e88ce7a3c74a8d6cb662228470c821830cd7aaa2687fc1e078
data/lib/shape_of.rb CHANGED
@@ -161,7 +161,7 @@ module ShapeOf
161
161
  if @shape.respond_to? :shape_of?
162
162
  @shape.shape_of? elem
163
163
  elsif @shape.is_a? ::Array
164
- Array[@shape].shape_of? elem
164
+ Array[@shape.first].shape_of? elem
165
165
  elsif @shape.is_a? ::Hash
166
166
  Hash[@shape].shape_of? elem
167
167
  elsif @shape.is_a? Class
@@ -222,7 +222,7 @@ module ShapeOf
222
222
  if @shape[key].respond_to? :shape_of?
223
223
  @shape[key].shape_of? elem
224
224
  elsif @shape[key].is_a? ::Array
225
- Array[@shape[key]].shape_of? elem
225
+ Array[@shape[key].first].shape_of? elem
226
226
  elsif @shape[key].is_a? ::Hash
227
227
  Hash[@shape[key]].shape_of? elem
228
228
  elsif @shape[key].is_a? Class
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shape_of
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Isom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-17 00:00:00.000000000 Z
11
+ date: 2021-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest