pattern_query_helper 0.1.5 → 0.1.6

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: 72dac5f490c67ea9ccbd91ccae154825800c6175
4
- data.tar.gz: ce895e90962390309e933db424d3df56902defae
3
+ metadata.gz: 55ed2ba55f42fcddaedda67af2615b14b97fd35e
4
+ data.tar.gz: 4c523ba2e50d29f74618ff819b78224d24006f9e
5
5
  SHA512:
6
- metadata.gz: 85bab3af7f4381aea91f70ed15759109d25f2dc3cb43f171d67d1a5396157c69c46cbc9143dd7114421957050f24c3451b204da3b0ab99bbe988afe3b8980d2e
7
- data.tar.gz: 3e3a252834a9f418ecacdb16aa63027d9bc5b795319e77abd0ca3dc4a088de052716086536526e30e4ce314ef9865c243a0c0f643b480fb596d3ea2b0d6e7c87
6
+ metadata.gz: a3557ac52ea137c52776f03966153cbaa1fa46feccadbe0d4cd3c8b4a0c8c8a2e4d9a0c701864289b24bccc0101ba132ccf65c2b1771a078913989baf88f27d5
7
+ data.tar.gz: b3cc2a06421888079f0ccc2a3681db9b3320644b4046545aa31ec8f54df7384e696c8cffd8a1fef91ee4b0fa937ba396162cea283f182656c03f199dd4c207c1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pattern_query_helper (0.1.5)
4
+ pattern_query_helper (0.1.6)
5
5
  activerecord (~> 5.0)
6
6
  kaminari
7
7
 
@@ -1,3 +1,3 @@
1
1
  module PatternQueryHelper
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -6,6 +6,10 @@ require "pattern_query_helper/sorting"
6
6
  require "pattern_query_helper/sql"
7
7
 
8
8
  module PatternQueryHelper
9
+ PAGINATED_QUERY = "paginated"
10
+ SINGLE_RECORD_QUERY = "single_record"
11
+ COMPLETE_QUERY = "all"
12
+
9
13
  def self.run_sql_query(model, query, query_params, query_helpers, query_type)
10
14
  case query_type
11
15
  when "single_record"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pattern_query_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan McDaniel