diff --git a/Gemfile b/Gemfile index 7cea899d..de77342c 100644 --- a/Gemfile +++ b/Gemfile @@ -19,7 +19,7 @@ group :test do gem "oj", "~> 3.14" if ENV["WITH_OJ_GEM"] == "true" gem "rspec", "~> 3.12.0" gem "rubocop", "~> 1.59.0" - gem "rubocop-performance", "~> 1.19.0" + gem "rubocop-performance", "~> 1.20.1" gem "simplecov", "~> 0.22.0" gem "simplecov-console", "~> 0.9.1" end diff --git a/allure-cucumber/lib/allure_cucumber/models/metadata_parser.rb b/allure-cucumber/lib/allure_cucumber/models/metadata_parser.rb index 878c2a5e..c038d498 100644 --- a/allure-cucumber/lib/allure_cucumber/models/metadata_parser.rb +++ b/allure-cucumber/lib/allure_cucumber/models/metadata_parser.rb @@ -101,13 +101,13 @@ def issue_links def matching_links(type) pattern = reserved_patterns[type] prefix = config.tms_prefix - link_pattern = config.public_send("link_#{type}_pattern") + link_pattern = config.public_send(:"link_#{type}_pattern") tags .grep(pattern) .map do |tag| tag.match(pattern) do |match| - Allure::ResultUtils.public_send("#{type}_link", prefix, match[type], link_pattern) + Allure::ResultUtils.public_send(:"#{type}_link", prefix, match[type], link_pattern) end end end diff --git a/allure-rspec/lib/allure_rspec/metadata_parser.rb b/allure-rspec/lib/allure_rspec/metadata_parser.rb index f5a30783..7284e03b 100644 --- a/allure-rspec/lib/allure_rspec/metadata_parser.rb +++ b/allure-rspec/lib/allure_rspec/metadata_parser.rb @@ -143,12 +143,12 @@ def behavior_labels # @param [Symbol] type # @return [Array] def matching_links(type) - link_pattern = config.public_send("link_#{type}_pattern") + link_pattern = config.public_send(:"link_#{type}_pattern") return [] unless link_pattern metadata - .select { |key| __send__("#{type}?", key) } - .map { |key, value| Allure::ResultUtils.public_send("#{type}_link", key.to_s, value, link_pattern) } + .select { |key| __send__(:"#{type}?", key) } + .map { |key, value| Allure::ResultUtils.public_send(:"#{type}_link", key.to_s, value, link_pattern) } end # Label value from custom metadata diff --git a/allure-ruby-commons/spec/spec_helper.rb b/allure-ruby-commons/spec/spec_helper.rb index 8c78d93f..4840ce8a 100644 --- a/allure-ruby-commons/spec/spec_helper.rb +++ b/allure-ruby-commons/spec/spec_helper.rb @@ -51,11 +51,11 @@ def start_test_container(name) end def start_fixture(name, type) - lifecycle.public_send("start_#{type}_fixture", Allure::FixtureResult.new(name: name)) + lifecycle.public_send(:"start_#{type}_fixture", Allure::FixtureResult.new(name: name)) end def add_fixture(name, type) - fixture_result = lifecycle.public_send("start_#{type}_fixture", Allure::FixtureResult.new(name: name)) + fixture_result = lifecycle.public_send(:"start_#{type}_fixture", Allure::FixtureResult.new(name: name)) lifecycle.update_fixture { |fixture| fixture.status = Allure::Status::PASSED } lifecycle.stop_fixture