From 98adba6ba2c1bc7e87f446c6b0d08d99e52f6bd7 Mon Sep 17 00:00:00 2001 From: annc128 Date: Wed, 28 Apr 2021 17:39:11 -0700 Subject: [PATCH 1/2] enable-overriding-transport-options Pass options when initializing Transport --- lib/segment/analytics/worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/segment/analytics/worker.rb b/lib/segment/analytics/worker.rb index a313eed5..7e73fae7 100644 --- a/lib/segment/analytics/worker.rb +++ b/lib/segment/analytics/worker.rb @@ -29,7 +29,7 @@ def initialize(queue, write_key, options = {}) batch_size = options[:batch_size] || Defaults::MessageBatch::MAX_SIZE @batch = MessageBatch.new(batch_size) @lock = Mutex.new - @transport = Transport.new + @transport = Transport.new(options) end # public: Continuously runs the loop to check for new events From 156f7896e40ef76874b06d106b27093a01c32076 Mon Sep 17 00:00:00 2001 From: annc128 Date: Wed, 28 Apr 2021 18:18:17 -0700 Subject: [PATCH 2/2] enable-overriding-transport-options Bump version --- History.md | 5 +++++ lib/segment/analytics/version.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/History.md b/History.md index 6732570a..774346f6 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,8 @@ +2.3.2 / 2020-04-28 +================== + +* Enable overriding options in Transport () + 2.3.1 / 2020-04-13 ================== diff --git a/lib/segment/analytics/version.rb b/lib/segment/analytics/version.rb index 1191fc47..3c375ed1 100644 --- a/lib/segment/analytics/version.rb +++ b/lib/segment/analytics/version.rb @@ -1,5 +1,5 @@ module Segment class Analytics - VERSION = '2.3.1' + VERSION = '2.3.2' end end