forest_liana 1.1.7 → 1.1.8
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63699b5c2ae8ace5c8aba4b644dfbc0494e3536a
|
4
|
+
data.tar.gz: 2dd2ecb60e0cc7c66c5c3c046bc69e88dedf63f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59530120339881c1528ccfe30f2f8d0e78736beb23fe9f203157c2b955fb12b9e2304d61907c3d7b35917264a8b5374dc2f36df38e9637d729b72d2afb266c26
|
7
|
+
data.tar.gz: 7c6ae30382720fe4bf1a967d0ed98ee04b8e781bad026b95ae7707783c0cbe95df3c0a99b07aa6da94d33381ba9a993ec475281f4de184aa104a06d333ac1412
|
@@ -16,6 +16,12 @@ module ForestLiana
|
|
16
16
|
elsif value.include?('*')
|
17
17
|
operator = 'ILIKE'
|
18
18
|
value.gsub!('*', '%')
|
19
|
+
elsif value === '$present'
|
20
|
+
operator = 'IS NOT NULL'
|
21
|
+
value = nil
|
22
|
+
elsif value === '$blank'
|
23
|
+
operator = 'IS NULL'
|
24
|
+
value = nil
|
19
25
|
else
|
20
26
|
operator = '='
|
21
27
|
end
|
@@ -40,7 +40,9 @@ module ForestLiana
|
|
40
40
|
next if association?(field)
|
41
41
|
|
42
42
|
operator, value = OperatorValueParser.parse(value)
|
43
|
-
|
43
|
+
where = "#{field} #{operator}"
|
44
|
+
where += " '#{value}'" if value
|
45
|
+
@records = @resource.where(where)
|
44
46
|
end
|
45
47
|
end
|
46
48
|
|
data/config/routes.rb
CHANGED
data/lib/forest_liana/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|