rooble 0.3.3 → 0.3.4

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: 28a21415ee2a634a1680dedba3f794c6ae4a1014
4
- data.tar.gz: 6c8cdacaa4ae3183d41b176867bdfd2fbc92f74f
3
+ metadata.gz: 307c74588332f85bd79da55e05aff79f97552379
4
+ data.tar.gz: 598bc0d01cf98b6f1e05ba40ebd637280bf3a5ac
5
5
  SHA512:
6
- metadata.gz: 3119159682297c57f36d624922023cde2881183a15477b52f12da4fe540b0c74316c11480f1dd41b38f1b06a543dd935a5454982575a4804bbcb4874bb045977
7
- data.tar.gz: bae92d903cd64307609e89cbb952c45aadf09c6478e413566e8759026074bf80ec0c23be58871df5ee7726e7c9e4ff0e489abcf7e6a7e6f596f81ff2140a1c5e
6
+ metadata.gz: 3f810ba27774d26ecb6b7f5341f0307dd436cb54c0e2a1b8d27c6e8b8470d3d33cde73825eee0852008fb0aa5581100a191a80ab2207b4c84a68b0a817213e6b
7
+ data.tar.gz: b4018f56c9200cdaa75931b7c4590c41380b8193afde5988033e4efa9fe057e9c5188fe3d9a017a5a5f7980d755b9ead054b429a4b151eac83dea14bba91e4ad
data/README.md CHANGED
@@ -98,7 +98,7 @@ Model.search(fields, search_term, options={})
98
98
 
99
99
  **Arguments:**
100
100
 
101
- - `fields` a string with a field name or string array with field names to make the query against
101
+ - `fields` a string with a field name or string/symbol array with field names to make the query against
102
102
  - `search_term` string with the term to search
103
103
  - `options` a hash with a set of options. Please se below for more info.
104
104
 
@@ -94,7 +94,7 @@ module Rooble
94
94
 
95
95
  # lets find out if we are looking for the ID, we can't
96
96
  # use like for integers so we use equality instead
97
- if id_fields.include? field.downcase
97
+ if id_fields.include? field.downcase.split('.').last
98
98
  # check that the search term is actually a number
99
99
  next unless search_term.to_s.gsub('%', '').to_i > 0
100
100
 
@@ -1,3 +1,3 @@
1
1
  module Rooble
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rooble
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gustavo Rubio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-27 00:00:00.000000000 Z
11
+ date: 2016-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport