Sha256: 0d01f40b3376d38ba516c08960acf5ea4e710be6d1f0443b9d11bfc8df462cef
Contents?: true
Size: 657 Bytes
Versions: 37
Compression:
Stored size: 657 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) code_generator.eval_unknown_extensions! STDOUT.print(code_generator.response_bytes)
Version data entries
37 entries across 37 versions & 3 rubygems