minom/beefcake — pull request #1 by goodwink (2012-09-04 13:56:02+00:00)
Title: Fix problems causing NameError running protoc

Fixes a problem encountered while generating ruby from protoc:

```
snotra:SCiMap kgoodwin$ protoc --beefcake_out lib/falcon/messages -I ../Falcon/resources/proto ../Falcon/resources/proto/falcon_messages.proto
/Users/kgoodwin/.rvm/gems/ruby-1.9.3-p194/bundler/gems/beefcake-6bb42a97d522/lib/beefcake/delayed.rb:19:in `const_get': wrong constant name CodeGeneratorRequest::FileDescriptorProto (NameError)
from /Users/kgoodwin/.rvm/gems/ruby-1.9.3-p194/bundler/gems/beefcake-6bb42a97d522/lib/beefcake/delayed.rb:19:in `__object__'
from /Users/kgoodwin/.rvm/gems/ruby-1.9.3-p194/bundler/gems/beefcake-6bb42a97d522/lib/beefcake/delayed.rb:39:in `method_missing'
from /Users/kgoodwin/.rvm/gems/ruby-1.9.3-p194/bundler/gems/beefcake-6bb42a97d522/lib/beefcake/generator.rb:256:in `compile'
from /Users/kgoodwin/.rvm/gems/ruby-1.9.3-p194/bundler/gems/beefcake-6bb42a97d522/lib/beefcake/generator.rb:145:in `block in compile'
from /Users/kgoodwin/.rvm/gems/ruby-1.9.3-p194/bundler/gems/beefcake-6bb42a97d522/lib/beefcake/generator.rb:143:in `map'
from /Users/kgoodwin/.rvm/gems/ruby-1.9.3-p194/bundler/gems/beefcake-6bb42a97d522/lib/beefcake/generator.rb:143:in `compile'
from /Users/kgoodwin/.rvm/gems/ruby-1.9.3-p194/bundler/gems/beefcake-6bb42a97d522/bin/protoc-gen-beefcake:8:in `'
from /Users/kgoodwin/.rvm/gems/ruby-1.9.3-p194/bin/protoc-gen-beefcake:19:in `load'
from /Users/kgoodwin/.rvm/gems/ruby-1.9.3-p194/bin/protoc-gen-beefcake:19:in `

'
from /Users/kgoodwin/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/kgoodwin/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `

'
--beefcake_out: protoc-gen-beefcake: Plugin failed with status code 1.
```

Apologies for the whitespace change cluttered diff.