Skip to content

Commit

Permalink
Update rubocop-performance requirement from ~> 1.19.0 to ~> 1.20.1 (#526
Browse files Browse the repository at this point in the history
)

* Update rubocop-performance requirement from ~> 1.19.0 to ~> 1.20.1

Updates the requirements on [rubocop-performance](https://github.com/rubocop/rubocop-performance) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-performance/releases)
- [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop-performance@v1.19.0...v1.20.1)

---
updated-dependencies:
- dependency-name: rubocop-performance
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix rubocop violations

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrejs Cunskis <[email protected]>
  • Loading branch information
dependabot[bot] and andrcuns authored Dec 26, 2023
1 parent 1d65ebc commit 398e228
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions allure-cucumber/lib/allure_cucumber/models/metadata_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions allure-rspec/lib/allure_rspec/metadata_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ def behavior_labels
# @param [Symbol] type
# @return [Array<Allure::Link>]
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
Expand Down
4 changes: 2 additions & 2 deletions allure-ruby-commons/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 398e228

Please sign in to comment.