Update ruby version for circle builds
fixes #5585
Scope query to just orders line items.

Fixes #5594
Remove n+1 line item lookup. Fixes #5481