Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: third_party/protobuf/ruby/lib/google/protobuf.rb

Issue 2599263002: third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Address comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 62bdd1bf1af30552a1745e3dda399f7deb08ccce..9b8d8231e2faf51f938db7b55a3231bee70c198c 100644
--- a/third_party/protobuf/ruby/lib/google/protobuf.rb
+++ b/third_party/protobuf/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
« no previous file with comments | « third_party/protobuf/ruby/google-protobuf.gemspec ('k') | third_party/protobuf/ruby/lib/google/protobuf/repeated_field.rb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698