diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 976261a..eed9645 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -96,16 +96,6 @@ Style/BarePercentLiterals: Exclude: - 'lib/sharepoint/client.rb' -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods. -# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces -# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object -# FunctionalMethods: let, let!, subject, watch -# AllowedMethods: lambda, proc, it -Style/BlockDelimiters: - Exclude: - - 'lib/sharepoint/client.rb' - Style/DocumentDynamicEvalDefinition: Exclude: - 'lib/sharepoint/client.rb' diff --git a/lib/sharepoint/client.rb b/lib/sharepoint/client.rb index eca933c..04edd39 100644 --- a/lib/sharepoint/client.rb +++ b/lib/sharepoint/client.rb @@ -53,7 +53,7 @@ def documents_for(path, site_path = '') date_of_issue: nil ) - threads << Thread.new { + threads << Thread.new do ethon2 = ethon_easy_json_requester server_relative_url = "#{site_path}#{path}/#{file['Name']}" ethon2.url = "#{computed_web_api_url(site_path)}GetFileByServerRelativeUrl('#{uri_escape server_relative_url}')/ListItemAllFields" @@ -63,7 +63,7 @@ def documents_for(path, site_path = '') file_struct.date_of_issue = rs['Date_of_issue'] rv << file_struct - } + end end threads.each { |t| t.join } rv