A platform for community discussion. Free, open, simple.
DEV: always load the excon gem
Michael Browne935afbb62f5
diff --git a/Gemfile b/Gemfileindex 7b3a7e93317..72ab08f3c4b 100644--- a/Gemfile+++ b/Gemfile@@ -64,7 +64,7 @@ gem "fastimage"gem "aws-sdk-s3", require: falsegem "aws-sdk-sns", require: falsegem "aws-sdk-mediaconvert", require: false-gem "excon", require: false+gem "excon"gem "unf", require: falsegem "email_reply_trimmer"diff --git a/app/jobs/regular/crawl_topic_link.rb b/app/jobs/regular/crawl_topic_link.rbindex a6241d380ba..3a878710295 100644--- a/app/jobs/regular/crawl_topic_link.rb+++ b/app/jobs/regular/crawl_topic_link.rb@@ -2,7 +2,6 @@require "open-uri"require "nokogiri"-require "excon"module Jobsclass CrawlTopicLink < ::Jobs::Basediff --git a/app/jobs/regular/emit_web_hook_event.rb b/app/jobs/regular/emit_web_hook_event.rbindex a9ef0da4249..81ddd097c46 100644--- a/app/jobs/regular/emit_web_hook_event.rb+++ b/app/jobs/regular/emit_web_hook_event.rb@@ -1,7 +1,5 @@# frozen_string_literal: true-require "excon"-module Jobsclass EmitWebHookEvent < ::Jobs::Basesidekiq_options queue: "low"diff --git a/app/jobs/scheduled/redeliver_web_hook_events.rb b/app/jobs/scheduled/redeliver_web_hook_events.rbindex 99e2cb67118..be094033d6c 100644--- a/app/jobs/scheduled/redeliver_web_hook_events.rb+++ b/app/jobs/scheduled/redeliver_web_hook_events.rb@@ -1,7 +1,5 @@# frozen_string_literal: true-require "excon"-module Jobsclass RedeliverWebHookEvents < ::Jobs::Scheduledevery 1.minutediff --git a/lib/final_destination.rb b/lib/final_destination.rbindex 734f270bd53..697f344a199 100644--- a/lib/final_destination.rb+++ b/lib/final_destination.rb@@ -2,7 +2,6 @@require "socket"require "ipaddr"-require "excon"require "rate_limiter"require "url_helper"diff --git a/lib/method_profiler.rb b/lib/method_profiler.rbindex 609824b28ec..33acad54e7a 100644--- a/lib/method_profiler.rb+++ b/lib/method_profiler.rb@@ -1,7 +1,5 @@# frozen_string_literal: true-require "excon"-# see https://samsaffron.com/archive/2017/10/18/fastest-way-to-profile-a-method-in-rubyclass MethodProfilerdef self.patch(klass, methods, name, no_recurse: false)diff --git a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/quote_generator.rb b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/quote_generator.rbindex ba297ca2276..8bb29a7125f 100644--- a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/quote_generator.rb+++ b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/quote_generator.rb@@ -1,7 +1,5 @@# frozen_string_literal: true-require "excon"-module DiscourseNarrativeBotclass QuoteGeneratorAPI_ENDPOINT = "http://api.forismatic.com/api/1.0/"diff --git a/spec/jobs/emit_web_hook_event_spec.rb b/spec/jobs/emit_web_hook_event_spec.rbindex 47c5c191c2f..736cae90b16 100644--- a/spec/jobs/emit_web_hook_event_spec.rb+++ b/spec/jobs/emit_web_hook_event_spec.rb@@ -1,7 +1,5 @@# frozen_string_literal: true-require "excon"-RSpec.describe Jobs::EmitWebHookEvent dosubject(:job) { described_class.new }diff --git a/spec/jobs/push_notification_spec.rb b/spec/jobs/push_notification_spec.rbindex d71f197b168..c397aa62ba0 100644--- a/spec/jobs/push_notification_spec.rb+++ b/spec/jobs/push_notification_spec.rb@@ -1,7 +1,5 @@# frozen_string_literal: true-require "excon"-RSpec.describe Jobs::PushNotification dofab!(:user)fab!(:user2, :user)diff --git a/spec/jobs/redeliver_web_hook_events_spec.rb b/spec/jobs/redeliver_web_hook_events_spec.rbindex a60e0e91b38..97421a066f3 100644--- a/spec/jobs/redeliver_web_hook_events_spec.rb+++ b/spec/jobs/redeliver_web_hook_events_spec.rb@@ -1,7 +1,5 @@# frozen_string_literal: true-require "excon"-RSpec.describe Jobs::RedeliverWebHookEvents dosubject(:job) { described_class.new }