{"id":20278907,"url":"https://github.com/chakrit/truth_serum","last_synced_at":"2025-04-11T06:14:33.178Z","repository":{"id":59158120,"uuid":"58150353","full_name":"chakrit/truth_serum","owner":"chakrit","description":"Ruby lib for parsing github-style searches.","archived":false,"fork":false,"pushed_at":"2018-08-06T08:53:03.000Z","size":55,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T06:14:27.484Z","etag":null,"topics":["github-search","parsing","search","truth-serum"],"latest_commit_sha":null,"homepage":"https://www.omise.co","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chakrit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-05T17:58:30.000Z","updated_at":"2023-10-17T09:58:07.000Z","dependencies_parsed_at":"2022-09-13T20:11:27.535Z","dependency_job_id":null,"html_url":"https://github.com/chakrit/truth_serum","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chakrit%2Ftruth_serum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chakrit%2Ftruth_serum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chakrit%2Ftruth_serum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chakrit%2Ftruth_serum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chakrit","download_url":"https://codeload.github.com/chakrit/truth_serum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351393,"owners_count":21089272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-search","parsing","search","truth-serum"],"created_at":"2024-11-14T13:27:03.991Z","updated_at":"2025-04-11T06:14:33.143Z","avatar_url":"https://github.com/chakrit.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TRUTH SERUM\n\nFeatures\n\n* Parses `keywords` as well as `filters:value` syntax.\n* Handles `\"quotes spaces ::: escapes \\r\\n newlines\"`.\n* Has proper lexing and parsing system instead of a regular expression.\n\n# INSTALL\n\n```\ngem install truth_serum\n```\n\n# USAGE\n\n```rb\nrequire 'truth_serum'\n\nresult = TruthSerum.parse(\"hello world key:value -negate:yes\")\nputs result.terms\nputs result.filters\nputs result.negative_filters\n\nquery = TruthSerum.unparse(result)\nputs query\n```\n\n# LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchakrit%2Ftruth_serum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchakrit%2Ftruth_serum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchakrit%2Ftruth_serum/lists"}