From 6a7803792b1c13a14330abab7988737c59370d71 Mon Sep 17 00:00:00 2001 From: osc-bot Date: Tue, 22 Oct 2024 02:44:26 +0000 Subject: [PATCH] lint a random file --- apps/dashboard/config/initializers/browser.rb | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/apps/dashboard/config/initializers/browser.rb b/apps/dashboard/config/initializers/browser.rb index cc04f607ed..a0e7631d79 100644 --- a/apps/dashboard/config/initializers/browser.rb +++ b/apps/dashboard/config/initializers/browser.rb @@ -1,21 +1,23 @@ +# frozen_string_literal: true + Browser.modern_rules.clear Browser.modern_rules.tap do |rules| - # original: + # original: # rules << -> (b) { b.webkit? } # rules << -> (b) { b.firefox? && b.version.to_i >= 17 } # rules << -> (b) { b.ie? && b.version.to_i >= 9 && !b.compatibility_view? } # rules << -> (b) { b.edge? && !b.compatibility_view? } # rules << -> (b) { b.opera? && b.version.to_i >= 12 } - # rules << -> (b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 } # rubocop:disable Metrics/LineLength + # rules << -> (b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 } # for now, explicitly specify chrome and safari versions but allow # other webkit (i.e. mobile) - rules << -> (b) { b.ie? && b.version.to_i >= 11 && !b.compatibility_view? } - rules << -> (b) { b.chrome? && b.version.to_i >= 34 } - rules << -> (b) { b.safari? && b.version.to_i >= 8 } - rules << -> (b) { b.webkit? && !b.chrome? && !b.safari? } - rules << -> (b) { b.firefox? && b.version.to_i >= 19 } - rules << -> (b) { b.edge? && !b.compatibility_view? } - rules << -> (b) { b.opera? && b.version.to_i >= 12 } - rules << -> (b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 } # rubocop:disable Metrics/LineLength + rules << ->(b) { b.ie? && b.version.to_i >= 11 && !b.compatibility_view? } + rules << ->(b) { b.chrome? && b.version.to_i >= 34 } + rules << ->(b) { b.safari? && b.version.to_i >= 8 } + rules << ->(b) { b.webkit? && !b.chrome? && !b.safari? } + rules << ->(b) { b.firefox? && b.version.to_i >= 19 } + rules << ->(b) { b.edge? && !b.compatibility_view? } + rules << ->(b) { b.opera? && b.version.to_i >= 12 } + rules << ->(b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 } end