Skip to content

Commit

Permalink
Bump rubocop from 1.39.0 to 1.42.0 (#1059)
Browse files Browse the repository at this point in the history
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.39.0 to 1.42.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.39.0...v1.42.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rob Brackett <rob@robbrackett.com>
  • Loading branch information
dependabot[bot] and Mr0grog authored Jan 2, 2023
1 parent 9ae0f7c commit 56a95a5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,6 @@ Style/SymbolArray:

Style/WordArray:
Enabled: false

Style/YodaExpression:
Enabled: false
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ gem 'bootsnap', '>= 1.4.5', require: false
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
gem 'rubocop', '~> 1.39.0', require: false
gem 'rubocop', '~> 1.42.0', require: false
gem 'rubocop-performance', '~> 1.15.2'
gem 'rubocop-rails', '~> 2.17.4'
gem 'dotenv-rails'
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,14 @@ GEM
sinatra (>= 0.9.2)
retriable (3.1.2)
rexml (3.2.5)
rubocop (1.39.0)
rubocop (1.42.0)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.2.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.23.0, < 2.0)
rubocop-ast (>= 1.24.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.24.1)
Expand Down Expand Up @@ -397,7 +397,7 @@ DEPENDENCIES
rails (~> 7.0.4)
redis (~> 5.0)
resque (~> 2.4.0)
rubocop (~> 1.39.0)
rubocop (~> 1.42.0)
rubocop-performance (~> 1.15.2)
rubocop-rails (~> 2.17.4)
sassc-rails (~> 2.1.2)
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/v0/versions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def sampled
end

next_version = page.versions.where('capture_time < ?', time_range[0]).select(:uuid, :capture_time).first
if samples.length.zero? && next_version.nil?
if samples.empty? && next_version.nil?
raise Api::NotFoundError, '`to` time is older than the oldest version'
end

Expand Down

0 comments on commit 56a95a5

Please sign in to comment.