yew 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +9 -1
  3. data/lib/yew.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDgyM2U4N2M0NTNkZmU3MzUyZmY0MzRjYzEwMmZkZmZhZjgzYzg4NQ==
4
+ NmJmYWVlMWVmODkxYWMyMGY4ZTRhZTU1NGY4Mjg1MDRmNmVjNTc2YQ==
5
5
  data.tar.gz: !binary |-
6
- MDMyNzA0ZGNlNWY3NTJlMTI1YzA2NTEwOWUzMjA4YTBmOTJjYmVhZg==
6
+ ODI3M2M2YjNlMThhNjFiNzgzMDkzMzJmNDAzMWFlMGVlNjQxNWYzZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzZkMWJkYjA5N2YwYTEwZjhlYTA5YmNmY2Q3NGNjYWIyMmU4ZTlkMzhlOTM5
10
- YmY4MTg1OTBjNWNmYWZlZDkxYTNlYzUyZDU1M2UyNDFhYmJhYWY4YTMyOTIx
11
- MmQ0YTEyNjAzYjRlOTVlOGY2ZmRlMzcwNTM5ODBiOTE3ZTdiM2E=
9
+ YzRjMjBmNzk5M2I5ODE4MmFiOWIwOWIzMzE1OTMxMTZiYjE1N2Q5OTQzMGEw
10
+ NWRlNzM2NDkyNDU4ZjA5MTA0MmQyZjdiOTIxN2MyOWUwOGFmMjAxNGEyZWZj
11
+ MDFjOWRkZDA4OWI0ZTJjMjk2MWY3ZWExMTI1YTk2OTQyNWI1ZDU=
12
12
  data.tar.gz: !binary |-
13
- YmRiNzdjNjM0MjFmNTE2MjZhMzI3OTEwMmZjMWU0OWYyNjQyMDY2YTAwNGY1
14
- NDIxNWNhZmE0YjI0YTc2NmRkNzI4M2I4NmFlNWFiMTg3NjI2NzlkNzBlN2Zi
15
- ODBmMjBjYjZjNjc2NzRkMTQ2NjA3MTE2ZWZkOGVjZTE1YWYyZjQ=
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
@@ -51,7 +51,7 @@ module Yew
51
51
  # Define methods for printing inspection.
52
52
  if $YEW_DEBUG
53
53
  def inspect
54
- "<Envy::Env:#{__id__} -> #@env>"
54
+ "<Yew::Env:#{__id__} -> #@env>"
55
55
  end
56
56
 
57
57
  def to_s
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.6
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-28 00:00:00.000000000 Z
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