Skip to content

Commit

Permalink
Merge pull request #2 from stuzart/master
Browse files Browse the repository at this point in the history
Fix to #1 - use JSON.generate
  • Loading branch information
stuzart committed Feb 23, 2015
2 parents a3d52b0 + e13de5f commit 57730a8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/ro-bundle/ro/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def orcid
# Write this Agent out as a json string. Takes the same options as
# JSON#generate.
def to_json(*a)
Util.clean_json(@structure).to_json(*a)
JSON.generate(Util.clean_json(@structure),*a)
end

end
Expand Down
2 changes: 1 addition & 1 deletion lib/ro-bundle/ro/aggregate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def proxy
# Write this Aggregate out as a json string. Takes the same options as
# JSON#generate.
def to_json(*a)
Util.clean_json(@structure).to_json(*a)
JSON.generate(Util.clean_json(@structure),*a)
end

# :stopdoc:
Expand Down
2 changes: 1 addition & 1 deletion lib/ro-bundle/ro/annotation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def uri
def to_json(*a)
cleaned = Util.clean_json(@structure)
cleaned[:about] = target
cleaned.to_json(*a)
JSON.generate(cleaned,*a)
end

end
Expand Down
2 changes: 1 addition & 1 deletion lib/ro-bundle/ro/manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def edited?
# Write this Manifest out as a json string. Takes the same options as
# JSON#generate.
def to_json(*a)
Util.clean_json(structure).to_json(*a)
JSON.generate(Util.clean_json(structure),*a)
end

# :call-seq:
Expand Down
2 changes: 1 addition & 1 deletion lib/ro-bundle/ro/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def uri
# Write this Proxy out as a json string. Takes the same options as
# JSON#generate.
def to_json(*a)
Util.clean_json(@structure).to_json(*a)
JSON.generate(Util.clean_json(@structure),*a)
end

private
Expand Down

0 comments on commit 57730a8

Please sign in to comment.