Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 128af40

Browse files
Build(deps-dev): Bump rubocop-rails from 2.16.1 to 2.17.0 (#3030)
* Build(deps-dev): Bump rubocop-rails from 2.16.1 to 2.17.0 Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.16.1 to 2.17.0. - [Release notes](https://github.com/rubocop/rubocop-rails/releases) - [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop-rails@v2.16.1...v2.17.0) --- updated-dependencies: - dependency-name: rubocop-rails dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fix RuboCop warning Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Georg Ledermann <[email protected]>
1 parent f61edef commit 128af40

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ GEM
359359
rubocop-performance (1.15.0)
360360
rubocop (>= 1.7.0, < 2.0)
361361
rubocop-ast (>= 0.4.0)
362-
rubocop-rails (2.16.1)
362+
rubocop-rails (2.17.0)
363363
activesupport (>= 4.2.0)
364364
rack (>= 1.1)
365365
rubocop (>= 1.33.0, < 2.0)

lib/wikipedia.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ def articles
1717
private
1818

1919
def names
20-
as_json['query']['pages'].to_a.first.second['links'].map do |hash|
21-
hash['title']
22-
end
20+
as_json['query']['pages'].to_a.first.second['links'].pluck('title')
2321
end
2422

2523
def next_page

0 commit comments

Comments
 (0)