sbecker/mailcheck-ruby — pull request #2 by thousandsofthem (2013-10-18 10:41:44+00:00)
Title: Fixed distance calculation, Re-written unoptimal code

Fixes bug in calculation distance between strings, distance was rounded down to integer number, e.g `3.9` -> `3`

```ruby
# was
mailcheck.suggest "user@juno.com" #-> 'user@msn.com'

# now - same as mailcheck.js
mailcheck.suggest "user@juno.com" #-> false

```

* Fixed distance calculation.
* Re-written some unoptimal code
* Make code closer to style guide