| Index: third_party/protobuf/ruby/lib/google/protobuf.rb
|
| diff --git a/third_party/protobuf/ruby/lib/google/protobuf.rb b/third_party/protobuf/ruby/lib/google/protobuf.rb
|
| index f0eb626824f23b6dcd858ec820d57bcd246439de..62bdd1bf1af30552a1745e3dda399f7deb08ccce 100644
|
| --- a/third_party/protobuf/ruby/lib/google/protobuf.rb
|
| +++ b/third_party/protobuf/ruby/lib/google/protobuf.rb
|
| @@ -44,7 +44,11 @@ if RUBY_PLATFORM == "java"
|
| require 'json'
|
| require 'google/protobuf_java'
|
| else
|
| - require 'google/protobuf_c'
|
| + begin
|
| + require "google/#{RUBY_VERSION.sub(/\.\d$/, '')}/protobuf_c"
|
| + rescue LoadError
|
| + require 'google/protobuf_c'
|
| + end
|
| end
|
|
|
| require 'google/protobuf/repeated_field'
|
|
|