Skip to content

Commit

Permalink
Update rubocop requirement from 1.63.5 to 1.64.1 (#953)
Browse files Browse the repository at this point in the history
* Update rubocop requirement from 1.63.5 to 1.64.1

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

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix rubocop

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Samuel Ebeagu <samuel.ebeagu@toptal.com>
  • Loading branch information
dependabot[bot] and ebeagusamuel authored Jun 6, 2024
1 parent a51f162 commit 86f9e3c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gemfiles/base.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gem 'redis', require: false
gem 'rspec', '>= 3.7.0'
gem 'rspec-collection_matchers'
gem 'rspec-its'
gem 'rubocop', '1.63.5'
gem 'rubocop', '1.64.1'
gem 'sqlite3', '~> 1.4'
gem 'timecop'
gem 'unparser'
2 changes: 1 addition & 1 deletion lib/chewy/fields/root.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Root < Chewy::Fields::Base
attr_reader :dynamic_templates, :id

def initialize(name, **options)
super(name, **options)
super

@value ||= -> { self }
@dynamic_templates = []
Expand Down
4 changes: 2 additions & 2 deletions spec/chewy/fields/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
specify { expect(described_class.new('name', type: 'integer').options[:type]).to eq('integer') }

describe '#compose' do
let(:field) { described_class.new(:name, value: ->(o) { o.value }) }
let(:field) { described_class.new(:name, value: lambda(&:value)) }

specify { expect(field.compose(double(value: 'hello'))).to eq(name: 'hello') }
specify { expect(field.compose(double(value: %w[hello world]))).to eq(name: %w[hello world]) }
Expand All @@ -23,7 +23,7 @@

context 'nested fields' do
before do
field.children.push(described_class.new(:subname1, value: ->(o) { o.subvalue1 }))
field.children.push(described_class.new(:subname1, value: lambda(&:subvalue1)))
field.children.push(described_class.new(:subname2, value: -> { subvalue2 }))
field.children.push(described_class.new(:subname3))
end
Expand Down
2 changes: 1 addition & 1 deletion spec/chewy/index/observe/callback_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
end

context 'when executable is has arity 1' do
let(:executable) { ->(record) { record.population } }
let(:executable) { lambda(&:population) }

it 'calls exectuable within context' do
expect(callback.call(city)).to eq(city.population)
Expand Down

0 comments on commit 86f9e3c

Please sign in to comment.