Attempting to fix some Windows issues and update deprecated library calls.
This commit is contained in:
1 parent
ba38697528
commit
e0afbdaf05
2 files changed
+5
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user