rest_framework 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1583903193d7a8c88b82eea0f34b7bd65ad4c59cc4f1112c082dc1be0c88100f
4
- data.tar.gz: 0b6fd3b17bb8255069af4f4b747c68b05c58cc07baa9a924f93284f1eba93528
3
+ metadata.gz: dc5065eb969e4616e6a0e22717a4398940b3696a43182d6e8b526e225f6c81f3
4
+ data.tar.gz: 3efcfdfa6abfe7343770c8241e83d34bc1e02bcbd145826bc8a9709514b8b5f7
5
5
  SHA512:
6
- metadata.gz: fc14438bd01e40cc8d971743ec1fbc1c39f3acc5d571fb218d819c293e01c6d2f9ccf4a5665ea34986e47a343c42ed065ac114cdcbcac9aafff2d9e86ec30033
7
- data.tar.gz: 94b67818844fb8d2e4ca414f431ff85e7276216d1844f9da8413a1c135391fec26d6885c6fafc672c7068a579ec6d12ffd9f148d450ed8a0857820141f793966
6
+ metadata.gz: 170b7b9ebb18b9527d1e9216a0456af154284ab8935d1ddcc367815bf73c86379ae83340f6a259f6b4324d5c4cf32eae740a28210a1ce963427ef96a870ae016
7
+ data.tar.gz: a6148d463fa2eda9dc6f19dc89646a78b922a93bdcf6f147707343d218a9501e8bebe67d8182d75a946968d59b27a0f030d08349268297799bc4886b780f6aa4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.3.5
@@ -84,7 +84,7 @@ class RESTFramework::ModelSearchFilter < RESTFramework::BaseFilter
84
84
  # Ensure we use array conditions to prevent SQL injection.
85
85
  unless search.blank?
86
86
  return data.where(fields.map { |f|
87
- "CAST(#{f} AS text) #{@controller.send(:search_ilike) ? "ILIKE" : "LIKE"} ?"
87
+ "CAST(#{f} AS CHAR) #{@controller.send(:search_ilike) ? "ILIKE" : "LIKE"} ?"
88
88
  }.join(' OR '), *(["%#{search}%"] * fields.length))
89
89
  end
90
90
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory N. Schmit