lib/gems/request.rb in gems-0.0.4 vs lib/gems/request.rb in gems-0.0.5
- old
+ new
@@ -12,13 +12,13 @@
end
response.body
end
def formatted_path(path, format)
- case format.to_sym
- when :json, :xml
+ case format.to_s.downcase
+ when 'json', 'xml'
[path, format].compact.join('.')
- when :marshal
+ when 'marshal', 'raw'
path
end
end
end
end