eq_wo_order 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +1 -0
- data/README.md +12 -1
- data/eq_wo_order.gemspec +1 -1
- data/lib/eq_wo_order.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 036d6125832aa8467b381de8e4d9571647130e66
|
4
|
+
data.tar.gz: 740d86d632954fa82dd8711c7facc62a05cdedb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
|
data/eq_wo_order.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'eq_wo_order'
|
3
|
-
s.version = '0.
|
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'
|
data/lib/eq_wo_order.rb
CHANGED