check inventory and restart checkout if not enough

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

Fixes #5594