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

Version Path
protobuf-3.10.9 bin/protoc-gen-ruby
protobuf-3.10.8 bin/protoc-gen-ruby
protobuf-3.10.7 bin/protoc-gen-ruby
protobuf-3.10.6 bin/protoc-gen-ruby
protobuf-3.10.5 bin/protoc-gen-ruby
protobuf-3.10.4 bin/protoc-gen-ruby
protobuf-cucumber-3.10.8 bin/protoc-gen-ruby
protobuf-cucumber-3.10.7 bin/protoc-gen-ruby
protobuf-cucumber-3.10.6 bin/protoc-gen-ruby
protobuf-cucumber-3.10.5 bin/protoc-gen-ruby
protobuf-cucumber-3.10.4 bin/protoc-gen-ruby
protobuf-3.10.3 bin/protoc-gen-ruby
protobuf-3.10.2 bin/protoc-gen-ruby
protobuf-3.10.1 bin/protoc-gen-ruby
protobuf-3.10.0 bin/protoc-gen-ruby
protobuf-3.10.0.pre0 bin/protoc-gen-ruby
protobuf-3.9.0 bin/protoc-gen-ruby
protobuf-3.9.0.pre2 bin/protoc-gen-ruby
protobuf-3.9.0.pre bin/protoc-gen-ruby
protobuf-3.8.5 bin/protoc-gen-ruby