Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rspec-minor-versions: [6, 7, 8, 9, 10, 11, 12, 13]
rspec-minor-versions: [8, 9, 10, 11, 12, 13]
ruby-versions: ["3.2", "3.3", "3.4", "4.0"]
exclude:
- ruby-versions: 4.0
rspec-minor-versions: 6
- ruby-versions: 4.0
rspec-minor-versions: 7
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rspec_3.${{ matrix.rspec-minor-versions }}.gemfile

Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins:

AllCops:
NewCops: enable
TargetRubyVersion: 2.6
TargetRubyVersion: 3.2
Exclude:
- tmp/**/*
- vendor/**/*
Expand Down
2 changes: 1 addition & 1 deletion Appraisals
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vim: ft=ruby

(6..13).each do |minor|
(8..13).each do |minor|
appraise "rspec 3.#{minor}" do
gem 'rspec', "3.#{minor}.0"
end
Expand Down
4 changes: 2 additions & 2 deletions features/step_definitions/flatware_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def flatware_process
all_commands.find { |command| command.commandline.include? 'flatware' }
end

def duration(&block)
Benchmark.realtime(&block)
def duration(&)
Benchmark.realtime(&)
end
end
World(Support)
Expand Down
2 changes: 1 addition & 1 deletion flatware-rspec.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ Gem::Specification.new do |s|
s.required_ruby_version = ['>= 3.2', '< 4.1']
s.require_paths = ['lib']
s.add_dependency %(flatware), Flatware::VERSION
s.add_dependency %(rspec), '>= 3.6'
s.add_dependency %(rspec), '>= 3.8'
# s.metadata['rubygems_mfa_required'] = 'true'
end
2 changes: 1 addition & 1 deletion lib/flatware/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def configuration
@configuration ||= Configuration.new
end

def configure(&_block)
def configure(&)
yield configuration
end
end
1 change: 0 additions & 1 deletion lib/flatware/cucumber/formatter.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'cucumber'
require 'flatware/sink'
require 'ostruct'
require 'set'

module Flatware
module Cucumber
Expand Down
4 changes: 2 additions & 2 deletions lib/flatware/cucumber/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def initialize(progress)
end

class << self
def step(*args)
step = StepResult.new(*args)
def step(*)
step = StepResult.new(*)
new step.progress, [step]
end

Expand Down
7 changes: 3 additions & 4 deletions lib/flatware/sink.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'drb/drb'
require 'set'
require 'flatware/sink/signal'

module Flatware
Expand Down Expand Up @@ -62,10 +61,10 @@ def finished(job)
check_finished!
end

def method_missing(name, *args)
def method_missing(name, *)
super unless formatter.respond_to?(name)
Flatware.log(name, *args)
formatter.send(name, *args)
Flatware.log(name, *)
formatter.send(name, *)
end

def respond_to_missing?(name, include_all)
Expand Down
4 changes: 2 additions & 2 deletions lib/flatware/sink/signal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def listen
self
end

def self.listen(formatter, &block)
new(formatter, &block).listen
def self.listen(formatter, &)
new(formatter, &).listen
end

private
Expand Down
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir[Pathname(__FILE__).dirname.join('support/**/*.rb')]
.sort
.each { |f| require f }

RSpec.configure do |config|
Expand Down