Project

hana

1.0
No release in over 3 years
Low commit activity in last 3 years
There's a lot of open issues
Implementation of [JSON Patch][1] and [JSON Pointer][2] RFC.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.22
~> 5.14
>= 4.0, < 7
 Project Readme

hana

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