Sha256: 106061e861498899a5e05781b20079649c34c352451c1f84adb7f080e609d580
Contents?: true
Size: 649 Bytes
Versions: 2
Compression:
Stored size: 649 Bytes
Contents
#!/usr/bin/env ruby # Before requiring protobuf, ensure that we will not load any # server or client code. # ENV['PB_NO_NETWORKING'] = '1' $LOAD_PATH << ::File.expand_path("../../lib", __FILE__) require 'protobuf' require 'protobuf/descriptors' require 'protobuf/code_generator' # Ensure that no encoding conversions are done on STDIN and STDOUT since # we are passing binary data back and forth. Otherwise these streams # will be mangled on Windows. STDIN.binmode STDOUT.binmode request_bytes = STDIN.read code_generator = ::Protobuf::CodeGenerator.new(request_bytes) response_bytes = code_generator.response_bytes STDOUT.print(response_bytes)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
protobuf-3.7.0.pre2 | bin/protoc-gen-ruby |
protobuf-3.7.0.pre1 | bin/protoc-gen-ruby |