hash-as-tree 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/hash/as/tree.rb +4 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f4a8aed3815ad6b18d6d5a305a9f01d42c283ca
4
- data.tar.gz: c590329b2886a799d25d130749cb0f02cbed49fc
3
+ metadata.gz: 6fc1b4473793caf0d2f652d6bdcb4402a5e14b7c
4
+ data.tar.gz: b26ef30216c838d0bed808fd8b7c50f61c099067
5
5
  SHA512:
6
- metadata.gz: 6625a22f545a19ab3aa336dd9f9c727a34192a6597a7b6f799b1f7679bd60d4cb2ee8397c10103a1a1aae96fff7402ac9658de959ef8cc9f0c2beba13e2eecc7
7
- data.tar.gz: 35b177b9c78d4796a17dcb52e5e52a0193c6082aa46affb385cc613158b1ab3f73f3982a9b5815a94a37ee83bff7e31c4e192314c6fbc853e67cb9c7a450b7b8
6
+ metadata.gz: fde51f1225de3a4f7ec1569f09241d8ea227fc15b79816edd2802bdbc6d5499f7127d8f12f711b82240184c6912eeeb0f5a0bfdb57475082a73494aca2d14389
7
+ data.tar.gz: a9d5fe6598febfce9c9a3bf7b0bd854365c6b2384b5c9baa5ec72ea30ce6ec7bea49d76f47f2903771614eccaeb6aafbe63254175ef339e1fe4d127750e85f20
data/lib/hash/as/tree.rb CHANGED
@@ -74,6 +74,10 @@ class Hash
74
74
  []
75
75
  end
76
76
  end
77
+
78
+ def to_a
79
+ [key, value]
80
+ end
77
81
  end
78
82
  end
79
83
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash-as-tree
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
  - Anatoly Chernow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-03 00:00:00.000000000 Z
11
+ date: 2017-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: to_proc