-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from evolve75/58-JSON.parse
58 json.parse clarification (use the `create_additions: true` option for `JSON.parse`)
- Loading branch information
Showing
3 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
rubytree (2.0.2) | ||
rubytree (2.0.3) | ||
json (~> 2.0, > 2.3.1) | ||
|
||
GEM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ | |
# | ||
# Author:: Anupam Sengupta ([email protected]) | ||
# | ||
# Time-stamp: <2022-06-20 22:16:46 anupam> | ||
# Time-stamp: <2023-12-27 12:46:07 anupam> | ||
# | ||
# Copyright (C) 2012, 2013, 2014, 2015, 2022 Anupam Sengupta <[email protected]> | ||
# Copyright (C) 2012, 2013, 2014, 2015, 2022, 2023 Anupam Sengupta <[email protected]> | ||
# | ||
# All rights reserved. | ||
# | ||
|
@@ -100,11 +100,14 @@ module ClassMethods | |
# representation. Note that this method should *NOT* be called directly. | ||
# Instead, to convert the JSON hash back to a tree, do: | ||
# | ||
# tree = JSON.parse(the_json_hash) | ||
# tree = JSON.parse(the_json_hash, create_additions: true) | ||
# | ||
# This operation requires the {JSON gem}[http://flori.github.com/json/] to | ||
# be available, or else the operation fails with a warning message. | ||
# | ||
# Note the +create_additions: true+ option, which is *required* for | ||
# successfully parsing the string or hash. | ||
# | ||
# @author Dirk Breuer (http://github.com/railsbros-dirk) | ||
# @since 0.7.0 | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,5 +35,5 @@ | |
|
||
module Tree | ||
# Rubytree Package Version | ||
VERSION = '2.0.2' | ||
VERSION = '2.0.3' | ||
end |