Resolves Ruby syntax warning

Resolves a Ruby syntax warning for variable reuse
Update rules.rb

Additional missed warning
Merge pull request #6 from kaerast/patch-1

Resolves Ruby syntax warning