oson 0.0.1 → 0.0.2

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/lib/oson.rb +4 -1
  2. metadata +2 -1
@@ -3,8 +3,11 @@ require 'ostruct'
3
3
 
4
4
  module OSON
5
5
  class Parser
6
+ # Convert json string to object
7
+ #
8
+ # @param json [String]
6
9
  def self.parse(json)
7
- obj = Openstruct.new JSON.parse(json)
10
+ obj = OpenStruct.new JSON.parse(json)
8
11
  obj
9
12
  end
10
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oson
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,3 +43,4 @@ signing_key:
43
43
  specification_version: 3
44
44
  summary: oson
45
45
  test_files: []
46
+ has_rdoc: