class_kit 0.5.1 → 0.6.0

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/class_kit/helper.rb +2 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dafa96fa9b5a4e0d5b0c498dad30b76fc4f1e7385bffae89a2924bc36e3932c1
4
- data.tar.gz: 94779e51e0a4f0730aa937bfb653497a565bd5833ef7479911a1ece12c713223
3
+ metadata.gz: e2c75a99683cefb096b81e5f55e5a8ac38575e15c7bcdaf38e38aa2f4945a200
4
+ data.tar.gz: 0f9d1bffbbdfd43f8552c3d7b8302423f91150549de3bfe1207a7d034e444573
5
5
  SHA512:
6
- metadata.gz: e6cac82b1b5f66f248a43ebb90813c274e2322dbe9813ad30ecda694ade0085fcedcc3aa1eb88ea69656a8c2863bd2ae2fb6fa7c0697321d458a6b8df203dfa4
7
- data.tar.gz: fff56f5479de5a961f8c1e4768667c35ca13c9ba41e7d08fbe54dd7556c3ba01d03a21c3c5dfeef6d75496c3a1971160c0b873ed3dbec91210dd640727063fc9
6
+ metadata.gz: 9e0f93190d74553720145a8a84256a5219ec0e4df484d507fb8217673030b18c1a17283ec3d8a8f440f401c44948dcb284bf428e3f8a09e1098318b8261e7a11
7
+ data.tar.gz: 3e16c3562642437bb97bfe69d01f7d2b4c85fe59d27cbeb8a0df4e869aaba1d2554fe1c23ee6456e28d656053dadabafe2765e71ac2b4e949342799f81d2bcfb
@@ -18,6 +18,8 @@ module ClassKit
18
18
 
19
19
  # This method is called to convert a ClassKit object into a Hash.
20
20
  def to_hash(object, use_alias = false)
21
+ return object.map { |i| to_hash(i, use_alias) } if object.is_a?(Array)
22
+
21
23
  validate_class_kit(object.class)
22
24
 
23
25
  hash = {}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: class_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sage One
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-19 00:00:00.000000000 Z
11
+ date: 2018-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler