X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ba38697528df5aee2525631fbe2dc8af93bd47b6..f736ac4d9735600af24d8b71dd7b1fa40b4b055e:/lib/google/api_client/environment.rb diff --git a/lib/google/api_client/environment.rb b/lib/google/api_client/environment.rb index 7bb7966cfc..dbdb2d8ebe 100644 --- a/lib/google/api_client/environment.rb +++ b/lib/google/api_client/environment.rb @@ -5,7 +5,7 @@ module Google # TODO(bobaman) # Confirm that all of these Windows environments actually have access # to the `ver` command. - `ver`.sub(/\s*\[Version\s*/, '/').sub(']', '') + `ver`.sub(/\s*\[Version\s*/, '/').sub(']', '').strip elsif RUBY_PLATFORM =~ /darwin/i "Mac OS X/#{`sw_vers -productVersion`}" else