jsondiff 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +8 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +7 -1
- data/README.md +3 -1
- data/jsondiff.gemspec +1 -1
- data/lib/{json_diff.rb → jsondiff.rb} +3 -3
- data/lib/{json_diff → jsondiff}/array_diff.rb +0 -0
- data/lib/{json_diff → jsondiff}/hash_diff.rb +0 -0
- data/lib/{json_diff → jsondiff}/helpers.rb +0 -0
- data/lib/{json_diff → jsondiff}/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +9 -8
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -12,11 +12,13 @@ As for now, it generate only patch with *add*, *remove* and *replace* operation
|
|
12
12
|
|
13
13
|
## Install
|
14
14
|
|
15
|
-
|
15
|
+
gem install jsondiff
|
16
16
|
|
17
17
|
## Usage
|
18
18
|
|
19
19
|
```ruby
|
20
|
+
require 'jsondiff'
|
21
|
+
|
20
22
|
JsonDiff.generate({foo: :bar}, {foo: :plop})
|
21
23
|
```
|
22
24
|
=> will result in
|
data/jsondiff.gemspec
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsondiff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2013-04-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &18174720 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 2.13.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *18174720
|
25
25
|
description: Generate a JSON Patch from 2 ruby hash
|
26
26
|
email:
|
27
27
|
- francois@2metz.fr
|
@@ -29,15 +29,16 @@ executables: []
|
|
29
29
|
extensions: []
|
30
30
|
extra_rdoc_files: []
|
31
31
|
files:
|
32
|
+
- .travis.yml
|
32
33
|
- Gemfile
|
33
34
|
- Gemfile.lock
|
34
35
|
- README.md
|
35
36
|
- jsondiff.gemspec
|
36
|
-
- lib/
|
37
|
-
- lib/
|
38
|
-
- lib/
|
39
|
-
- lib/
|
40
|
-
- lib/
|
37
|
+
- lib/jsondiff.rb
|
38
|
+
- lib/jsondiff/array_diff.rb
|
39
|
+
- lib/jsondiff/hash_diff.rb
|
40
|
+
- lib/jsondiff/helpers.rb
|
41
|
+
- lib/jsondiff/version.rb
|
41
42
|
- spec/diff_spec.rb
|
42
43
|
- spec/spec_helper.rb
|
43
44
|
homepage: https://github.com/francois2metz/jsondiff
|