Skip to content

Commit

Permalink
Change to fix Ruby 2.7 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Dec 7, 2019
1 parent 86d89ec commit b935658
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/rspec/benchmark/matchers.rb
Expand Up @@ -35,7 +35,7 @@ module Matchers
#
# @api public
def perform_allocation(objects, **options)
AllocationMatcher::Matcher.new(objects, options)
AllocationMatcher::Matcher.new(objects, **options)
end

# Passes if code block performs at least iterations
Expand All @@ -48,7 +48,7 @@ def perform_allocation(objects, **options)
#
# @api public
def perform_at_least(iterations, **options)
IterationMatcher::Matcher.new(iterations, options)
IterationMatcher::Matcher.new(iterations, **options)
end

# Passes if code block performs under threshold
Expand All @@ -62,7 +62,7 @@ def perform_at_least(iterations, **options)
#
# @api public
def perform_under(threshold, **options)
TimingMatcher::Matcher.new(threshold, options)
TimingMatcher::Matcher.new(threshold, **options)
end

# Passes if code block performs faster than sample block
Expand All @@ -75,7 +75,7 @@ def perform_under(threshold, **options)
#
# @api public
def perform_faster_than(**options, &sample)
ComparisonMatcher::Matcher.new(sample, :faster, options)
ComparisonMatcher::Matcher.new(sample, :faster, **options)
end

# Passes if code block performs slower than sample block
Expand All @@ -88,7 +88,7 @@ def perform_faster_than(**options, &sample)
#
# @api public
def perform_slower_than(**options, &sample)
ComparisonMatcher::Matcher.new(sample, :slower, options)
ComparisonMatcher::Matcher.new(sample, :slower, **options)
end

# Pass if code block performs constant
Expand All @@ -100,7 +100,7 @@ def perform_slower_than(**options, &sample)
#
# @api public
def perform_constant(**options)
ComplexityMatcher::Matcher.new(:constant, options)
ComplexityMatcher::Matcher.new(:constant, **options)
end

# Pass if code block performs logarithmic
Expand All @@ -113,7 +113,7 @@ def perform_constant(**options)
#
# @api public
def perform_logarithmic(**options)
ComplexityMatcher::Matcher.new(:logarithmic, options)
ComplexityMatcher::Matcher.new(:logarithmic, **options)
end
alias perform_log perform_logarithmic

Expand All @@ -126,7 +126,7 @@ def perform_logarithmic(**options)
#
# @api public
def perform_linear(**options)
ComplexityMatcher::Matcher.new(:linear, options)
ComplexityMatcher::Matcher.new(:linear, **options)
end

# Pass if code block performs power
Expand All @@ -138,7 +138,7 @@ def perform_linear(**options)
#
# @api public
def perform_power(**options)
ComplexityMatcher::Matcher.new(:power, options)
ComplexityMatcher::Matcher.new(:power, **options)
end

# Pass if code block performs exponential
Expand All @@ -150,7 +150,7 @@ def perform_power(**options)
#
# @api public
def perform_exponential(**options)
ComplexityMatcher::Matcher.new(:exponential, options)
ComplexityMatcher::Matcher.new(:exponential, **options)
end
alias perform_exp perform_exponential

Expand Down

0 comments on commit b935658

Please sign in to comment.