hash_diff 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MTU2MzRlMGI1NGI2MmExNjkzMTU2NDUwYWE4MzQwNzI0MGJlNGE0OA==
5
- data.tar.gz: !binary |-
6
- YTZiYTQ5MjcxZDU1MzUyYWJhNjllZDVhYWZhYzIxMjdlMjMwM2VkNw==
2
+ SHA1:
3
+ metadata.gz: eb76aa783f3ab7baa94d421ec41ee9aaaa0f0667
4
+ data.tar.gz: f78a355f2295e7eda184b78c6ccb6b69480b013d
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MzE2YTg3YzIxMjZjNmJiMjk4M2VkN2MyNmQ0ZjI0MWNkYzJmYWFiNDUwMjdl
10
- ZWU4ZTY1ZjA1YTY2OTU4OTk4MDhjM2FiOTJiY2YwMzVjMDBkOWI4ZjZlNzlj
11
- MWU5MjFhZGZkZTc0NmNmNTI5MmIxZTg2NWJkOTI0NzgxNTNmMGE=
12
- data.tar.gz: !binary |-
13
- NWYzZDYwZDZkNTI3OWQ3YmZjNmVkYTVlNWYyM2ZlMDAxY2U0ZjhhMzNjYjFi
14
- ZDBmM2M3ZTNlYTM3MmRjNzVkZTc0YzBiYTE5MWZkMjIzNzk2ZTIzNTAyYWEw
15
- ZGUwNDgxNTI2ZjlkMWU0OGJmOGRlMWUxZmNkN2I2YTllMTA3ZTE=
6
+ metadata.gz: 02732e740269c1bb657423dbd72cb4c2ddefd461e6ae58abc96ded2782325e67f0f8a48580af426b0b31181ecda75c073cb591c36b1012fe0a8202ec50709114
7
+ data.tar.gz: c9c842430b4b1543eb062b0cb571c2757d79970b85bae1937c19c8258d744b095e969d71e0d4f3dc65bc85562b0b587e9d3d28a34d00b01fd1d52ed7f3ee3ac3
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ script: "bundle exec rspec spec"
2
+
3
+ language: ruby
4
+
5
+ rvm:
6
+ - 1.9.3
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # HashDiff
2
+ [![Build Status](https://travis-ci.org/CodingZeal/hash_diff.png?branch=master)](https://travis-ci.org/CodingZeal/hash_diff) [![Code Climate](https://codeclimate.com/github/CodingZeal/hash_diff.png)](https://codeclimate.com/github/CodingZeal/hash_diff) [![Gem Version](https://badge.fury.io/rb/hash_diff.png)](http://badge.fury.io/rb/hash_diff)
2
3
 
3
4
  Deep comparison of Ruby Hash objects
4
5
 
@@ -79,7 +80,7 @@ Hash#diff is not provided by default, and monkey patching is frowned upon by som
79
80
  ```ruby
80
81
  class Hash
81
82
  def diff(right)
82
- HashDiff.right_diff(self, right)
83
+ HashDiff.left_diff(self, right)
83
84
  end
84
85
  end
85
86
 
@@ -32,7 +32,7 @@ module HashDiff
32
32
  combined_attribute_keys.reduce({}, &reduction_strategy)
33
33
  end
34
34
 
35
- def reduction_strategy(opts={})
35
+ def reduction_strategy
36
36
  lambda do |diff, key|
37
37
  diff[key] = report(key) if not equal?(key)
38
38
  diff
@@ -71,4 +71,4 @@ module HashDiff
71
71
  end
72
72
  end
73
73
  end
74
- end
74
+ end
@@ -1,3 +1,3 @@
1
1
  module HashDiff
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash_diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coding Zeal
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-02 00:00:00.000000000 Z
12
+ date: 2014-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -29,14 +29,14 @@ dependencies:
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ! '>='
32
+ - - '>='
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>='
39
+ - - '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
@@ -61,6 +61,7 @@ extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
63
  - .gitignore
64
+ - .travis.yml
64
65
  - Gemfile
65
66
  - LICENSE.txt
66
67
  - README.md
@@ -82,17 +83,17 @@ require_paths:
82
83
  - lib
83
84
  required_ruby_version: !ruby/object:Gem::Requirement
84
85
  requirements:
85
- - - ! '>='
86
+ - - '>='
86
87
  - !ruby/object:Gem::Version
87
88
  version: '0'
88
89
  required_rubygems_version: !ruby/object:Gem::Requirement
89
90
  requirements:
90
- - - ! '>='
91
+ - - '>='
91
92
  - !ruby/object:Gem::Version
92
93
  version: '0'
93
94
  requirements: []
94
95
  rubyforge_project:
95
- rubygems_version: 2.1.11
96
+ rubygems_version: 2.0.14
96
97
  signing_key:
97
98
  specification_version: 4
98
99
  summary: Deep Ruby Hash comparison