aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2016-08-20 09:40:03 -0700
committerGravatar Alexander Polcyn <apolcyn@google.com>2016-08-20 09:40:34 -0700
commite61aab26511db51975649bddb6a63d871a5cbeb3 (patch)
tree4a3fd0e995a49665b6cf9754249098e629286e1a
parent8dd21260be260ebbef6d6d1edc346789d877bd15 (diff)
convert match data to string
-rw-r--r--src/ruby/lib/grpc/grpc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ruby/lib/grpc/grpc.rb b/src/ruby/lib/grpc/grpc.rb
index 5f0c42ca2c..f46710dc74 100644
--- a/src/ruby/lib/grpc/grpc.rb
+++ b/src/ruby/lib/grpc/grpc.rb
@@ -28,7 +28,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
begin
- ruby_version_dirname = /(\d+\.\d+)/.match(RUBY_VERSION)
+ ruby_version_dirname = /(\d+\.\d+)/.match(RUBY_VERSION).to_s
distrib_lib_dir = File.expand_path(ruby_version_dirname,
File.dirname(__FILE__))
if File.directory?(distrib_lib_dir)