lib/crowdin-api/client/client.rb in crowdin-api-1.4.0 vs lib/crowdin-api/client/client.rb in crowdin-api-1.5.0

- old
+ new

@@ -101,10 +101,10 @@ # # fetch all execution will be terminated if response error are same as in error_messages array # otherwise system will retry so many times, as indicated at tries_count # def fetch_all(api_resource, opts = {}, retry_opts = {}) - unless Web::FetchAllExtensions::API_RESOURCES_FOR_FETCH_ALL.include?(api_resource) + unless api_resource.to_s.start_with?('list_') raise(Errors::FetchAllProcessingError, "#{api_resource} method aren't supported for FetchAll") end limit = opts[:limit] || Web::FetchAllExtensions::MAX_ITEMS_COUNT_PER_REQUEST offset = opts[:offset] || 0