Projects
About
An implementation of JSON Patch and JSON Pointer for Ruby
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalhana
DESCRIPTION:
Implementation of JSON Patch and JSON Pointer RFC.
FEATURES/PROBLEMS:
Implements specs of the JSON Patch and JSON pointer RFCs:
This works against Ruby objects, so you should load the JSON to Ruby, process it, then emit as JSON again.
SYNOPSIS:
patch = Hana::Patch.new [
{ 'op' => 'add', 'path' => '/baz', 'value' => 'qux' }
]
patch.apply('foo' => 'bar') # => {'baz' => 'qux', 'foo' => 'bar'}
REQUIREMENTS:
- Ruby
INSTALL:
$ gem install hana
DEVELOPMENT:
hana runs tests from json-patch/json-patch-tests. Fetch the git submodule by running:
git submodule init
git submodule update
Install dependencies with:
bundle install
Then run the tests with:
rake test
Explore related projects
Loading…