Skip to content

A platform for community discussion. Free, open, simple.

DEPS: Bump message_bus from 4.5.2 to 4.6.0 (#43326)

dependabot[bot]03f232772910
diff --git a/Gemfile.lock b/Gemfile.lock
index 2e974d9c009..70392981c03 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -354,7 +354,8 @@ GEM
matrix (0.4.3)
maxminddb (0.1.22)
memory_profiler (1.1.0)
- message_bus (4.5.2)
+ message_bus (4.6.0)
+ logger
rack (> 2, < 4)
messageformat-wrapper (1.1.0)
mini_racer (>= 0.6.3)
@@ -1126,7 +1127,7 @@ CHECKSUMS
matrix (0.4.3) sha256=a0d5ab7ddcc1973ff690ab361b67f359acbb16958d1dc072b8b956a286564c5b
maxminddb (0.1.22) sha256=50933be438fbed9dceabef4163eab41884bd8830d171fdb8f739bee769c4907e
memory_profiler (1.1.0) sha256=79a17df7980a140c83c469785905409d3027ca614c42c086089d128b805aa8f8
- message_bus (4.5.2) sha256=f1381bce05d9560e5ea7dfa56e44dfdf0080bda0ac02f4011eb662bb7dd9e778
+ message_bus (4.6.0) sha256=f81c2948dff0257da6010ab5c9e11cee06973141d03510fd7db3647eaf2027bb
messageformat-wrapper (1.1.0) sha256=ecea879626e412d1bc841c457dacfcbb1a62cf88ca83573e4ea34bb371f160bc
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
migrations-converters (0.0.1)
diff --git a/plugins/chat/spec/lib/chat/notifier_spec.rb b/plugins/chat/spec/lib/chat/notifier_spec.rb
index 53c8bcc1172..93f9f922fee 100644
--- a/plugins/chat/spec/lib/chat/notifier_spec.rb
+++ b/plugins/chat/spec/lib/chat/notifier_spec.rb
@@ -454,8 +454,8 @@ describe Chat::Notifier do
unreachable_msg = messages.first
- expect(unreachable_msg[:data][:type].to_sym).to eq(:notice)
- expect(unreachable_msg[:data][:text_content]).to eq(
+ expect(unreachable_msg.data[:type].to_sym).to eq(:notice)
+ expect(unreachable_msg.data[:text_content]).to eq(
I18n.t("chat.mention_warning.cannot_see", first_identifier: user_3.username),
)
end
@@ -474,8 +474,8 @@ describe Chat::Notifier do
unreachable_msg = messages.first
- expect(unreachable_msg[:data][:type].to_sym).to eq(:notice)
- expect(unreachable_msg[:data][:text_content]).to eq(
+ expect(unreachable_msg.data[:type].to_sym).to eq(:notice)
+ expect(unreachable_msg.data[:text_content]).to eq(
I18n.t(
"chat.mention_warning.cannot_see",
first_identifier: user_3.username,
@@ -516,8 +516,8 @@ describe Chat::Notifier do
unreachable_msg = messages.first
- expect(unreachable_msg[:data][:type].to_sym).to eq(:notice)
- expect(unreachable_msg[:data][:text_content]).to eq(
+ expect(unreachable_msg.data[:type].to_sym).to eq(:notice)
+ expect(unreachable_msg.data[:text_content]).to eq(
I18n.t("chat.mention_warning.cannot_see", first_identifier: user_3.username),
)
end
@@ -541,8 +541,8 @@ describe Chat::Notifier do
unreachable_msg = messages.first
- expect(unreachable_msg[:data][:type].to_sym).to eq(:notice)
- expect(unreachable_msg[:data][:text_content]).to eq(
+ expect(unreachable_msg.data[:type].to_sym).to eq(:notice)
+ expect(unreachable_msg.data[:text_content]).to eq(
I18n.t("chat.mention_warning.cannot_see", first_identifier: user_3.username),
)
end
@@ -566,10 +566,10 @@ describe Chat::Notifier do
not_participating_msg = messages.first
- expect(not_participating_msg[:data][:type].to_sym).to eq(:notice)
- expect(not_participating_msg[:data][:text_content]).to be_nil
- expect(not_participating_msg[:data][:notice_type].to_sym).to eq(:mention_without_membership)
- expect(not_participating_msg[:data][:data]).to eq(
+ expect(not_participating_msg.data[:type].to_sym).to eq(:notice)
+ expect(not_participating_msg.data[:text_content]).to be_nil
+ expect(not_participating_msg.data[:notice_type].to_sym).to eq(:mention_without_membership)
+ expect(not_participating_msg.data[:data]).to eq(
user_ids: [user_3.id],
text:
I18n.t("chat.mention_warning.without_membership", first_identifier: user_3.username),
@@ -623,10 +623,10 @@ describe Chat::Notifier do
not_participating_msg = messages.first
- expect(not_participating_msg[:data][:type].to_sym).to eq(:notice)
- expect(not_participating_msg[:data][:text_content]).to be_nil
- expect(not_participating_msg[:data][:notice_type].to_sym).to eq(:mention_without_membership)
- expect(not_participating_msg[:data][:data]).to eq(
+ expect(not_participating_msg.data[:type].to_sym).to eq(:notice)
+ expect(not_participating_msg.data[:text_content]).to be_nil
+ expect(not_participating_msg.data[:notice_type].to_sym).to eq(:mention_without_membership)
+ expect(not_participating_msg.data[:data]).to eq(
user_ids: [user_3.id],
text:
I18n.t("chat.mention_warning.without_membership", first_identifier: user_3.username),
@@ -652,10 +652,10 @@ describe Chat::Notifier do
not_participating_msg = messages.first
- expect(not_participating_msg[:data][:type].to_sym).to eq(:notice)
- expect(not_participating_msg[:data][:text_content]).to be_nil
- expect(not_participating_msg[:data][:notice_type].to_sym).to eq(:mention_without_membership)
- expect(not_participating_msg[:data][:data]).to eq(
+ expect(not_participating_msg.data[:type].to_sym).to eq(:notice)
+ expect(not_participating_msg.data[:text_content]).to be_nil
+ expect(not_participating_msg.data[:notice_type].to_sym).to eq(:mention_without_membership)
+ expect(not_participating_msg.data[:data]).to eq(
user_ids: [user_3.id],
text:
I18n.t("chat.mention_warning.without_membership", first_identifier: user_3.username),
@@ -727,8 +727,8 @@ describe Chat::Notifier do
too_many_members_msg = messages.first
- expect(too_many_members_msg[:data][:type].to_sym).to eq(:notice)
- expect(too_many_members_msg[:data][:text_content]).to eq(
+ expect(too_many_members_msg.data[:type].to_sym).to eq(:notice)
+ expect(too_many_members_msg.data[:text_content]).to eq(
I18n.t("chat.mention_warning.too_many_members", first_identifier: group.name),
)
end
@@ -746,8 +746,8 @@ describe Chat::Notifier do
mentions_disabled_msg = messages.first
- expect(mentions_disabled_msg[:data][:type].to_sym).to eq(:notice)
- expect(mentions_disabled_msg[:data][:text_content]).to eq(
+ expect(mentions_disabled_msg.data[:type].to_sym).to eq(:notice)
+ expect(mentions_disabled_msg.data[:text_content]).to eq(
I18n.t("chat.mention_warning.group_mentions_disabled", first_identifier: group.name),
)
end
@@ -767,8 +767,8 @@ describe Chat::Notifier do
mentions_disabled_msg = messages.first
- expect(mentions_disabled_msg[:data][:type].to_sym).to eq(:notice)
- expect(mentions_disabled_msg[:data][:text_content]).to eq(
+ expect(mentions_disabled_msg.data[:type].to_sym).to eq(:notice)
+ expect(mentions_disabled_msg.data[:text_content]).to eq(
I18n.t(
"chat.mention_warning.group_mentions_disabled",
first_identifier: group.name,
diff --git a/plugins/discourse-post-voting/spec/requests/post_voting/comments_controller_spec.rb b/plugins/discourse-post-voting/spec/requests/post_voting/comments_controller_spec.rb
index 2639f607391..4aa221f036e 100644
--- a/plugins/discourse-post-voting/spec/requests/post_voting/comments_controller_spec.rb
+++ b/plugins/discourse-post-voting/spec/requests/post_voting/comments_controller_spec.rb
@@ -115,7 +115,7 @@ RSpec.describe PostVoting::CommentsController do
.first
comment = answer.post_voting_comments.last
- payload = message[:data]
+ payload = message.data
expect(payload[:comment][:id]).to eq(comment.id)
expect(payload[:comment][:user_id]).to eq(user.id)
diff --git a/spec/jobs/regular/site_setting_update_default_categories_spec.rb b/spec/jobs/regular/site_setting_update_default_categories_spec.rb
index a40e25d5c53..8965fab6bf1 100644
--- a/spec/jobs/regular/site_setting_update_default_categories_spec.rb
+++ b/spec/jobs/regular/site_setting_update_default_categories_spec.rb
@@ -83,8 +83,8 @@ describe Jobs::SiteSettingUpdateDefaultCategories do
)
end
- expect(messages[0][:data][:group_ids]).to eq([Group::AUTO_GROUPS[:admins]])
- expect(messages[0][:data][:status]).to eq("completed")
+ expect(messages[0].data[:group_ids]).to eq([Group::AUTO_GROUPS[:admins]])
+ expect(messages[0].data[:status]).to eq("completed")
end
end
end
diff --git a/spec/jobs/regular/site_setting_update_default_tags_spec.rb b/spec/jobs/regular/site_setting_update_default_tags_spec.rb
index 63ac9a545bb..fa642cfaba3 100644
--- a/spec/jobs/regular/site_setting_update_default_tags_spec.rb
+++ b/spec/jobs/regular/site_setting_update_default_tags_spec.rb
@@ -41,8 +41,8 @@ describe Jobs::SiteSettingUpdateDefaultTags do
)
end
- expect(messages[0][:data][:group_ids]).to eq([Group::AUTO_GROUPS[:admins]])
- expect(messages[0][:data][:status]).to eq("completed")
+ expect(messages[0].data[:group_ids]).to eq([Group::AUTO_GROUPS[:admins]])
+ expect(messages[0].data[:status]).to eq("completed")
end
end
end
diff --git a/spec/requests/admin/site_settings_controller_spec.rb b/spec/requests/admin/site_settings_controller_spec.rb
index bd9370b20fb..158946d7c14 100644
--- a/spec/requests/admin/site_settings_controller_spec.rb
+++ b/spec/requests/admin/site_settings_controller_spec.rb
@@ -558,8 +558,8 @@ RSpec.describe Admin::SiteSettingsController do
}
end
- expect(messages[0][:data][:group_ids]).to eq([Group::AUTO_GROUPS[:admins]])
- expect(messages[0][:data][:status]).to eq("enqueued")
+ expect(messages[0].data[:group_ids]).to eq([Group::AUTO_GROUPS[:admins]])
+ expect(messages[0].data[:status]).to eq("enqueued")
end
end
@@ -627,8 +627,8 @@ RSpec.describe Admin::SiteSettingsController do
update_existing_user: true,
}
end
- expect(messages[0][:data][:group_ids]).to eq([Group::AUTO_GROUPS[:admins]])
- expect(messages[0][:data][:status]).to eq("enqueued")
+ expect(messages[0].data[:group_ids]).to eq([Group::AUTO_GROUPS[:admins]])
+ expect(messages[0].data[:status]).to eq("enqueued")
end
end