recollect-array 0.1.0 → 0.1.2

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: 536bb7525bf775a16364fae2698019f27c2af8285d6f6731450c84cbb692447a
4
- data.tar.gz: 1aa573511390953506f5c8b2f677b22d7eacaabb76ec799921dbb03a85b8b588
3
+ metadata.gz: b0e4b341fd0128d11eebe856242f5a58e4fe2fde5d52a1b32e5ab7677cb87eb0
4
+ data.tar.gz: 9dd9dfb0d30ea7d4a5005f9abda3e2123a6716f52bc7e8b65b4ab4e1b7f2909d
5
5
  SHA512:
6
- metadata.gz: cffb2f2c9ced4860778c6c3b0bc2854cae9c81e0d6c75a171660586fb9f80780125bfb131c44070ac11b4d8b01b4e391045776196fcd4021c551c324b200c65c
7
- data.tar.gz: 774943b98fde492185d2500f6fcc92ffa481294c71bcfe190a7885dc4071bedfac12503fc8cbb86f8147e398c9685c20c9876063ba40db5291d5a080f4f5c95d
6
+ metadata.gz: f456880a49863da46af5ddf3776a6f3997141207b42b4f327235f9498ce78ad65d056eb20794f8bb690ee6f86a3e4084c947cf186319fc2e3b7d2a5f5eb87127
7
+ data.tar.gz: 790347aba973043fd253fb00eff346421c7eb263c0672d3e991b33eaf03ec5a04ea0ea1d0d24a87fb54caf11683bdc698fb395e96718a2130c2ef149fd581607
data/README.md CHANGED
@@ -51,6 +51,12 @@ or add this line to your application's Gemfile.
51
51
  gem 'recollect-array'
52
52
  ```
53
53
 
54
+ and then, require module
55
+
56
+ ```ruby
57
+ require 'recollect/array'
58
+ ```
59
+
54
60
  ## Configuration
55
61
 
56
62
  Without configuration, because we use only Ruby. ❤️
@@ -44,7 +44,7 @@ module Recollect
44
44
  end
45
45
  else
46
46
  parts = key.to_s.split('_')
47
- predicate = parts.pop
47
+ predicate = parts.size == 1 ? :eq : parts.pop
48
48
  iteratee = parts.join('_')
49
49
  klass = Predicate.call(predicate)
50
50
 
@@ -68,7 +68,7 @@ module Recollect
68
68
  start: Startify, notstart: NotStartify, not_start: NotStartify,
69
69
  end: Endify, notend: NotEndify, not_end: NotEndify,
70
70
  in: Included, notin: NotIncluded, not_in: NotIncluded
71
- }[named.to_sym]
71
+ }[named.to_sym || :eq]
72
72
  end
73
73
  private_constant :Predicate
74
74
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Recollect
4
4
  module Array
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.2'
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.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thadeu Esteves