agilibox 1.10.1 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/app/filters/agilibox/small_data/filter.rb +7 -1
- data/lib/agilibox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c957ea49c90e282829586fcc2e643e29f0cafdf6de7addd6867e7c7ccb84b208
|
4
|
+
data.tar.gz: 7a03a0ccea759d460a7c67deb95f44e9e06f09ae89ddf9e8038e23f8112749a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b458a4602f68758275b70049a33def1d27658af96e4d6941251702b0d2957b5968c3cd2cf7bb682338f4c3a931233e054636629e9539053ef5700ad9102c847b
|
7
|
+
data.tar.gz: f64d11c96a644d6f2871820a25f1ba000904dbecf50037fa07b69cfe37c1f87aab16041a9188f0fb78c9ff9d988597408ba8f3dac9d78682c755c3a5d1badc36
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
class Agilibox::SmallData::Filter
|
2
|
+
include ActiveModel::Model
|
3
|
+
|
2
4
|
STRATEGIES = {}
|
3
5
|
|
4
6
|
attr_reader :jar
|
@@ -60,8 +62,12 @@ class Agilibox::SmallData::Filter
|
|
60
62
|
write read.merge(new_filters)
|
61
63
|
end
|
62
64
|
|
65
|
+
def actives_count
|
66
|
+
read.count { |k, v| strategies.key?(k.to_s) && v.present? }
|
67
|
+
end
|
68
|
+
|
63
69
|
def any?
|
64
|
-
|
70
|
+
actives_count.positive?
|
65
71
|
end
|
66
72
|
|
67
73
|
def empty?
|
data/lib/agilibox/version.rb
CHANGED