fastapi 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fastapi.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbe0935ccea237da3b9b90ace9fe9501d0c92f18
4
- data.tar.gz: 3f8182bf71795fa7d08e103ca69cbb7e361d99b6
3
+ metadata.gz: 7f3e9ae20544155cc5bfc4a04478ea6cde0e23a9
4
+ data.tar.gz: 790283c79ba0b1c8958639b749971bb48c059b27
5
5
  SHA512:
6
- metadata.gz: ebcde37b344f6a1fd9795085d758a492d7f9e26b0f3eb5ba6457996a849defdd811c19d605ddd09560ea7643287d557b597c7d5b6ee303ebb2dd30d3e156c3ff
7
- data.tar.gz: a42d6d5d3d8ff6e9b9d5995909d2c9609f4843d68eff594d43bcd77a20df579483b25e333027b54498453cb83e9acd65a971838673f547f98f6f05b23f20e8a7
6
+ metadata.gz: 0c2b924a361810c2a5be6b37620fe1801bda662bd1a6b722f5563a4fb37c34e183c9d8907844df297b4329778a296243f4f4a1b9005144bc09e1de5269afa9ce
7
+ data.tar.gz: 7834a65f5c3047355d38e5a20c53a27ef15e471f556e8f7631ef38cf4c4991438905bb7740f05ac0cc003eab8ac658d5ea7379c174b07109e6bbfa8ca51b8205
data/lib/fastapi.rb CHANGED
@@ -592,11 +592,11 @@ class FastAPI
592
592
 
593
593
  elsif comparator == 'contains'
594
594
 
595
- '\'%\' || ' + ActiveRecord::Base.connection.quote(value.to_s) + ' || \'%\' LIKE ' + field_string
595
+ field_string + ' LIKE \'%\' || ' + ActiveRecord::Base.connection.quote(value.to_s) + ' || \'%\''
596
596
 
597
597
  elsif comparator == 'icontains'
598
598
 
599
- '\'%\' || ' + ActiveRecord::Base.connection.quote(value.to_s) + ' || \'%\' ILIKE ' + field_string
599
+ field_string + ' ILIKE \'%\' || ' + ActiveRecord::Base.connection.quote(value.to_s) + ' || \'%\''
600
600
 
601
601
  elsif comparator == 'is_null'
602
602
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Horwood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-25 00:00:00.000000000 Z
11
+ date: 2015-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj