lib/google/apis/version.rb in google-api-client-0.19.8 vs lib/google/apis/version.rb in google-api-client-0.20.0
- old
+ new
@@ -13,26 +13,26 @@
# limitations under the License.
module Google
module Apis
# Client library version
- VERSION = '0.19.8'
+ VERSION = '0.20.0'
# Current operating system
# @private
OS_VERSION = begin
if RUBY_PLATFORM =~ /mswin|win32|mingw|bccwin|cygwin/
- `ver`.sub(/\s*\[Version\s*/, '/').sub(']', '').strip
+ `ver`.sub(/\s*\[Version\s*/, '/').sub(']', '')
elsif RUBY_PLATFORM =~ /darwin/i
"Mac OS X/#{`sw_vers -productVersion`}"
elsif RUBY_PLATFORM == 'java'
require 'java'
name = java.lang.System.getProperty('os.name')
version = java.lang.System.getProperty('os.version')
"#{name}/#{version}"
else
`uname -sr`.sub(' ', '/')
- end
+ end.strip
rescue
RUBY_PLATFORM
end
end
end