Merge pull request #2001 from nicolasnoble/patch-1

Fixing regular expression...
This commit is contained in:
Joshua Haberman 2016-08-24 10:40:50 -07:00 committed by GitHub
commit b97a4a53cd

View File

@ -45,7 +45,7 @@ if RUBY_PLATFORM == "java"
require 'google/protobuf_java'
else
begin
require "google/#{RUBY_VERSION.sub(/\.\d$/, '')}/protobuf_c"
require "google/#{RUBY_VERSION.sub(/\.\d+$/, '')}/protobuf_c"
rescue LoadError
require 'google/protobuf_c'
end