We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d802564 commit 9755154Copy full SHA for 9755154
lib/google/api_client/environment.rb
@@ -21,7 +21,7 @@ module ENV
21
# TODO(bobaman)
22
# Confirm that all of these Windows environments actually have access
23
# to the `ver` command.
24
- `ver`.sub(/\s*\[Version\s*/, '/').sub(']', '').strip
+ `ver`.sub(/\s*\[Version\s*/, '/').sub(']', '')
25
elsif RUBY_PLATFORM =~ /darwin/i
26
"Mac OS X/#{`sw_vers -productVersion`.strip}"
27
elsif RUBY_PLATFORM == 'java'
@@ -33,7 +33,7 @@ module ENV
33
"#{name}/#{version}"
34
else
35
`uname -sr`.sub(' ', '/')
36
- end
+ end.strip
37
rescue Exception
38
RUBY_PLATFORM
39
end
0 commit comments