From 866d3e5327d11b6846edb1b65f73673008a43ed2 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Tue, 23 Aug 2016 22:46:26 -0700 Subject: Fixing regular expression... This will allow loading the extension for Ruby 2.1.10... --- ruby/lib/google/protobuf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ruby/lib') diff --git a/ruby/lib/google/protobuf.rb b/ruby/lib/google/protobuf.rb index 62bdd1bf..9b8d8231 100644 --- a/ruby/lib/google/protobuf.rb +++ b/ruby/lib/google/protobuf.rb @@ -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 -- cgit v1.2.3