lib/tasks/web.rake in slack-ruby-client-2.1.0 vs lib/tasks/web.rake in slack-ruby-client-2.2.0

- old
+ new

@@ -56,13 +56,11 @@ snaked_group = group.tr('.', '_') rendered_method = method_template.result(group: group, names: names) File.write "lib/slack/web/api/endpoints/#{snaked_group}.rb", rendered_method custom_spec_exists = File.exist?("spec/slack/web/api/endpoints/custom_specs/#{group}_spec.rb") - unless custom_spec_exists - rendered_method_spec = method_spec_template.result(group: group, names: names) - File.write "spec/slack/web/api/endpoints/#{snaked_group}_spec.rb", rendered_method_spec - end + rendered_method_spec = method_spec_template.result(group: group, names: names, custom_spec_exists: custom_spec_exists) + File.write "spec/slack/web/api/endpoints/#{snaked_group}_spec.rb", rendered_method_spec unless ENV.key?('SKIP_PATCH') Dir.glob("lib/slack/web/api/patches/#{group}*.patch").sort.each do |patch| puts "- patching #{patch}" system("git apply #{patch}") || raise('failed to apply patch')