truth_serum 0.2.0 → 0.3.0

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: 77ea2202c19fa2afd7f1eb080169b7314b4ca51d
4
- data.tar.gz: b77ae18ef4a9443a04a1d7be69757ef7569961fb
3
+ metadata.gz: 11bd5ca743bdf3ff58d3fe304596c2c829dbaac0
4
+ data.tar.gz: 537bee9e6d7db49485e6479ce3ea7a0c1fa441a6
5
5
  SHA512:
6
- metadata.gz: 5864b0061805904097a13d29087d2367a7ea3b1694b3faf97a59ccbe0e2bab11194d7bf6bc2379e99112924010bef99581dedb2743de656161a00670d245cb1b
7
- data.tar.gz: 7c1cadf93db90ae52a1d22c828b831a0b956cfedaa151c6e2405f35e204ac0fe571b0baf5e2cb7e1c34ee67f5a44cbe590a7d1b0630770a3c4a77ce295394a63
6
+ metadata.gz: bc5d5395ca20932ca664ad57956601ecb2f47241cb234f09930e5cb5d829c0e79457a9202350c70634d1dd0ec20dbd83445590a6d2d40187ff743367b7ab86c3
7
+ data.tar.gz: 788837b9491cac7588a831effbd022c44e961ac328fbc37e351f5d5713f19927157cb362a50700cba7df4a0a616b12c06f108dcb2cbb7872c34987b56e3ff3ff
data/README.md CHANGED
@@ -21,6 +21,9 @@ result = TruthSerum.parse("hello world key:value -negate:yes")
21
21
  puts result.terms
22
22
  puts result.filters
23
23
  puts result.negative_filters
24
+
25
+ query = TruthSerum.unparse(result)
26
+ puts query
24
27
  ```
25
28
 
26
29
  # LICENSE
@@ -46,7 +46,7 @@ module TruthSerum
46
46
  def lex_word
47
47
  until eof?
48
48
  case peek
49
- when ' ', ':', '+', '-' then return emit(:term)
49
+ when ' ', ':' then return emit(:term)
50
50
  when '"' then discard
51
51
  else
52
52
  consume
@@ -1,3 +1,3 @@
1
1
  module TruthSerum
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: truth_serum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chakrit Wichian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-03 00:00:00.000000000 Z
11
+ date: 2016-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler