sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
DidYouMean::ClassFinder#name_from_message
Always use the original error message to retrieve the user input since JRuby 1.7 behaves differently from MRI/Rubinius. class Name; end error = (Name::DoesNotExist rescue $!) # on MRI/Rubinius error.name #=> :DoesNotExist # on JRuby <= 1.7 error.name #=> :'Name::DoesNotExist'
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/did_you_mean-0.10.0/lib/did_you_mean/finders/name_error_finders/class_finder.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-DidYouMean--ClassFinder-name_from_message-for-pr
# Commit to gitgit add app/server/ruby/vendor/did_you_mean-0.10.0/lib/did_you_mean/finders/name_error_finders/class_finder.rbgit commit -m "better docs for DidYouMean::ClassFinder#name_from_message"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-DidYouMean--ClassFinder-name_from_message-for-pr
hub pull-request
# Celebrate!