searrrch 0.0.2 → 0.0.3
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 +4 -4
- data/.travis.yml +2 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -1
- data/lib/searrrch.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d09b5d8e6f036dd50cf0f303f87346c3c1967077
|
|
4
|
+
data.tar.gz: 2f01701c39014e9dd276cac28f9fd0e235f2ecaf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d5789e921c87da3095e2d7ee6be39fc36373f75a893188eaa464abe7d9c583648b533c64c6667af1f47eb9ea1536e79f55a2267e6ccda32fbc6744582ff8135
|
|
7
|
+
data.tar.gz: 2db9a6f516284a81deed2b258ff538a89096b9ecbebea761ca738f99b3999d4b1f1ecf2241fcd3f5a8d7edf64b6c238ffa39cfebd9cfee0648174868033a5812
|
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
# searrch
|
|
2
|
+
|
|
3
|
+
[](https://travis-ci.org/marcelocf/searrrch)
|
|
4
|
+
|
|
2
5
|
Allow you to receive a query string using the syntax similar to gmail's filters
|
|
3
6
|
and parse it without going crazy.
|
|
4
7
|
|
|
@@ -8,7 +11,7 @@ The following search string is supported:
|
|
|
8
11
|
user_id: 123 user_name: omg user_id: 124 free text here
|
|
9
12
|
```
|
|
10
13
|
|
|
11
|
-
The user can also put the value between quotes
|
|
14
|
+
The user can also put the value between quotes, in which case nested escaped quotes are supported.
|
|
12
15
|
|
|
13
16
|
Usage:
|
|
14
17
|
|
data/lib/searrrch.rb
CHANGED
|
@@ -12,7 +12,7 @@ class Searrrch
|
|
|
12
12
|
# also support ',' for you cool kids that expect something like a "list of ids"
|
|
13
13
|
# 3. and also accept any char if quoted - in which case the same quotation should be quoted as well
|
|
14
14
|
|
|
15
|
-
VERSION = '0.0.
|
|
15
|
+
VERSION = '0.0.3'
|
|
16
16
|
|
|
17
17
|
# iterates over the entire string identifying each of the elements
|
|
18
18
|
# this code only checks for:
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: searrrch
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marcelo Coraça de Freitas
|
|
@@ -90,6 +90,7 @@ files:
|
|
|
90
90
|
- ".gitignore"
|
|
91
91
|
- ".ruby-gemset"
|
|
92
92
|
- ".ruby-version"
|
|
93
|
+
- ".travis.yml"
|
|
93
94
|
- Gemfile
|
|
94
95
|
- Gemfile.lock
|
|
95
96
|
- Guardfile
|