fix loop syntax and gem version
Merge pull request #12 from G5/loop-fix

fix loop syntax and gem version