json-logic-ruby
json-logic-ruby copied to clipboard
Build complex rules, serialize them as JSON, and execute them in ruby
Solving the issue reported in https://github.com/bhgames/json-logic-ruby/issues/28
under heavy load this create a lot allocation + GC work for us, we want the opportunity to refactor our work by only pass in stringified keys data.
I noticed that the repo is not being actively maintained for quite a long time. I would be pleased to dedicate same time to help in the maintenance of this...
According to the spec at https://jsonlogic.com/, the `==` operator should return true when comparing inputs such as `1.0` and `1`
I've noticed that the `in` operator is failing when receiving `nil` values as the array. ## Context: We have been using JSONLogic for a couple of years now to evaluate...
There is a bug within uses_data. It takes only the first value for var values. It should take all. Consider the below example ``` { "all" => [ { "var"=>...
This should make it safe(er) to run rules from untrusted sources. Note: the existing logic enforces that the first argument passed to an operation is always an array, which means...
This so-called 'gem' only works as advertised with Javascript. Don't waste your time... -- cc
I've noticed that the operations in this port work entirely different then they do in the original JS port. Specifically here: https://github.com/bhgames/json-logic-ruby/blob/97b4b5d6d2bfdf00d450c428e43022113b3e4a3c/lib/json_logic/operation.rb#L117 JSONLogic is defined to accept the elements in...
Not an actual issue, just wanted to say thank you so much for creating this gem!