yew 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +9 -1
- data/lib/yew.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmJmYWVlMWVmODkxYWMyMGY4ZTRhZTU1NGY4Mjg1MDRmNmVjNTc2YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODI3M2M2YjNlMThhNjFiNzgzMDkzMzJmNDAzMWFlMGVlNjQxNWYzZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzRjMjBmNzk5M2I5ODE4MmFiOWIwOWIzMzE1OTMxMTZiYjE1N2Q5OTQzMGEw
|
10
|
+
NWRlNzM2NDkyNDU4ZjA5MTA0MmQyZjdiOTIxN2MyOWUwOGFmMjAxNGEyZWZj
|
11
|
+
MDFjOWRkZDA4OWI0ZTJjMjk2MWY3ZWExMTI1YTk2OTQyNWI1ZDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmMyMjZkYWQ4MzZlMzc2MjBjZDU0Mjc5OGJhYmRkOGMwZTZmYzk4OTU3YjIw
|
14
|
+
ZDY4MTg4NjBkYTMxZmIyZmJhOWZjNWRkMTBjMTk1MWIzZTdkOTJhNTAyOGM4
|
15
|
+
MzY3MmI0YjgzMjc5MWFlYzEwMzMwMzZiMDUwNGU1YTVmYWQxMjg=
|
data/README.md
CHANGED
@@ -5,6 +5,8 @@ Yew allows traversing a Hash structure as if it is an object tree.
|
|
5
5
|
|
6
6
|
## Usage
|
7
7
|
|
8
|
+
There are two options for installation: packaged gem and as source file.
|
9
|
+
|
8
10
|
Given the following yml file located at `config/env.yml`:
|
9
11
|
|
10
12
|
``` yaml
|
@@ -22,6 +24,12 @@ Given the following yml file located at `config/env.yml`:
|
|
22
24
|
|
23
25
|
- Load the YAML structure.
|
24
26
|
|
27
|
+
``` ruby
|
28
|
+
Env = Yew::Tree.new(YAML.load(File.read('config/env.yml')))
|
29
|
+
```
|
30
|
+
|
31
|
+
If you prefer, there's a shortcut method: `Yew.load`
|
32
|
+
|
25
33
|
``` ruby
|
26
34
|
Env = Yew.load('config/env.yml')
|
27
35
|
```
|
@@ -71,7 +79,7 @@ Given the following yml file located at `config/env.yml`:
|
|
71
79
|
|
72
80
|
## Installation
|
73
81
|
|
74
|
-
There are two options for installation: packaged gem and source file.
|
82
|
+
There are two options for installation: packaged gem and as source file.
|
75
83
|
|
76
84
|
1. Install Yew as a gem.
|
77
85
|
|
data/lib/yew.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yew
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gianfranco Zas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Reads from .yml files and provides an object for key traversing.
|
14
14
|
email: snmgian@gmail.com
|