Having issues running it:
$ ruby -v
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin9.7.0]
$ find_bad_encodings .
/Library/Ruby/Gems/1.8/gems/adamsalter-bad_encodings-ruby19-0.1.1/bin/find_bad_encodings:11:
Requires Ruby 1.9 (ArgumentError)
 from /usr/bin/find_bad_encodings:19:in `load'
from /usr/bin/find_bad_encodings:19

Less surprisingly, it fails to run within ruby18 too.

On Thu, Sep 10, 2009 at 5:28 PM, Adam Salter <adam.q.sal...@gmail.com>wrote:

> I got sick of a particularly bad time tracking down a 'bad encoding' error
> in rails on ruby 1.9, so I've written a gem...
>
> http://github.com/adamsalter/bad_encodings-ruby19/tree/master
>
> 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.
>
> Fixed my issue (another coder, on ruby 1.8, had edited a library(!) and put
> a bad encoding in)
>
> Try it out and let me know how you go.
>
> Cheers,
> -Adam
> [image: Dinosaur Comics!]
>
>
> >
>


-- 
Dr Nic Williams
Mocra - Premier iPhone and Ruby on Rails Consultants
w - http://mocra.com
twitter - @drnic
skype - nicwilliams
e - dr...@mocra.com
p - +61 412 002 126 or +61 7 3102 3237

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to