Set ruby-version to 2.1.1
Fix 1.8.7 compatiblity
Test on 1.8.7, 1.9.3, 2.1.1
Merge pull request #188 from balanced/fix-1.8.7-compatibility

Fix 1.8.7 compatibility