From 3836d69119fee2a625edae2a564132eff9520bc8 Mon Sep 17 00:00:00 2001 From: gfyoung Date: Sat, 29 Sep 2018 15:34:47 -0700 Subject: Enable frozen string in lib/api and lib/backup Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190 --- lib/api/files.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/api/files.rb') diff --git a/lib/api/files.rb b/lib/api/files.rb index ac02488d30c..bcd2cd48a45 100644 --- a/lib/api/files.rb +++ b/lib/api/files.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module API class Files < Grape::API FILE_ENDPOINT_REQUIREMENTS = API::PROJECT_ENDPOINT_REQUIREMENTS.merge(file_path: API::NO_SLASH_URL_PART_REGEX) -- cgit v1.2.1