This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Adam Salter (author)
Fri Oct 02 05:17:37 -0700 2009
| name | age | message | |
|---|---|---|---|
| |
.autotest | Wed Sep 09 21:24:09 -0700 2009 | |
| |
.gitignore | Fri Sep 11 01:40:06 -0700 2009 | |
| |
README.md | Fri Sep 11 01:40:06 -0700 2009 | |
| |
Rakefile | Wed Sep 09 23:33:19 -0700 2009 | |
| |
VERSION.yml | Fri Oct 02 05:17:37 -0700 2009 | |
| |
bad_encodings-ruby19.gemspec | Fri Oct 02 05:17:37 -0700 2009 | |
| |
bin/ | Fri Oct 02 05:17:29 -0700 2009 | |
| |
lib/ | Fri Oct 02 05:17:29 -0700 2009 | |
| |
tasks/ | Fri Oct 02 05:17:37 -0700 2009 | |
| |
test/ | Fri Oct 02 05:17:29 -0700 2009 |
README.md
BadEncodings
Small gem that tries to make the task of finding bad ruby encodings in your project a little easier. e.g. 'find_bad_encodings .'
It basically iterates over the regular 'ruby' files it can find and tries each line for 'valid_encoding' and then returns a list of all lines that failed.
Installation
Install gem as normal
gem install bad_encodings-ruby19 --source=http://gemcutter.org
Usage
You can either use it as a binary:
~/my_unencoded_dir/$ find_bad_encodings .
# => various wrongly encoded files.
or add it as a rake task to your (rails) project:
# put this in your project Rakefile
require 'bad_encodings/tasks'
~/my_unencoded_project/$ rake find_bad_encodings
Known Bugs
None. (well actually the detection of ruby encoding is pretty simple and probably not 100% accurate, certainly works for everything I've tried it on... patches welcome.)
Follow me on:
Twitter: twitter.com/adamsalter
Github: github.com/adamsalter
Copyright (c) 2009 Adam @ Codebright.net, released under the MIT license







