check inventory and restart checkout if not enough

fixes #5585
Update ruby version for circle builds
fixes #5585
Scope to orders line items. Fixes #5594
Duplicate entry of inventory_unit_attributes in ATTRIBUTES, its already present at line number 18