recollect-array 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fbfc110c1d152ac717818073bfd1992075a2f661e0476fb914dcf9082436745
4
- data.tar.gz: 45faef709c5d1f123a3f1aae9f45efc877fb34d5638dacc73de766cb2c4e5333
3
+ metadata.gz: 86bf4480af01a28e888309fd260dc30b70d511315fdf5e1f99b76134d55df721
4
+ data.tar.gz: 3cf74cc206a43dfe434d2493ac68c4d4f6da3b78dcb2fbc4ac86472229136c58
5
5
  SHA512:
6
- metadata.gz: dbefed9321cf4c56854090598fff906ddd4dff5c7ba8ddaab71bc606e7d41a1b87c0cf0783d0ef8ec8bd80c40b15e7f7322e3c6163b776eef61ca91823cd31bd
7
- data.tar.gz: a6cff58f1fa350d046ce25c24de264f49f79bf9422902e266349aadfe70df7852b684cfea028a407422fe6babf68113b55dc77053a1a06024b6a9c0428f95d6f
6
+ metadata.gz: c2b52884d19f896f1b9a82fbc09fbdc0f8a2e3d658d9099c1203dc0222daa29501dd2b0db1092e64ad1e6bccd09d00c37c9e9b09ae09fa5bb4d2c38692991448
7
+ data.tar.gz: ce7d90aab0236d2cd8069d69d0623ff0062b70a1d223dc17f7f122164e48f61ef2e5838f1424b5aabd36a5d00163b7302246f2d712d053f788720e53c85074bb
data/README.md CHANGED
@@ -371,7 +371,7 @@ filters = { numbers_in: ['1'] }
371
371
 
372
372
  collection = Recollect::Array.filter(data, filters)
373
373
 
374
- expect(collection.result.size).to eq(1)
374
+ expect(collection.size).to eq(1)
375
375
  ```
376
376
 
377
377
  **Combine conditions**
@@ -5,8 +5,9 @@ module Recollect
5
5
  class Filterable
6
6
  def self.call(data, filters)
7
7
  instance = new(data, filters)
8
+
8
9
  instance.call!
9
- instance
10
+ instance.result
10
11
  end
11
12
 
12
13
  PREDICATES = %w[
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Recollect
4
4
  module Array
5
- VERSION = '0.1.3'
5
+ VERSION = '0.1.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recollect-array
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thadeu Esteves