snaptable 0.6.1 → 0.6.3

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: 4a75e025021d6a9647efcbe69ddb6ea3e7e47063
4
- data.tar.gz: 38ff178b7081ddaca9748adb94339258165c1630
3
+ metadata.gz: 1ec427aec2bd8359d265c9924d1b10608043ff3e
4
+ data.tar.gz: 2433e16ffc85ce6d6fb928a2bc996cd14db4eaf2
5
5
  SHA512:
6
- metadata.gz: 4e11c29609f3ceab403cdb161cf099d9ae0af3b0984d15bd63e545ee4e31c5b9b4bcc462264dbc94d9c1a970353739303f9ac4ca576b5573bc271101bf3962cd
7
- data.tar.gz: f402fac534ff1e5b90782d07c6d94288488a5b1d6201f5baa9c2169f711f0cfc682a6e229082956f0abd12dfd3b67a530391dfceeaa5566d79cee06e5b643725
6
+ metadata.gz: 56a42b222ea3bd747334f27f7c16f30e1e2793367a7828e626672a7a863c3e82cb732eddfd2b4345aa5c6bd81b6c44faae322ee46de3a40feb8cd07f016eb183
7
+ data.tar.gz: 064ddf559ff2b1747e9eb7528ea4b3449677e85e02666675d2aea46ab6c7eefc0ae8a44e813b02d5a61503e8d34f5bea74f86ca4befbde2ed1efa60ef38a6d91
@@ -27,8 +27,8 @@ module Snaptable
27
27
  def query
28
28
  query_fields.map do |key, values|
29
29
  values.map do |value|
30
- values.map{ |v| "#{key}.#{v} LIKE :query OR"}.join(" ")
31
- end
30
+ "#{key}.#{value} LIKE :query OR"
31
+ end.join(" ")
32
32
  end.join(" ") + " #{column_name('id')} = :id"
33
33
  end
34
34
 
@@ -1,5 +1,5 @@
1
1
  module Snaptable
2
2
  module Rails
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.3"
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module Snaptable
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - khcr
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
11
+ date: 2015-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler