tree_reject 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -4
- data/README.md +5 -7
- data/lib/tree_reject/version.rb +1 -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: 14b8b4b2f900a483b2965c93b59327447f09845008deb0cf941ec3cf00ab269e
|
4
|
+
data.tar.gz: 5ad3420dd0784d6451022bb3ccb8c3b57b9bc89b8a9437ba62c105e8d497b911
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '00652939634881c949d29ecc37b65e1e3e205dc9dadef896677a34940ee3c3514532c185a81b67372f4ca528be6ea5a85d9a6aef75ad5c0fed2eee5f76adc2d3'
|
7
|
+
data.tar.gz: aabdf2ca98f0ad29ef45ea2305122f2ddd574920560595a6cbd313475008c509834860c7b534d762c01bc5f1ff87fce660a20f16a0181537a1acd9ebc188c11e
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,10 +2,11 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/salsify/tree_reject.svg?branch=master)](https://travis-ci.org/salsify/tree_reject)
|
4
4
|
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/tree_reject.svg)](https://badge.fury.io/rb/tree_reject)
|
5
6
|
|
6
7
|
`tree_reject` is a Ruby gem that removes deeply nested keys from Ruby Hashes or hash-like objects.
|
7
8
|
|
8
|
-
For example
|
9
|
+
For example:
|
9
10
|
|
10
11
|
```ruby
|
11
12
|
hash = {
|
@@ -19,18 +20,15 @@ hash = {
|
|
19
20
|
ba: 'ba'
|
20
21
|
}
|
21
22
|
}
|
22
|
-
```
|
23
23
|
|
24
|
-
|
25
|
-
```ruby
|
26
|
-
{
|
24
|
+
hash.tree_reject({
|
27
25
|
a: {
|
28
26
|
aa: :aaa
|
29
27
|
}
|
30
|
-
}
|
28
|
+
})
|
31
29
|
```
|
32
30
|
|
33
|
-
|
31
|
+
results in:
|
34
32
|
```ruby
|
35
33
|
{
|
36
34
|
a: {
|
data/lib/tree_reject/version.rb
CHANGED