B
Bryan Richardson
Hello All,
I'm creating a Ruby gem that utilizes the ruby_protobuf gem to generate
Ruby code using a protocol descriptor file (protocol.proto) in Google
Protobuf's format. Given this, my gem has a dependency for the
ruby_protobuf gem, and I'd like to use rprotoc (provided by
ruby_protobuf) to compile the protocol.proto file in my gem with
whatever version of ruby_protobuf is or gets installed when my gem is
installed.
Can Gem.post_install hooks be used in this case, or should I use the
extensions attribute of a gemspec file to identify code to be executed
after my gem is installed?
If post_install hooks can be used, where should the hooks be defined?
If the extensions attribute can be used, can a .rb file added to the
extensions attribute simply contain random Ruby code, or does it have to
be extconf.rb-style Ruby code in it?
I'm creating a Ruby gem that utilizes the ruby_protobuf gem to generate
Ruby code using a protocol descriptor file (protocol.proto) in Google
Protobuf's format. Given this, my gem has a dependency for the
ruby_protobuf gem, and I'd like to use rprotoc (provided by
ruby_protobuf) to compile the protocol.proto file in my gem with
whatever version of ruby_protobuf is or gets installed when my gem is
installed.
Can Gem.post_install hooks be used in this case, or should I use the
extensions attribute of a gemspec file to identify code to be executed
after my gem is installed?
If post_install hooks can be used, where should the hooks be defined?
If the extensions attribute can be used, can a .rb file added to the
extensions attribute simply contain random Ruby code, or does it have to
be extconf.rb-style Ruby code in it?