lib/sonar/client.rb in sonar-client-0.0.8 vs lib/sonar/client.rb in sonar-client-0.0.9
- old
+ new
@@ -90,10 +90,10 @@
# Returns the default value for the api version
#
# @return [String] the Sonar API version to use
def default_api_version
begin
- Sonar.api_version
+ Sonar.api_version || 'v2'
rescue NoMethodError
'v2'
end
end