diff options
author | Alexander Polcyn <apolcyn@google.com> | 2016-08-20 09:40:03 -0700 |
---|---|---|
committer | Alexander Polcyn <apolcyn@google.com> | 2016-08-20 09:40:34 -0700 |
commit | e61aab26511db51975649bddb6a63d871a5cbeb3 (patch) | |
tree | 4a3fd0e995a49665b6cf9754249098e629286e1a | |
parent | 8dd21260be260ebbef6d6d1edc346789d877bd15 (diff) |
convert match data to string
-rw-r--r-- | src/ruby/lib/grpc/grpc.rb | 2 |
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) |