{"id":17449172,"url":"https://github.com/ps2/simple_logic","last_synced_at":"2025-03-28T04:20:59.848Z","repository":{"id":17535924,"uuid":"20338460","full_name":"ps2/simple_logic","owner":"ps2","description":"Boolean logic parsing and evaluation","archived":false,"fork":false,"pushed_at":"2014-06-02T17:23:55.000Z","size":164,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T05:25:24.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ps2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-30T18:27:21.000Z","updated_at":"2018-10-30T03:15:56.000Z","dependencies_parsed_at":"2022-09-10T17:30:56.471Z","dependency_job_id":null,"html_url":"https://github.com/ps2/simple_logic","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps2%2Fsimple_logic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps2%2Fsimple_logic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps2%2Fsimple_logic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps2%2Fsimple_logic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ps2","download_url":"https://codeload.github.com/ps2/simple_logic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245967427,"owners_count":20701839,"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":[],"created_at":"2024-10-17T21:05:21.551Z","updated_at":"2025-03-28T04:20:59.816Z","avatar_url":"https://github.com/ps2.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleLogic\n\nA ruby gem that parses and evaluates simple boolean statements specified as a string.  Useful for evaluating user supplied business rules in your application without using ruby's eval().\n\n[![Build Status](https://travis-ci.org/ps2/simple_logic.svg?branch=master)][travis]\n\n\n[travis]: http://travis-ci.org/ps2/simple_logic\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'simple_logic'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install simple_logic\n\n## Usage\n\n```ruby\ncontext = { hungry: true, fridge_empty: true, restaurant_nearby: true}\nin_luck = SimpleLogic.eval(\"hungry \u0026\u0026 !fridge_empty || restaurant_nearby\", context)\n# =\u003e true\n```\n\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fps2%2Fsimple_logic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fps2%2Fsimple_logic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fps2%2Fsimple_logic/lists"}