{"id":26811295,"url":"https://github.com/ekzo-dev/ruby-feelin","last_synced_at":"2025-03-30T01:38:14.364Z","repository":{"id":284597743,"uuid":"955455205","full_name":"ekzo-dev/ruby-feelin","owner":"ekzo-dev","description":"feelin Ruby wrapper","archived":false,"fork":false,"pushed_at":"2025-03-26T17:20:05.000Z","size":691,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T18:25:14.654Z","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/ekzo-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-26T17:02:37.000Z","updated_at":"2025-03-26T17:20:09.000Z","dependencies_parsed_at":"2025-03-26T18:35:33.727Z","dependency_job_id":null,"html_url":"https://github.com/ekzo-dev/ruby-feelin","commit_stats":null,"previous_names":["ekzo-dev/ruby-feelin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekzo-dev%2Fruby-feelin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekzo-dev%2Fruby-feelin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekzo-dev%2Fruby-feelin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekzo-dev%2Fruby-feelin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekzo-dev","download_url":"https://codeload.github.com/ekzo-dev/ruby-feelin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246266278,"owners_count":20749754,"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":"2025-03-30T01:38:13.641Z","updated_at":"2025-03-30T01:38:14.350Z","avatar_url":"https://github.com/ekzo-dev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby feelin\n\nThis gem uses embed [V8 JavaScript engine](https://v8.dev/) and [feelin](https://github.com/nikku/feelin) JavaScript library to parse and evaluate [DMN](https://www.omg.org/spec/DMN) FEEL expressions.\nPerformance of this approach for executing JS in Ruby is comparable with V8 native performance.\n\n## Install\n\n```ruby\ngem 'feelin'\n```\n\n## Usage\n\n### Evaluate\n\n```ruby\n# without context\nFEELIN.evaluate('for a in [1, 2, 3] return a * 2') # [ 2, 4, 6 ]\n\n# with context\nFEELIN.evaluate(\"Mike's daughter.name\", { 'Mike\\'s daughter.name' =\u003e 'Lisa' }) # Lisa\n```\n\n### Unary tests\n\n```ruby\n# without context\nFEELIN.unary_test('1', 1) # true\n\n# with context\nFEELIN.unary_test('[1..end]', 1, { 'end' =\u003e 10 }) # true\n```\n\n### Custom functions\n\n```ruby\nFEELIN.add_function('rates', proc { [10, 20] })\nFEELIN.evaluate('every rate in rates() satisfies rate \u003c 10') # false\n```\n\n## Versioning policy\n\nBecause this library is a wrapper - it is released with the same major/minor version numbers as the underlying feelin library","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekzo-dev%2Fruby-feelin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekzo-dev%2Fruby-feelin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekzo-dev%2Fruby-feelin/lists"}