From 9ea965190ab4ae2157a086622b9d92ce0efef9e0 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Sun, 18 Oct 2026 09:31:27 +0400 Subject: [PATCH] bingo: add VK to the providers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit VK's own datacenter ИЦВА in Novosergiyevka is joining the card after the drone strike of 18 October. Give it a provider slug so the filter can show it, and guess it from the VK/ВКонтакте/М100 operator names. Assisted-by: Claude:opus-5-5 --- lib/bingo.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bingo.rb b/lib/bingo.rb index dc9ad0c..060ff80 100644 --- a/lib/bingo.rb +++ b/lib/bingo.rb @@ -24,7 +24,7 @@ module Bingo 'megafon' => %w[МегаФон MegaFon МегаФон], 'datahouse' => %w[DataHouse] * 3, 'oxygen' => %w[OXYGEN] * 3, 'linx' => %w[Linx] * 3, 'cloudx' => ['Cloud X'] * 3, 'nkgroup' => ['NK Group'] * 3, 'goznak' => %w[Гознак Goznak Гознак], 'dataspace' => %w[DataSpace] * 3, 'cloudru' => %w[Cloud.ru] * 3, 'x5' => ['X5 Group'] * 3, 'krok' => %w[КРОК CROC КРОК], - 'stack' => ['Stack Group'] * 3, 'beeline' => %w[Билайн Beeline Білайн] + 'stack' => ['Stack Group'] * 3, 'beeline' => %w[Билайн Beeline Білайн], 'vk' => %w[VK] * 3 }.transform_values { |names| %w[ru en uk].zip(names).to_h }.freeze PROVIDER_GUESS = [ @@ -33,7 +33,7 @@ module Bingo [/\A3data/i, '3data'], [/\AСбер/i, 'sber'], [/\AМегаФон/i, 'megafon'], [/\ADataHouse/i, 'datahouse'], [/\AOXYGEN/i, 'oxygen'], [/\ALinx/i, 'linx'], [/\ACloud X/i, 'cloudx'], [/\ANK Group/i, 'nkgroup'], [/\AГознак/i, 'goznak'], [/\ADataSpace/i, 'dataspace'], [/\ACloud\.ru/i, 'cloudru'], [/\AX5/i, 'x5'], [/\A(КРОК|CROC)/i, 'krok'], - [/\AStack/i, 'stack'], [/\A(Билайн|Beeline|ВымпелКом)/i, 'beeline'] + [/\AStack/i, 'stack'], [/\A(Билайн|Beeline|ВымпелКом)/i, 'beeline'], [/\A(VK|ВКонтакте|М100)/i, 'vk'] ].freeze def self.provider_name(slug, locale) = PROVIDERS.dig(slug, locale) || slug