lib/comicvine.rb in comicvine-0.1.3 vs lib/comicvine.rb in comicvine-0.1.4
- old
+ new
@@ -17,11 +17,11 @@
module ComicVine
# ComicVine api version (1.0)
API_VERSION = '1.0'
# Base ComicVine url
- API_URL = 'http://comicvine.gamespot.com/api'
+ API_URL = 'https://comicvine.gamespot.com/api'
# ComicVine format (json)
API_FORMAT = 'json'
# Array of available resources
@@ -237,12 +237,12 @@
# @return [String] Full url of the requested resource
# @macro raise.ResourceNotSupportedError
def _build_base_url(resource, id = nil)
if ComicVine::API_RESOURCES.include? resource
if !id.nil?
- API_URL + '/' + resource.to_s + '/' + "#{self.find_detail(resource)['id']}-#{id.to_s}"
+ API_URL + '/' + resource.to_s + '/' + "#{self.find_detail(resource)['id']}-#{id.to_s}/"
else
- API_URL + '/' + resource.to_s
+ API_URL + '/' + resource.to_s + '/'
end
else
raise ResourceNotSupportedError, resource.to_s + ' is not a supported resource'
end
end