Sha256: 20ef09c9ca313864b7186acdb9703c8489e7ea2782c52c9bba1a27d9bde8f198
Contents?: true
Size: 448 Bytes
Versions: 29
Compression:
Stored size: 448 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' request_bytes = STDIN.read code_generator = ::Protobuf::CodeGenerator.new(request_bytes) response_bytes = code_generator.response_bytes STDOUT.print(response_bytes)
Version data entries
29 entries across 29 versions & 2 rubygems