Skip to content

Commit

Permalink
Resolve Style/Lambda offense
Browse files Browse the repository at this point in the history
  • Loading branch information
evpgh authored and postmodern committed Feb 22, 2023
1 parent 4403d95 commit cabe2c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ronin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
gem.email = gemspec['email']
gem.homepage = gemspec['homepage']

glob = lambda { |patterns| gem.files & Dir[*patterns] }
glob = ->(patterns) { gem.files & Dir[*patterns] }

gem.files = `git ls-files`.split($/)
gem.files = glob[gemspec['files']] if gemspec['files']
Expand All @@ -44,7 +44,7 @@ Gem::Specification.new do |gem|
gem.required_rubygems_version = gemspec['required_rubygems_version']
gem.post_install_message = gemspec['post_install_message']

split = lambda { |string| string.split(/,\s*/) }
split = ->(string) { string.split(/,\s*/) }

if gemspec['dependencies']
gemspec['dependencies'].each do |name,versions|
Expand Down

0 comments on commit cabe2c8

Please sign in to comment.