eq_wo_order 0.3.1 → 0.4.0

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9de4820c3d69cd160e796b41f915d46cb4280717
4
- data.tar.gz: 7e82d8cdc0e89b4def0d227a9a2f53421f8e21b3
3
+ metadata.gz: 036d6125832aa8467b381de8e4d9571647130e66
4
+ data.tar.gz: 740d86d632954fa82dd8711c7facc62a05cdedb5
5
5
  SHA512:
6
- metadata.gz: 94db4b4ee1e4a80f216993d65269faa08084cce8365b91a5e2269eb220cd7c5959e7f400056c3d28ab818c0a58d462b206be6087acc4193608764616ac8d3bca
7
- data.tar.gz: 759b83dd59e87a89b7df42609fc46f3a360d7c36af539f006423fb1d4442f7e0439c27bd2f9625c5cc3324449e2a82711c643419f8d82c03ede249b1760d1f48
6
+ metadata.gz: de963748eed58a13f19a3e2e0e927475774c3b85e98265d75e9cd111a01fff3701c0dee512735a27c53f3f68c7dd2d829dc8f7e4ff7b7149ad8676953481d78e
7
+ data.tar.gz: 0414713efc77a07403ef09de582002a0cb9ec41c30d22402429b009146c3a6154628ce153b436e5dd3cf11d2f96577fed77510c07c0f6fecf7caaa4e03423c69
data/CHANGELOG CHANGED
@@ -7,3 +7,4 @@ Version 0.2.3 Update description with github link
7
7
  Version 0.2.4 Ruby-ism refactors for terseness
8
8
  Version 0.3.0 Support for nil-case
9
9
  Version 0.3.1 Refactor large amounts of code to use Enumerable::any/all, thanks to @jacobsimeon
10
+ Version 0.4.0 Added diffable macro for better output (shows diff of expectation and actual)
data/README.md CHANGED
@@ -2,7 +2,16 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/jadekler/eq_wo_order.svg?branch=master)](https://travis-ci.org/jadekler/eq_wo_order)
4
4
 
5
- RSpec equality matcher that deeply compares array without order - arrays of primitives, hashes, and arrays
5
+ RSpec equality matcher that deeply compares array without order - arrays
6
+ of primitives, hashes, and arrays.
7
+
8
+ As multi-core/multi-threaded concurrent processing becomes more
9
+ prevalent we will see lists of items being returned in non-deterministic
10
+ order. The idea behind this gem is that we when we're testing APIs that return
11
+ objects with these arrays of items, we neither want to care about the
12
+ order NOR do we want to dig into the data to sort/match specific fields.
13
+ See `spec/features/eq_wo_order_spec.rb` for an extensive set of examples
14
+ showcasing this gem's usage.
6
15
 
7
16
  ## Installation
8
17
 
@@ -27,6 +36,8 @@ $ gem install eq_wo_order
27
36
  ## Usage
28
37
 
29
38
  ```
39
+ require 'eq_wo_order'
40
+
30
41
  first = [[1, 2, 3]]
31
42
  second = [[3, 1, 2]]
32
43
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'eq_wo_order'
3
- s.version = '0.3.1'
3
+ s.version = '0.4.0'
4
4
  s.date = '2016-02-29'
5
5
  s.summary = 'RSpec equality matcher that ignores nested order'
6
6
  s.description = 'RSpec equality matcher that deeply compares array without order - arrays of primitives, hashes, and arrays. Examples at github.com/jadekler/eq_wo_order'
@@ -1,4 +1,6 @@
1
1
  RSpec::Matchers.define :eq_wo_order do |expected|
2
+ diffable
3
+
2
4
  match do |actual|
3
5
  eq_wo_order(actual, expected)
4
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eq_wo_order
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean de Klerk