jsondiff 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - "1.9.2"
4
+ - "1.9.3"
5
+ - "2.0.0"
6
+ - jruby-19mode
7
+ - rbx-19mode
8
+ script: bundle exec rspec
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rspec'
3
+ gemspec
@@ -1,3 +1,8 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ jsondiff (0.0.1)
5
+
1
6
  GEM
2
7
  remote: https://rubygems.org/
3
8
  specs:
@@ -15,4 +20,5 @@ PLATFORMS
15
20
  ruby
16
21
 
17
22
  DEPENDENCIES
18
- rspec
23
+ jsondiff!
24
+ rspec (~> 2.13.0)
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
- No gems yet
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
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/json_diff/version', __FILE__)
2
+ require File.expand_path('../lib/jsondiff/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["François de Metz"]
@@ -1,6 +1,6 @@
1
- require 'json_diff/helpers'
2
- require 'json_diff/hash_diff'
3
- require 'json_diff/array_diff'
1
+ require 'jsondiff/helpers'
2
+ require 'jsondiff/hash_diff'
3
+ require 'jsondiff/array_diff'
4
4
 
5
5
  module JsonDiff
6
6
  # Generate a patch from two ruby hash
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module JsonDiff
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -1,4 +1,4 @@
1
- require_relative '../lib/json_diff'
1
+ require_relative '../lib/jsondiff'
2
2
 
3
3
  RSpec.configure do |c|
4
4
  c.filter_run focus: true
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.1
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: &20852580 !ruby/object:Gem::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: *20852580
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/json_diff.rb
37
- - lib/json_diff/array_diff.rb
38
- - lib/json_diff/hash_diff.rb
39
- - lib/json_diff/helpers.rb
40
- - lib/json_diff/version.rb
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