Pārlūkot izejas kodu

Fixing regular expression...

This will allow loading the extension for Ruby 2.1.10...
Nicolas Noble 9 gadi atpakaļ
vecāks
revīzija
866d3e5327
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      ruby/lib/google/protobuf.rb

+ 1 - 1
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