localshred/protobuf — pull request #23 by bdewitt (2012-09-29 18:51:47+00:00)
Title: Cpp compiler

Wired up the new rprotoc compiler to use the C++ cli interface via FFI. We definitely need to add specs to make sure proto generation works correctly, but everything seems to be working within all the VM's I have on my machine (even compiles the extension in Jruby, much to my surprise)

The only "oddity" is ENV['WITHOUT_PROTO_COMPILER'] which is the only way I provided to not compile the compiler on gem install, there probably is another way to enable this (maybe packaging the compiler separate from the server/parser) but need to start a discussion on what is reasonable here. Since the whole parser/server is ruby and doesn't actually need the compiler I just left the option in for now.