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: d491a082f448e3029da9f60e6bc3f975b2e95707
4
- data.tar.gz: f4c23e6f95a0bfb6f0f4e764b9d0cb27b435b8f4
3
+ metadata.gz: 63699b5c2ae8ace5c8aba4b644dfbc0494e3536a
4
+ data.tar.gz: 2dd2ecb60e0cc7c66c5c3c046bc69e88dedf63f0
5
5
  SHA512:
6
- metadata.gz: 70b7605c5e07c0cca3bdc91eae3afb669adf8e4392872527beb509039976d062d18b1c1f7ece2d4a04c028361ef09e547b6b817c71ae5e0ea5ebda761fa60b8a
7
- data.tar.gz: 113ab69bc5aa7126331afc70a05e67e1c87e22508d4555824c7d3188071713f845d361bb7f61ff1ff14f3e47f8bcf61cc8974850758b6c0bd58c69c1aed31497
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
- @records = @resource.where("#{field} #{operator} '#{value}'")
43
+ where = "#{field} #{operator}"
44
+ where += " '#{value}'" if value
45
+ @records = @resource.where(where)
44
46
  end
45
47
  end
46
48
 
@@ -6,7 +6,7 @@ ForestLiana::Engine.routes.draw do
6
6
  get 'stripe_invoices' => 'stripe#invoices'
7
7
 
8
8
  # Stats
9
- post 'stats' => 'stats#show'
9
+ post '/stats/:collection' => 'stats#show'
10
10
 
11
11
  # CRUD
12
12
  get '/' => 'apimaps#index'
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "1.1.7"
2
+ VERSION = "1.1.8"
3
3
  end
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.7
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-10-30 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails