0.0
No commit activity in last 3 years
No release in over 3 years
Parser for github-style search.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 2.14
~> 5.9
~> 0.10
~> 11.2
~> 0.46
 Project Readme

TRUTH SERUM

Features

  • Parses keywords as well as filters:value syntax.
  • Handles "quotes spaces ::: escapes \r\n newlines".
  • Has proper lexing and parsing system instead of a regular expression.

INSTALL

gem install truth_serum

USAGE

require 'truth_serum'

result = TruthSerum.parse("hello world key:value -negate:yes")
puts result.terms
puts result.filters
puts result.negative_filters

query = TruthSerum.unparse(result)
puts query

LICENSE

MIT