Skip to content

Commit

Permalink
rubocop corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxraven committed Oct 16, 2024
1 parent ceded2c commit 4bdb097
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 16 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,29 @@ on:
pull_request:
branches: [master]

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
rubocop:
name: Rubocop
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ruby: [
2.7
]
ruby-version:
# - "3.0"
# - "3.1"
# - "3.2"
- "3.3"

steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Ruby linter
run: bundle exec rubocop
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ Metrics/PerceivedComplexity:
Enabled: false
Metrics/ClassLength:
Max: 110
Style/FrozenStringLiteralComment:
Enabled: false
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# vim:fileencoding=utf-8
source 'https://rubygems.org'

case resque_version = ENV.fetch('RESQUE', 'latest')
Expand Down
1 change: 0 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# vim:fileencoding=utf-8
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'yard'
Expand Down
1 change: 0 additions & 1 deletion exe/resque-scheduler
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env ruby
# vim:fileencoding=utf-8

require 'resque-scheduler'
Resque::Scheduler::Cli.run!
13 changes: 6 additions & 7 deletions resque-scheduler.gemspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# vim:fileencoding=utf-8
lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'resque/scheduler/version'

Expand All @@ -13,15 +12,15 @@ Gem::Specification.new do |spec|
Dan Buch
Michael Bianco
Patrick Tulskie
EOF
spec.email = %w(
AUTHORS
spec.email = %w[
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
)
]
spec.summary = 'Light weight job scheduling on top of Resque'
spec.description = <<-DESCRIPTION
Light weight job scheduling on top of Resque.
Expand All @@ -32,7 +31,7 @@ Gem::Specification.new do |spec|
spec.license = 'MIT'
spec.metadata['rubygems_mfa_required'] = 'true'

spec.required_ruby_version = '>= 2.3.0'
spec.required_ruby_version = '>= 3.0.0'

spec.files = `git ls-files -z`.split("\0").reject do |f|
f.match(%r{^(test|spec|features|examples|bin|tasks)/}) ||
Expand All @@ -41,7 +40,7 @@ Gem::Specification.new do |spec|
end
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = %w(lib)
spec.require_paths = %w[lib]

spec.add_dependency 'mono_logger', '~> 1.0'
spec.add_dependency 'redis', '>= 3.3'
Expand Down

0 comments on commit 4bdb097

Please sign in to comment.