Ruleby / ruleby

the Rules Engine for Ruby
http://www.ruleby.org
Other
327 stars 42 forks source link

:not quantifier can't be ordered arbitarily in the LHS #12

Closed jkutner closed 14 years ago

jkutner commented 15 years ago

These two rules should produce the same results, but they don't:

rule :no_other_exisitng_actions, 
  [CurrentPage, :cp],
  [Link, :l],
  [:not, LowerPage],
  [:not, HigherPage] do |v|
    puts "worked"
end

rule :no_other_exisitng_actions, 
  [CurrentPage, :cp],
  [:not, LowerPage],
  [:not, HigherPage],
  [Link, :l] do |v|
    puts "worked"
end

Thanks to Jason for reporting this: http://groups.google.com/group/ruleby/browse_thread/thread/7a3774ffaa4de6cd

jkutner commented 14 years ago

fixed for 0.6 release