brianmario-yajl-ruby 0.1.0 → 0.2.0

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 (2) hide show
  1. data/README.rdoc +9 -3
  2. metadata +1 -1
data/README.rdoc CHANGED
@@ -6,17 +6,23 @@ You can read more info at the projects website http://lloydforge.org/projects/ya
6
6
 
7
7
  == Example of use
8
8
 
9
- File IO
9
+ First, you're probably gonna want to include it:
10
+
11
+ include 'yajl'
12
+
13
+ Then maybe parse some JSON from:
14
+
15
+ a File IO
10
16
 
11
17
  json_contents = File.new('test.json', 'r')
12
18
  hash = Yajl::Native.parse(json)
13
19
 
14
- OR StringIO
20
+ or maybe a StringIO
15
21
 
16
22
  json_contents = StringIO.new
17
23
  hash = Yajl::Native.parse(json)
18
24
 
19
- OR maybe STDIN
25
+ or maybe STDIN
20
26
 
21
27
  cat someJsonFile.json | ruby -ryajl -e "puts Yajl::Native.parse(STDIN).inspect"
22
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brianmario-yajl-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Lopez