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 +4 -4
- data/README.md +1 -1
- data/lib/rooble.rb +1 -1
- data/lib/rooble/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 307c74588332f85bd79da55e05aff79f97552379
|
4
|
+
data.tar.gz: 598bc0d01cf98b6f1e05ba40ebd637280bf3a5ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/rooble.rb
CHANGED
@@ -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
|
|
data/lib/rooble/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|